blob: 61c2aecc1804c8eac5eac805ebd73c7157c83862 [file] [log] [blame]
John Criswell7a73b802003-06-30 21:59:07 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Torok Edwincc499a42008-10-22 09:56:27 +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
Torok Edwincc499a42008-10-22 09:56:27 +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
Torok Edwincc499a42008-10-22 09:56:27 +000027 case `(set -o) 2>/dev/null` in
28 *posix*) set -o posix ;;
29esac
30
John Criswell0c38eaf2003-09-10 15:17:25 +000031fi
Torok Edwincc499a42008-10-22 09:56:27 +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
Torok Edwincc499a42008-10-22 09:56:27 +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
Torok Edwincc499a42008-10-22 09:56:27 +0000252 case `(set -o) 2>/dev/null` in
253 *posix*) set -o posix ;;
254esac
255
Reid Spencera773bd52006-08-04 18:18:08 +0000256fi
Torok Edwincc499a42008-10-22 09:56:27 +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
Torok Edwincc499a42008-10-22 09:56:27 +0000273 case `(set -o) 2>/dev/null` in
274 *posix*) set -o posix ;;
275esac
276
Reid Spencera773bd52006-08-04 18:18:08 +0000277fi
Torok Edwincc499a42008-10-22 09:56:27 +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
Torok Edwincc499a42008-10-22 09:56:27 +0000525if test -x / >/dev/null 2>&1; then
526 as_test_x='test -x'
Reid Spencera773bd52006-08-04 18:18:08 +0000527else
Torok Edwincc499a42008-10-22 09:56:27 +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
Torok Edwincc499a42008-10-22 09:56:27 +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>
Torok Edwincc499a42008-10-22 09:56:27 +0000741#ifdef HAVE_SYS_TYPES_H
John Criswell7a73b802003-06-30 21:59:07 +0000742# include <sys/types.h>
743#endif
Torok Edwincc499a42008-10-22 09:56:27 +0000744#ifdef HAVE_SYS_STAT_H
John Criswell7a73b802003-06-30 21:59:07 +0000745# include <sys/stat.h>
746#endif
Torok Edwincc499a42008-10-22 09:56:27 +0000747#ifdef STDC_HEADERS
John Criswell7a73b802003-06-30 21:59:07 +0000748# include <stdlib.h>
749# include <stddef.h>
750#else
Torok Edwincc499a42008-10-22 09:56:27 +0000751# ifdef HAVE_STDLIB_H
John Criswell7a73b802003-06-30 21:59:07 +0000752# include <stdlib.h>
753# endif
754#endif
Torok Edwincc499a42008-10-22 09:56:27 +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
Torok Edwincc499a42008-10-22 09:56:27 +0000761#ifdef HAVE_STRINGS_H
John Criswell7a73b802003-06-30 21:59:07 +0000762# include <strings.h>
763#endif
Torok Edwincc499a42008-10-22 09:56:27 +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
Torok Edwincc499a42008-10-22 09:56:27 +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
Torok Edwincc499a42008-10-22 09:56:27 +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
Tanya Lattnercf067672008-01-17 05:57:22 +0000864LEX_OUTPUT_ROOT
Torok Edwincc499a42008-10-22 09:56:27 +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
Torok Edwincc499a42008-10-22 09:56:27 +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.
Torok Edwincc499a42008-10-22 09:56:27 +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; }; }
Torok Edwincc499a42008-10-22 09:56:27 +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.
Torok Edwincc499a42008-10-22 09:56:27 +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; }; }
Torok Edwincc499a42008-10-22 09:56:27 +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.
Torok Edwincc499a42008-10-22 09:56:27 +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; }; }
Torok Edwincc499a42008-10-22 09:56:27 +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.
Torok Edwincc499a42008-10-22 09:56:27 +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; }; }
Torok Edwincc499a42008-10-22 09:56:27 +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>
Torok Edwincc499a42008-10-22 09:56:27 +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
Torok Edwincc499a42008-10-22 09:56:27 +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
Torok Edwincc499a42008-10-22 09:56:27 +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" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002409 *) llvm_cv_target_arch="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002410esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002411fi
Reid Spencera773bd52006-08-04 18:18:08 +00002412{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2413echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002414
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002415if test "$llvm_cv_target_arch" = "Unknown" ; then
2416 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2417echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2418fi
John Criswell76595452003-07-01 22:07:39 +00002419
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002420ARCH=$llvm_cv_target_arch
Brian Gaeke7fe1d162003-11-17 00:31:43 +00002421
Brian Gaeke7fe1d162003-11-17 00:31:43 +00002422
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002423ac_ext=c
2424ac_cpp='$CPP $CPPFLAGS'
2425ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2426ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2427ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00002428if test -n "$ac_tool_prefix"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002429 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2430set dummy ${ac_tool_prefix}gcc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002431{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2432echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002433if test "${ac_cv_prog_CC+set}" = set; then
2434 echo $ECHO_N "(cached) $ECHO_C" >&6
2435else
2436 if test -n "$CC"; then
2437 ac_cv_prog_CC="$CC" # Let the user override the test.
2438else
2439as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2440for as_dir in $PATH
2441do
2442 IFS=$as_save_IFS
2443 test -z "$as_dir" && as_dir=.
2444 for ac_exec_ext in '' $ac_executable_extensions; do
Torok Edwincc499a42008-10-22 09:56:27 +00002445 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 +00002446 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2447 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2448 break 2
2449 fi
2450done
2451done
Reid Spencera773bd52006-08-04 18:18:08 +00002452IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002453
2454fi
2455fi
2456CC=$ac_cv_prog_CC
2457if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002458 { echo "$as_me:$LINENO: result: $CC" >&5
2459echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002460else
Reid Spencera773bd52006-08-04 18:18:08 +00002461 { echo "$as_me:$LINENO: result: no" >&5
2462echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002463fi
2464
Reid Spencera773bd52006-08-04 18:18:08 +00002465
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002466fi
2467if test -z "$ac_cv_prog_CC"; then
2468 ac_ct_CC=$CC
2469 # Extract the first word of "gcc", so it can be a program name with args.
2470set dummy gcc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002471{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2472echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002473if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2474 echo $ECHO_N "(cached) $ECHO_C" >&6
2475else
2476 if test -n "$ac_ct_CC"; then
2477 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2478else
2479as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2480for as_dir in $PATH
2481do
2482 IFS=$as_save_IFS
2483 test -z "$as_dir" && as_dir=.
2484 for ac_exec_ext in '' $ac_executable_extensions; do
Torok Edwincc499a42008-10-22 09:56:27 +00002485 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 +00002486 ac_cv_prog_ac_ct_CC="gcc"
2487 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2488 break 2
2489 fi
2490done
2491done
Reid Spencera773bd52006-08-04 18:18:08 +00002492IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002493
2494fi
2495fi
2496ac_ct_CC=$ac_cv_prog_ac_ct_CC
2497if test -n "$ac_ct_CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002498 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2499echo "${ECHO_T}$ac_ct_CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002500else
Reid Spencera773bd52006-08-04 18:18:08 +00002501 { echo "$as_me:$LINENO: result: no" >&5
2502echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002503fi
2504
Reid Spencera773bd52006-08-04 18:18:08 +00002505 if test "x$ac_ct_CC" = x; then
2506 CC=""
2507 else
2508 case $cross_compiling:$ac_tool_warned in
2509yes:)
2510{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2511whose name does not start with the host triplet. If you think this
2512configuration is useful to you, please write to autoconf@gnu.org." >&5
2513echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2514whose name does not start with the host triplet. If you think this
2515configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2516ac_tool_warned=yes ;;
2517esac
2518 CC=$ac_ct_CC
2519 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002520else
2521 CC="$ac_cv_prog_CC"
2522fi
2523
2524if test -z "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002525 if test -n "$ac_tool_prefix"; then
2526 # 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 +00002527set dummy ${ac_tool_prefix}cc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002528{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2529echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002530if test "${ac_cv_prog_CC+set}" = set; then
2531 echo $ECHO_N "(cached) $ECHO_C" >&6
2532else
2533 if test -n "$CC"; then
2534 ac_cv_prog_CC="$CC" # Let the user override the test.
2535else
2536as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2537for as_dir in $PATH
2538do
2539 IFS=$as_save_IFS
2540 test -z "$as_dir" && as_dir=.
2541 for ac_exec_ext in '' $ac_executable_extensions; do
Torok Edwincc499a42008-10-22 09:56:27 +00002542 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 +00002543 ac_cv_prog_CC="${ac_tool_prefix}cc"
2544 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2545 break 2
2546 fi
2547done
2548done
Reid Spencera773bd52006-08-04 18:18:08 +00002549IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002550
2551fi
2552fi
2553CC=$ac_cv_prog_CC
2554if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002555 { echo "$as_me:$LINENO: result: $CC" >&5
2556echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002557else
Reid Spencera773bd52006-08-04 18:18:08 +00002558 { echo "$as_me:$LINENO: result: no" >&5
2559echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002560fi
2561
Reid Spencera773bd52006-08-04 18:18:08 +00002562
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002563 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002564fi
2565if test -z "$CC"; then
2566 # Extract the first word of "cc", so it can be a program name with args.
2567set dummy cc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002568{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2569echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002570if test "${ac_cv_prog_CC+set}" = set; then
2571 echo $ECHO_N "(cached) $ECHO_C" >&6
2572else
2573 if test -n "$CC"; then
2574 ac_cv_prog_CC="$CC" # Let the user override the test.
2575else
2576 ac_prog_rejected=no
2577as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2578for as_dir in $PATH
2579do
2580 IFS=$as_save_IFS
2581 test -z "$as_dir" && as_dir=.
2582 for ac_exec_ext in '' $ac_executable_extensions; do
Torok Edwincc499a42008-10-22 09:56:27 +00002583 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 +00002584 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2585 ac_prog_rejected=yes
2586 continue
2587 fi
2588 ac_cv_prog_CC="cc"
2589 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2590 break 2
2591 fi
2592done
2593done
Reid Spencera773bd52006-08-04 18:18:08 +00002594IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002595
2596if test $ac_prog_rejected = yes; then
2597 # We found a bogon in the path, so make sure we never use it.
2598 set dummy $ac_cv_prog_CC
2599 shift
2600 if test $# != 0; then
2601 # We chose a different compiler from the bogus one.
2602 # However, it has the same basename, so the bogon will be chosen
2603 # first if we set CC to just the basename; use the full file name.
2604 shift
2605 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2606 fi
2607fi
2608fi
2609fi
2610CC=$ac_cv_prog_CC
2611if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002612 { echo "$as_me:$LINENO: result: $CC" >&5
2613echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002614else
Reid Spencera773bd52006-08-04 18:18:08 +00002615 { echo "$as_me:$LINENO: result: no" >&5
2616echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002617fi
2618
Reid Spencera773bd52006-08-04 18:18:08 +00002619
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002620fi
2621if test -z "$CC"; then
2622 if test -n "$ac_tool_prefix"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002623 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002624 do
2625 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2626set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002627{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2628echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002629if test "${ac_cv_prog_CC+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002630 echo $ECHO_N "(cached) $ECHO_C" >&6
2631else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002632 if test -n "$CC"; then
2633 ac_cv_prog_CC="$CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002634else
2635as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2636for as_dir in $PATH
2637do
2638 IFS=$as_save_IFS
2639 test -z "$as_dir" && as_dir=.
2640 for ac_exec_ext in '' $ac_executable_extensions; do
Torok Edwincc499a42008-10-22 09:56:27 +00002641 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 +00002642 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
John Criswell7a73b802003-06-30 21:59:07 +00002643 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2644 break 2
2645 fi
2646done
2647done
Reid Spencera773bd52006-08-04 18:18:08 +00002648IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002649
2650fi
2651fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002652CC=$ac_cv_prog_CC
2653if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002654 { echo "$as_me:$LINENO: result: $CC" >&5
2655echo "${ECHO_T}$CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002656else
Reid Spencera773bd52006-08-04 18:18:08 +00002657 { echo "$as_me:$LINENO: result: no" >&5
2658echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002659fi
2660
Reid Spencera773bd52006-08-04 18:18:08 +00002661
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002662 test -n "$CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002663 done
2664fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002665if test -z "$CC"; then
2666 ac_ct_CC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +00002667 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002668do
2669 # Extract the first word of "$ac_prog", so it can be a program name with args.
2670set dummy $ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002671{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2672echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002673if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002674 echo $ECHO_N "(cached) $ECHO_C" >&6
2675else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002676 if test -n "$ac_ct_CC"; then
2677 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002678else
2679as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2680for as_dir in $PATH
2681do
2682 IFS=$as_save_IFS
2683 test -z "$as_dir" && as_dir=.
2684 for ac_exec_ext in '' $ac_executable_extensions; do
Torok Edwincc499a42008-10-22 09:56:27 +00002685 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 +00002686 ac_cv_prog_ac_ct_CC="$ac_prog"
John Criswell7a73b802003-06-30 21:59:07 +00002687 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2688 break 2
2689 fi
2690done
2691done
Reid Spencera773bd52006-08-04 18:18:08 +00002692IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002693
2694fi
2695fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002696ac_ct_CC=$ac_cv_prog_ac_ct_CC
2697if test -n "$ac_ct_CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002698 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2699echo "${ECHO_T}$ac_ct_CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002700else
Reid Spencera773bd52006-08-04 18:18:08 +00002701 { echo "$as_me:$LINENO: result: no" >&5
2702echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002703fi
2704
Reid Spencera773bd52006-08-04 18:18:08 +00002705
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002706 test -n "$ac_ct_CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002707done
John Criswell7a73b802003-06-30 21:59:07 +00002708
Reid Spencera773bd52006-08-04 18:18:08 +00002709 if test "x$ac_ct_CC" = x; then
2710 CC=""
2711 else
2712 case $cross_compiling:$ac_tool_warned in
2713yes:)
2714{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2715whose name does not start with the host triplet. If you think this
2716configuration is useful to you, please write to autoconf@gnu.org." >&5
2717echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2718whose name does not start with the host triplet. If you think this
2719configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2720ac_tool_warned=yes ;;
2721esac
2722 CC=$ac_ct_CC
2723 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002724fi
2725
John Criswell7a73b802003-06-30 21:59:07 +00002726fi
2727
2728
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002729test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2730See \`config.log' for more details." >&5
2731echo "$as_me: error: no acceptable C compiler found in \$PATH
2732See \`config.log' for more details." >&2;}
2733 { (exit 1); exit 1; }; }
2734
John Criswell7a73b802003-06-30 21:59:07 +00002735# Provide some information about the compiler.
Reid Spencera773bd52006-08-04 18:18:08 +00002736echo "$as_me:$LINENO: checking for C compiler version" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002737ac_compiler=`set X $ac_compile; echo $2`
Reid Spencera773bd52006-08-04 18:18:08 +00002738{ (ac_try="$ac_compiler --version >&5"
2739case "(($ac_try" in
2740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2741 *) ac_try_echo=$ac_try;;
2742esac
2743eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2744 (eval "$ac_compiler --version >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002745 ac_status=$?
2746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2747 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00002748{ (ac_try="$ac_compiler -v >&5"
2749case "(($ac_try" in
2750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2751 *) ac_try_echo=$ac_try;;
2752esac
2753eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2754 (eval "$ac_compiler -v >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002755 ac_status=$?
2756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2757 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00002758{ (ac_try="$ac_compiler -V >&5"
2759case "(($ac_try" in
2760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2761 *) ac_try_echo=$ac_try;;
2762esac
2763eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2764 (eval "$ac_compiler -V >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002765 ac_status=$?
2766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2767 (exit $ac_status); }
2768
2769cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002770/* confdefs.h. */
2771_ACEOF
2772cat confdefs.h >>conftest.$ac_ext
2773cat >>conftest.$ac_ext <<_ACEOF
2774/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002775
John Criswell7a73b802003-06-30 21:59:07 +00002776int
2777main ()
2778{
2779
2780 ;
2781 return 0;
2782}
2783_ACEOF
2784ac_clean_files_save=$ac_clean_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002785ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002786# Try to create an executable without -o first, disregard a.out.
2787# It will help us diagnose broken compilers, and finding out an intuition
2788# of exeext.
Reid Spencera773bd52006-08-04 18:18:08 +00002789{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2790echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002791ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
Reid Spencera773bd52006-08-04 18:18:08 +00002792#
2793# List of possible output files, starting from the most likely.
2794# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2795# only as a last resort. b.out is created by i960 compilers.
2796ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2797#
2798# The IRIX 6 linker writes into existing files which may not be
2799# executable, retaining their permissions. Remove them first so a
2800# subsequent execution test works.
2801ac_rmfiles=
2802for ac_file in $ac_files
2803do
2804 case $ac_file in
2805 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2806 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2807 esac
2808done
2809rm -f $ac_rmfiles
2810
2811if { (ac_try="$ac_link_default"
2812case "(($ac_try" in
2813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2814 *) ac_try_echo=$ac_try;;
2815esac
2816eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2817 (eval "$ac_link_default") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002818 ac_status=$?
2819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2820 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002821 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2822# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2823# in a Makefile. We should not override ac_cv_exeext if it was cached,
2824# so that the user can short-circuit this test for compilers unknown to
2825# Autoconf.
Torok Edwincc499a42008-10-22 09:56:27 +00002826for ac_file in $ac_files ''
John Criswell0c38eaf2003-09-10 15:17:25 +00002827do
2828 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002829 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +00002830 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002831 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002832 [ab].out )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002833 # We found the default executable, but exeext='' is most
2834 # certainly right.
2835 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002836 *.* )
Reid Spencera773bd52006-08-04 18:18:08 +00002837 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2838 then :; else
2839 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2840 fi
2841 # We set ac_cv_exeext here because the later test for it is not
2842 # safe: cross compilers may not add the suffix if given an `-o'
2843 # argument, so we may need to know it at that point already.
2844 # Even if this section looks crufty: it has the advantage of
2845 # actually working.
Reid Spencer2706f8c2004-09-19 23:53:36 +00002846 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002847 * )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002848 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002849 esac
2850done
Reid Spencera773bd52006-08-04 18:18:08 +00002851test "$ac_cv_exeext" = no && ac_cv_exeext=
2852
John Criswell7a73b802003-06-30 21:59:07 +00002853else
Torok Edwincc499a42008-10-22 09:56:27 +00002854 ac_file=''
2855fi
2856
2857{ echo "$as_me:$LINENO: result: $ac_file" >&5
2858echo "${ECHO_T}$ac_file" >&6; }
2859if test -z "$ac_file"; then
John Criswell7a73b802003-06-30 21:59:07 +00002860 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002861sed 's/^/| /' conftest.$ac_ext >&5
2862
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002863{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
John Criswell0c38eaf2003-09-10 15:17:25 +00002864See \`config.log' for more details." >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002865echo "$as_me: error: C compiler cannot create executables
John Criswell0c38eaf2003-09-10 15:17:25 +00002866See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002867 { (exit 77); exit 77; }; }
2868fi
2869
2870ac_exeext=$ac_cv_exeext
John Criswell7a73b802003-06-30 21:59:07 +00002871
Reid Spencera773bd52006-08-04 18:18:08 +00002872# Check that the compiler produces executables we can run. If not, either
John Criswell7a73b802003-06-30 21:59:07 +00002873# the compiler is broken, or we cross compile.
Reid Spencera773bd52006-08-04 18:18:08 +00002874{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2875echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002876# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2877# If not cross compiling, check that we can run a simple program.
2878if test "$cross_compiling" != yes; then
2879 if { ac_try='./$ac_file'
Reid Spencera773bd52006-08-04 18:18:08 +00002880 { (case "(($ac_try" in
2881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2882 *) ac_try_echo=$ac_try;;
2883esac
2884eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2885 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002886 ac_status=$?
2887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2888 (exit $ac_status); }; }; then
2889 cross_compiling=no
2890 else
2891 if test "$cross_compiling" = maybe; then
2892 cross_compiling=yes
2893 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002894 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002895If you meant to cross compile, use \`--host'.
2896See \`config.log' for more details." >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002897echo "$as_me: error: cannot run C compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002898If you meant to cross compile, use \`--host'.
2899See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002900 { (exit 1); exit 1; }; }
2901 fi
2902 fi
2903fi
Reid Spencera773bd52006-08-04 18:18:08 +00002904{ echo "$as_me:$LINENO: result: yes" >&5
2905echo "${ECHO_T}yes" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002906
John Criswell0c38eaf2003-09-10 15:17:25 +00002907rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002908ac_clean_files=$ac_clean_files_save
Reid Spencera773bd52006-08-04 18:18:08 +00002909# Check that the compiler produces executables we can run. If not, either
John Criswell7a73b802003-06-30 21:59:07 +00002910# the compiler is broken, or we cross compile.
Reid Spencera773bd52006-08-04 18:18:08 +00002911{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2912echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2913{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2914echo "${ECHO_T}$cross_compiling" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002915
Reid Spencera773bd52006-08-04 18:18:08 +00002916{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2917echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2918if { (ac_try="$ac_link"
2919case "(($ac_try" in
2920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2921 *) ac_try_echo=$ac_try;;
2922esac
2923eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2924 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002925 ac_status=$?
2926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2927 (exit $ac_status); }; then
2928 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2929# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2930# work properly (i.e., refer to `conftest.exe'), while it won't with
2931# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002932for ac_file in conftest.exe conftest conftest.*; do
2933 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002934 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +00002935 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002936 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Reid Spencer2706f8c2004-09-19 23:53:36 +00002937 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002938 * ) break;;
2939 esac
2940done
2941else
John Criswell0c38eaf2003-09-10 15:17:25 +00002942 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2943See \`config.log' for more details." >&5
2944echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2945See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002946 { (exit 1); exit 1; }; }
2947fi
2948
2949rm -f conftest$ac_cv_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00002950{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2951echo "${ECHO_T}$ac_cv_exeext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002952
2953rm -f conftest.$ac_ext
2954EXEEXT=$ac_cv_exeext
2955ac_exeext=$EXEEXT
Reid Spencera773bd52006-08-04 18:18:08 +00002956{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2957echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002958if test "${ac_cv_objext+set}" = set; then
2959 echo $ECHO_N "(cached) $ECHO_C" >&6
2960else
2961 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002962/* confdefs.h. */
2963_ACEOF
2964cat confdefs.h >>conftest.$ac_ext
2965cat >>conftest.$ac_ext <<_ACEOF
2966/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002967
John Criswell7a73b802003-06-30 21:59:07 +00002968int
2969main ()
2970{
2971
2972 ;
2973 return 0;
2974}
2975_ACEOF
2976rm -f conftest.o conftest.obj
Reid Spencera773bd52006-08-04 18:18:08 +00002977if { (ac_try="$ac_compile"
2978case "(($ac_try" in
2979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2980 *) ac_try_echo=$ac_try;;
2981esac
2982eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2983 (eval "$ac_compile") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002984 ac_status=$?
2985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2986 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002987 for ac_file in conftest.o conftest.obj conftest.*; do
2988 test -f "$ac_file" || continue;
John Criswell7a73b802003-06-30 21:59:07 +00002989 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +00002990 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002991 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2992 break;;
2993 esac
2994done
2995else
2996 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002997sed 's/^/| /' conftest.$ac_ext >&5
2998
2999{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3000See \`config.log' for more details." >&5
3001echo "$as_me: error: cannot compute suffix of object files: cannot compile
3002See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00003003 { (exit 1); exit 1; }; }
3004fi
3005
3006rm -f conftest.$ac_cv_objext conftest.$ac_ext
3007fi
Reid Spencera773bd52006-08-04 18:18:08 +00003008{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3009echo "${ECHO_T}$ac_cv_objext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00003010OBJEXT=$ac_cv_objext
3011ac_objext=$OBJEXT
Reid Spencera773bd52006-08-04 18:18:08 +00003012{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3013echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003014if test "${ac_cv_c_compiler_gnu+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00003015 echo $ECHO_N "(cached) $ECHO_C" >&6
3016else
3017 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003018/* confdefs.h. */
3019_ACEOF
3020cat confdefs.h >>conftest.$ac_ext
3021cat >>conftest.$ac_ext <<_ACEOF
3022/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003023
John Criswell7a73b802003-06-30 21:59:07 +00003024int
3025main ()
3026{
3027#ifndef __GNUC__
3028 choke me
3029#endif
3030
3031 ;
3032 return 0;
3033}
3034_ACEOF
3035rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003036if { (ac_try="$ac_compile"
3037case "(($ac_try" in
3038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3039 *) ac_try_echo=$ac_try;;
3040esac
3041eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3042 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003043 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003044 grep -v '^ *+' conftest.er1 >conftest.err
3045 rm -f conftest.er1
3046 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Torok Edwincc499a42008-10-22 09:56:27 +00003048 (exit $ac_status); } && {
3049 test -z "$ac_c_werror_flag" ||
3050 test ! -s conftest.err
3051 } && test -s conftest.$ac_objext; then
John Criswell7a73b802003-06-30 21:59:07 +00003052 ac_compiler_gnu=yes
3053else
3054 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003055sed 's/^/| /' conftest.$ac_ext >&5
3056
Reid Spencera773bd52006-08-04 18:18:08 +00003057 ac_compiler_gnu=no
John Criswell7a73b802003-06-30 21:59:07 +00003058fi
Reid Spencera773bd52006-08-04 18:18:08 +00003059
3060rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003061ac_cv_c_compiler_gnu=$ac_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00003062
3063fi
Reid Spencera773bd52006-08-04 18:18:08 +00003064{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3065echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003066GCC=`test $ac_compiler_gnu = yes && echo yes`
3067ac_test_CFLAGS=${CFLAGS+set}
3068ac_save_CFLAGS=$CFLAGS
Reid Spencera773bd52006-08-04 18:18:08 +00003069{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3070echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003071if test "${ac_cv_prog_cc_g+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00003072 echo $ECHO_N "(cached) $ECHO_C" >&6
3073else
Reid Spencera773bd52006-08-04 18:18:08 +00003074 ac_save_c_werror_flag=$ac_c_werror_flag
3075 ac_c_werror_flag=yes
3076 ac_cv_prog_cc_g=no
3077 CFLAGS="-g"
3078 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003079/* confdefs.h. */
3080_ACEOF
3081cat confdefs.h >>conftest.$ac_ext
3082cat >>conftest.$ac_ext <<_ACEOF
3083/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003084
John Criswell7a73b802003-06-30 21:59:07 +00003085int
3086main ()
3087{
3088
3089 ;
3090 return 0;
3091}
3092_ACEOF
3093rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003094if { (ac_try="$ac_compile"
3095case "(($ac_try" in
3096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3097 *) ac_try_echo=$ac_try;;
3098esac
3099eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3100 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003101 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003102 grep -v '^ *+' conftest.er1 >conftest.err
3103 rm -f conftest.er1
3104 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Torok Edwincc499a42008-10-22 09:56:27 +00003106 (exit $ac_status); } && {
3107 test -z "$ac_c_werror_flag" ||
3108 test ! -s conftest.err
3109 } && test -s conftest.$ac_objext; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003110 ac_cv_prog_cc_g=yes
John Criswell7a73b802003-06-30 21:59:07 +00003111else
3112 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003113sed 's/^/| /' conftest.$ac_ext >&5
3114
Reid Spencera773bd52006-08-04 18:18:08 +00003115 CFLAGS=""
3116 cat >conftest.$ac_ext <<_ACEOF
3117/* confdefs.h. */
3118_ACEOF
3119cat confdefs.h >>conftest.$ac_ext
3120cat >>conftest.$ac_ext <<_ACEOF
3121/* end confdefs.h. */
3122
3123int
3124main ()
3125{
3126
3127 ;
3128 return 0;
3129}
3130_ACEOF
3131rm -f conftest.$ac_objext
3132if { (ac_try="$ac_compile"
3133case "(($ac_try" in
3134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3135 *) ac_try_echo=$ac_try;;
3136esac
3137eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3138 (eval "$ac_compile") 2>conftest.er1
3139 ac_status=$?
3140 grep -v '^ *+' conftest.er1 >conftest.err
3141 rm -f conftest.er1
3142 cat conftest.err >&5
3143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Torok Edwincc499a42008-10-22 09:56:27 +00003144 (exit $ac_status); } && {
3145 test -z "$ac_c_werror_flag" ||
3146 test ! -s conftest.err
3147 } && test -s conftest.$ac_objext; then
Reid Spencera773bd52006-08-04 18:18:08 +00003148 :
3149else
3150 echo "$as_me: failed program was:" >&5
3151sed 's/^/| /' conftest.$ac_ext >&5
3152
3153 ac_c_werror_flag=$ac_save_c_werror_flag
3154 CFLAGS="-g"
3155 cat >conftest.$ac_ext <<_ACEOF
3156/* confdefs.h. */
3157_ACEOF
3158cat confdefs.h >>conftest.$ac_ext
3159cat >>conftest.$ac_ext <<_ACEOF
3160/* end confdefs.h. */
3161
3162int
3163main ()
3164{
3165
3166 ;
3167 return 0;
3168}
3169_ACEOF
3170rm -f conftest.$ac_objext
3171if { (ac_try="$ac_compile"
3172case "(($ac_try" in
3173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3174 *) ac_try_echo=$ac_try;;
3175esac
3176eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3177 (eval "$ac_compile") 2>conftest.er1
3178 ac_status=$?
3179 grep -v '^ *+' conftest.er1 >conftest.err
3180 rm -f conftest.er1
3181 cat conftest.err >&5
3182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Torok Edwincc499a42008-10-22 09:56:27 +00003183 (exit $ac_status); } && {
3184 test -z "$ac_c_werror_flag" ||
3185 test ! -s conftest.err
3186 } && test -s conftest.$ac_objext; then
Reid Spencera773bd52006-08-04 18:18:08 +00003187 ac_cv_prog_cc_g=yes
3188else
3189 echo "$as_me: failed program was:" >&5
3190sed 's/^/| /' conftest.$ac_ext >&5
3191
3192
John Criswell7a73b802003-06-30 21:59:07 +00003193fi
Reid Spencera773bd52006-08-04 18:18:08 +00003194
3195rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003196fi
Reid Spencera773bd52006-08-04 18:18:08 +00003197
3198rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3199fi
3200
3201rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3202 ac_c_werror_flag=$ac_save_c_werror_flag
3203fi
3204{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3205echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003206if test "$ac_test_CFLAGS" = set; then
3207 CFLAGS=$ac_save_CFLAGS
3208elif test $ac_cv_prog_cc_g = yes; then
3209 if test "$GCC" = yes; then
3210 CFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00003211 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003212 CFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00003213 fi
3214else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003215 if test "$GCC" = yes; then
3216 CFLAGS="-O2"
John Criswell7a73b802003-06-30 21:59:07 +00003217 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003218 CFLAGS=
John Criswell7a73b802003-06-30 21:59:07 +00003219 fi
3220fi
Reid Spencera773bd52006-08-04 18:18:08 +00003221{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3222echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3223if test "${ac_cv_prog_cc_c89+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003224 echo $ECHO_N "(cached) $ECHO_C" >&6
3225else
Reid Spencera773bd52006-08-04 18:18:08 +00003226 ac_cv_prog_cc_c89=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003227ac_save_CC=$CC
3228cat >conftest.$ac_ext <<_ACEOF
3229/* confdefs.h. */
3230_ACEOF
3231cat confdefs.h >>conftest.$ac_ext
3232cat >>conftest.$ac_ext <<_ACEOF
3233/* end confdefs.h. */
3234#include <stdarg.h>
3235#include <stdio.h>
3236#include <sys/types.h>
3237#include <sys/stat.h>
3238/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3239struct buf { int x; };
3240FILE * (*rcsopen) (struct buf *, struct stat *, int);
3241static char *e (p, i)
3242 char **p;
3243 int i;
3244{
3245 return p[i];
3246}
3247static char *f (char * (*g) (char **, int), char **p, ...)
3248{
3249 char *s;
3250 va_list v;
3251 va_start (v,p);
3252 s = g (p, va_arg (v,int));
3253 va_end (v);
3254 return s;
3255}
3256
3257/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3258 function prototypes and stuff, but not '\xHH' hex character constants.
3259 These don't provoke an error unfortunately, instead are silently treated
Reid Spencera773bd52006-08-04 18:18:08 +00003260 as 'x'. The following induces an error, until -std is added to get
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003261 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3262 array size at least. It's necessary to write '\x00'==0 to get something
Reid Spencera773bd52006-08-04 18:18:08 +00003263 that's true only with -std. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003264int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3265
Reid Spencera773bd52006-08-04 18:18:08 +00003266/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3267 inside strings and character constants. */
3268#define FOO(x) 'x'
3269int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3270
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003271int test (int i, double x);
3272struct s1 {int (*f) (int a);};
3273struct s2 {int (*f) (double a);};
3274int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3275int argc;
3276char **argv;
3277int
3278main ()
3279{
3280return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3281 ;
3282 return 0;
3283}
3284_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003285for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3286 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003287do
3288 CC="$ac_save_CC $ac_arg"
3289 rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003290if { (ac_try="$ac_compile"
3291case "(($ac_try" in
3292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3293 *) ac_try_echo=$ac_try;;
3294esac
3295eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3296 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003297 ac_status=$?
3298 grep -v '^ *+' conftest.er1 >conftest.err
3299 rm -f conftest.er1
3300 cat conftest.err >&5
3301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Torok Edwincc499a42008-10-22 09:56:27 +00003302 (exit $ac_status); } && {
3303 test -z "$ac_c_werror_flag" ||
3304 test ! -s conftest.err
3305 } && test -s conftest.$ac_objext; then
Reid Spencera773bd52006-08-04 18:18:08 +00003306 ac_cv_prog_cc_c89=$ac_arg
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003307else
3308 echo "$as_me: failed program was:" >&5
3309sed 's/^/| /' conftest.$ac_ext >&5
3310
Reid Spencera773bd52006-08-04 18:18:08 +00003311
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003312fi
Reid Spencera773bd52006-08-04 18:18:08 +00003313
3314rm -f core conftest.err conftest.$ac_objext
3315 test "x$ac_cv_prog_cc_c89" != "xno" && break
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003316done
Reid Spencera773bd52006-08-04 18:18:08 +00003317rm -f conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003318CC=$ac_save_CC
3319
3320fi
Reid Spencera773bd52006-08-04 18:18:08 +00003321# AC_CACHE_VAL
3322case "x$ac_cv_prog_cc_c89" in
3323 x)
3324 { echo "$as_me:$LINENO: result: none needed" >&5
3325echo "${ECHO_T}none needed" >&6; } ;;
3326 xno)
3327 { echo "$as_me:$LINENO: result: unsupported" >&5
3328echo "${ECHO_T}unsupported" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003329 *)
Reid Spencera773bd52006-08-04 18:18:08 +00003330 CC="$CC $ac_cv_prog_cc_c89"
3331 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3332echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003333esac
3334
John Criswell0c38eaf2003-09-10 15:17:25 +00003335
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003336ac_ext=c
3337ac_cpp='$CPP $CPPFLAGS'
3338ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3339ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3340ac_compiler_gnu=$ac_cv_c_compiler_gnu
3341
3342
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003343ac_ext=c
3344ac_cpp='$CPP $CPPFLAGS'
3345ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3346ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3347ac_compiler_gnu=$ac_cv_c_compiler_gnu
Reid Spencera773bd52006-08-04 18:18:08 +00003348{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3349echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003350# On Suns, sometimes $CPP names a directory.
3351if test -n "$CPP" && test -d "$CPP"; then
3352 CPP=
3353fi
3354if test -z "$CPP"; then
3355 if test "${ac_cv_prog_CPP+set}" = set; then
3356 echo $ECHO_N "(cached) $ECHO_C" >&6
3357else
3358 # Double quotes because CPP needs to be expanded
3359 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3360 do
3361 ac_preproc_ok=false
3362for ac_c_preproc_warn_flag in '' yes
3363do
3364 # Use a header file that comes with gcc, so configuring glibc
3365 # with a fresh cross-compiler works.
3366 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3367 # <limits.h> exists even on freestanding compilers.
3368 # On the NeXT, cc -E runs the code through the compiler's parser,
3369 # not just through cpp. "Syntax error" is here to catch this case.
3370 cat >conftest.$ac_ext <<_ACEOF
3371/* confdefs.h. */
3372_ACEOF
3373cat confdefs.h >>conftest.$ac_ext
3374cat >>conftest.$ac_ext <<_ACEOF
3375/* end confdefs.h. */
3376#ifdef __STDC__
3377# include <limits.h>
3378#else
3379# include <assert.h>
3380#endif
3381 Syntax error
3382_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003383if { (ac_try="$ac_cpp conftest.$ac_ext"
3384case "(($ac_try" in
3385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3386 *) ac_try_echo=$ac_try;;
3387esac
3388eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3389 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003390 ac_status=$?
3391 grep -v '^ *+' conftest.er1 >conftest.err
3392 rm -f conftest.er1
3393 cat conftest.err >&5
3394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Torok Edwincc499a42008-10-22 09:56:27 +00003395 (exit $ac_status); } >/dev/null && {
3396 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3397 test ! -s conftest.err
3398 }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003399 :
3400else
3401 echo "$as_me: failed program was:" >&5
3402sed 's/^/| /' conftest.$ac_ext >&5
3403
3404 # Broken: fails on valid input.
3405continue
3406fi
Reid Spencera773bd52006-08-04 18:18:08 +00003407
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003408rm -f conftest.err conftest.$ac_ext
3409
Reid Spencera773bd52006-08-04 18:18:08 +00003410 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003411 # can be detected and how.
3412 cat >conftest.$ac_ext <<_ACEOF
3413/* confdefs.h. */
3414_ACEOF
3415cat confdefs.h >>conftest.$ac_ext
3416cat >>conftest.$ac_ext <<_ACEOF
3417/* end confdefs.h. */
3418#include <ac_nonexistent.h>
3419_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003420if { (ac_try="$ac_cpp conftest.$ac_ext"
3421case "(($ac_try" in
3422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3423 *) ac_try_echo=$ac_try;;
3424esac
3425eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3426 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003427 ac_status=$?
3428 grep -v '^ *+' conftest.er1 >conftest.err
3429 rm -f conftest.er1
3430 cat conftest.err >&5
3431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Torok Edwincc499a42008-10-22 09:56:27 +00003432 (exit $ac_status); } >/dev/null && {
3433 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3434 test ! -s conftest.err
3435 }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003436 # Broken: success on invalid input.
3437continue
3438else
3439 echo "$as_me: failed program was:" >&5
3440sed 's/^/| /' conftest.$ac_ext >&5
3441
3442 # Passes both tests.
3443ac_preproc_ok=:
3444break
3445fi
Reid Spencera773bd52006-08-04 18:18:08 +00003446
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003447rm -f conftest.err conftest.$ac_ext
3448
3449done
3450# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3451rm -f conftest.err conftest.$ac_ext
3452if $ac_preproc_ok; then
3453 break
3454fi
3455
3456 done
3457 ac_cv_prog_CPP=$CPP
3458
3459fi
3460 CPP=$ac_cv_prog_CPP
3461else
3462 ac_cv_prog_CPP=$CPP
3463fi
Reid Spencera773bd52006-08-04 18:18:08 +00003464{ echo "$as_me:$LINENO: result: $CPP" >&5
3465echo "${ECHO_T}$CPP" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003466ac_preproc_ok=false
3467for ac_c_preproc_warn_flag in '' yes
3468do
3469 # Use a header file that comes with gcc, so configuring glibc
3470 # with a fresh cross-compiler works.
3471 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3472 # <limits.h> exists even on freestanding compilers.
3473 # On the NeXT, cc -E runs the code through the compiler's parser,
3474 # not just through cpp. "Syntax error" is here to catch this case.
3475 cat >conftest.$ac_ext <<_ACEOF
3476/* confdefs.h. */
3477_ACEOF
3478cat confdefs.h >>conftest.$ac_ext
3479cat >>conftest.$ac_ext <<_ACEOF
3480/* end confdefs.h. */
3481#ifdef __STDC__
3482# include <limits.h>
3483#else
3484# include <assert.h>
3485#endif
3486 Syntax error
3487_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003488if { (ac_try="$ac_cpp conftest.$ac_ext"
3489case "(($ac_try" in
3490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3491 *) ac_try_echo=$ac_try;;
3492esac
3493eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3494 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003495 ac_status=$?
3496 grep -v '^ *+' conftest.er1 >conftest.err
3497 rm -f conftest.er1
3498 cat conftest.err >&5
3499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Torok Edwincc499a42008-10-22 09:56:27 +00003500 (exit $ac_status); } >/dev/null && {
3501 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3502 test ! -s conftest.err
3503 }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003504 :
3505else
3506 echo "$as_me: failed program was:" >&5
3507sed 's/^/| /' conftest.$ac_ext >&5
3508
3509 # Broken: fails on valid input.
3510continue
3511fi
Reid Spencera773bd52006-08-04 18:18:08 +00003512
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003513rm -f conftest.err conftest.$ac_ext
3514
Reid Spencera773bd52006-08-04 18:18:08 +00003515 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003516 # can be detected and how.
3517 cat >conftest.$ac_ext <<_ACEOF
3518/* confdefs.h. */
3519_ACEOF
3520cat confdefs.h >>conftest.$ac_ext
3521cat >>conftest.$ac_ext <<_ACEOF
3522/* end confdefs.h. */
3523#include <ac_nonexistent.h>
3524_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003525if { (ac_try="$ac_cpp conftest.$ac_ext"
3526case "(($ac_try" in
3527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3528 *) ac_try_echo=$ac_try;;
3529esac
3530eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3531 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003532 ac_status=$?
3533 grep -v '^ *+' conftest.er1 >conftest.err
3534 rm -f conftest.er1
3535 cat conftest.err >&5
3536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Torok Edwincc499a42008-10-22 09:56:27 +00003537 (exit $ac_status); } >/dev/null && {
3538 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3539 test ! -s conftest.err
3540 }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003541 # Broken: success on invalid input.
3542continue
3543else
3544 echo "$as_me: failed program was:" >&5
3545sed 's/^/| /' conftest.$ac_ext >&5
3546
3547 # Passes both tests.
3548ac_preproc_ok=:
3549break
3550fi
Reid Spencera773bd52006-08-04 18:18:08 +00003551
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003552rm -f conftest.err conftest.$ac_ext
3553
3554done
3555# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3556rm -f conftest.err conftest.$ac_ext
3557if $ac_preproc_ok; then
3558 :
3559else
3560 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3561See \`config.log' for more details." >&5
3562echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3563See \`config.log' for more details." >&2;}
3564 { (exit 1); exit 1; }; }
3565fi
3566
John Criswell7a73b802003-06-30 21:59:07 +00003567ac_ext=c
3568ac_cpp='$CPP $CPPFLAGS'
3569ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3570ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3571ac_compiler_gnu=$ac_cv_c_compiler_gnu
3572
John Criswell7a73b802003-06-30 21:59:07 +00003573
Reid Spencera773bd52006-08-04 18:18:08 +00003574{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3575echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003576if test "${ac_cv_path_GREP+set}" = set; then
3577 echo $ECHO_N "(cached) $ECHO_C" >&6
3578else
Reid Spencera773bd52006-08-04 18:18:08 +00003579 # Extract the first word of "grep ggrep" to use in msg output
3580if test -z "$GREP"; then
3581set dummy grep ggrep; ac_prog_name=$2
3582if test "${ac_cv_path_GREP+set}" = set; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003583 echo $ECHO_N "(cached) $ECHO_C" >&6
3584else
Reid Spencera773bd52006-08-04 18:18:08 +00003585 ac_path_GREP_found=false
3586# Loop through the user's path and test for each of PROGNAME-LIST
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003587as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00003588for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003589do
3590 IFS=$as_save_IFS
3591 test -z "$as_dir" && as_dir=.
Reid Spencera773bd52006-08-04 18:18:08 +00003592 for ac_prog in grep ggrep; do
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003593 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +00003594 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
Torok Edwincc499a42008-10-22 09:56:27 +00003595 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
Reid Spencera773bd52006-08-04 18:18:08 +00003596 # Check for GNU ac_path_GREP and select it if it is found.
3597 # Check for GNU $ac_path_GREP
3598case `"$ac_path_GREP" --version 2>&1` in
3599*GNU*)
3600 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3601*)
3602 ac_count=0
3603 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3604 while :
3605 do
3606 cat "conftest.in" "conftest.in" >"conftest.tmp"
3607 mv "conftest.tmp" "conftest.in"
3608 cp "conftest.in" "conftest.nl"
3609 echo 'GREP' >> "conftest.nl"
3610 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3611 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3612 ac_count=`expr $ac_count + 1`
3613 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3614 # Best one so far, save it but keep looking for a better one
3615 ac_cv_path_GREP="$ac_path_GREP"
3616 ac_path_GREP_max=$ac_count
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003617 fi
Reid Spencera773bd52006-08-04 18:18:08 +00003618 # 10*(2^10) chars as input seems more than enough
3619 test $ac_count -gt 10 && break
3620 done
3621 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3622esac
3623
3624
3625 $ac_path_GREP_found && break 3
3626 done
3627done
3628
3629done
3630IFS=$as_save_IFS
3631
3632
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003633fi
Reid Spencera773bd52006-08-04 18:18:08 +00003634
3635GREP="$ac_cv_path_GREP"
3636if test -z "$GREP"; then
3637 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3638echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3639 { (exit 1); exit 1; }; }
3640fi
3641
3642else
3643 ac_cv_path_GREP=$GREP
3644fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003645
John Criswell7a73b802003-06-30 21:59:07 +00003646
Reid Spencera773bd52006-08-04 18:18:08 +00003647fi
3648{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3649echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3650 GREP="$ac_cv_path_GREP"
3651
3652
3653{ echo "$as_me:$LINENO: checking for egrep" >&5
3654echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3655if test "${ac_cv_path_EGREP+set}" = set; then
3656 echo $ECHO_N "(cached) $ECHO_C" >&6
3657else
3658 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3659 then ac_cv_path_EGREP="$GREP -E"
3660 else
3661 # Extract the first word of "egrep" to use in msg output
3662if test -z "$EGREP"; then
3663set dummy egrep; ac_prog_name=$2
3664if test "${ac_cv_path_EGREP+set}" = set; then
3665 echo $ECHO_N "(cached) $ECHO_C" >&6
3666else
3667 ac_path_EGREP_found=false
3668# Loop through the user's path and test for each of PROGNAME-LIST
3669as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3670for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3671do
3672 IFS=$as_save_IFS
3673 test -z "$as_dir" && as_dir=.
3674 for ac_prog in egrep; do
3675 for ac_exec_ext in '' $ac_executable_extensions; do
3676 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
Torok Edwincc499a42008-10-22 09:56:27 +00003677 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
Reid Spencera773bd52006-08-04 18:18:08 +00003678 # Check for GNU ac_path_EGREP and select it if it is found.
3679 # Check for GNU $ac_path_EGREP
3680case `"$ac_path_EGREP" --version 2>&1` in
3681*GNU*)
3682 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3683*)
3684 ac_count=0
3685 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3686 while :
3687 do
3688 cat "conftest.in" "conftest.in" >"conftest.tmp"
3689 mv "conftest.tmp" "conftest.in"
3690 cp "conftest.in" "conftest.nl"
3691 echo 'EGREP' >> "conftest.nl"
3692 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3693 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3694 ac_count=`expr $ac_count + 1`
3695 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3696 # Best one so far, save it but keep looking for a better one
3697 ac_cv_path_EGREP="$ac_path_EGREP"
3698 ac_path_EGREP_max=$ac_count
3699 fi
3700 # 10*(2^10) chars as input seems more than enough
3701 test $ac_count -gt 10 && break
3702 done
3703 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3704esac
3705
3706
3707 $ac_path_EGREP_found && break 3
3708 done
3709done
3710
3711done
3712IFS=$as_save_IFS
3713
3714
3715fi
3716
3717EGREP="$ac_cv_path_EGREP"
3718if test -z "$EGREP"; then
3719 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3720echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3721 { (exit 1); exit 1; }; }
3722fi
3723
3724else
3725 ac_cv_path_EGREP=$EGREP
3726fi
3727
3728
3729 fi
3730fi
3731{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3732echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3733 EGREP="$ac_cv_path_EGREP"
3734
3735
3736{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3737echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00003738if test "${ac_cv_header_stdc+set}" = set; then
3739 echo $ECHO_N "(cached) $ECHO_C" >&6
3740else
3741 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003742/* confdefs.h. */
3743_ACEOF
3744cat confdefs.h >>conftest.$ac_ext
3745cat >>conftest.$ac_ext <<_ACEOF
3746/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003747#include <stdlib.h>
3748#include <stdarg.h>
3749#include <string.h>
3750#include <float.h>
3751
John Criswell0c38eaf2003-09-10 15:17:25 +00003752int
3753main ()
3754{
3755
3756 ;
3757 return 0;
3758}
John Criswell7a73b802003-06-30 21:59:07 +00003759_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003760rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003761if { (ac_try="$ac_compile"
3762case "(($ac_try" in
3763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3764 *) ac_try_echo=$ac_try;;
3765esac
3766eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3767 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003768 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003769 grep -v '^ *+' conftest.er1 >conftest.err
3770 rm -f conftest.er1
3771 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Torok Edwincc499a42008-10-22 09:56:27 +00003773 (exit $ac_status); } && {
3774 test -z "$ac_c_werror_flag" ||
3775 test ! -s conftest.err
3776 } && test -s conftest.$ac_objext; then
John Criswell7a73b802003-06-30 21:59:07 +00003777 ac_cv_header_stdc=yes
3778else
3779 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003780sed 's/^/| /' conftest.$ac_ext >&5
3781
Reid Spencera773bd52006-08-04 18:18:08 +00003782 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00003783fi
Reid Spencera773bd52006-08-04 18:18:08 +00003784
3785rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003786
3787if test $ac_cv_header_stdc = yes; then
3788 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3789 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003790/* confdefs.h. */
3791_ACEOF
3792cat confdefs.h >>conftest.$ac_ext
3793cat >>conftest.$ac_ext <<_ACEOF
3794/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003795#include <string.h>
3796
3797_ACEOF
3798if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00003799 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00003800 :
3801else
3802 ac_cv_header_stdc=no
3803fi
3804rm -f conftest*
3805
3806fi
3807
3808if test $ac_cv_header_stdc = yes; then
3809 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3810 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003811/* confdefs.h. */
3812_ACEOF
3813cat confdefs.h >>conftest.$ac_ext
3814cat >>conftest.$ac_ext <<_ACEOF
3815/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003816#include <stdlib.h>
3817
3818_ACEOF
3819if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00003820 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00003821 :
3822else
3823 ac_cv_header_stdc=no
3824fi
3825rm -f conftest*
3826
3827fi
3828
3829if test $ac_cv_header_stdc = yes; then
3830 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3831 if test "$cross_compiling" = yes; then
3832 :
3833else
3834 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003835/* confdefs.h. */
3836_ACEOF
3837cat confdefs.h >>conftest.$ac_ext
3838cat >>conftest.$ac_ext <<_ACEOF
3839/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003840#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +00003841#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00003842#if ((' ' & 0x0FF) == 0x020)
3843# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3844# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3845#else
John Criswell0c38eaf2003-09-10 15:17:25 +00003846# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +00003847 (('a' <= (c) && (c) <= 'i') \
3848 || ('j' <= (c) && (c) <= 'r') \
3849 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +00003850# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3851#endif
3852
3853#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3854int
3855main ()
3856{
3857 int i;
3858 for (i = 0; i < 256; i++)
3859 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +00003860 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +00003861 return 2;
3862 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00003863}
3864_ACEOF
3865rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00003866if { (ac_try="$ac_link"
3867case "(($ac_try" in
3868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3869 *) ac_try_echo=$ac_try;;
3870esac
3871eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3872 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00003873 ac_status=$?
3874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3875 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +00003876 { (case "(($ac_try" in
3877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3878 *) ac_try_echo=$ac_try;;
3879esac
3880eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3881 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00003882 ac_status=$?
3883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3884 (exit $ac_status); }; }; then
3885 :
3886else
3887 echo "$as_me: program exited with status $ac_status" >&5
3888echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003889sed 's/^/| /' conftest.$ac_ext >&5
3890
John Criswell7a73b802003-06-30 21:59:07 +00003891( exit $ac_status )
3892ac_cv_header_stdc=no
3893fi
Reid Spencera773bd52006-08-04 18:18:08 +00003894rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3895fi
3896
3897
John Criswell7a73b802003-06-30 21:59:07 +00003898fi
3899fi
Reid Spencera773bd52006-08-04 18:18:08 +00003900{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3901echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00003902if test $ac_cv_header_stdc = yes; then
3903
3904cat >>confdefs.h <<\_ACEOF
3905#define STDC_HEADERS 1
3906_ACEOF
3907
3908fi
3909
Reid Spencera773bd52006-08-04 18:18:08 +00003910# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3921 inttypes.h stdint.h unistd.h
3922do
3923as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3924{ echo "$as_me:$LINENO: checking for $ac_header" >&5
3925echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3926if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3927 echo $ECHO_N "(cached) $ECHO_C" >&6
3928else
3929 cat >conftest.$ac_ext <<_ACEOF
3930/* confdefs.h. */
3931_ACEOF
3932cat confdefs.h >>conftest.$ac_ext
3933cat >>conftest.$ac_ext <<_ACEOF
3934/* end confdefs.h. */
3935$ac_includes_default
3936
3937#include <$ac_header>
3938_ACEOF
3939rm -f conftest.$ac_objext
3940if { (ac_try="$ac_compile"
3941case "(($ac_try" in
3942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3943 *) ac_try_echo=$ac_try;;
3944esac
3945eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3946 (eval "$ac_compile") 2>conftest.er1
3947 ac_status=$?
3948 grep -v '^ *+' conftest.er1 >conftest.err
3949 rm -f conftest.er1
3950 cat conftest.err >&5
3951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Torok Edwincc499a42008-10-22 09:56:27 +00003952 (exit $ac_status); } && {
3953 test -z "$ac_c_werror_flag" ||
3954 test ! -s conftest.err
3955 } && test -s conftest.$ac_objext; then
Reid Spencera773bd52006-08-04 18:18:08 +00003956 eval "$as_ac_Header=yes"
3957else
3958 echo "$as_me: failed program was:" >&5
3959sed 's/^/| /' conftest.$ac_ext >&5
3960
3961 eval "$as_ac_Header=no"
3962fi
3963
3964rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3965fi
3966ac_res=`eval echo '${'$as_ac_Header'}'`
3967 { echo "$as_me:$LINENO: result: $ac_res" >&5
3968echo "${ECHO_T}$ac_res" >&6; }
3969if test `eval echo '${'$as_ac_Header'}'` = yes; then
3970 cat >>confdefs.h <<_ACEOF
3971#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3972_ACEOF
3973
3974fi
3975
3976done
3977
3978
3979{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
3980echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
3981if test "${ac_cv_c_bigendian+set}" = set; then
3982 echo $ECHO_N "(cached) $ECHO_C" >&6
3983else
3984 # See if sys/param.h defines the BYTE_ORDER macro.
3985cat >conftest.$ac_ext <<_ACEOF
3986/* confdefs.h. */
3987_ACEOF
3988cat confdefs.h >>conftest.$ac_ext
3989cat >>conftest.$ac_ext <<_ACEOF
3990/* end confdefs.h. */
3991#include <sys/types.h>
3992#include <sys/param.h>
3993
3994int
3995main ()
3996{
Torok Edwincc499a42008-10-22 09:56:27 +00003997#if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
3998 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
Reid Spencera773bd52006-08-04 18:18:08 +00003999 bogus endian macros
4000#endif
4001
4002 ;
4003 return 0;
4004}
4005_ACEOF
4006rm -f conftest.$ac_objext
4007if { (ac_try="$ac_compile"
4008case "(($ac_try" in
4009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4010 *) ac_try_echo=$ac_try;;
4011esac
4012eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4013 (eval "$ac_compile") 2>conftest.er1
4014 ac_status=$?
4015 grep -v '^ *+' conftest.er1 >conftest.err
4016 rm -f conftest.er1
4017 cat conftest.err >&5
4018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Torok Edwincc499a42008-10-22 09:56:27 +00004019 (exit $ac_status); } && {
4020 test -z "$ac_c_werror_flag" ||
4021 test ! -s conftest.err
4022 } && test -s conftest.$ac_objext; then
Reid Spencera773bd52006-08-04 18:18:08 +00004023 # It does; now see whether it defined to BIG_ENDIAN or not.
4024cat >conftest.$ac_ext <<_ACEOF
4025/* confdefs.h. */
4026_ACEOF
4027cat confdefs.h >>conftest.$ac_ext
4028cat >>conftest.$ac_ext <<_ACEOF
4029/* end confdefs.h. */
4030#include <sys/types.h>
4031#include <sys/param.h>
4032
4033int
4034main ()
4035{
4036#if BYTE_ORDER != BIG_ENDIAN
4037 not big endian
4038#endif
4039
4040 ;
4041 return 0;
4042}
4043_ACEOF
4044rm -f conftest.$ac_objext
4045if { (ac_try="$ac_compile"
4046case "(($ac_try" in
4047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4048 *) ac_try_echo=$ac_try;;
4049esac
4050eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4051 (eval "$ac_compile") 2>conftest.er1
4052 ac_status=$?
4053 grep -v '^ *+' conftest.er1 >conftest.err
4054 rm -f conftest.er1
4055 cat conftest.err >&5
4056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Torok Edwincc499a42008-10-22 09:56:27 +00004057 (exit $ac_status); } && {
4058 test -z "$ac_c_werror_flag" ||
4059 test ! -s conftest.err
4060 } && test -s conftest.$ac_objext; then
Reid Spencera773bd52006-08-04 18:18:08 +00004061 ac_cv_c_bigendian=yes
4062else
4063 echo "$as_me: failed program was:" >&5
4064sed 's/^/| /' conftest.$ac_ext >&5
4065
4066 ac_cv_c_bigendian=no
4067fi
4068
4069rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4070else
4071 echo "$as_me: failed program was:" >&5
4072sed 's/^/| /' conftest.$ac_ext >&5
4073
4074 # It does not; compile a test program.
4075if test "$cross_compiling" = yes; then
4076 # try to guess the endianness by grepping values into an object file
4077 ac_cv_c_bigendian=unknown
4078 cat >conftest.$ac_ext <<_ACEOF
4079/* confdefs.h. */
4080_ACEOF
4081cat confdefs.h >>conftest.$ac_ext
4082cat >>conftest.$ac_ext <<_ACEOF
4083/* end confdefs.h. */
4084short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4085short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4086void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4087short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4088short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4089void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4090int
4091main ()
4092{
4093 _ascii (); _ebcdic ();
4094 ;
4095 return 0;
4096}
4097_ACEOF
4098rm -f conftest.$ac_objext
4099if { (ac_try="$ac_compile"
4100case "(($ac_try" in
4101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4102 *) ac_try_echo=$ac_try;;
4103esac
4104eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4105 (eval "$ac_compile") 2>conftest.er1
4106 ac_status=$?
4107 grep -v '^ *+' conftest.er1 >conftest.err
4108 rm -f conftest.er1
4109 cat conftest.err >&5
4110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Torok Edwincc499a42008-10-22 09:56:27 +00004111 (exit $ac_status); } && {
4112 test -z "$ac_c_werror_flag" ||
4113 test ! -s conftest.err
4114 } && test -s conftest.$ac_objext; then
Reid Spencera773bd52006-08-04 18:18:08 +00004115 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4116 ac_cv_c_bigendian=yes
4117fi
4118if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4119 if test "$ac_cv_c_bigendian" = unknown; then
4120 ac_cv_c_bigendian=no
4121 else
4122 # finding both strings is unlikely to happen, but who knows?
4123 ac_cv_c_bigendian=unknown
4124 fi
4125fi
4126else
4127 echo "$as_me: failed program was:" >&5
4128sed 's/^/| /' conftest.$ac_ext >&5
4129
4130
4131fi
4132
4133rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4134else
4135 cat >conftest.$ac_ext <<_ACEOF
4136/* confdefs.h. */
4137_ACEOF
4138cat confdefs.h >>conftest.$ac_ext
4139cat >>conftest.$ac_ext <<_ACEOF
4140/* end confdefs.h. */
4141$ac_includes_default
4142int
4143main ()
4144{
4145
4146 /* Are we little or big endian? From Harbison&Steele. */
4147 union
4148 {
4149 long int l;
4150 char c[sizeof (long int)];
4151 } u;
4152 u.l = 1;
4153 return u.c[sizeof (long int) - 1] == 1;
4154
4155 ;
4156 return 0;
4157}
4158_ACEOF
4159rm -f conftest$ac_exeext
4160if { (ac_try="$ac_link"
4161case "(($ac_try" in
4162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4163 *) ac_try_echo=$ac_try;;
4164esac
4165eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4166 (eval "$ac_link") 2>&5
4167 ac_status=$?
4168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4169 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4170 { (case "(($ac_try" in
4171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4172 *) ac_try_echo=$ac_try;;
4173esac
4174eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4175 (eval "$ac_try") 2>&5
4176 ac_status=$?
4177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4178 (exit $ac_status); }; }; then
4179 ac_cv_c_bigendian=no
4180else
4181 echo "$as_me: program exited with status $ac_status" >&5
4182echo "$as_me: failed program was:" >&5
4183sed 's/^/| /' conftest.$ac_ext >&5
4184
4185( exit $ac_status )
4186ac_cv_c_bigendian=yes
4187fi
4188rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4189fi
4190
4191
4192fi
4193
4194rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4195fi
4196{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4197echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4198case $ac_cv_c_bigendian in
4199 yes)
4200 ENDIAN=big
4201 ;;
4202 no)
4203 ENDIAN=little
4204 ;;
4205 *)
4206 { { echo "$as_me:$LINENO: error: unknown endianness
4207presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4208echo "$as_me: error: unknown endianness
4209presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4210 { (exit 1); exit 1; }; } ;;
4211esac
4212
4213
4214if test "$cross_compiling" = yes; then
4215 LLVM_CROSS_COMPILING=1
4216
4217
4218{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4219echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4220if test "${ac_cv_build_exeext+set}" = set; then
4221 echo $ECHO_N "(cached) $ECHO_C" >&6
4222else
4223 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4224 ac_cv_build_exeext=.exe
4225else
4226 ac_build_prefix=${build_alias}-
4227
4228 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4229set dummy ${ac_build_prefix}gcc; ac_word=$2
4230{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4231echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4232if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4233 echo $ECHO_N "(cached) $ECHO_C" >&6
4234else
4235 if test -n "$BUILD_CC"; then
4236 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4237else
4238as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4239for as_dir in $PATH
4240do
4241 IFS=$as_save_IFS
4242 test -z "$as_dir" && as_dir=.
4243 for ac_exec_ext in '' $ac_executable_extensions; do
Torok Edwincc499a42008-10-22 09:56:27 +00004244 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 +00004245 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4246 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4247 break 2
4248 fi
4249done
4250done
4251IFS=$as_save_IFS
4252
4253fi
4254fi
4255BUILD_CC=$ac_cv_prog_BUILD_CC
4256if test -n "$BUILD_CC"; then
4257 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4258echo "${ECHO_T}$BUILD_CC" >&6; }
4259else
4260 { echo "$as_me:$LINENO: result: no" >&5
4261echo "${ECHO_T}no" >&6; }
4262fi
4263
4264
4265 if test -z "$BUILD_CC"; then
4266 # Extract the first word of "gcc", so it can be a program name with args.
4267set dummy gcc; ac_word=$2
4268{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4269echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4270if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4271 echo $ECHO_N "(cached) $ECHO_C" >&6
4272else
4273 if test -n "$BUILD_CC"; then
4274 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4275else
4276as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4277for as_dir in $PATH
4278do
4279 IFS=$as_save_IFS
4280 test -z "$as_dir" && as_dir=.
4281 for ac_exec_ext in '' $ac_executable_extensions; do
Torok Edwincc499a42008-10-22 09:56:27 +00004282 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 +00004283 ac_cv_prog_BUILD_CC="gcc"
4284 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4285 break 2
4286 fi
4287done
4288done
4289IFS=$as_save_IFS
4290
4291fi
4292fi
4293BUILD_CC=$ac_cv_prog_BUILD_CC
4294if test -n "$BUILD_CC"; then
4295 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4296echo "${ECHO_T}$BUILD_CC" >&6; }
4297else
4298 { echo "$as_me:$LINENO: result: no" >&5
4299echo "${ECHO_T}no" >&6; }
4300fi
4301
4302
4303 if test -z "$BUILD_CC"; then
4304 # Extract the first word of "cc", so it can be a program name with args.
4305set dummy cc; ac_word=$2
4306{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4307echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4308if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4309 echo $ECHO_N "(cached) $ECHO_C" >&6
4310else
4311 if test -n "$BUILD_CC"; then
4312 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4313else
4314 ac_prog_rejected=no
4315as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4316for as_dir in $PATH
4317do
4318 IFS=$as_save_IFS
4319 test -z "$as_dir" && as_dir=.
4320 for ac_exec_ext in '' $ac_executable_extensions; do
Torok Edwincc499a42008-10-22 09:56:27 +00004321 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 +00004322 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4323 ac_prog_rejected=yes
4324 continue
4325 fi
4326 ac_cv_prog_BUILD_CC="cc"
4327 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4328 break 2
4329 fi
4330done
4331done
4332IFS=$as_save_IFS
4333
4334if test $ac_prog_rejected = yes; then
4335 # We found a bogon in the path, so make sure we never use it.
4336 set dummy $ac_cv_prog_BUILD_CC
4337 shift
4338 if test $# != 0; then
4339 # We chose a different compiler from the bogus one.
4340 # However, it has the same basename, so the bogon will be chosen
4341 # first if we set BUILD_CC to just the basename; use the full file name.
4342 shift
4343 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4344 fi
4345fi
4346fi
4347fi
4348BUILD_CC=$ac_cv_prog_BUILD_CC
4349if test -n "$BUILD_CC"; then
4350 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4351echo "${ECHO_T}$BUILD_CC" >&6; }
4352else
4353 { echo "$as_me:$LINENO: result: no" >&5
4354echo "${ECHO_T}no" >&6; }
4355fi
4356
4357
4358 fi
4359 fi
4360 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4361echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4362 { (exit 1); exit 1; }; }
4363 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4364 rm -f conftest*
4365 echo 'int main () { return 0; }' > conftest.$ac_ext
4366 ac_cv_build_exeext=
4367 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4368 (eval $ac_build_link) 2>&5
4369 ac_status=$?
4370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4371 (exit $ac_status); }; then
4372 for file in conftest.*; do
4373 case $file in
Jim Grosbach0eecd892008-09-26 17:27:58 +00004374 *.c | *.o | *.obj | *.dSYM) ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004375 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4376 esac
4377 done
4378 else
4379 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4380echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4381 { (exit 1); exit 1; }; }
4382 fi
4383 rm -f conftest*
4384 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4385fi
4386fi
4387
4388BUILD_EXEEXT=""
4389test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4390{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4391echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4392ac_build_exeext=$BUILD_EXEEXT
4393
Jim Grosbach673612e2008-10-02 22:56:44 +00004394 ac_build_prefix=${build_alias}-
4395 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4396set dummy ${ac_build_prefix}g++; ac_word=$2
4397{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4398echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4399if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4400 echo $ECHO_N "(cached) $ECHO_C" >&6
4401else
4402 if test -n "$BUILD_CXX"; then
4403 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4404else
4405as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4406for as_dir in $PATH
4407do
4408 IFS=$as_save_IFS
4409 test -z "$as_dir" && as_dir=.
4410 for ac_exec_ext in '' $ac_executable_extensions; do
Torok Edwincc499a42008-10-22 09:56:27 +00004411 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 +00004412 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4413 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4414 break 2
4415 fi
4416done
4417done
4418IFS=$as_save_IFS
4419
4420fi
4421fi
4422BUILD_CXX=$ac_cv_prog_BUILD_CXX
4423if test -n "$BUILD_CXX"; then
4424 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4425echo "${ECHO_T}$BUILD_CXX" >&6; }
4426else
4427 { echo "$as_me:$LINENO: result: no" >&5
4428echo "${ECHO_T}no" >&6; }
4429fi
4430
4431
4432 if test -z "$BUILD_CXX"; then
4433 # Extract the first word of "g++", so it can be a program name with args.
4434set dummy g++; ac_word=$2
4435{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4436echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4437if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4438 echo $ECHO_N "(cached) $ECHO_C" >&6
4439else
4440 if test -n "$BUILD_CXX"; then
4441 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4442else
4443as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4444for as_dir in $PATH
4445do
4446 IFS=$as_save_IFS
4447 test -z "$as_dir" && as_dir=.
4448 for ac_exec_ext in '' $ac_executable_extensions; do
Torok Edwincc499a42008-10-22 09:56:27 +00004449 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 +00004450 ac_cv_prog_BUILD_CXX="g++"
4451 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4452 break 2
4453 fi
4454done
4455done
4456IFS=$as_save_IFS
4457
4458fi
4459fi
4460BUILD_CXX=$ac_cv_prog_BUILD_CXX
4461if test -n "$BUILD_CXX"; then
4462 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4463echo "${ECHO_T}$BUILD_CXX" >&6; }
4464else
4465 { echo "$as_me:$LINENO: result: no" >&5
4466echo "${ECHO_T}no" >&6; }
4467fi
4468
4469
4470 if test -z "$BUILD_CXX"; then
4471 # Extract the first word of "c++", so it can be a program name with args.
4472set dummy c++; ac_word=$2
4473{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4474echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4475if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4476 echo $ECHO_N "(cached) $ECHO_C" >&6
4477else
4478 if test -n "$BUILD_CXX"; then
4479 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4480else
4481 ac_prog_rejected=no
4482as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4483for as_dir in $PATH
4484do
4485 IFS=$as_save_IFS
4486 test -z "$as_dir" && as_dir=.
4487 for ac_exec_ext in '' $ac_executable_extensions; do
Torok Edwincc499a42008-10-22 09:56:27 +00004488 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 +00004489 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4490 ac_prog_rejected=yes
4491 continue
4492 fi
4493 ac_cv_prog_BUILD_CXX="c++"
4494 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4495 break 2
4496 fi
4497done
4498done
4499IFS=$as_save_IFS
4500
4501if test $ac_prog_rejected = yes; then
4502 # We found a bogon in the path, so make sure we never use it.
4503 set dummy $ac_cv_prog_BUILD_CXX
4504 shift
4505 if test $# != 0; then
4506 # We chose a different compiler from the bogus one.
4507 # However, it has the same basename, so the bogon will be chosen
4508 # first if we set BUILD_CXX to just the basename; use the full file name.
4509 shift
4510 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4511 fi
4512fi
4513fi
4514fi
4515BUILD_CXX=$ac_cv_prog_BUILD_CXX
4516if test -n "$BUILD_CXX"; then
4517 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4518echo "${ECHO_T}$BUILD_CXX" >&6; }
4519else
4520 { echo "$as_me:$LINENO: result: no" >&5
4521echo "${ECHO_T}no" >&6; }
4522fi
4523
4524
4525 fi
4526 fi
Reid Spencera773bd52006-08-04 18:18:08 +00004527else
4528 LLVM_CROSS_COMPILING=0
4529
4530fi
4531
Reid Spencer0b1e4662007-04-02 15:41:39 +00004532if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn"; then
Reid Spencera773bd52006-08-04 18:18:08 +00004533 cvsbuild="yes"
4534 optimize="no"
4535 CVSBUILD=CVSBUILD=1
4536
4537else
4538 cvsbuild="no"
4539 optimize="yes"
4540fi
4541
4542
4543# Check whether --enable-optimized was given.
4544if test "${enable_optimized+set}" = set; then
4545 enableval=$enable_optimized;
4546else
4547 enableval=$optimize
4548fi
4549
4550if test ${enableval} = "no" ; then
4551 ENABLE_OPTIMIZED=
4552
4553else
4554 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4555
4556fi
4557
4558# Check whether --enable-assertions was given.
4559if test "${enable_assertions+set}" = set; then
4560 enableval=$enable_assertions;
4561else
4562 enableval="yes"
4563fi
4564
4565if test ${enableval} = "yes" ; then
4566 DISABLE_ASSERTIONS=
4567
4568else
4569 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4570
4571fi
4572
David Greenea696d242007-06-28 19:36:08 +00004573# Check whether --enable-expensive-checks was given.
4574if test "${enable_expensive_checks+set}" = set; then
4575 enableval=$enable_expensive_checks;
4576else
4577 enableval="no"
4578fi
4579
4580if test ${enableval} = "yes" ; then
4581 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4582
4583 EXPENSIVE_CHECKS=yes
4584
4585else
4586 ENABLE_EXPENSIVE_CHECKS=
4587
4588 EXPENSIVE_CHECKS=no
4589
4590fi
4591
Reid Spencer8b2e1412006-11-17 03:32:33 +00004592# Check whether --enable-debug-runtime was given.
4593if test "${enable_debug_runtime+set}" = set; then
4594 enableval=$enable_debug_runtime;
4595else
4596 enableval=no
4597fi
4598
4599if test ${enableval} = "no" ; then
4600 DEBUG_RUNTIME=
4601
4602else
4603 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4604
4605fi
4606
Reid Spencera773bd52006-08-04 18:18:08 +00004607# Check whether --enable-jit was given.
4608if test "${enable_jit+set}" = set; then
4609 enableval=$enable_jit;
4610else
4611 enableval=default
4612fi
4613
4614if test ${enableval} = "no"
4615then
4616 JIT=
4617
4618else
4619 case "$llvm_cv_target_arch" in
4620 x86) TARGET_HAS_JIT=1
4621 ;;
Reid Spencerfebecf42007-01-21 06:42:03 +00004622 Sparc) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00004623 ;;
4624 PowerPC) TARGET_HAS_JIT=1
4625 ;;
Reid Spencerfebecf42007-01-21 06:42:03 +00004626 x86_64) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004627 ;;
4628 Alpha) TARGET_HAS_JIT=1
4629 ;;
4630 IA64) TARGET_HAS_JIT=0
4631 ;;
Reid Spencerfebecf42007-01-21 06:42:03 +00004632 ARM) TARGET_HAS_JIT=0
Reid Spencer9b5b1822007-01-21 06:32:59 +00004633 ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00004634 Mips) TARGET_HAS_JIT=0
4635 ;;
Sanjiv Gupta0234f512008-05-13 17:37:32 +00004636 PIC16) TARGET_HAS_JIT=0
4637 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004638 *) TARGET_HAS_JIT=0
4639 ;;
4640 esac
4641fi
4642
4643# Check whether --enable-doxygen was given.
4644if test "${enable_doxygen+set}" = set; then
4645 enableval=$enable_doxygen;
4646else
4647 enableval=default
4648fi
4649
4650case "$enableval" in
4651 yes) ENABLE_DOXYGEN=1
4652 ;;
4653 no) ENABLE_DOXYGEN=0
4654 ;;
4655 default) ENABLE_DOXYGEN=0
4656 ;;
4657 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4658echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4659 { (exit 1); exit 1; }; } ;;
4660esac
4661
4662# Check whether --enable-threads was given.
4663if test "${enable_threads+set}" = set; then
4664 enableval=$enable_threads;
4665else
Reid Spencer65c5d752006-11-05 17:08:18 +00004666 enableval=default
Reid Spencera773bd52006-08-04 18:18:08 +00004667fi
4668
4669case "$enableval" in
4670 yes) ENABLE_THREADS=1
4671 ;;
4672 no) ENABLE_THREADS=0
4673 ;;
Reid Spencer65c5d752006-11-05 17:08:18 +00004674 default) ENABLE_THREADS=1
4675 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004676 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4677echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4678 { (exit 1); exit 1; }; } ;;
4679esac
4680
4681cat >>confdefs.h <<_ACEOF
4682#define ENABLE_THREADS $ENABLE_THREADS
4683_ACEOF
4684
4685
Reid Spencer89b0d992006-12-16 22:07:52 +00004686# Check whether --enable-pic was given.
4687if test "${enable_pic+set}" = set; then
4688 enableval=$enable_pic;
4689else
4690 enableval=default
4691fi
4692
4693case "$enableval" in
4694 yes) ENABLE_PIC=1
4695 ;;
4696 no) ENABLE_PIC=0
4697 ;;
4698 default) ENABLE_PIC=0
4699 ;;
4700 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4701echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4702 { (exit 1); exit 1; }; } ;;
4703esac
4704
4705cat >>confdefs.h <<_ACEOF
4706#define ENABLE_PIC $ENABLE_PIC
4707_ACEOF
4708
4709
Reid Spencera773bd52006-08-04 18:18:08 +00004710TARGETS_TO_BUILD=""
4711# Check whether --enable-targets was given.
4712if test "${enable_targets+set}" = set; then
4713 enableval=$enable_targets;
4714else
4715 enableval=all
4716fi
4717
4718case "$enableval" in
Sanjiv Guptae3f34282008-05-14 08:03:23 +00004719 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM Mips CellSPU PIC16 CBackend MSIL CppBackend" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004720 host-only)
4721 case "$llvm_cv_target_arch" in
4722 x86) TARGETS_TO_BUILD="X86" ;;
4723 x86_64) TARGETS_TO_BUILD="X86" ;;
4724 Sparc) TARGETS_TO_BUILD="Sparc" ;;
4725 PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
4726 Alpha) TARGETS_TO_BUILD="Alpha" ;;
4727 IA64) TARGETS_TO_BUILD="IA64" ;;
Reid Spencer9b5b1822007-01-21 06:32:59 +00004728 ARM) TARGETS_TO_BUILD="ARM" ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00004729 Mips) TARGETS_TO_BUILD="Mips" ;;
Scott Michel96dcd2b2007-12-05 21:24:02 +00004730 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU" ;;
Sanjiv Guptae3f34282008-05-14 08:03:23 +00004731 PIC16) TARGETS_TO_BUILD="PIC16" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004732 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4733echo "$as_me: error: Can not set target to build" >&2;}
4734 { (exit 1); exit 1; }; } ;;
4735 esac
4736 ;;
4737 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4738 case "$a_target" in
4739 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4740 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4741 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4742 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4743 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4744 ia64) TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
Reid Spencer9b5b1822007-01-21 06:32:59 +00004745 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00004746 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Scott Michel96dcd2b2007-12-05 21:24:02 +00004747 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
Sanjiv Guptae3f34282008-05-14 08:03:23 +00004748 pic16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
Nate Begeman57b1efb2007-12-13 01:18:52 +00004749 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
4750 msil) TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
Tanya Lattner49ff6612008-05-10 04:20:38 +00004751 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004752 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4753echo "$as_me: error: Unrecognized target $a_target" >&2;}
4754 { (exit 1); exit 1; }; } ;;
4755 esac
4756 done
4757 ;;
4758esac
Reid Spencera773bd52006-08-04 18:18:08 +00004759TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4760
4761
Reid Spencer65c5d752006-11-05 17:08:18 +00004762# Check whether --enable-cbe-printf-a was given.
4763if test "${enable_cbe_printf_a+set}" = set; then
4764 enableval=$enable_cbe_printf_a;
4765else
4766 enableval=default
4767fi
4768
4769case "$enableval" in
4770 yes) ENABLE_CBE_PRINTF_A=1
4771 ;;
4772 no) ENABLE_CBE_PRINTF_A=0
4773 ;;
4774 default) ENABLE_CBE_PRINTF_A=1
4775 ;;
4776 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
4777echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
4778 { (exit 1); exit 1; }; } ;;
4779esac
4780
4781cat >>confdefs.h <<_ACEOF
4782#define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
4783_ACEOF
4784
4785
Reid Spencera773bd52006-08-04 18:18:08 +00004786
4787# Check whether --with-llvmgccdir was given.
4788if test "${with_llvmgccdir+set}" = set; then
4789 withval=$with_llvmgccdir;
4790else
4791 withval=default
4792fi
4793
4794case "$withval" in
4795 default) WITH_LLVMGCCDIR=default ;;
4796 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
4797 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
4798echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
4799 { (exit 1); exit 1; }; } ;;
4800esac
4801
4802
Devang Patel5d28b882007-12-04 22:54:47 +00004803# Check whether --with-llvmgcc was given.
4804if test "${with_llvmgcc+set}" = set; then
4805 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
4806 WITH_LLVMGCCDIR=""
4807fi
4808
4809
4810
4811# Check whether --with-llvmgxx was given.
4812if test "${with_llvmgxx+set}" = set; then
4813 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
4814 WITH_LLVMGCCDIR=""
4815fi
4816
4817
4818if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
4819 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
4820echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
4821 { (exit 1); exit 1; }; };
4822fi
4823
4824if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
4825 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
4826echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
4827 { (exit 1); exit 1; }; };
4828fi
4829
4830
Reid Spencera773bd52006-08-04 18:18:08 +00004831# Check whether --with-extra-options was given.
4832if test "${with_extra_options+set}" = set; then
4833 withval=$with_extra_options;
4834else
4835 withval=default
4836fi
4837
4838case "$withval" in
4839 default) EXTRA_OPTIONS= ;;
4840 *) EXTRA_OPTIONS=$withval ;;
4841esac
4842EXTRA_OPTIONS=$EXTRA_OPTIONS
4843
4844
Gordon Henriksenc0efff82007-10-02 09:50:32 +00004845# Check whether --enable-bindings was given.
4846if test "${enable_bindings+set}" = set; then
4847 enableval=$enable_bindings;
4848else
4849 enableval=default
4850fi
4851
4852BINDINGS_TO_BUILD=""
4853case "$enableval" in
Gordon Henriksenbae4adc2007-10-02 10:14:42 +00004854 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00004855 all ) BINDINGS_TO_BUILD="ocaml" ;;
4856 none | no) BINDINGS_TO_BUILD="" ;;
4857 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
4858 case "$a_binding" in
4859 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
4860 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
4861echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
4862 { (exit 1); exit 1; }; } ;;
4863 esac
4864 done
4865 ;;
4866esac
4867
Reid Spencera773bd52006-08-04 18:18:08 +00004868
Gordon Henriksenf0915682007-10-02 16:42:22 +00004869# Check whether --with-ocaml-libdir was given.
4870if test "${with_ocaml_libdir+set}" = set; then
4871 withval=$with_ocaml_libdir;
4872else
4873 withval=auto
4874fi
4875
4876case "$withval" in
4877 auto) with_ocaml_libdir="$withval" ;;
4878 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
4879 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
4880echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
4881 { (exit 1); exit 1; }; } ;;
4882esac
4883
4884
Reid Spencera773bd52006-08-04 18:18:08 +00004885ac_ext=c
4886ac_cpp='$CPP $CPPFLAGS'
4887ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4888ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4889ac_compiler_gnu=$ac_cv_c_compiler_gnu
4890{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4891echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4892# On Suns, sometimes $CPP names a directory.
4893if test -n "$CPP" && test -d "$CPP"; then
4894 CPP=
4895fi
4896if test -z "$CPP"; then
4897 if test "${ac_cv_prog_CPP+set}" = set; then
4898 echo $ECHO_N "(cached) $ECHO_C" >&6
4899else
4900 # Double quotes because CPP needs to be expanded
4901 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4902 do
4903 ac_preproc_ok=false
4904for ac_c_preproc_warn_flag in '' yes
4905do
4906 # Use a header file that comes with gcc, so configuring glibc
4907 # with a fresh cross-compiler works.
4908 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4909 # <limits.h> exists even on freestanding compilers.
4910 # On the NeXT, cc -E runs the code through the compiler's parser,
4911 # not just through cpp. "Syntax error" is here to catch this case.
4912 cat >conftest.$ac_ext <<_ACEOF
4913/* confdefs.h. */
4914_ACEOF
4915cat confdefs.h >>conftest.$ac_ext
4916cat >>conftest.$ac_ext <<_ACEOF
4917/* end confdefs.h. */
4918#ifdef __STDC__
4919# include <limits.h>
4920#else
4921# include <assert.h>
4922#endif
4923 Syntax error
4924_ACEOF
4925if { (ac_try="$ac_cpp conftest.$ac_ext"
4926case "(($ac_try" in
4927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4928 *) ac_try_echo=$ac_try;;
4929esac
4930eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4931 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4932 ac_status=$?
4933 grep -v '^ *+' conftest.er1 >conftest.err
4934 rm -f conftest.er1
4935 cat conftest.err >&5
4936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Torok Edwincc499a42008-10-22 09:56:27 +00004937 (exit $ac_status); } >/dev/null && {
4938 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4939 test ! -s conftest.err
4940 }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004941 :
4942else
4943 echo "$as_me: failed program was:" >&5
4944sed 's/^/| /' conftest.$ac_ext >&5
4945
4946 # Broken: fails on valid input.
4947continue
4948fi
4949
4950rm -f conftest.err conftest.$ac_ext
4951
4952 # OK, works on sane cases. Now check whether nonexistent headers
4953 # can be detected and how.
4954 cat >conftest.$ac_ext <<_ACEOF
4955/* confdefs.h. */
4956_ACEOF
4957cat confdefs.h >>conftest.$ac_ext
4958cat >>conftest.$ac_ext <<_ACEOF
4959/* end confdefs.h. */
4960#include <ac_nonexistent.h>
4961_ACEOF
4962if { (ac_try="$ac_cpp conftest.$ac_ext"
4963case "(($ac_try" in
4964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4965 *) ac_try_echo=$ac_try;;
4966esac
4967eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4968 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4969 ac_status=$?
4970 grep -v '^ *+' conftest.er1 >conftest.err
4971 rm -f conftest.er1
4972 cat conftest.err >&5
4973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Torok Edwincc499a42008-10-22 09:56:27 +00004974 (exit $ac_status); } >/dev/null && {
4975 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4976 test ! -s conftest.err
4977 }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004978 # Broken: success on invalid input.
4979continue
4980else
4981 echo "$as_me: failed program was:" >&5
4982sed 's/^/| /' conftest.$ac_ext >&5
4983
4984 # Passes both tests.
4985ac_preproc_ok=:
4986break
4987fi
4988
4989rm -f conftest.err conftest.$ac_ext
4990
4991done
4992# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4993rm -f conftest.err conftest.$ac_ext
4994if $ac_preproc_ok; then
4995 break
4996fi
4997
4998 done
4999 ac_cv_prog_CPP=$CPP
5000
5001fi
5002 CPP=$ac_cv_prog_CPP
5003else
5004 ac_cv_prog_CPP=$CPP
5005fi
5006{ echo "$as_me:$LINENO: result: $CPP" >&5
5007echo "${ECHO_T}$CPP" >&6; }
5008ac_preproc_ok=false
5009for ac_c_preproc_warn_flag in '' yes
5010do
5011 # Use a header file that comes with gcc, so configuring glibc
5012 # with a fresh cross-compiler works.
5013 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5014 # <limits.h> exists even on freestanding compilers.
5015 # On the NeXT, cc -E runs the code through the compiler's parser,
5016 # not just through cpp. "Syntax error" is here to catch this case.
5017 cat >conftest.$ac_ext <<_ACEOF
5018/* confdefs.h. */
5019_ACEOF
5020cat confdefs.h >>conftest.$ac_ext
5021cat >>conftest.$ac_ext <<_ACEOF
5022/* end confdefs.h. */
5023#ifdef __STDC__
5024# include <limits.h>
5025#else
5026# include <assert.h>
5027#endif
5028 Syntax error
5029_ACEOF
5030if { (ac_try="$ac_cpp conftest.$ac_ext"
5031case "(($ac_try" in
5032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5033 *) ac_try_echo=$ac_try;;
5034esac
5035eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5036 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5037 ac_status=$?
5038 grep -v '^ *+' conftest.er1 >conftest.err
5039 rm -f conftest.er1
5040 cat conftest.err >&5
5041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Torok Edwincc499a42008-10-22 09:56:27 +00005042 (exit $ac_status); } >/dev/null && {
5043 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5044 test ! -s conftest.err
5045 }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005046 :
5047else
5048 echo "$as_me: failed program was:" >&5
5049sed 's/^/| /' conftest.$ac_ext >&5
5050
5051 # Broken: fails on valid input.
5052continue
5053fi
5054
5055rm -f conftest.err conftest.$ac_ext
5056
5057 # OK, works on sane cases. Now check whether nonexistent headers
5058 # can be detected and how.
5059 cat >conftest.$ac_ext <<_ACEOF
5060/* confdefs.h. */
5061_ACEOF
5062cat confdefs.h >>conftest.$ac_ext
5063cat >>conftest.$ac_ext <<_ACEOF
5064/* end confdefs.h. */
5065#include <ac_nonexistent.h>
5066_ACEOF
5067if { (ac_try="$ac_cpp conftest.$ac_ext"
5068case "(($ac_try" in
5069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5070 *) ac_try_echo=$ac_try;;
5071esac
5072eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5073 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5074 ac_status=$?
5075 grep -v '^ *+' conftest.er1 >conftest.err
5076 rm -f conftest.er1
5077 cat conftest.err >&5
5078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Torok Edwincc499a42008-10-22 09:56:27 +00005079 (exit $ac_status); } >/dev/null && {
5080 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5081 test ! -s conftest.err
5082 }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005083 # Broken: success on invalid input.
5084continue
5085else
5086 echo "$as_me: failed program was:" >&5
5087sed 's/^/| /' conftest.$ac_ext >&5
5088
5089 # Passes both tests.
5090ac_preproc_ok=:
5091break
5092fi
5093
5094rm -f conftest.err conftest.$ac_ext
5095
5096done
5097# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5098rm -f conftest.err conftest.$ac_ext
5099if $ac_preproc_ok; then
5100 :
5101else
5102 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5103See \`config.log' for more details." >&5
5104echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5105See \`config.log' for more details." >&2;}
5106 { (exit 1); exit 1; }; }
5107fi
5108
5109ac_ext=c
5110ac_cpp='$CPP $CPPFLAGS'
5111ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5112ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5113ac_compiler_gnu=$ac_cv_c_compiler_gnu
5114
5115ac_ext=c
5116ac_cpp='$CPP $CPPFLAGS'
5117ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5118ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5119ac_compiler_gnu=$ac_cv_c_compiler_gnu
5120if test -n "$ac_tool_prefix"; then
5121 for ac_prog in gcc
5122 do
5123 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5124set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5125{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5126echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5127if test "${ac_cv_prog_CC+set}" = set; then
5128 echo $ECHO_N "(cached) $ECHO_C" >&6
5129else
5130 if test -n "$CC"; then
5131 ac_cv_prog_CC="$CC" # Let the user override the test.
5132else
5133as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5134for as_dir in $PATH
5135do
5136 IFS=$as_save_IFS
5137 test -z "$as_dir" && as_dir=.
5138 for ac_exec_ext in '' $ac_executable_extensions; do
Torok Edwincc499a42008-10-22 09:56:27 +00005139 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 +00005140 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5141 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5142 break 2
5143 fi
5144done
5145done
5146IFS=$as_save_IFS
5147
5148fi
5149fi
5150CC=$ac_cv_prog_CC
5151if test -n "$CC"; then
5152 { echo "$as_me:$LINENO: result: $CC" >&5
5153echo "${ECHO_T}$CC" >&6; }
5154else
5155 { echo "$as_me:$LINENO: result: no" >&5
5156echo "${ECHO_T}no" >&6; }
5157fi
5158
5159
5160 test -n "$CC" && break
5161 done
5162fi
5163if test -z "$CC"; then
5164 ac_ct_CC=$CC
5165 for ac_prog in gcc
5166do
5167 # Extract the first word of "$ac_prog", so it can be a program name with args.
5168set dummy $ac_prog; ac_word=$2
5169{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5170echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5171if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5172 echo $ECHO_N "(cached) $ECHO_C" >&6
5173else
5174 if test -n "$ac_ct_CC"; then
5175 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5176else
5177as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5178for as_dir in $PATH
5179do
5180 IFS=$as_save_IFS
5181 test -z "$as_dir" && as_dir=.
5182 for ac_exec_ext in '' $ac_executable_extensions; do
Torok Edwincc499a42008-10-22 09:56:27 +00005183 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 +00005184 ac_cv_prog_ac_ct_CC="$ac_prog"
5185 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5186 break 2
5187 fi
5188done
5189done
5190IFS=$as_save_IFS
5191
5192fi
5193fi
5194ac_ct_CC=$ac_cv_prog_ac_ct_CC
5195if test -n "$ac_ct_CC"; then
5196 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5197echo "${ECHO_T}$ac_ct_CC" >&6; }
5198else
5199 { echo "$as_me:$LINENO: result: no" >&5
5200echo "${ECHO_T}no" >&6; }
5201fi
5202
5203
5204 test -n "$ac_ct_CC" && break
5205done
5206
5207 if test "x$ac_ct_CC" = x; then
5208 CC=""
5209 else
5210 case $cross_compiling:$ac_tool_warned in
5211yes:)
5212{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5213whose name does not start with the host triplet. If you think this
5214configuration is useful to you, please write to autoconf@gnu.org." >&5
5215echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5216whose name does not start with the host triplet. If you think this
5217configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5218ac_tool_warned=yes ;;
5219esac
5220 CC=$ac_ct_CC
5221 fi
5222fi
5223
5224
5225test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5226See \`config.log' for more details." >&5
5227echo "$as_me: error: no acceptable C compiler found in \$PATH
5228See \`config.log' for more details." >&2;}
5229 { (exit 1); exit 1; }; }
5230
5231# Provide some information about the compiler.
5232echo "$as_me:$LINENO: checking for C compiler version" >&5
5233ac_compiler=`set X $ac_compile; echo $2`
5234{ (ac_try="$ac_compiler --version >&5"
5235case "(($ac_try" in
5236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5237 *) ac_try_echo=$ac_try;;
5238esac
5239eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5240 (eval "$ac_compiler --version >&5") 2>&5
5241 ac_status=$?
5242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5243 (exit $ac_status); }
5244{ (ac_try="$ac_compiler -v >&5"
5245case "(($ac_try" in
5246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5247 *) ac_try_echo=$ac_try;;
5248esac
5249eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5250 (eval "$ac_compiler -v >&5") 2>&5
5251 ac_status=$?
5252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5253 (exit $ac_status); }
5254{ (ac_try="$ac_compiler -V >&5"
5255case "(($ac_try" in
5256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5257 *) ac_try_echo=$ac_try;;
5258esac
5259eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5260 (eval "$ac_compiler -V >&5") 2>&5
5261 ac_status=$?
5262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5263 (exit $ac_status); }
5264
5265{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5266echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5267if test "${ac_cv_c_compiler_gnu+set}" = set; then
5268 echo $ECHO_N "(cached) $ECHO_C" >&6
5269else
5270 cat >conftest.$ac_ext <<_ACEOF
5271/* confdefs.h. */
5272_ACEOF
5273cat confdefs.h >>conftest.$ac_ext
5274cat >>conftest.$ac_ext <<_ACEOF
5275/* end confdefs.h. */
5276
5277int
5278main ()
5279{
5280#ifndef __GNUC__
5281 choke me
5282#endif
5283
5284 ;
5285 return 0;
5286}
5287_ACEOF
5288rm -f conftest.$ac_objext
5289if { (ac_try="$ac_compile"
5290case "(($ac_try" in
5291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5292 *) ac_try_echo=$ac_try;;
5293esac
5294eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5295 (eval "$ac_compile") 2>conftest.er1
5296 ac_status=$?
5297 grep -v '^ *+' conftest.er1 >conftest.err
5298 rm -f conftest.er1
5299 cat conftest.err >&5
5300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Torok Edwincc499a42008-10-22 09:56:27 +00005301 (exit $ac_status); } && {
5302 test -z "$ac_c_werror_flag" ||
5303 test ! -s conftest.err
5304 } && test -s conftest.$ac_objext; then
Reid Spencera773bd52006-08-04 18:18:08 +00005305 ac_compiler_gnu=yes
5306else
5307 echo "$as_me: failed program was:" >&5
5308sed 's/^/| /' conftest.$ac_ext >&5
5309
5310 ac_compiler_gnu=no
5311fi
5312
5313rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5314ac_cv_c_compiler_gnu=$ac_compiler_gnu
5315
5316fi
5317{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5318echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5319GCC=`test $ac_compiler_gnu = yes && echo yes`
5320ac_test_CFLAGS=${CFLAGS+set}
5321ac_save_CFLAGS=$CFLAGS
5322{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5323echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5324if test "${ac_cv_prog_cc_g+set}" = set; then
5325 echo $ECHO_N "(cached) $ECHO_C" >&6
5326else
5327 ac_save_c_werror_flag=$ac_c_werror_flag
5328 ac_c_werror_flag=yes
5329 ac_cv_prog_cc_g=no
5330 CFLAGS="-g"
5331 cat >conftest.$ac_ext <<_ACEOF
5332/* confdefs.h. */
5333_ACEOF
5334cat confdefs.h >>conftest.$ac_ext
5335cat >>conftest.$ac_ext <<_ACEOF
5336/* end confdefs.h. */
5337
5338int
5339main ()
5340{
5341
5342 ;
5343 return 0;
5344}
5345_ACEOF
5346rm -f conftest.$ac_objext
5347if { (ac_try="$ac_compile"
5348case "(($ac_try" in
5349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5350 *) ac_try_echo=$ac_try;;
5351esac
5352eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5353 (eval "$ac_compile") 2>conftest.er1
5354 ac_status=$?
5355 grep -v '^ *+' conftest.er1 >conftest.err
5356 rm -f conftest.er1
5357 cat conftest.err >&5
5358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Torok Edwincc499a42008-10-22 09:56:27 +00005359 (exit $ac_status); } && {
5360 test -z "$ac_c_werror_flag" ||
5361 test ! -s conftest.err
5362 } && test -s conftest.$ac_objext; then
Reid Spencera773bd52006-08-04 18:18:08 +00005363 ac_cv_prog_cc_g=yes
5364else
5365 echo "$as_me: failed program was:" >&5
5366sed 's/^/| /' conftest.$ac_ext >&5
5367
5368 CFLAGS=""
5369 cat >conftest.$ac_ext <<_ACEOF
5370/* confdefs.h. */
5371_ACEOF
5372cat confdefs.h >>conftest.$ac_ext
5373cat >>conftest.$ac_ext <<_ACEOF
5374/* end confdefs.h. */
5375
5376int
5377main ()
5378{
5379
5380 ;
5381 return 0;
5382}
5383_ACEOF
5384rm -f conftest.$ac_objext
5385if { (ac_try="$ac_compile"
5386case "(($ac_try" in
5387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5388 *) ac_try_echo=$ac_try;;
5389esac
5390eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5391 (eval "$ac_compile") 2>conftest.er1
5392 ac_status=$?
5393 grep -v '^ *+' conftest.er1 >conftest.err
5394 rm -f conftest.er1
5395 cat conftest.err >&5
5396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Torok Edwincc499a42008-10-22 09:56:27 +00005397 (exit $ac_status); } && {
5398 test -z "$ac_c_werror_flag" ||
5399 test ! -s conftest.err
5400 } && test -s conftest.$ac_objext; then
Reid Spencera773bd52006-08-04 18:18:08 +00005401 :
5402else
5403 echo "$as_me: failed program was:" >&5
5404sed 's/^/| /' conftest.$ac_ext >&5
5405
5406 ac_c_werror_flag=$ac_save_c_werror_flag
5407 CFLAGS="-g"
5408 cat >conftest.$ac_ext <<_ACEOF
5409/* confdefs.h. */
5410_ACEOF
5411cat confdefs.h >>conftest.$ac_ext
5412cat >>conftest.$ac_ext <<_ACEOF
5413/* end confdefs.h. */
5414
5415int
5416main ()
5417{
5418
5419 ;
5420 return 0;
5421}
5422_ACEOF
5423rm -f conftest.$ac_objext
5424if { (ac_try="$ac_compile"
5425case "(($ac_try" in
5426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5427 *) ac_try_echo=$ac_try;;
5428esac
5429eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5430 (eval "$ac_compile") 2>conftest.er1
5431 ac_status=$?
5432 grep -v '^ *+' conftest.er1 >conftest.err
5433 rm -f conftest.er1
5434 cat conftest.err >&5
5435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Torok Edwincc499a42008-10-22 09:56:27 +00005436 (exit $ac_status); } && {
5437 test -z "$ac_c_werror_flag" ||
5438 test ! -s conftest.err
5439 } && test -s conftest.$ac_objext; then
Reid Spencera773bd52006-08-04 18:18:08 +00005440 ac_cv_prog_cc_g=yes
5441else
5442 echo "$as_me: failed program was:" >&5
5443sed 's/^/| /' conftest.$ac_ext >&5
5444
5445
5446fi
5447
5448rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5449fi
5450
5451rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5452fi
5453
5454rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5455 ac_c_werror_flag=$ac_save_c_werror_flag
5456fi
5457{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5458echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5459if test "$ac_test_CFLAGS" = set; then
5460 CFLAGS=$ac_save_CFLAGS
5461elif test $ac_cv_prog_cc_g = yes; then
5462 if test "$GCC" = yes; then
5463 CFLAGS="-g -O2"
5464 else
5465 CFLAGS="-g"
5466 fi
5467else
5468 if test "$GCC" = yes; then
5469 CFLAGS="-O2"
5470 else
5471 CFLAGS=
5472 fi
5473fi
5474{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5475echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5476if test "${ac_cv_prog_cc_c89+set}" = set; then
5477 echo $ECHO_N "(cached) $ECHO_C" >&6
5478else
5479 ac_cv_prog_cc_c89=no
5480ac_save_CC=$CC
5481cat >conftest.$ac_ext <<_ACEOF
5482/* confdefs.h. */
5483_ACEOF
5484cat confdefs.h >>conftest.$ac_ext
5485cat >>conftest.$ac_ext <<_ACEOF
5486/* end confdefs.h. */
5487#include <stdarg.h>
5488#include <stdio.h>
5489#include <sys/types.h>
5490#include <sys/stat.h>
5491/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5492struct buf { int x; };
5493FILE * (*rcsopen) (struct buf *, struct stat *, int);
5494static char *e (p, i)
5495 char **p;
5496 int i;
5497{
5498 return p[i];
5499}
5500static char *f (char * (*g) (char **, int), char **p, ...)
5501{
5502 char *s;
5503 va_list v;
5504 va_start (v,p);
5505 s = g (p, va_arg (v,int));
5506 va_end (v);
5507 return s;
5508}
5509
5510/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5511 function prototypes and stuff, but not '\xHH' hex character constants.
5512 These don't provoke an error unfortunately, instead are silently treated
5513 as 'x'. The following induces an error, until -std is added to get
5514 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5515 array size at least. It's necessary to write '\x00'==0 to get something
5516 that's true only with -std. */
5517int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5518
5519/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5520 inside strings and character constants. */
5521#define FOO(x) 'x'
5522int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5523
5524int test (int i, double x);
5525struct s1 {int (*f) (int a);};
5526struct s2 {int (*f) (double a);};
5527int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5528int argc;
5529char **argv;
5530int
5531main ()
5532{
5533return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5534 ;
5535 return 0;
5536}
5537_ACEOF
5538for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5539 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5540do
5541 CC="$ac_save_CC $ac_arg"
5542 rm -f conftest.$ac_objext
5543if { (ac_try="$ac_compile"
5544case "(($ac_try" in
5545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5546 *) ac_try_echo=$ac_try;;
5547esac
5548eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5549 (eval "$ac_compile") 2>conftest.er1
5550 ac_status=$?
5551 grep -v '^ *+' conftest.er1 >conftest.err
5552 rm -f conftest.er1
5553 cat conftest.err >&5
5554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Torok Edwincc499a42008-10-22 09:56:27 +00005555 (exit $ac_status); } && {
5556 test -z "$ac_c_werror_flag" ||
5557 test ! -s conftest.err
5558 } && test -s conftest.$ac_objext; then
Reid Spencera773bd52006-08-04 18:18:08 +00005559 ac_cv_prog_cc_c89=$ac_arg
5560else
5561 echo "$as_me: failed program was:" >&5
5562sed 's/^/| /' conftest.$ac_ext >&5
5563
5564
5565fi
5566
5567rm -f core conftest.err conftest.$ac_objext
5568 test "x$ac_cv_prog_cc_c89" != "xno" && break
5569done
5570rm -f conftest.$ac_ext
5571CC=$ac_save_CC
5572
5573fi
5574# AC_CACHE_VAL
5575case "x$ac_cv_prog_cc_c89" in
5576 x)
5577 { echo "$as_me:$LINENO: result: none needed" >&5
5578echo "${ECHO_T}none needed" >&6; } ;;
5579 xno)
5580 { echo "$as_me:$LINENO: result: unsupported" >&5
5581echo "${ECHO_T}unsupported" >&6; } ;;
5582 *)
5583 CC="$CC $ac_cv_prog_cc_c89"
5584 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5585echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5586esac
5587
5588
5589ac_ext=c
5590ac_cpp='$CPP $CPPFLAGS'
5591ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5592ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5593ac_compiler_gnu=$ac_cv_c_compiler_gnu
5594
5595ac_ext=cpp
5596ac_cpp='$CXXCPP $CPPFLAGS'
5597ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5598ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5599ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5600if test -z "$CXX"; then
5601 if test -n "$CCC"; then
5602 CXX=$CCC
5603 else
5604 if test -n "$ac_tool_prefix"; then
5605 for ac_prog in g++
5606 do
5607 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5608set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5609{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5610echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5611if test "${ac_cv_prog_CXX+set}" = set; then
5612 echo $ECHO_N "(cached) $ECHO_C" >&6
5613else
5614 if test -n "$CXX"; then
5615 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5616else
5617as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5618for as_dir in $PATH
5619do
5620 IFS=$as_save_IFS
5621 test -z "$as_dir" && as_dir=.
5622 for ac_exec_ext in '' $ac_executable_extensions; do
Torok Edwincc499a42008-10-22 09:56:27 +00005623 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 +00005624 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5625 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5626 break 2
5627 fi
5628done
5629done
5630IFS=$as_save_IFS
5631
5632fi
5633fi
5634CXX=$ac_cv_prog_CXX
5635if test -n "$CXX"; then
5636 { echo "$as_me:$LINENO: result: $CXX" >&5
5637echo "${ECHO_T}$CXX" >&6; }
5638else
5639 { echo "$as_me:$LINENO: result: no" >&5
5640echo "${ECHO_T}no" >&6; }
5641fi
5642
5643
5644 test -n "$CXX" && break
5645 done
5646fi
5647if test -z "$CXX"; then
5648 ac_ct_CXX=$CXX
5649 for ac_prog in g++
5650do
5651 # Extract the first word of "$ac_prog", so it can be a program name with args.
5652set dummy $ac_prog; ac_word=$2
5653{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5654echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5655if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5656 echo $ECHO_N "(cached) $ECHO_C" >&6
5657else
5658 if test -n "$ac_ct_CXX"; then
5659 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5660else
5661as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5662for as_dir in $PATH
5663do
5664 IFS=$as_save_IFS
5665 test -z "$as_dir" && as_dir=.
5666 for ac_exec_ext in '' $ac_executable_extensions; do
Torok Edwincc499a42008-10-22 09:56:27 +00005667 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 +00005668 ac_cv_prog_ac_ct_CXX="$ac_prog"
5669 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5670 break 2
5671 fi
5672done
5673done
5674IFS=$as_save_IFS
5675
5676fi
5677fi
5678ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5679if test -n "$ac_ct_CXX"; then
5680 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5681echo "${ECHO_T}$ac_ct_CXX" >&6; }
5682else
5683 { echo "$as_me:$LINENO: result: no" >&5
5684echo "${ECHO_T}no" >&6; }
5685fi
5686
5687
5688 test -n "$ac_ct_CXX" && break
5689done
5690
5691 if test "x$ac_ct_CXX" = x; then
5692 CXX="g++"
5693 else
5694 case $cross_compiling:$ac_tool_warned in
5695yes:)
5696{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5697whose name does not start with the host triplet. If you think this
5698configuration is useful to you, please write to autoconf@gnu.org." >&5
5699echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5700whose name does not start with the host triplet. If you think this
5701configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5702ac_tool_warned=yes ;;
5703esac
5704 CXX=$ac_ct_CXX
5705 fi
5706fi
5707
5708 fi
5709fi
5710# Provide some information about the compiler.
5711echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5712ac_compiler=`set X $ac_compile; echo $2`
5713{ (ac_try="$ac_compiler --version >&5"
5714case "(($ac_try" in
5715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5716 *) ac_try_echo=$ac_try;;
5717esac
5718eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5719 (eval "$ac_compiler --version >&5") 2>&5
5720 ac_status=$?
5721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5722 (exit $ac_status); }
5723{ (ac_try="$ac_compiler -v >&5"
5724case "(($ac_try" in
5725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5726 *) ac_try_echo=$ac_try;;
5727esac
5728eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5729 (eval "$ac_compiler -v >&5") 2>&5
5730 ac_status=$?
5731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5732 (exit $ac_status); }
5733{ (ac_try="$ac_compiler -V >&5"
5734case "(($ac_try" in
5735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5736 *) ac_try_echo=$ac_try;;
5737esac
5738eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5739 (eval "$ac_compiler -V >&5") 2>&5
5740 ac_status=$?
5741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5742 (exit $ac_status); }
5743
5744{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5745echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5746if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5747 echo $ECHO_N "(cached) $ECHO_C" >&6
5748else
5749 cat >conftest.$ac_ext <<_ACEOF
5750/* confdefs.h. */
5751_ACEOF
5752cat confdefs.h >>conftest.$ac_ext
5753cat >>conftest.$ac_ext <<_ACEOF
5754/* end confdefs.h. */
5755
5756int
5757main ()
5758{
5759#ifndef __GNUC__
5760 choke me
5761#endif
5762
5763 ;
5764 return 0;
5765}
5766_ACEOF
5767rm -f conftest.$ac_objext
5768if { (ac_try="$ac_compile"
5769case "(($ac_try" in
5770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5771 *) ac_try_echo=$ac_try;;
5772esac
5773eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5774 (eval "$ac_compile") 2>conftest.er1
5775 ac_status=$?
5776 grep -v '^ *+' conftest.er1 >conftest.err
5777 rm -f conftest.er1
5778 cat conftest.err >&5
5779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Torok Edwincc499a42008-10-22 09:56:27 +00005780 (exit $ac_status); } && {
5781 test -z "$ac_cxx_werror_flag" ||
5782 test ! -s conftest.err
5783 } && test -s conftest.$ac_objext; then
Reid Spencera773bd52006-08-04 18:18:08 +00005784 ac_compiler_gnu=yes
5785else
5786 echo "$as_me: failed program was:" >&5
5787sed 's/^/| /' conftest.$ac_ext >&5
5788
5789 ac_compiler_gnu=no
5790fi
5791
5792rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5793ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5794
5795fi
5796{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5797echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5798GXX=`test $ac_compiler_gnu = yes && echo yes`
5799ac_test_CXXFLAGS=${CXXFLAGS+set}
5800ac_save_CXXFLAGS=$CXXFLAGS
5801{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5802echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5803if test "${ac_cv_prog_cxx_g+set}" = set; then
5804 echo $ECHO_N "(cached) $ECHO_C" >&6
5805else
5806 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5807 ac_cxx_werror_flag=yes
5808 ac_cv_prog_cxx_g=no
5809 CXXFLAGS="-g"
5810 cat >conftest.$ac_ext <<_ACEOF
5811/* confdefs.h. */
5812_ACEOF
5813cat confdefs.h >>conftest.$ac_ext
5814cat >>conftest.$ac_ext <<_ACEOF
5815/* end confdefs.h. */
5816
5817int
5818main ()
5819{
5820
5821 ;
5822 return 0;
5823}
5824_ACEOF
5825rm -f conftest.$ac_objext
5826if { (ac_try="$ac_compile"
5827case "(($ac_try" in
5828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5829 *) ac_try_echo=$ac_try;;
5830esac
5831eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5832 (eval "$ac_compile") 2>conftest.er1
5833 ac_status=$?
5834 grep -v '^ *+' conftest.er1 >conftest.err
5835 rm -f conftest.er1
5836 cat conftest.err >&5
5837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Torok Edwincc499a42008-10-22 09:56:27 +00005838 (exit $ac_status); } && {
5839 test -z "$ac_cxx_werror_flag" ||
5840 test ! -s conftest.err
5841 } && test -s conftest.$ac_objext; then
Reid Spencera773bd52006-08-04 18:18:08 +00005842 ac_cv_prog_cxx_g=yes
5843else
5844 echo "$as_me: failed program was:" >&5
5845sed 's/^/| /' conftest.$ac_ext >&5
5846
5847 CXXFLAGS=""
5848 cat >conftest.$ac_ext <<_ACEOF
5849/* confdefs.h. */
5850_ACEOF
5851cat confdefs.h >>conftest.$ac_ext
5852cat >>conftest.$ac_ext <<_ACEOF
5853/* end confdefs.h. */
5854
5855int
5856main ()
5857{
5858
5859 ;
5860 return 0;
5861}
5862_ACEOF
5863rm -f conftest.$ac_objext
5864if { (ac_try="$ac_compile"
5865case "(($ac_try" in
5866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5867 *) ac_try_echo=$ac_try;;
5868esac
5869eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5870 (eval "$ac_compile") 2>conftest.er1
5871 ac_status=$?
5872 grep -v '^ *+' conftest.er1 >conftest.err
5873 rm -f conftest.er1
5874 cat conftest.err >&5
5875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Torok Edwincc499a42008-10-22 09:56:27 +00005876 (exit $ac_status); } && {
5877 test -z "$ac_cxx_werror_flag" ||
5878 test ! -s conftest.err
5879 } && test -s conftest.$ac_objext; then
Reid Spencera773bd52006-08-04 18:18:08 +00005880 :
5881else
5882 echo "$as_me: failed program was:" >&5
5883sed 's/^/| /' conftest.$ac_ext >&5
5884
5885 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5886 CXXFLAGS="-g"
5887 cat >conftest.$ac_ext <<_ACEOF
5888/* confdefs.h. */
5889_ACEOF
5890cat confdefs.h >>conftest.$ac_ext
5891cat >>conftest.$ac_ext <<_ACEOF
5892/* end confdefs.h. */
5893
5894int
5895main ()
5896{
5897
5898 ;
5899 return 0;
5900}
5901_ACEOF
5902rm -f conftest.$ac_objext
5903if { (ac_try="$ac_compile"
5904case "(($ac_try" in
5905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5906 *) ac_try_echo=$ac_try;;
5907esac
5908eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5909 (eval "$ac_compile") 2>conftest.er1
5910 ac_status=$?
5911 grep -v '^ *+' conftest.er1 >conftest.err
5912 rm -f conftest.er1
5913 cat conftest.err >&5
5914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Torok Edwincc499a42008-10-22 09:56:27 +00005915 (exit $ac_status); } && {
5916 test -z "$ac_cxx_werror_flag" ||
5917 test ! -s conftest.err
5918 } && test -s conftest.$ac_objext; then
Reid Spencera773bd52006-08-04 18:18:08 +00005919 ac_cv_prog_cxx_g=yes
5920else
5921 echo "$as_me: failed program was:" >&5
5922sed 's/^/| /' conftest.$ac_ext >&5
5923
5924
5925fi
5926
5927rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5928fi
5929
5930rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5931fi
5932
5933rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5934 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5935fi
5936{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5937echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5938if test "$ac_test_CXXFLAGS" = set; then
5939 CXXFLAGS=$ac_save_CXXFLAGS
5940elif test $ac_cv_prog_cxx_g = yes; then
5941 if test "$GXX" = yes; then
5942 CXXFLAGS="-g -O2"
5943 else
5944 CXXFLAGS="-g"
5945 fi
5946else
5947 if test "$GXX" = yes; then
5948 CXXFLAGS="-O2"
5949 else
5950 CXXFLAGS=
5951 fi
5952fi
5953ac_ext=c
5954ac_cpp='$CPP $CPPFLAGS'
5955ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5956ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5957ac_compiler_gnu=$ac_cv_c_compiler_gnu
5958
5959{ echo "$as_me:$LINENO: checking " >&5
5960echo $ECHO_N "checking ... $ECHO_C" >&6; }
5961if test "${ac_cv_has_flex+set}" = set; then
5962 echo $ECHO_N "(cached) $ECHO_C" >&6
5963else
5964 for ac_prog in flex lex
5965do
5966 # Extract the first word of "$ac_prog", so it can be a program name with args.
5967set dummy $ac_prog; ac_word=$2
5968{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5969echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5970if test "${ac_cv_prog_LEX+set}" = set; then
5971 echo $ECHO_N "(cached) $ECHO_C" >&6
5972else
5973 if test -n "$LEX"; then
5974 ac_cv_prog_LEX="$LEX" # Let the user override the test.
5975else
5976as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5977for as_dir in $PATH
5978do
5979 IFS=$as_save_IFS
5980 test -z "$as_dir" && as_dir=.
5981 for ac_exec_ext in '' $ac_executable_extensions; do
Torok Edwincc499a42008-10-22 09:56:27 +00005982 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 +00005983 ac_cv_prog_LEX="$ac_prog"
5984 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5985 break 2
5986 fi
5987done
5988done
5989IFS=$as_save_IFS
5990
5991fi
5992fi
5993LEX=$ac_cv_prog_LEX
5994if test -n "$LEX"; then
5995 { echo "$as_me:$LINENO: result: $LEX" >&5
5996echo "${ECHO_T}$LEX" >&6; }
5997else
5998 { echo "$as_me:$LINENO: result: no" >&5
5999echo "${ECHO_T}no" >&6; }
6000fi
6001
6002
6003 test -n "$LEX" && break
6004done
6005test -n "$LEX" || LEX=":"
6006
Tanya Lattnercf067672008-01-17 05:57:22 +00006007if test "x$LEX" != "x:"; then
Torok Edwincc499a42008-10-22 09:56:27 +00006008 cat >conftest.l <<_ACEOF
Tanya Lattnercf067672008-01-17 05:57:22 +00006009%%
Torok Edwincc499a42008-10-22 09:56:27 +00006010a { ECHO; }
6011b { REJECT; }
6012c { yymore (); }
6013d { yyless (1); }
6014e { yyless (input () != 0); }
6015f { unput (yytext[0]); }
6016. { BEGIN INITIAL; }
Tanya Lattnercf067672008-01-17 05:57:22 +00006017%%
Torok Edwincc499a42008-10-22 09:56:27 +00006018#ifdef YYTEXT_POINTER
6019extern char *yytext;
6020#endif
6021int
6022main (void)
6023{
6024 return ! yylex () + ! yywrap ();
6025}
Tanya Lattnercf067672008-01-17 05:57:22 +00006026_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006027{ (ac_try="$LEX conftest.l"
6028case "(($ac_try" in
6029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6030 *) ac_try_echo=$ac_try;;
6031esac
6032eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6033 (eval "$LEX conftest.l") 2>&5
6034 ac_status=$?
6035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6036 (exit $ac_status); }
Torok Edwincc499a42008-10-22 09:56:27 +00006037{ echo "$as_me:$LINENO: checking lex output file root" >&5
6038echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
6039if test "${ac_cv_prog_lex_root+set}" = set; then
6040 echo $ECHO_N "(cached) $ECHO_C" >&6
6041else
6042
Reid Spencera773bd52006-08-04 18:18:08 +00006043if test -f lex.yy.c; then
6044 ac_cv_prog_lex_root=lex.yy
6045elif test -f lexyy.c; then
6046 ac_cv_prog_lex_root=lexyy
6047else
6048 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
6049echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
6050 { (exit 1); exit 1; }; }
6051fi
6052fi
6053{ echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
6054echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006055LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
6056
Torok Edwincc499a42008-10-22 09:56:27 +00006057if test -z "${LEXLIB+set}"; then
6058 { echo "$as_me:$LINENO: checking lex library" >&5
6059echo $ECHO_N "checking lex library... $ECHO_C" >&6; }
6060if test "${ac_cv_lib_lex+set}" = set; then
Scott Michel96dcd2b2007-12-05 21:24:02 +00006061 echo $ECHO_N "(cached) $ECHO_C" >&6
6062else
Torok Edwincc499a42008-10-22 09:56:27 +00006063
6064 ac_save_LIBS=$LIBS
6065 ac_cv_lib_lex='none needed'
6066 for ac_lib in '' -lfl -ll; do
6067 LIBS="$ac_lib $ac_save_LIBS"
6068 cat >conftest.$ac_ext <<_ACEOF
Scott Michel96dcd2b2007-12-05 21:24:02 +00006069`cat $LEX_OUTPUT_ROOT.c`
6070_ACEOF
6071rm -f conftest.$ac_objext conftest$ac_exeext
6072if { (ac_try="$ac_link"
6073case "(($ac_try" in
Reid Spencera773bd52006-08-04 18:18:08 +00006074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6075 *) ac_try_echo=$ac_try;;
6076esac
6077eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +00006078 (eval "$ac_link") 2>conftest.er1
Reid Spencera773bd52006-08-04 18:18:08 +00006079 ac_status=$?
Scott Michel96dcd2b2007-12-05 21:24:02 +00006080 grep -v '^ *+' conftest.er1 >conftest.err
6081 rm -f conftest.er1
6082 cat conftest.err >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Torok Edwincc499a42008-10-22 09:56:27 +00006084 (exit $ac_status); } && {
6085 test -z "$ac_c_werror_flag" ||
6086 test ! -s conftest.err
6087 } && test -s conftest$ac_exeext &&
6088 $as_test_x conftest$ac_exeext; then
6089 ac_cv_lib_lex=$ac_lib
6090else
6091 echo "$as_me: failed program was:" >&5
6092sed 's/^/| /' conftest.$ac_ext >&5
6093
6094
6095fi
6096
6097rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6098 conftest$ac_exeext conftest.$ac_ext
6099 test "$ac_cv_lib_lex" != 'none needed' && break
6100 done
6101 LIBS=$ac_save_LIBS
6102
6103fi
6104{ echo "$as_me:$LINENO: result: $ac_cv_lib_lex" >&5
6105echo "${ECHO_T}$ac_cv_lib_lex" >&6; }
6106 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
6107fi
6108
6109
6110{ echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
6111echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
6112if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
6113 echo $ECHO_N "(cached) $ECHO_C" >&6
6114else
6115 # POSIX says lex can declare yytext either as a pointer or an array; the
6116# default is implementation-dependent. Figure out which it is, since
6117# not all implementations provide the %pointer and %array declarations.
6118ac_cv_prog_lex_yytext_pointer=no
6119ac_save_LIBS=$LIBS
6120LIBS="$LEXLIB $ac_save_LIBS"
6121cat >conftest.$ac_ext <<_ACEOF
6122#define YYTEXT_POINTER 1
6123`cat $LEX_OUTPUT_ROOT.c`
6124_ACEOF
6125rm -f conftest.$ac_objext conftest$ac_exeext
6126if { (ac_try="$ac_link"
6127case "(($ac_try" in
Tanya Lattnercf067672008-01-17 05:57:22 +00006128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6129 *) ac_try_echo=$ac_try;;
6130esac
6131eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Torok Edwincc499a42008-10-22 09:56:27 +00006132 (eval "$ac_link") 2>conftest.er1
Tanya Lattnercf067672008-01-17 05:57:22 +00006133 ac_status=$?
Torok Edwincc499a42008-10-22 09:56:27 +00006134 grep -v '^ *+' conftest.er1 >conftest.err
6135 rm -f conftest.er1
6136 cat conftest.err >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00006137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Torok Edwincc499a42008-10-22 09:56:27 +00006138 (exit $ac_status); } && {
6139 test -z "$ac_c_werror_flag" ||
6140 test ! -s conftest.err
6141 } && test -s conftest$ac_exeext &&
6142 $as_test_x conftest$ac_exeext; then
Reid Spencera773bd52006-08-04 18:18:08 +00006143 ac_cv_prog_lex_yytext_pointer=yes
6144else
6145 echo "$as_me: failed program was:" >&5
6146sed 's/^/| /' conftest.$ac_ext >&5
6147
6148
6149fi
6150
Torok Edwincc499a42008-10-22 09:56:27 +00006151rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencera773bd52006-08-04 18:18:08 +00006152 conftest$ac_exeext conftest.$ac_ext
6153LIBS=$ac_save_LIBS
Reid Spencera773bd52006-08-04 18:18:08 +00006154
6155fi
6156{ echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
6157echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
6158if test $ac_cv_prog_lex_yytext_pointer = yes; then
6159
6160cat >>confdefs.h <<\_ACEOF
6161#define YYTEXT_POINTER 1
6162_ACEOF
6163
6164fi
Torok Edwincc499a42008-10-22 09:56:27 +00006165rm -f conftest.l $LEX_OUTPUT_ROOT.c
Reid Spencera773bd52006-08-04 18:18:08 +00006166
6167fi
6168
6169fi
6170{ echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
6171echo "${ECHO_T}$ac_cv_has_flex" >&6; }
6172if test "$LEX" != "flex"; then
6173 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
6174echo "$as_me: error: flex not found but required" >&2;}
6175 { (exit 1); exit 1; }; }
6176else
6177 FLEX=flex
6178
6179fi
6180
6181{ echo "$as_me:$LINENO: checking " >&5
6182echo $ECHO_N "checking ... $ECHO_C" >&6; }
6183if test "${llvm_cv_has_bison+set}" = set; then
6184 echo $ECHO_N "(cached) $ECHO_C" >&6
6185else
6186 for ac_prog in 'bison -y' byacc
6187do
6188 # Extract the first word of "$ac_prog", so it can be a program name with args.
6189set dummy $ac_prog; ac_word=$2
6190{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6191echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6192if test "${ac_cv_prog_YACC+set}" = set; then
6193 echo $ECHO_N "(cached) $ECHO_C" >&6
6194else
6195 if test -n "$YACC"; then
6196 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6197else
6198as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6199for as_dir in $PATH
6200do
6201 IFS=$as_save_IFS
6202 test -z "$as_dir" && as_dir=.
6203 for ac_exec_ext in '' $ac_executable_extensions; do
Torok Edwincc499a42008-10-22 09:56:27 +00006204 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 +00006205 ac_cv_prog_YACC="$ac_prog"
6206 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6207 break 2
6208 fi
6209done
6210done
6211IFS=$as_save_IFS
6212
6213fi
6214fi
6215YACC=$ac_cv_prog_YACC
6216if test -n "$YACC"; then
6217 { echo "$as_me:$LINENO: result: $YACC" >&5
6218echo "${ECHO_T}$YACC" >&6; }
6219else
6220 { echo "$as_me:$LINENO: result: no" >&5
6221echo "${ECHO_T}no" >&6; }
6222fi
6223
6224
6225 test -n "$YACC" && break
6226done
6227test -n "$YACC" || YACC="yacc"
6228
6229fi
6230{ echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
6231echo "${ECHO_T}$llvm_cv_has_bison" >&6; }
6232if test "$YACC" != "bison -y"; then
Reid Spencer4869d7f2006-08-24 22:41:20 +00006233
6234 { echo "$as_me:$LINENO: WARNING: bison not found, can't rebuild grammars" >&5
6235echo "$as_me: WARNING: bison not found, can't rebuild grammars" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00006236else
6237 BISON=bison
6238
6239fi
6240
6241{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6242echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6243if test "${lt_cv_path_NM+set}" = set; then
6244 echo $ECHO_N "(cached) $ECHO_C" >&6
6245else
6246 if test -n "$NM"; then
6247 # Let the user override the test.
6248 lt_cv_path_NM="$NM"
6249else
6250 lt_nm_to_check="${ac_tool_prefix}nm"
6251 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6252 lt_nm_to_check="$lt_nm_to_check nm"
6253 fi
6254 for lt_tmp_nm in $lt_nm_to_check; do
6255 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6256 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6257 IFS="$lt_save_ifs"
6258 test -z "$ac_dir" && ac_dir=.
6259 tmp_nm="$ac_dir/$lt_tmp_nm"
6260 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6261 # Check to see if the nm accepts a BSD-compat flag.
6262 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6263 # nm: unknown option "B" ignored
6264 # Tru64's nm complains that /dev/null is an invalid object file
6265 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6266 */dev/null* | *'Invalid file or object type'*)
6267 lt_cv_path_NM="$tmp_nm -B"
6268 break
6269 ;;
6270 *)
6271 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6272 */dev/null*)
6273 lt_cv_path_NM="$tmp_nm -p"
6274 break
6275 ;;
6276 *)
6277 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6278 continue # so that we can try to find one that supports BSD flags
6279 ;;
6280 esac
6281 ;;
6282 esac
6283 fi
6284 done
6285 IFS="$lt_save_ifs"
6286 done
6287 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6288fi
6289fi
6290{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6291echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6292NM="$lt_cv_path_NM"
6293
6294
6295
6296{ echo "$as_me:$LINENO: checking for GNU make" >&5
6297echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6298if test "${llvm_cv_gnu_make_command+set}" = set; then
6299 echo $ECHO_N "(cached) $ECHO_C" >&6
6300else
6301 llvm_cv_gnu_make_command=''
6302 for a in "$MAKE" make gmake gnumake ; do
6303 if test -z "$a" ; then continue ; fi ;
6304 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6305 then
6306 llvm_cv_gnu_make_command=$a ;
6307 break;
6308 fi
6309 done
6310fi
6311{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6312echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6313 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6314 ifGNUmake='' ;
6315 else
6316 ifGNUmake='#' ;
6317 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6318echo "${ECHO_T}\"Not found\"" >&6; };
6319 fi
6320
6321
6322{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
6323echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6324LN_S=$as_ln_s
6325if test "$LN_S" = "ln -s"; then
6326 { echo "$as_me:$LINENO: result: yes" >&5
6327echo "${ECHO_T}yes" >&6; }
6328else
6329 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6330echo "${ECHO_T}no, using $LN_S" >&6; }
6331fi
6332
6333# Extract the first word of "cmp", so it can be a program name with args.
6334set dummy cmp; ac_word=$2
6335{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6336echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6337if test "${ac_cv_path_CMP+set}" = set; then
6338 echo $ECHO_N "(cached) $ECHO_C" >&6
6339else
6340 case $CMP in
6341 [\\/]* | ?:[\\/]*)
6342 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6343 ;;
6344 *)
6345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6346for as_dir in $PATH
6347do
6348 IFS=$as_save_IFS
6349 test -z "$as_dir" && as_dir=.
6350 for ac_exec_ext in '' $ac_executable_extensions; do
Torok Edwincc499a42008-10-22 09:56:27 +00006351 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 +00006352 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6353 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6354 break 2
6355 fi
6356done
6357done
6358IFS=$as_save_IFS
6359
6360 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6361 ;;
6362esac
6363fi
6364CMP=$ac_cv_path_CMP
6365if test -n "$CMP"; then
6366 { echo "$as_me:$LINENO: result: $CMP" >&5
6367echo "${ECHO_T}$CMP" >&6; }
6368else
6369 { echo "$as_me:$LINENO: result: no" >&5
6370echo "${ECHO_T}no" >&6; }
6371fi
6372
6373
6374# Extract the first word of "cp", so it can be a program name with args.
6375set dummy cp; ac_word=$2
6376{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6377echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6378if test "${ac_cv_path_CP+set}" = set; then
6379 echo $ECHO_N "(cached) $ECHO_C" >&6
6380else
6381 case $CP in
6382 [\\/]* | ?:[\\/]*)
6383 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6384 ;;
6385 *)
6386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6387for as_dir in $PATH
6388do
6389 IFS=$as_save_IFS
6390 test -z "$as_dir" && as_dir=.
6391 for ac_exec_ext in '' $ac_executable_extensions; do
Torok Edwincc499a42008-10-22 09:56:27 +00006392 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 +00006393 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6394 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6395 break 2
6396 fi
6397done
6398done
6399IFS=$as_save_IFS
6400
6401 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6402 ;;
6403esac
6404fi
6405CP=$ac_cv_path_CP
6406if test -n "$CP"; then
6407 { echo "$as_me:$LINENO: result: $CP" >&5
6408echo "${ECHO_T}$CP" >&6; }
6409else
6410 { echo "$as_me:$LINENO: result: no" >&5
6411echo "${ECHO_T}no" >&6; }
6412fi
6413
6414
6415# Extract the first word of "date", so it can be a program name with args.
6416set dummy date; ac_word=$2
6417{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6418echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6419if test "${ac_cv_path_DATE+set}" = set; then
6420 echo $ECHO_N "(cached) $ECHO_C" >&6
6421else
6422 case $DATE in
6423 [\\/]* | ?:[\\/]*)
6424 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6425 ;;
6426 *)
6427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6428for as_dir in $PATH
6429do
6430 IFS=$as_save_IFS
6431 test -z "$as_dir" && as_dir=.
6432 for ac_exec_ext in '' $ac_executable_extensions; do
Torok Edwincc499a42008-10-22 09:56:27 +00006433 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 +00006434 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6435 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6436 break 2
6437 fi
6438done
6439done
6440IFS=$as_save_IFS
6441
6442 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6443 ;;
6444esac
6445fi
6446DATE=$ac_cv_path_DATE
6447if test -n "$DATE"; then
6448 { echo "$as_me:$LINENO: result: $DATE" >&5
6449echo "${ECHO_T}$DATE" >&6; }
6450else
6451 { echo "$as_me:$LINENO: result: no" >&5
6452echo "${ECHO_T}no" >&6; }
6453fi
6454
6455
6456# Extract the first word of "find", so it can be a program name with args.
6457set dummy find; ac_word=$2
6458{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6459echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6460if test "${ac_cv_path_FIND+set}" = set; then
6461 echo $ECHO_N "(cached) $ECHO_C" >&6
6462else
6463 case $FIND in
6464 [\\/]* | ?:[\\/]*)
6465 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6466 ;;
6467 *)
6468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6469for as_dir in $PATH
6470do
6471 IFS=$as_save_IFS
6472 test -z "$as_dir" && as_dir=.
6473 for ac_exec_ext in '' $ac_executable_extensions; do
Torok Edwincc499a42008-10-22 09:56:27 +00006474 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 +00006475 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6476 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6477 break 2
6478 fi
6479done
6480done
6481IFS=$as_save_IFS
6482
6483 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6484 ;;
6485esac
6486fi
6487FIND=$ac_cv_path_FIND
6488if test -n "$FIND"; then
6489 { echo "$as_me:$LINENO: result: $FIND" >&5
6490echo "${ECHO_T}$FIND" >&6; }
6491else
6492 { echo "$as_me:$LINENO: result: no" >&5
6493echo "${ECHO_T}no" >&6; }
6494fi
6495
6496
6497# Extract the first word of "grep", so it can be a program name with args.
6498set dummy grep; ac_word=$2
6499{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6500echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6501if test "${ac_cv_path_GREP+set}" = set; then
6502 echo $ECHO_N "(cached) $ECHO_C" >&6
6503else
6504 case $GREP in
6505 [\\/]* | ?:[\\/]*)
6506 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6507 ;;
6508 *)
6509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6510for as_dir in $PATH
6511do
6512 IFS=$as_save_IFS
6513 test -z "$as_dir" && as_dir=.
6514 for ac_exec_ext in '' $ac_executable_extensions; do
Torok Edwincc499a42008-10-22 09:56:27 +00006515 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 +00006516 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6517 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6518 break 2
6519 fi
6520done
6521done
6522IFS=$as_save_IFS
6523
6524 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6525 ;;
6526esac
6527fi
6528GREP=$ac_cv_path_GREP
6529if test -n "$GREP"; then
6530 { echo "$as_me:$LINENO: result: $GREP" >&5
6531echo "${ECHO_T}$GREP" >&6; }
6532else
6533 { echo "$as_me:$LINENO: result: no" >&5
6534echo "${ECHO_T}no" >&6; }
6535fi
6536
6537
6538# Extract the first word of "mkdir", so it can be a program name with args.
6539set dummy mkdir; ac_word=$2
6540{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6541echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6542if test "${ac_cv_path_MKDIR+set}" = set; then
6543 echo $ECHO_N "(cached) $ECHO_C" >&6
6544else
6545 case $MKDIR in
6546 [\\/]* | ?:[\\/]*)
6547 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6548 ;;
6549 *)
6550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6551for as_dir in $PATH
6552do
6553 IFS=$as_save_IFS
6554 test -z "$as_dir" && as_dir=.
6555 for ac_exec_ext in '' $ac_executable_extensions; do
Torok Edwincc499a42008-10-22 09:56:27 +00006556 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 +00006557 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6558 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6559 break 2
6560 fi
6561done
6562done
6563IFS=$as_save_IFS
6564
6565 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6566 ;;
6567esac
6568fi
6569MKDIR=$ac_cv_path_MKDIR
6570if test -n "$MKDIR"; then
6571 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6572echo "${ECHO_T}$MKDIR" >&6; }
6573else
6574 { echo "$as_me:$LINENO: result: no" >&5
6575echo "${ECHO_T}no" >&6; }
6576fi
6577
6578
6579# Extract the first word of "mv", so it can be a program name with args.
6580set dummy mv; ac_word=$2
6581{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6582echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6583if test "${ac_cv_path_MV+set}" = set; then
6584 echo $ECHO_N "(cached) $ECHO_C" >&6
6585else
6586 case $MV in
6587 [\\/]* | ?:[\\/]*)
6588 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6589 ;;
6590 *)
6591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6592for as_dir in $PATH
6593do
6594 IFS=$as_save_IFS
6595 test -z "$as_dir" && as_dir=.
6596 for ac_exec_ext in '' $ac_executable_extensions; do
Torok Edwincc499a42008-10-22 09:56:27 +00006597 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 +00006598 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6599 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6600 break 2
6601 fi
6602done
6603done
6604IFS=$as_save_IFS
6605
6606 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6607 ;;
6608esac
6609fi
6610MV=$ac_cv_path_MV
6611if test -n "$MV"; then
6612 { echo "$as_me:$LINENO: result: $MV" >&5
6613echo "${ECHO_T}$MV" >&6; }
6614else
6615 { echo "$as_me:$LINENO: result: no" >&5
6616echo "${ECHO_T}no" >&6; }
6617fi
6618
6619
6620if test -n "$ac_tool_prefix"; then
6621 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6622set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6623{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6624echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6625if test "${ac_cv_prog_RANLIB+set}" = set; then
6626 echo $ECHO_N "(cached) $ECHO_C" >&6
6627else
6628 if test -n "$RANLIB"; then
6629 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6630else
6631as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6632for as_dir in $PATH
6633do
6634 IFS=$as_save_IFS
6635 test -z "$as_dir" && as_dir=.
6636 for ac_exec_ext in '' $ac_executable_extensions; do
Torok Edwincc499a42008-10-22 09:56:27 +00006637 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 +00006638 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6639 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6640 break 2
6641 fi
6642done
6643done
6644IFS=$as_save_IFS
6645
6646fi
6647fi
6648RANLIB=$ac_cv_prog_RANLIB
6649if test -n "$RANLIB"; then
6650 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6651echo "${ECHO_T}$RANLIB" >&6; }
6652else
6653 { echo "$as_me:$LINENO: result: no" >&5
6654echo "${ECHO_T}no" >&6; }
6655fi
6656
6657
6658fi
6659if test -z "$ac_cv_prog_RANLIB"; then
6660 ac_ct_RANLIB=$RANLIB
6661 # Extract the first word of "ranlib", so it can be a program name with args.
6662set dummy ranlib; ac_word=$2
6663{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6664echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6665if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6666 echo $ECHO_N "(cached) $ECHO_C" >&6
6667else
6668 if test -n "$ac_ct_RANLIB"; then
6669 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6670else
6671as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6672for as_dir in $PATH
6673do
6674 IFS=$as_save_IFS
6675 test -z "$as_dir" && as_dir=.
6676 for ac_exec_ext in '' $ac_executable_extensions; do
Torok Edwincc499a42008-10-22 09:56:27 +00006677 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 +00006678 ac_cv_prog_ac_ct_RANLIB="ranlib"
6679 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6680 break 2
6681 fi
6682done
6683done
6684IFS=$as_save_IFS
6685
6686fi
6687fi
6688ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6689if test -n "$ac_ct_RANLIB"; then
6690 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6691echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6692else
6693 { echo "$as_me:$LINENO: result: no" >&5
6694echo "${ECHO_T}no" >&6; }
6695fi
6696
6697 if test "x$ac_ct_RANLIB" = x; then
6698 RANLIB=":"
6699 else
6700 case $cross_compiling:$ac_tool_warned in
6701yes:)
6702{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6703whose name does not start with the host triplet. If you think this
6704configuration is useful to you, please write to autoconf@gnu.org." >&5
6705echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6706whose name does not start with the host triplet. If you think this
6707configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6708ac_tool_warned=yes ;;
6709esac
6710 RANLIB=$ac_ct_RANLIB
6711 fi
6712else
6713 RANLIB="$ac_cv_prog_RANLIB"
6714fi
6715
6716# Extract the first word of "rm", so it can be a program name with args.
6717set dummy rm; ac_word=$2
6718{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6719echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6720if test "${ac_cv_path_RM+set}" = set; then
6721 echo $ECHO_N "(cached) $ECHO_C" >&6
6722else
6723 case $RM in
6724 [\\/]* | ?:[\\/]*)
6725 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6726 ;;
6727 *)
6728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6729for as_dir in $PATH
6730do
6731 IFS=$as_save_IFS
6732 test -z "$as_dir" && as_dir=.
6733 for ac_exec_ext in '' $ac_executable_extensions; do
Torok Edwincc499a42008-10-22 09:56:27 +00006734 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 +00006735 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6736 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6737 break 2
6738 fi
6739done
6740done
6741IFS=$as_save_IFS
6742
6743 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6744 ;;
6745esac
6746fi
6747RM=$ac_cv_path_RM
6748if test -n "$RM"; then
6749 { echo "$as_me:$LINENO: result: $RM" >&5
6750echo "${ECHO_T}$RM" >&6; }
6751else
6752 { echo "$as_me:$LINENO: result: no" >&5
6753echo "${ECHO_T}no" >&6; }
6754fi
6755
6756
6757# Extract the first word of "sed", so it can be a program name with args.
6758set dummy sed; ac_word=$2
6759{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6760echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6761if test "${ac_cv_path_SED+set}" = set; then
6762 echo $ECHO_N "(cached) $ECHO_C" >&6
6763else
6764 case $SED in
6765 [\\/]* | ?:[\\/]*)
6766 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6767 ;;
6768 *)
6769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6770for as_dir in $PATH
6771do
6772 IFS=$as_save_IFS
6773 test -z "$as_dir" && as_dir=.
6774 for ac_exec_ext in '' $ac_executable_extensions; do
Torok Edwincc499a42008-10-22 09:56:27 +00006775 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 +00006776 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6777 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6778 break 2
6779 fi
6780done
6781done
6782IFS=$as_save_IFS
6783
6784 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6785 ;;
6786esac
6787fi
6788SED=$ac_cv_path_SED
6789if test -n "$SED"; then
6790 { echo "$as_me:$LINENO: result: $SED" >&5
6791echo "${ECHO_T}$SED" >&6; }
6792else
6793 { echo "$as_me:$LINENO: result: no" >&5
6794echo "${ECHO_T}no" >&6; }
6795fi
6796
6797
6798# Extract the first word of "tar", so it can be a program name with args.
6799set dummy tar; ac_word=$2
6800{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6801echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6802if test "${ac_cv_path_TAR+set}" = set; then
6803 echo $ECHO_N "(cached) $ECHO_C" >&6
6804else
6805 case $TAR in
6806 [\\/]* | ?:[\\/]*)
6807 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6808 ;;
6809 *)
6810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6811for as_dir in $PATH
6812do
6813 IFS=$as_save_IFS
6814 test -z "$as_dir" && as_dir=.
6815 for ac_exec_ext in '' $ac_executable_extensions; do
Torok Edwincc499a42008-10-22 09:56:27 +00006816 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 +00006817 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6818 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6819 break 2
6820 fi
6821done
6822done
6823IFS=$as_save_IFS
6824
6825 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6826 ;;
6827esac
6828fi
6829TAR=$ac_cv_path_TAR
6830if test -n "$TAR"; then
6831 { echo "$as_me:$LINENO: result: $TAR" >&5
6832echo "${ECHO_T}$TAR" >&6; }
6833else
6834 { echo "$as_me:$LINENO: result: no" >&5
6835echo "${ECHO_T}no" >&6; }
6836fi
6837
6838
6839# Extract the first word of "pwd", so it can be a program name with args.
6840set dummy pwd; ac_word=$2
6841{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6842echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6843if test "${ac_cv_path_BINPWD+set}" = set; then
6844 echo $ECHO_N "(cached) $ECHO_C" >&6
6845else
6846 case $BINPWD in
6847 [\\/]* | ?:[\\/]*)
6848 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6849 ;;
6850 *)
6851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6852for as_dir in $PATH
6853do
6854 IFS=$as_save_IFS
6855 test -z "$as_dir" && as_dir=.
6856 for ac_exec_ext in '' $ac_executable_extensions; do
Torok Edwincc499a42008-10-22 09:56:27 +00006857 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 +00006858 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6859 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6860 break 2
6861 fi
6862done
6863done
6864IFS=$as_save_IFS
6865
6866 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6867 ;;
6868esac
6869fi
6870BINPWD=$ac_cv_path_BINPWD
6871if test -n "$BINPWD"; then
6872 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6873echo "${ECHO_T}$BINPWD" >&6; }
6874else
6875 { echo "$as_me:$LINENO: result: no" >&5
6876echo "${ECHO_T}no" >&6; }
6877fi
6878
6879
6880
6881# Extract the first word of "Graphviz", so it can be a program name with args.
6882set dummy Graphviz; ac_word=$2
6883{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6884echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6885if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6886 echo $ECHO_N "(cached) $ECHO_C" >&6
6887else
6888 case $GRAPHVIZ in
6889 [\\/]* | ?:[\\/]*)
6890 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6891 ;;
6892 *)
6893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6894for as_dir in $PATH
6895do
6896 IFS=$as_save_IFS
6897 test -z "$as_dir" && as_dir=.
6898 for ac_exec_ext in '' $ac_executable_extensions; do
Torok Edwincc499a42008-10-22 09:56:27 +00006899 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 +00006900 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6901 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6902 break 2
6903 fi
6904done
6905done
6906IFS=$as_save_IFS
6907
6908 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6909 ;;
6910esac
6911fi
6912GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6913if test -n "$GRAPHVIZ"; then
6914 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6915echo "${ECHO_T}$GRAPHVIZ" >&6; }
6916else
6917 { echo "$as_me:$LINENO: result: no" >&5
6918echo "${ECHO_T}no" >&6; }
6919fi
6920
6921
6922if test "$GRAPHVIZ" != "echo Graphviz" ; then
6923
6924cat >>confdefs.h <<\_ACEOF
6925#define HAVE_GRAPHVIZ 1
6926_ACEOF
6927
Jeff Cohen28783c32007-01-12 18:22:38 +00006928 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00006929 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6930 fi
6931
6932cat >>confdefs.h <<_ACEOF
6933#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6934_ACEOF
6935
6936fi
6937# Extract the first word of "dot", so it can be a program name with args.
6938set dummy dot; ac_word=$2
6939{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6940echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6941if test "${ac_cv_path_DOT+set}" = set; then
6942 echo $ECHO_N "(cached) $ECHO_C" >&6
6943else
6944 case $DOT in
6945 [\\/]* | ?:[\\/]*)
6946 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6947 ;;
6948 *)
6949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6950for as_dir in $PATH
6951do
6952 IFS=$as_save_IFS
6953 test -z "$as_dir" && as_dir=.
6954 for ac_exec_ext in '' $ac_executable_extensions; do
Torok Edwincc499a42008-10-22 09:56:27 +00006955 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 +00006956 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6957 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6958 break 2
6959 fi
6960done
6961done
6962IFS=$as_save_IFS
6963
6964 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6965 ;;
6966esac
6967fi
6968DOT=$ac_cv_path_DOT
6969if test -n "$DOT"; then
6970 { echo "$as_me:$LINENO: result: $DOT" >&5
6971echo "${ECHO_T}$DOT" >&6; }
6972else
6973 { echo "$as_me:$LINENO: result: no" >&5
6974echo "${ECHO_T}no" >&6; }
6975fi
6976
6977
6978if test "$DOT" != "echo dot" ; then
6979
6980cat >>confdefs.h <<\_ACEOF
6981#define HAVE_DOT 1
6982_ACEOF
6983
Jeff Cohen28783c32007-01-12 18:22:38 +00006984 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00006985 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6986 fi
6987
6988cat >>confdefs.h <<_ACEOF
6989#define LLVM_PATH_DOT "$DOT${EXEEXT}"
6990_ACEOF
6991
6992fi
6993for ac_prog in gv gsview32
6994do
6995 # Extract the first word of "$ac_prog", so it can be a program name with args.
6996set dummy $ac_prog; ac_word=$2
6997{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6998echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6999if test "${ac_cv_path_GV+set}" = set; then
7000 echo $ECHO_N "(cached) $ECHO_C" >&6
7001else
7002 case $GV in
7003 [\\/]* | ?:[\\/]*)
7004 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7005 ;;
7006 *)
7007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7008for as_dir in $PATH
7009do
7010 IFS=$as_save_IFS
7011 test -z "$as_dir" && as_dir=.
7012 for ac_exec_ext in '' $ac_executable_extensions; do
Torok Edwincc499a42008-10-22 09:56:27 +00007013 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 +00007014 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7015 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7016 break 2
7017 fi
7018done
7019done
7020IFS=$as_save_IFS
7021
7022 ;;
7023esac
7024fi
7025GV=$ac_cv_path_GV
7026if test -n "$GV"; then
7027 { echo "$as_me:$LINENO: result: $GV" >&5
7028echo "${ECHO_T}$GV" >&6; }
7029else
7030 { echo "$as_me:$LINENO: result: no" >&5
7031echo "${ECHO_T}no" >&6; }
7032fi
7033
7034
7035 test -n "$GV" && break
7036done
7037test -n "$GV" || GV="echo gv"
7038
7039if test "$GV" != "echo gv" ; then
7040
7041cat >>confdefs.h <<\_ACEOF
7042#define HAVE_GV 1
7043_ACEOF
7044
Jeff Cohen28783c32007-01-12 18:22:38 +00007045 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007046 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7047 fi
7048
7049cat >>confdefs.h <<_ACEOF
7050#define LLVM_PATH_GV "$GV${EXEEXT}"
7051_ACEOF
7052
7053fi
7054# Extract the first word of "dotty", so it can be a program name with args.
7055set dummy dotty; ac_word=$2
7056{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7057echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7058if test "${ac_cv_path_DOTTY+set}" = set; then
7059 echo $ECHO_N "(cached) $ECHO_C" >&6
7060else
7061 case $DOTTY in
7062 [\\/]* | ?:[\\/]*)
7063 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7064 ;;
7065 *)
7066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7067for as_dir in $PATH
7068do
7069 IFS=$as_save_IFS
7070 test -z "$as_dir" && as_dir=.
7071 for ac_exec_ext in '' $ac_executable_extensions; do
Torok Edwincc499a42008-10-22 09:56:27 +00007072 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 +00007073 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7074 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7075 break 2
7076 fi
7077done
7078done
7079IFS=$as_save_IFS
7080
7081 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7082 ;;
7083esac
7084fi
7085DOTTY=$ac_cv_path_DOTTY
7086if test -n "$DOTTY"; then
7087 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7088echo "${ECHO_T}$DOTTY" >&6; }
7089else
7090 { echo "$as_me:$LINENO: result: no" >&5
7091echo "${ECHO_T}no" >&6; }
7092fi
7093
7094
7095if test "$DOTTY" != "echo dotty" ; then
7096
7097cat >>confdefs.h <<\_ACEOF
7098#define HAVE_DOTTY 1
7099_ACEOF
7100
Jeff Cohen28783c32007-01-12 18:22:38 +00007101 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007102 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7103 fi
7104
7105cat >>confdefs.h <<_ACEOF
7106#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7107_ACEOF
7108
7109fi
7110
7111
7112# Extract the first word of "perl", so it can be a program name with args.
7113set dummy perl; ac_word=$2
7114{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7115echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7116if test "${ac_cv_path_PERL+set}" = set; then
7117 echo $ECHO_N "(cached) $ECHO_C" >&6
7118else
7119 case $PERL in
7120 [\\/]* | ?:[\\/]*)
7121 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7122 ;;
7123 *)
7124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7125for as_dir in $PATH
7126do
7127 IFS=$as_save_IFS
7128 test -z "$as_dir" && as_dir=.
7129 for ac_exec_ext in '' $ac_executable_extensions; do
Torok Edwincc499a42008-10-22 09:56:27 +00007130 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 +00007131 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7132 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7133 break 2
7134 fi
7135done
7136done
7137IFS=$as_save_IFS
7138
7139 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7140 ;;
7141esac
7142fi
7143PERL=$ac_cv_path_PERL
7144if test -n "$PERL"; then
7145 { echo "$as_me:$LINENO: result: $PERL" >&5
7146echo "${ECHO_T}$PERL" >&6; }
7147else
7148 { echo "$as_me:$LINENO: result: no" >&5
7149echo "${ECHO_T}no" >&6; }
7150fi
7151
7152
7153if test "$PERL" != "none"; then
7154 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7155echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7156 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7157 { echo "$as_me:$LINENO: result: yes" >&5
7158echo "${ECHO_T}yes" >&6; }
7159 else
7160 PERL=none
7161 { echo "$as_me:$LINENO: result: not found" >&5
7162echo "${ECHO_T}not found" >&6; }
7163 fi
7164fi
7165
7166
7167if test x"$PERL" = xnone; then
7168 HAVE_PERL=0
7169
Reid Spencer59807fa2007-05-17 18:11:03 +00007170 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7171echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7172 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00007173else
7174 HAVE_PERL=1
7175
7176fi
7177
7178# Find a good install program. We prefer a C program (faster),
7179# so one script is as good as another. But avoid the broken or
7180# incompatible versions:
7181# SysV /etc/install, /usr/sbin/install
7182# SunOS /usr/etc/install
7183# IRIX /sbin/install
7184# AIX /bin/install
7185# AmigaOS /C/install, which installs bootblocks on floppy discs
7186# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7187# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7188# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7189# OS/2's system install, which has a completely different semantic
7190# ./install, which can be erroneously created by make from ./install.sh.
7191{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7192echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7193if test -z "$INSTALL"; then
7194if test "${ac_cv_path_install+set}" = set; then
7195 echo $ECHO_N "(cached) $ECHO_C" >&6
7196else
7197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7198for as_dir in $PATH
7199do
7200 IFS=$as_save_IFS
7201 test -z "$as_dir" && as_dir=.
7202 # Account for people who put trailing slashes in PATH elements.
7203case $as_dir/ in
7204 ./ | .// | /cC/* | \
7205 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7206 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7207 /usr/ucb/* ) ;;
7208 *)
7209 # OSF1 and SCO ODT 3.0 have their own names for install.
7210 # Don't use installbsd from OSF since it installs stuff as root
7211 # by default.
7212 for ac_prog in ginstall scoinst install; do
7213 for ac_exec_ext in '' $ac_executable_extensions; do
Torok Edwincc499a42008-10-22 09:56:27 +00007214 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 +00007215 if test $ac_prog = install &&
7216 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7217 # AIX install. It has an incompatible calling convention.
7218 :
7219 elif test $ac_prog = install &&
7220 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7221 # program-specific install script used by HP pwplus--don't use.
7222 :
7223 else
7224 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7225 break 3
7226 fi
7227 fi
7228 done
7229 done
7230 ;;
7231esac
7232done
7233IFS=$as_save_IFS
7234
7235
7236fi
7237 if test "${ac_cv_path_install+set}" = set; then
7238 INSTALL=$ac_cv_path_install
7239 else
7240 # As a last resort, use the slow shell script. Don't cache a
7241 # value for INSTALL within a source directory, because that will
7242 # break other packages using the cache if that directory is
7243 # removed, or if the value is a relative name.
7244 INSTALL=$ac_install_sh
7245 fi
7246fi
7247{ echo "$as_me:$LINENO: result: $INSTALL" >&5
7248echo "${ECHO_T}$INSTALL" >&6; }
7249
7250# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7251# It thinks the first close brace ends the variable substitution.
7252test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7253
7254test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7255
7256test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7257
7258
7259# Extract the first word of "bzip2", so it can be a program name with args.
7260set dummy bzip2; ac_word=$2
7261{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7262echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7263if test "${ac_cv_path_BZIP2+set}" = set; then
7264 echo $ECHO_N "(cached) $ECHO_C" >&6
7265else
7266 case $BZIP2 in
7267 [\\/]* | ?:[\\/]*)
7268 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7269 ;;
7270 *)
7271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7272for as_dir in $PATH
7273do
7274 IFS=$as_save_IFS
7275 test -z "$as_dir" && as_dir=.
7276 for ac_exec_ext in '' $ac_executable_extensions; do
Torok Edwincc499a42008-10-22 09:56:27 +00007277 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 +00007278 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7279 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7280 break 2
7281 fi
7282done
7283done
7284IFS=$as_save_IFS
7285
Reid Spencera773bd52006-08-04 18:18:08 +00007286 ;;
7287esac
7288fi
7289BZIP2=$ac_cv_path_BZIP2
7290if test -n "$BZIP2"; then
7291 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7292echo "${ECHO_T}$BZIP2" >&6; }
7293else
7294 { echo "$as_me:$LINENO: result: no" >&5
7295echo "${ECHO_T}no" >&6; }
7296fi
7297
7298
7299# Extract the first word of "doxygen", so it can be a program name with args.
7300set dummy doxygen; ac_word=$2
7301{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7302echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7303if test "${ac_cv_path_DOXYGEN+set}" = set; then
7304 echo $ECHO_N "(cached) $ECHO_C" >&6
7305else
7306 case $DOXYGEN in
7307 [\\/]* | ?:[\\/]*)
7308 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7309 ;;
7310 *)
7311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7312for as_dir in $PATH
7313do
7314 IFS=$as_save_IFS
7315 test -z "$as_dir" && as_dir=.
7316 for ac_exec_ext in '' $ac_executable_extensions; do
Torok Edwincc499a42008-10-22 09:56:27 +00007317 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 +00007318 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7319 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7320 break 2
7321 fi
7322done
7323done
7324IFS=$as_save_IFS
7325
Reid Spencera773bd52006-08-04 18:18:08 +00007326 ;;
7327esac
7328fi
7329DOXYGEN=$ac_cv_path_DOXYGEN
7330if test -n "$DOXYGEN"; then
7331 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7332echo "${ECHO_T}$DOXYGEN" >&6; }
7333else
7334 { echo "$as_me:$LINENO: result: no" >&5
7335echo "${ECHO_T}no" >&6; }
7336fi
7337
7338
Reid Spencera773bd52006-08-04 18:18:08 +00007339# Extract the first word of "groff", so it can be a program name with args.
7340set dummy groff; ac_word=$2
7341{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7342echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7343if test "${ac_cv_path_GROFF+set}" = set; then
7344 echo $ECHO_N "(cached) $ECHO_C" >&6
7345else
7346 case $GROFF in
7347 [\\/]* | ?:[\\/]*)
7348 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7349 ;;
7350 *)
7351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7352for as_dir in $PATH
7353do
7354 IFS=$as_save_IFS
7355 test -z "$as_dir" && as_dir=.
7356 for ac_exec_ext in '' $ac_executable_extensions; do
Torok Edwincc499a42008-10-22 09:56:27 +00007357 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 +00007358 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7359 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7360 break 2
7361 fi
7362done
7363done
7364IFS=$as_save_IFS
7365
Reid Spencera773bd52006-08-04 18:18:08 +00007366 ;;
7367esac
7368fi
7369GROFF=$ac_cv_path_GROFF
7370if test -n "$GROFF"; then
7371 { echo "$as_me:$LINENO: result: $GROFF" >&5
7372echo "${ECHO_T}$GROFF" >&6; }
7373else
7374 { echo "$as_me:$LINENO: result: no" >&5
7375echo "${ECHO_T}no" >&6; }
7376fi
7377
7378
7379# Extract the first word of "gzip", so it can be a program name with args.
7380set dummy gzip; ac_word=$2
7381{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7382echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7383if test "${ac_cv_path_GZIP+set}" = set; then
7384 echo $ECHO_N "(cached) $ECHO_C" >&6
7385else
7386 case $GZIP in
7387 [\\/]* | ?:[\\/]*)
7388 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7389 ;;
7390 *)
7391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7392for as_dir in $PATH
7393do
7394 IFS=$as_save_IFS
7395 test -z "$as_dir" && as_dir=.
7396 for ac_exec_ext in '' $ac_executable_extensions; do
Torok Edwincc499a42008-10-22 09:56:27 +00007397 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 +00007398 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7399 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7400 break 2
7401 fi
7402done
7403done
7404IFS=$as_save_IFS
7405
Reid Spencera773bd52006-08-04 18:18:08 +00007406 ;;
7407esac
7408fi
7409GZIP=$ac_cv_path_GZIP
7410if test -n "$GZIP"; then
7411 { echo "$as_me:$LINENO: result: $GZIP" >&5
7412echo "${ECHO_T}$GZIP" >&6; }
7413else
7414 { echo "$as_me:$LINENO: result: no" >&5
7415echo "${ECHO_T}no" >&6; }
7416fi
7417
7418
7419# Extract the first word of "pod2html", so it can be a program name with args.
7420set dummy pod2html; ac_word=$2
7421{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7422echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7423if test "${ac_cv_path_POD2HTML+set}" = set; then
7424 echo $ECHO_N "(cached) $ECHO_C" >&6
7425else
7426 case $POD2HTML in
7427 [\\/]* | ?:[\\/]*)
7428 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7429 ;;
7430 *)
7431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7432for as_dir in $PATH
7433do
7434 IFS=$as_save_IFS
7435 test -z "$as_dir" && as_dir=.
7436 for ac_exec_ext in '' $ac_executable_extensions; do
Torok Edwincc499a42008-10-22 09:56:27 +00007437 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 +00007438 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7439 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7440 break 2
7441 fi
7442done
7443done
7444IFS=$as_save_IFS
7445
Reid Spencera773bd52006-08-04 18:18:08 +00007446 ;;
7447esac
7448fi
7449POD2HTML=$ac_cv_path_POD2HTML
7450if test -n "$POD2HTML"; then
7451 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7452echo "${ECHO_T}$POD2HTML" >&6; }
7453else
7454 { echo "$as_me:$LINENO: result: no" >&5
7455echo "${ECHO_T}no" >&6; }
7456fi
7457
7458
7459# Extract the first word of "pod2man", so it can be a program name with args.
7460set dummy pod2man; ac_word=$2
7461{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7462echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7463if test "${ac_cv_path_POD2MAN+set}" = set; then
7464 echo $ECHO_N "(cached) $ECHO_C" >&6
7465else
7466 case $POD2MAN in
7467 [\\/]* | ?:[\\/]*)
7468 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7469 ;;
7470 *)
7471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7472for as_dir in $PATH
7473do
7474 IFS=$as_save_IFS
7475 test -z "$as_dir" && as_dir=.
7476 for ac_exec_ext in '' $ac_executable_extensions; do
Torok Edwincc499a42008-10-22 09:56:27 +00007477 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 +00007478 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7479 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7480 break 2
7481 fi
7482done
7483done
7484IFS=$as_save_IFS
7485
Reid Spencera773bd52006-08-04 18:18:08 +00007486 ;;
7487esac
7488fi
7489POD2MAN=$ac_cv_path_POD2MAN
7490if test -n "$POD2MAN"; then
7491 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7492echo "${ECHO_T}$POD2MAN" >&6; }
7493else
7494 { echo "$as_me:$LINENO: result: no" >&5
7495echo "${ECHO_T}no" >&6; }
7496fi
7497
7498
7499# Extract the first word of "runtest", so it can be a program name with args.
7500set dummy runtest; ac_word=$2
7501{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7502echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7503if test "${ac_cv_path_RUNTEST+set}" = set; then
7504 echo $ECHO_N "(cached) $ECHO_C" >&6
7505else
7506 case $RUNTEST in
7507 [\\/]* | ?:[\\/]*)
7508 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7509 ;;
7510 *)
7511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7512for as_dir in $PATH
7513do
7514 IFS=$as_save_IFS
7515 test -z "$as_dir" && as_dir=.
7516 for ac_exec_ext in '' $ac_executable_extensions; do
Torok Edwincc499a42008-10-22 09:56:27 +00007517 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 +00007518 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7519 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7520 break 2
7521 fi
7522done
7523done
7524IFS=$as_save_IFS
7525
Reid Spencera773bd52006-08-04 18:18:08 +00007526 ;;
7527esac
7528fi
7529RUNTEST=$ac_cv_path_RUNTEST
7530if test -n "$RUNTEST"; then
7531 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7532echo "${ECHO_T}$RUNTEST" >&6; }
7533else
7534 { echo "$as_me:$LINENO: result: no" >&5
7535echo "${ECHO_T}no" >&6; }
7536fi
7537
7538
7539
7540no_itcl=true
7541{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7542echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7543
7544# Check whether --with-tclinclude was given.
7545if test "${with_tclinclude+set}" = set; then
7546 withval=$with_tclinclude; with_tclinclude=${withval}
7547else
7548 with_tclinclude=''
7549fi
7550
7551if test "${ac_cv_path_tclsh+set}" = set; then
7552 echo $ECHO_N "(cached) $ECHO_C" >&6
7553else
7554
7555if test x"${with_tclinclude}" != x ; then
7556 if test -f ${with_tclinclude}/tclsh ; then
7557 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7558 elif test -f ${with_tclinclude}/src/tclsh ; then
7559 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7560 else
7561 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7562echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7563 { (exit 1); exit 1; }; }
7564 fi
7565fi
7566
7567if test x"${ac_cv_path_tclsh}" = x ; then
7568 { echo "$as_me:$LINENO: result: none" >&5
7569echo "${ECHO_T}none" >&6; }
7570 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
7571do
7572 # Extract the first word of "$ac_prog", so it can be a program name with args.
7573set dummy $ac_prog; ac_word=$2
7574{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7575echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7576if test "${ac_cv_path_TCLSH+set}" = set; then
7577 echo $ECHO_N "(cached) $ECHO_C" >&6
7578else
7579 case $TCLSH in
7580 [\\/]* | ?:[\\/]*)
7581 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7582 ;;
7583 *)
7584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7585for as_dir in $PATH
7586do
7587 IFS=$as_save_IFS
7588 test -z "$as_dir" && as_dir=.
7589 for ac_exec_ext in '' $ac_executable_extensions; do
Torok Edwincc499a42008-10-22 09:56:27 +00007590 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 +00007591 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7592 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7593 break 2
7594 fi
7595done
7596done
7597IFS=$as_save_IFS
7598
7599 ;;
7600esac
7601fi
7602TCLSH=$ac_cv_path_TCLSH
7603if test -n "$TCLSH"; then
7604 { echo "$as_me:$LINENO: result: $TCLSH" >&5
7605echo "${ECHO_T}$TCLSH" >&6; }
7606else
7607 { echo "$as_me:$LINENO: result: no" >&5
7608echo "${ECHO_T}no" >&6; }
7609fi
7610
7611
7612 test -n "$TCLSH" && break
7613done
7614
7615 if test x"${TCLSH}" = x ; then
7616 ac_cv_path_tclsh='';
7617 else
7618 ac_cv_path_tclsh="${TCLSH}";
7619 fi
7620else
7621 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7622echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7623 TCLSH="${ac_cv_path_tclsh}"
7624
7625fi
7626
7627fi
7628
7629# Extract the first word of "zip", so it can be a program name with args.
7630set dummy zip; ac_word=$2
7631{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7632echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7633if test "${ac_cv_path_ZIP+set}" = set; then
7634 echo $ECHO_N "(cached) $ECHO_C" >&6
7635else
7636 case $ZIP in
7637 [\\/]* | ?:[\\/]*)
7638 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7639 ;;
7640 *)
7641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7642for as_dir in $PATH
7643do
7644 IFS=$as_save_IFS
7645 test -z "$as_dir" && as_dir=.
7646 for ac_exec_ext in '' $ac_executable_extensions; do
Torok Edwincc499a42008-10-22 09:56:27 +00007647 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 +00007648 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7649 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7650 break 2
7651 fi
7652done
7653done
7654IFS=$as_save_IFS
7655
Reid Spencera773bd52006-08-04 18:18:08 +00007656 ;;
7657esac
7658fi
7659ZIP=$ac_cv_path_ZIP
7660if test -n "$ZIP"; then
7661 { echo "$as_me:$LINENO: result: $ZIP" >&5
7662echo "${ECHO_T}$ZIP" >&6; }
7663else
7664 { echo "$as_me:$LINENO: result: no" >&5
7665echo "${ECHO_T}no" >&6; }
7666fi
7667
7668
Gordon Henriksene7072162008-03-07 18:20:01 +00007669for ac_prog in ocamlc.opt ocamlc
7670do
7671 # Extract the first word of "$ac_prog", so it can be a program name with args.
7672set dummy $ac_prog; ac_word=$2
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007673{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7674echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7675if test "${ac_cv_path_OCAMLC+set}" = set; then
7676 echo $ECHO_N "(cached) $ECHO_C" >&6
7677else
7678 case $OCAMLC in
7679 [\\/]* | ?:[\\/]*)
7680 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7681 ;;
7682 *)
7683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7684for as_dir in $PATH
7685do
7686 IFS=$as_save_IFS
7687 test -z "$as_dir" && as_dir=.
7688 for ac_exec_ext in '' $ac_executable_extensions; do
Torok Edwincc499a42008-10-22 09:56:27 +00007689 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 +00007690 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7691 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7692 break 2
7693 fi
7694done
7695done
7696IFS=$as_save_IFS
7697
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007698 ;;
7699esac
7700fi
7701OCAMLC=$ac_cv_path_OCAMLC
7702if test -n "$OCAMLC"; then
7703 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7704echo "${ECHO_T}$OCAMLC" >&6; }
7705else
7706 { echo "$as_me:$LINENO: result: no" >&5
7707echo "${ECHO_T}no" >&6; }
7708fi
7709
7710
Gordon Henriksene7072162008-03-07 18:20:01 +00007711 test -n "$OCAMLC" && break
7712done
7713
7714for ac_prog in ocamlopt.opt ocamlopt
7715do
7716 # Extract the first word of "$ac_prog", so it can be a program name with args.
7717set dummy $ac_prog; ac_word=$2
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007718{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7719echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7720if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7721 echo $ECHO_N "(cached) $ECHO_C" >&6
7722else
7723 case $OCAMLOPT in
7724 [\\/]* | ?:[\\/]*)
7725 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7726 ;;
7727 *)
7728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7729for as_dir in $PATH
7730do
7731 IFS=$as_save_IFS
7732 test -z "$as_dir" && as_dir=.
7733 for ac_exec_ext in '' $ac_executable_extensions; do
Torok Edwincc499a42008-10-22 09:56:27 +00007734 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 +00007735 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7736 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7737 break 2
7738 fi
7739done
7740done
7741IFS=$as_save_IFS
7742
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007743 ;;
7744esac
7745fi
7746OCAMLOPT=$ac_cv_path_OCAMLOPT
7747if test -n "$OCAMLOPT"; then
7748 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7749echo "${ECHO_T}$OCAMLOPT" >&6; }
7750else
7751 { echo "$as_me:$LINENO: result: no" >&5
7752echo "${ECHO_T}no" >&6; }
7753fi
7754
7755
Gordon Henriksene7072162008-03-07 18:20:01 +00007756 test -n "$OCAMLOPT" && break
7757done
7758
7759for ac_prog in ocamldep.opt ocamldep
7760do
7761 # Extract the first word of "$ac_prog", so it can be a program name with args.
7762set dummy $ac_prog; ac_word=$2
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007763{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7764echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7765if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7766 echo $ECHO_N "(cached) $ECHO_C" >&6
7767else
7768 case $OCAMLDEP in
7769 [\\/]* | ?:[\\/]*)
7770 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7771 ;;
7772 *)
7773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7774for as_dir in $PATH
7775do
7776 IFS=$as_save_IFS
7777 test -z "$as_dir" && as_dir=.
7778 for ac_exec_ext in '' $ac_executable_extensions; do
Torok Edwincc499a42008-10-22 09:56:27 +00007779 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 +00007780 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7781 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7782 break 2
7783 fi
7784done
7785done
7786IFS=$as_save_IFS
7787
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007788 ;;
7789esac
7790fi
7791OCAMLDEP=$ac_cv_path_OCAMLDEP
7792if test -n "$OCAMLDEP"; then
7793 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7794echo "${ECHO_T}$OCAMLDEP" >&6; }
7795else
7796 { echo "$as_me:$LINENO: result: no" >&5
7797echo "${ECHO_T}no" >&6; }
7798fi
7799
7800
Gordon Henriksene7072162008-03-07 18:20:01 +00007801 test -n "$OCAMLDEP" && break
7802done
7803
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007804for ac_prog in ocamldoc.opt ocamldoc
7805do
7806 # Extract the first word of "$ac_prog", so it can be a program name with args.
7807set dummy $ac_prog; ac_word=$2
7808{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7809echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7810if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7811 echo $ECHO_N "(cached) $ECHO_C" >&6
7812else
7813 case $OCAMLDOC in
7814 [\\/]* | ?:[\\/]*)
7815 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7816 ;;
7817 *)
7818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7819for as_dir in $PATH
7820do
7821 IFS=$as_save_IFS
7822 test -z "$as_dir" && as_dir=.
7823 for ac_exec_ext in '' $ac_executable_extensions; do
Torok Edwincc499a42008-10-22 09:56:27 +00007824 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 +00007825 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7826 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7827 break 2
7828 fi
7829done
7830done
7831IFS=$as_save_IFS
7832
7833 ;;
7834esac
7835fi
7836OCAMLDOC=$ac_cv_path_OCAMLDOC
7837if test -n "$OCAMLDOC"; then
7838 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7839echo "${ECHO_T}$OCAMLDOC" >&6; }
7840else
7841 { echo "$as_me:$LINENO: result: no" >&5
7842echo "${ECHO_T}no" >&6; }
7843fi
7844
7845
7846 test -n "$OCAMLDOC" && break
7847done
7848
Torok Edwincc499a42008-10-22 09:56:27 +00007849for ac_prog in gas as
7850do
7851 # Extract the first word of "$ac_prog", so it can be a program name with args.
7852set dummy $ac_prog; ac_word=$2
7853{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7854echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7855if test "${ac_cv_path_GAS+set}" = set; then
7856 echo $ECHO_N "(cached) $ECHO_C" >&6
7857else
7858 case $GAS in
7859 [\\/]* | ?:[\\/]*)
7860 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7861 ;;
7862 *)
7863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7864for as_dir in $PATH
7865do
7866 IFS=$as_save_IFS
7867 test -z "$as_dir" && as_dir=.
7868 for ac_exec_ext in '' $ac_executable_extensions; do
7869 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7870 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7871 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7872 break 2
7873 fi
7874done
7875done
7876IFS=$as_save_IFS
7877
7878 ;;
7879esac
7880fi
7881GAS=$ac_cv_path_GAS
7882if test -n "$GAS"; then
7883 { echo "$as_me:$LINENO: result: $GAS" >&5
7884echo "${ECHO_T}$GAS" >&6; }
7885else
7886 { echo "$as_me:$LINENO: result: no" >&5
7887echo "${ECHO_T}no" >&6; }
7888fi
7889
7890
7891 test -n "$GAS" && break
7892done
7893
Reid Spencera773bd52006-08-04 18:18:08 +00007894
7895{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7896echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7897if test "${llvm_cv_link_use_r+set}" = set; then
7898 echo $ECHO_N "(cached) $ECHO_C" >&6
7899else
7900 ac_ext=c
7901ac_cpp='$CPP $CPPFLAGS'
7902ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7903ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7904ac_compiler_gnu=$ac_cv_c_compiler_gnu
7905
7906 oldcflags="$CFLAGS"
7907 CFLAGS="$CFLAGS -Wl,-R."
7908 cat >conftest.$ac_ext <<_ACEOF
7909/* confdefs.h. */
7910_ACEOF
7911cat confdefs.h >>conftest.$ac_ext
7912cat >>conftest.$ac_ext <<_ACEOF
7913/* end confdefs.h. */
7914
7915int
7916main ()
7917{
7918int main() { return 0; }
7919 ;
7920 return 0;
7921}
7922_ACEOF
7923rm -f conftest.$ac_objext conftest$ac_exeext
7924if { (ac_try="$ac_link"
7925case "(($ac_try" in
7926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7927 *) ac_try_echo=$ac_try;;
7928esac
7929eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7930 (eval "$ac_link") 2>conftest.er1
7931 ac_status=$?
7932 grep -v '^ *+' conftest.er1 >conftest.err
7933 rm -f conftest.er1
7934 cat conftest.err >&5
7935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Torok Edwincc499a42008-10-22 09:56:27 +00007936 (exit $ac_status); } && {
7937 test -z "$ac_c_werror_flag" ||
7938 test ! -s conftest.err
7939 } && test -s conftest$ac_exeext &&
7940 $as_test_x conftest$ac_exeext; then
Reid Spencera773bd52006-08-04 18:18:08 +00007941 llvm_cv_link_use_r=yes
7942else
7943 echo "$as_me: failed program was:" >&5
7944sed 's/^/| /' conftest.$ac_ext >&5
7945
7946 llvm_cv_link_use_r=no
7947fi
7948
Torok Edwincc499a42008-10-22 09:56:27 +00007949rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencera773bd52006-08-04 18:18:08 +00007950 conftest$ac_exeext conftest.$ac_ext
7951 CFLAGS="$oldcflags"
7952 ac_ext=c
7953ac_cpp='$CPP $CPPFLAGS'
7954ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7955ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7956ac_compiler_gnu=$ac_cv_c_compiler_gnu
7957
7958
7959fi
7960{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7961echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7962if test "$llvm_cv_link_use_r" = yes ; then
7963
7964cat >>confdefs.h <<\_ACEOF
7965#define HAVE_LINK_R 1
7966_ACEOF
7967
7968 fi
7969
7970
7971
7972
7973{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7974echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
7975if test "${ac_cv_c_const+set}" = set; then
7976 echo $ECHO_N "(cached) $ECHO_C" >&6
7977else
7978 cat >conftest.$ac_ext <<_ACEOF
7979/* confdefs.h. */
7980_ACEOF
7981cat confdefs.h >>conftest.$ac_ext
7982cat >>conftest.$ac_ext <<_ACEOF
7983/* end confdefs.h. */
7984
7985int
7986main ()
7987{
7988/* FIXME: Include the comments suggested by Paul. */
7989#ifndef __cplusplus
7990 /* Ultrix mips cc rejects this. */
7991 typedef int charset[2];
Torok Edwincc499a42008-10-22 09:56:27 +00007992 const charset cs;
Reid Spencera773bd52006-08-04 18:18:08 +00007993 /* SunOS 4.1.1 cc rejects this. */
Torok Edwincc499a42008-10-22 09:56:27 +00007994 char const *const *pcpcc;
7995 char **ppc;
Reid Spencera773bd52006-08-04 18:18:08 +00007996 /* NEC SVR4.0.2 mips cc rejects this. */
7997 struct point {int x, y;};
7998 static struct point const zero = {0,0};
7999 /* AIX XL C 1.02.0.0 rejects this.
8000 It does not let you subtract one const X* pointer from another in
8001 an arm of an if-expression whose if-part is not a constant
8002 expression */
8003 const char *g = "string";
Torok Edwincc499a42008-10-22 09:56:27 +00008004 pcpcc = &g + (g ? g-g : 0);
Reid Spencera773bd52006-08-04 18:18:08 +00008005 /* HPUX 7.0 cc rejects these. */
Torok Edwincc499a42008-10-22 09:56:27 +00008006 ++pcpcc;
8007 ppc = (char**) pcpcc;
8008 pcpcc = (char const *const *) ppc;
Reid Spencera773bd52006-08-04 18:18:08 +00008009 { /* SCO 3.2v4 cc rejects this. */
8010 char *t;
8011 char const *s = 0 ? (char *) 0 : (char const *) 0;
8012
8013 *t++ = 0;
8014 if (s) return 0;
8015 }
8016 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8017 int x[] = {25, 17};
8018 const int *foo = &x[0];
8019 ++foo;
8020 }
8021 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8022 typedef const int *iptr;
8023 iptr p = 0;
8024 ++p;
8025 }
8026 { /* AIX XL C 1.02.0.0 rejects this saying
8027 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8028 struct s { int j; const int *ap[3]; };
8029 struct s *b; b->j = 5;
8030 }
8031 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8032 const int foo = 10;
8033 if (!foo) return 0;
8034 }
Torok Edwincc499a42008-10-22 09:56:27 +00008035 return !cs[0] && !zero.x;
Reid Spencera773bd52006-08-04 18:18:08 +00008036#endif
8037
8038 ;
8039 return 0;
8040}
8041_ACEOF
8042rm -f conftest.$ac_objext
8043if { (ac_try="$ac_compile"
8044case "(($ac_try" in
8045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8046 *) ac_try_echo=$ac_try;;
8047esac
8048eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8049 (eval "$ac_compile") 2>conftest.er1
8050 ac_status=$?
8051 grep -v '^ *+' conftest.er1 >conftest.err
8052 rm -f conftest.er1
8053 cat conftest.err >&5
8054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Torok Edwincc499a42008-10-22 09:56:27 +00008055 (exit $ac_status); } && {
8056 test -z "$ac_c_werror_flag" ||
8057 test ! -s conftest.err
8058 } && test -s conftest.$ac_objext; then
Reid Spencera773bd52006-08-04 18:18:08 +00008059 ac_cv_c_const=yes
8060else
8061 echo "$as_me: failed program was:" >&5
8062sed 's/^/| /' conftest.$ac_ext >&5
8063
8064 ac_cv_c_const=no
8065fi
8066
8067rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8068fi
8069{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8070echo "${ECHO_T}$ac_cv_c_const" >&6; }
8071if test $ac_cv_c_const = no; then
8072
8073cat >>confdefs.h <<\_ACEOF
8074#define const
8075_ACEOF
8076
8077fi
8078
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008079
8080
8081
8082
8083
8084ac_header_dirent=no
8085for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8086 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +00008087{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8088echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8089if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008090 echo $ECHO_N "(cached) $ECHO_C" >&6
8091else
8092 cat >conftest.$ac_ext <<_ACEOF
8093/* confdefs.h. */
8094_ACEOF
8095cat confdefs.h >>conftest.$ac_ext
8096cat >>conftest.$ac_ext <<_ACEOF
8097/* end confdefs.h. */
8098#include <sys/types.h>
8099#include <$ac_hdr>
8100
8101int
8102main ()
8103{
8104if ((DIR *) 0)
8105return 0;
8106 ;
8107 return 0;
8108}
8109_ACEOF
8110rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00008111if { (ac_try="$ac_compile"
8112case "(($ac_try" in
8113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8114 *) ac_try_echo=$ac_try;;
8115esac
8116eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8117 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008118 ac_status=$?
8119 grep -v '^ *+' conftest.er1 >conftest.err
8120 rm -f conftest.er1
8121 cat conftest.err >&5
8122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Torok Edwincc499a42008-10-22 09:56:27 +00008123 (exit $ac_status); } && {
8124 test -z "$ac_c_werror_flag" ||
8125 test ! -s conftest.err
8126 } && test -s conftest.$ac_objext; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008127 eval "$as_ac_Header=yes"
8128else
8129 echo "$as_me: failed program was:" >&5
8130sed 's/^/| /' conftest.$ac_ext >&5
8131
Reid Spencera773bd52006-08-04 18:18:08 +00008132 eval "$as_ac_Header=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008133fi
Reid Spencera773bd52006-08-04 18:18:08 +00008134
8135rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008136fi
Reid Spencera773bd52006-08-04 18:18:08 +00008137ac_res=`eval echo '${'$as_ac_Header'}'`
8138 { echo "$as_me:$LINENO: result: $ac_res" >&5
8139echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008140if test `eval echo '${'$as_ac_Header'}'` = yes; then
8141 cat >>confdefs.h <<_ACEOF
8142#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8143_ACEOF
8144
8145ac_header_dirent=$ac_hdr; break
8146fi
8147
8148done
8149# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8150if test $ac_header_dirent = dirent.h; then
Reid Spencera773bd52006-08-04 18:18:08 +00008151 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8152echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008153if test "${ac_cv_search_opendir+set}" = set; then
8154 echo $ECHO_N "(cached) $ECHO_C" >&6
8155else
8156 ac_func_search_save_LIBS=$LIBS
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008157cat >conftest.$ac_ext <<_ACEOF
8158/* confdefs.h. */
8159_ACEOF
8160cat confdefs.h >>conftest.$ac_ext
8161cat >>conftest.$ac_ext <<_ACEOF
8162/* end confdefs.h. */
8163
Reid Spencera773bd52006-08-04 18:18:08 +00008164/* Override any GCC internal prototype to avoid an error.
8165 Use char because int might match the return type of a GCC
8166 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008167#ifdef __cplusplus
8168extern "C"
8169#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008170char opendir ();
8171int
8172main ()
8173{
Reid Spencera773bd52006-08-04 18:18:08 +00008174return opendir ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008175 ;
8176 return 0;
8177}
8178_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008179for ac_lib in '' dir; do
8180 if test -z "$ac_lib"; then
8181 ac_res="none required"
8182 else
8183 ac_res=-l$ac_lib
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008184 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +00008185 fi
8186 rm -f conftest.$ac_objext conftest$ac_exeext
8187if { (ac_try="$ac_link"
8188case "(($ac_try" in
8189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8190 *) ac_try_echo=$ac_try;;
8191esac
8192eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8193 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008194 ac_status=$?
8195 grep -v '^ *+' conftest.er1 >conftest.err
8196 rm -f conftest.er1
8197 cat conftest.err >&5
8198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Torok Edwincc499a42008-10-22 09:56:27 +00008199 (exit $ac_status); } && {
8200 test -z "$ac_c_werror_flag" ||
8201 test ! -s conftest.err
8202 } && test -s conftest$ac_exeext &&
8203 $as_test_x conftest$ac_exeext; then
Reid Spencera773bd52006-08-04 18:18:08 +00008204 ac_cv_search_opendir=$ac_res
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008205else
8206 echo "$as_me: failed program was:" >&5
8207sed 's/^/| /' conftest.$ac_ext >&5
8208
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008209
8210fi
8211
Torok Edwincc499a42008-10-22 09:56:27 +00008212rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencera773bd52006-08-04 18:18:08 +00008213 conftest$ac_exeext
8214 if test "${ac_cv_search_opendir+set}" = set; then
8215 break
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008216fi
John Criswell7a73b802003-06-30 21:59:07 +00008217done
Reid Spencera773bd52006-08-04 18:18:08 +00008218if test "${ac_cv_search_opendir+set}" = set; then
8219 :
8220else
8221 ac_cv_search_opendir=no
8222fi
8223rm conftest.$ac_ext
8224LIBS=$ac_func_search_save_LIBS
8225fi
8226{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8227echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8228ac_res=$ac_cv_search_opendir
8229if test "$ac_res" != no; then
8230 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell7a73b802003-06-30 21:59:07 +00008231
Reid Spencera773bd52006-08-04 18:18:08 +00008232fi
8233
8234else
8235 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8236echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8237if test "${ac_cv_search_opendir+set}" = set; then
8238 echo $ECHO_N "(cached) $ECHO_C" >&6
8239else
8240 ac_func_search_save_LIBS=$LIBS
8241cat >conftest.$ac_ext <<_ACEOF
8242/* confdefs.h. */
8243_ACEOF
8244cat confdefs.h >>conftest.$ac_ext
8245cat >>conftest.$ac_ext <<_ACEOF
8246/* end confdefs.h. */
8247
8248/* Override any GCC internal prototype to avoid an error.
8249 Use char because int might match the return type of a GCC
8250 builtin and then its argument prototype would still apply. */
8251#ifdef __cplusplus
8252extern "C"
8253#endif
8254char opendir ();
8255int
8256main ()
8257{
8258return opendir ();
8259 ;
8260 return 0;
8261}
8262_ACEOF
8263for ac_lib in '' x; do
8264 if test -z "$ac_lib"; then
8265 ac_res="none required"
8266 else
8267 ac_res=-l$ac_lib
8268 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8269 fi
8270 rm -f conftest.$ac_objext conftest$ac_exeext
8271if { (ac_try="$ac_link"
8272case "(($ac_try" in
8273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8274 *) ac_try_echo=$ac_try;;
8275esac
8276eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8277 (eval "$ac_link") 2>conftest.er1
8278 ac_status=$?
8279 grep -v '^ *+' conftest.er1 >conftest.err
8280 rm -f conftest.er1
8281 cat conftest.err >&5
8282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Torok Edwincc499a42008-10-22 09:56:27 +00008283 (exit $ac_status); } && {
8284 test -z "$ac_c_werror_flag" ||
8285 test ! -s conftest.err
8286 } && test -s conftest$ac_exeext &&
8287 $as_test_x conftest$ac_exeext; then
Reid Spencera773bd52006-08-04 18:18:08 +00008288 ac_cv_search_opendir=$ac_res
8289else
8290 echo "$as_me: failed program was:" >&5
8291sed 's/^/| /' conftest.$ac_ext >&5
8292
8293
8294fi
8295
Torok Edwincc499a42008-10-22 09:56:27 +00008296rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencera773bd52006-08-04 18:18:08 +00008297 conftest$ac_exeext
8298 if test "${ac_cv_search_opendir+set}" = set; then
8299 break
8300fi
8301done
8302if test "${ac_cv_search_opendir+set}" = set; then
8303 :
8304else
8305 ac_cv_search_opendir=no
8306fi
8307rm conftest.$ac_ext
8308LIBS=$ac_func_search_save_LIBS
8309fi
8310{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8311echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8312ac_res=$ac_cv_search_opendir
8313if test "$ac_res" != no; then
8314 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8315
8316fi
8317
8318fi
John Criswell7a73b802003-06-30 21:59:07 +00008319
8320
8321for ac_header in dlfcn.h
8322do
8323as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +00008324if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8325 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8326echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8327if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +00008328 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke0a621332004-09-08 20:38:05 +00008329fi
Reid Spencera773bd52006-08-04 18:18:08 +00008330ac_res=`eval echo '${'$as_ac_Header'}'`
8331 { echo "$as_me:$LINENO: result: $ac_res" >&5
8332echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00008333else
Brian Gaeke0a621332004-09-08 20:38:05 +00008334 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +00008335{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8336echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008337cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00008338/* confdefs.h. */
8339_ACEOF
8340cat confdefs.h >>conftest.$ac_ext
8341cat >>conftest.$ac_ext <<_ACEOF
8342/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008343$ac_includes_default
8344#include <$ac_header>
8345_ACEOF
8346rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00008347if { (ac_try="$ac_compile"
8348case "(($ac_try" in
8349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8350 *) ac_try_echo=$ac_try;;
8351esac
8352eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8353 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00008354 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00008355 grep -v '^ *+' conftest.er1 >conftest.err
8356 rm -f conftest.er1
8357 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00008358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Torok Edwincc499a42008-10-22 09:56:27 +00008359 (exit $ac_status); } && {
8360 test -z "$ac_c_werror_flag" ||
8361 test ! -s conftest.err
8362 } && test -s conftest.$ac_objext; then
Brian Gaeke0a621332004-09-08 20:38:05 +00008363 ac_header_compiler=yes
John Criswell7a73b802003-06-30 21:59:07 +00008364else
8365 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008366sed 's/^/| /' conftest.$ac_ext >&5
8367
Reid Spencera773bd52006-08-04 18:18:08 +00008368 ac_header_compiler=no
John Criswell7a73b802003-06-30 21:59:07 +00008369fi
Reid Spencera773bd52006-08-04 18:18:08 +00008370
8371rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8372{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8373echo "${ECHO_T}$ac_header_compiler" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008374
8375# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +00008376{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8377echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008378cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +00008379/* confdefs.h. */
8380_ACEOF
8381cat confdefs.h >>conftest.$ac_ext
8382cat >>conftest.$ac_ext <<_ACEOF
8383/* end confdefs.h. */
8384#include <$ac_header>
8385_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008386if { (ac_try="$ac_cpp conftest.$ac_ext"
8387case "(($ac_try" in
8388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8389 *) ac_try_echo=$ac_try;;
8390esac
8391eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8392 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Brian Gaeke0a621332004-09-08 20:38:05 +00008393 ac_status=$?
8394 grep -v '^ *+' conftest.er1 >conftest.err
8395 rm -f conftest.er1
8396 cat conftest.err >&5
8397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Torok Edwincc499a42008-10-22 09:56:27 +00008398 (exit $ac_status); } >/dev/null && {
8399 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8400 test ! -s conftest.err
8401 }; then
Brian Gaeke0a621332004-09-08 20:38:05 +00008402 ac_header_preproc=yes
8403else
8404 echo "$as_me: failed program was:" >&5
8405sed 's/^/| /' conftest.$ac_ext >&5
8406
8407 ac_header_preproc=no
8408fi
Reid Spencera773bd52006-08-04 18:18:08 +00008409
Brian Gaeke0a621332004-09-08 20:38:05 +00008410rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +00008411{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8412echo "${ECHO_T}$ac_header_preproc" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008413
8414# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +00008415case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8416 yes:no: )
Brian Gaeke0a621332004-09-08 20:38:05 +00008417 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8418echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00008419 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8420echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8421 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +00008422 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +00008423 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +00008424 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8425echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00008426 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8427echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8428 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8429echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8430 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8431echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +00008432 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8433echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00008434 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8435echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00008436 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +00008437## ----------------------------------- ##
8438## Report this to llvmbugs@cs.uiuc.edu ##
8439## ----------------------------------- ##
Brian Gaeke0a621332004-09-08 20:38:05 +00008440_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00008441 ) | sed "s/^/$as_me: WARNING: /" >&2
Brian Gaeke0a621332004-09-08 20:38:05 +00008442 ;;
8443esac
Reid Spencera773bd52006-08-04 18:18:08 +00008444{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8445echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8446if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke0a621332004-09-08 20:38:05 +00008447 echo $ECHO_N "(cached) $ECHO_C" >&6
8448else
Reid Spencer2706f8c2004-09-19 23:53:36 +00008449 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +00008450fi
Reid Spencera773bd52006-08-04 18:18:08 +00008451ac_res=`eval echo '${'$as_ac_Header'}'`
8452 { echo "$as_me:$LINENO: result: $ac_res" >&5
8453echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008454
8455fi
John Criswell7a73b802003-06-30 21:59:07 +00008456if test `eval echo '${'$as_ac_Header'}'` = yes; then
8457 cat >>confdefs.h <<_ACEOF
8458#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8459_ACEOF
8460
8461fi
8462
8463done
8464
Reid Spencera773bd52006-08-04 18:18:08 +00008465# Check whether --enable-ltdl-install was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008466if test "${enable_ltdl_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008467 enableval=$enable_ltdl_install;
8468fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008469
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008470
Torok Edwincc499a42008-10-22 09:56:27 +00008471 if test x"${enable_ltdl_install-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008472 INSTALL_LTDL_TRUE=
8473 INSTALL_LTDL_FALSE='#'
8474else
8475 INSTALL_LTDL_TRUE='#'
8476 INSTALL_LTDL_FALSE=
8477fi
8478
Torok Edwincc499a42008-10-22 09:56:27 +00008479 if test x"${enable_ltdl_convenience-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008480 CONVENIENCE_LTDL_TRUE=
8481 CONVENIENCE_LTDL_FALSE='#'
8482else
8483 CONVENIENCE_LTDL_TRUE='#'
8484 CONVENIENCE_LTDL_FALSE=
8485fi
8486
8487
Reid Spencera773bd52006-08-04 18:18:08 +00008488{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8489echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008490library_names_spec=
8491libname_spec='lib$name'
8492soname_spec=
8493shrext_cmds=".so"
8494postinstall_cmds=
8495postuninstall_cmds=
8496finish_cmds=
8497finish_eval=
8498shlibpath_var=
8499shlibpath_overrides_runpath=unknown
8500version_type=none
8501dynamic_linker="$host_os ld.so"
8502sys_lib_dlsearch_path_spec="/lib /usr/lib"
8503if test "$GCC" = yes; then
8504 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8505 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8506 # if the path contains ";" then we assume it to be the separator
8507 # otherwise default to the standard path separator (i.e. ":") - it is
8508 # assumed that no part of a normal pathname contains ";" but that should
8509 # okay in the real world where ";" in dirpaths is itself problematic.
8510 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8511 else
8512 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8513 fi
8514else
8515 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8516fi
8517need_lib_prefix=unknown
8518hardcode_into_libs=no
8519
8520# when you set need_version to no, make sure it does not cause -set_version
8521# flags to be left without arguments
8522need_version=unknown
8523
8524case $host_os in
8525aix3*)
8526 version_type=linux
8527 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8528 shlibpath_var=LIBPATH
8529
8530 # AIX 3 has no versioning support, so we append a major version to the name.
8531 soname_spec='${libname}${release}${shared_ext}$major'
8532 ;;
8533
8534aix4* | aix5*)
8535 version_type=linux
8536 need_lib_prefix=no
8537 need_version=no
8538 hardcode_into_libs=yes
8539 if test "$host_cpu" = ia64; then
8540 # AIX 5 supports IA64
8541 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8542 shlibpath_var=LD_LIBRARY_PATH
8543 else
8544 # With GCC up to 2.95.x, collect2 would create an import file
8545 # for dependence libraries. The import file would start with
8546 # the line `#! .'. This would cause the generated library to
8547 # depend on `.', always an invalid library. This was fixed in
8548 # development snapshots of GCC prior to 3.0.
8549 case $host_os in
8550 aix4 | aix4.[01] | aix4.[01].*)
8551 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8552 echo ' yes '
8553 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8554 :
8555 else
8556 can_build_shared=no
8557 fi
8558 ;;
8559 esac
8560 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8561 # soname into executable. Probably we can add versioning support to
8562 # collect2, so additional links can be useful in future.
8563 if test "$aix_use_runtimelinking" = yes; then
8564 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8565 # instead of lib<name>.a to let people know that these are not
8566 # typical AIX shared libraries.
8567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8568 else
8569 # We preserve .a as extension for shared libraries through AIX4.2
8570 # and later when we are not doing run time linking.
8571 library_names_spec='${libname}${release}.a $libname.a'
8572 soname_spec='${libname}${release}${shared_ext}$major'
8573 fi
8574 shlibpath_var=LIBPATH
8575 fi
8576 ;;
8577
8578amigaos*)
8579 library_names_spec='$libname.ixlibrary $libname.a'
8580 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8581 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'
8582 ;;
8583
8584beos*)
8585 library_names_spec='${libname}${shared_ext}'
8586 dynamic_linker="$host_os ld.so"
8587 shlibpath_var=LIBRARY_PATH
8588 ;;
8589
8590bsdi[45]*)
8591 version_type=linux
8592 need_version=no
8593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8594 soname_spec='${libname}${release}${shared_ext}$major'
8595 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8596 shlibpath_var=LD_LIBRARY_PATH
8597 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8598 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8599 # the default ld.so.conf also contains /usr/contrib/lib and
8600 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8601 # libtool to hard-code these into programs
8602 ;;
8603
8604cygwin* | mingw* | pw32*)
8605 version_type=windows
8606 shrext_cmds=".dll"
8607 need_version=no
8608 need_lib_prefix=no
8609
8610 case $GCC,$host_os in
8611 yes,cygwin* | yes,mingw* | yes,pw32*)
8612 library_names_spec='$libname.dll.a'
8613 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8614 postinstall_cmds='base_file=`basename \${file}`~
8615 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8616 dldir=$destdir/`dirname \$dlpath`~
8617 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +00008618 $install_prog $dir/$dlname \$dldir/$dlname~
8619 chmod a+x \$dldir/$dlname'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008620 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8621 dlpath=$dir/\$dldll~
8622 $rm \$dlpath'
8623 shlibpath_overrides_runpath=yes
8624
8625 case $host_os in
8626 cygwin*)
8627 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8628 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8629 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8630 ;;
8631 mingw*)
8632 # MinGW DLLs use traditional 'lib' prefix
8633 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8634 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8635 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8636 # It is most probably a Windows format PATH printed by
8637 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8638 # path with ; separators, and with drive letters. We can handle the
8639 # drive letters (cygwin fileutils understands them), so leave them,
8640 # especially as we might pass files found there to a mingw objdump,
8641 # which wouldn't understand a cygwinified path. Ahh.
8642 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8643 else
8644 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8645 fi
8646 ;;
8647 pw32*)
8648 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +00008649 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 +00008650 ;;
8651 esac
8652 ;;
8653
8654 *)
8655 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8656 ;;
8657 esac
8658 dynamic_linker='Win32 ld.exe'
8659 # FIXME: first we should search . and the directory the executable is in
8660 shlibpath_var=PATH
8661 ;;
8662
8663darwin* | rhapsody*)
8664 dynamic_linker="$host_os dyld"
8665 version_type=darwin
8666 need_lib_prefix=no
8667 need_version=no
8668 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8669 soname_spec='${libname}${release}${major}$shared_ext'
8670 shlibpath_overrides_runpath=yes
8671 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +00008672 shrext_cmds='.dylib'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008673 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8674 if test "$GCC" = yes; then
8675 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"`
8676 else
8677 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8678 fi
8679 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8680 ;;
8681
8682dgux*)
8683 version_type=linux
8684 need_lib_prefix=no
8685 need_version=no
8686 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8687 soname_spec='${libname}${release}${shared_ext}$major'
8688 shlibpath_var=LD_LIBRARY_PATH
8689 ;;
8690
8691freebsd1*)
8692 dynamic_linker=no
8693 ;;
8694
8695kfreebsd*-gnu)
8696 version_type=linux
8697 need_lib_prefix=no
8698 need_version=no
8699 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8700 soname_spec='${libname}${release}${shared_ext}$major'
8701 shlibpath_var=LD_LIBRARY_PATH
8702 shlibpath_overrides_runpath=no
8703 hardcode_into_libs=yes
8704 dynamic_linker='GNU ld.so'
8705 ;;
8706
Reid Spencera773bd52006-08-04 18:18:08 +00008707freebsd* | dragonfly*)
8708 # DragonFly does not have aout. When/if they implement a new
8709 # versioning mechanism, adjust this.
8710 if test -x /usr/bin/objformat; then
8711 objformat=`/usr/bin/objformat`
8712 else
8713 case $host_os in
8714 freebsd[123]*) objformat=aout ;;
8715 *) objformat=elf ;;
8716 esac
8717 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008718 version_type=freebsd-$objformat
8719 case $version_type in
8720 freebsd-elf*)
8721 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8722 need_version=no
8723 need_lib_prefix=no
8724 ;;
8725 freebsd-*)
8726 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8727 need_version=yes
8728 ;;
8729 esac
8730 shlibpath_var=LD_LIBRARY_PATH
8731 case $host_os in
8732 freebsd2*)
8733 shlibpath_overrides_runpath=yes
8734 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008735 freebsd3.[01]* | freebsdelf3.[01]*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008736 shlibpath_overrides_runpath=yes
8737 hardcode_into_libs=yes
8738 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008739 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8740 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008741 shlibpath_overrides_runpath=no
8742 hardcode_into_libs=yes
8743 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008744 freebsd*) # from 4.6 on
8745 shlibpath_overrides_runpath=yes
8746 hardcode_into_libs=yes
8747 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008748 esac
8749 ;;
8750
8751gnu*)
8752 version_type=linux
8753 need_lib_prefix=no
8754 need_version=no
8755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8756 soname_spec='${libname}${release}${shared_ext}$major'
8757 shlibpath_var=LD_LIBRARY_PATH
8758 hardcode_into_libs=yes
8759 ;;
8760
8761hpux9* | hpux10* | hpux11*)
8762 # Give a soname corresponding to the major version so that dld.sl refuses to
8763 # link against other versions.
8764 version_type=sunos
8765 need_lib_prefix=no
8766 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +00008767 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008768 ia64*)
8769 shrext_cmds='.so'
8770 hardcode_into_libs=yes
8771 dynamic_linker="$host_os dld.so"
8772 shlibpath_var=LD_LIBRARY_PATH
8773 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8775 soname_spec='${libname}${release}${shared_ext}$major'
8776 if test "X$HPUX_IA64_MODE" = X32; then
8777 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8778 else
8779 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8780 fi
8781 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8782 ;;
8783 hppa*64*)
8784 shrext_cmds='.sl'
8785 hardcode_into_libs=yes
8786 dynamic_linker="$host_os dld.sl"
8787 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8788 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8790 soname_spec='${libname}${release}${shared_ext}$major'
8791 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8792 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8793 ;;
8794 *)
8795 shrext_cmds='.sl'
8796 dynamic_linker="$host_os dld.sl"
8797 shlibpath_var=SHLIB_PATH
8798 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8799 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8800 soname_spec='${libname}${release}${shared_ext}$major'
8801 ;;
8802 esac
8803 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8804 postinstall_cmds='chmod 555 $lib'
8805 ;;
8806
Reid Spencera773bd52006-08-04 18:18:08 +00008807interix3*)
8808 version_type=linux
8809 need_lib_prefix=no
8810 need_version=no
8811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8812 soname_spec='${libname}${release}${shared_ext}$major'
8813 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8814 shlibpath_var=LD_LIBRARY_PATH
8815 shlibpath_overrides_runpath=no
8816 hardcode_into_libs=yes
8817 ;;
8818
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008819irix5* | irix6* | nonstopux*)
8820 case $host_os in
8821 nonstopux*) version_type=nonstopux ;;
8822 *)
8823 if test "$lt_cv_prog_gnu_ld" = yes; then
8824 version_type=linux
8825 else
8826 version_type=irix
8827 fi ;;
8828 esac
8829 need_lib_prefix=no
8830 need_version=no
8831 soname_spec='${libname}${release}${shared_ext}$major'
8832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8833 case $host_os in
8834 irix5* | nonstopux*)
8835 libsuff= shlibsuff=
8836 ;;
8837 *)
8838 case $LD in # libtool.m4 will add one of these switches to LD
8839 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8840 libsuff= shlibsuff= libmagic=32-bit;;
8841 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8842 libsuff=32 shlibsuff=N32 libmagic=N32;;
8843 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8844 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8845 *) libsuff= shlibsuff= libmagic=never-match;;
8846 esac
8847 ;;
8848 esac
8849 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8850 shlibpath_overrides_runpath=no
8851 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8852 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8853 hardcode_into_libs=yes
8854 ;;
8855
8856# No shared lib support for Linux oldld, aout, or coff.
8857linux*oldld* | linux*aout* | linux*coff*)
8858 dynamic_linker=no
8859 ;;
8860
8861# This must be Linux ELF.
8862linux*)
8863 version_type=linux
8864 need_lib_prefix=no
8865 need_version=no
8866 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8867 soname_spec='${libname}${release}${shared_ext}$major'
8868 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8869 shlibpath_var=LD_LIBRARY_PATH
8870 shlibpath_overrides_runpath=no
8871 # This implies no fast_install, which is unacceptable.
8872 # Some rework will be needed to allow for fast_install
8873 # before this can be enabled.
8874 hardcode_into_libs=yes
8875
8876 # Append ld.so.conf contents to the search path
8877 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +00008878 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 +00008879 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8880 fi
8881
8882 # We used to test for /lib/ld.so.1 and disable shared libraries on
8883 # powerpc, because MkLinux only supported shared libraries with the
8884 # GNU dynamic linker. Since this was broken with cross compilers,
8885 # most powerpc-linux boxes support dynamic linking these days and
8886 # people can always --disable-shared, the test was removed, and we
8887 # assume the GNU/Linux dynamic linker is in use.
8888 dynamic_linker='GNU/Linux ld.so'
8889 ;;
8890
8891knetbsd*-gnu)
8892 version_type=linux
8893 need_lib_prefix=no
8894 need_version=no
8895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8896 soname_spec='${libname}${release}${shared_ext}$major'
8897 shlibpath_var=LD_LIBRARY_PATH
8898 shlibpath_overrides_runpath=no
8899 hardcode_into_libs=yes
8900 dynamic_linker='GNU ld.so'
8901 ;;
8902
8903netbsd*)
8904 version_type=sunos
8905 need_lib_prefix=no
8906 need_version=no
8907 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8909 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8910 dynamic_linker='NetBSD (a.out) ld.so'
8911 else
8912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8913 soname_spec='${libname}${release}${shared_ext}$major'
8914 dynamic_linker='NetBSD ld.elf_so'
8915 fi
8916 shlibpath_var=LD_LIBRARY_PATH
8917 shlibpath_overrides_runpath=yes
8918 hardcode_into_libs=yes
8919 ;;
8920
8921newsos6)
8922 version_type=linux
8923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8924 shlibpath_var=LD_LIBRARY_PATH
8925 shlibpath_overrides_runpath=yes
8926 ;;
8927
8928nto-qnx*)
8929 version_type=linux
8930 need_lib_prefix=no
8931 need_version=no
8932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8933 soname_spec='${libname}${release}${shared_ext}$major'
8934 shlibpath_var=LD_LIBRARY_PATH
8935 shlibpath_overrides_runpath=yes
8936 ;;
8937
8938openbsd*)
8939 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +00008940 sys_lib_dlsearch_path_spec="/usr/lib"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008941 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +00008942 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8943 case $host_os in
8944 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8945 *) need_version=no ;;
8946 esac
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8948 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8949 shlibpath_var=LD_LIBRARY_PATH
8950 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8951 case $host_os in
8952 openbsd2.[89] | openbsd2.[89].*)
8953 shlibpath_overrides_runpath=no
8954 ;;
8955 *)
8956 shlibpath_overrides_runpath=yes
8957 ;;
8958 esac
8959 else
8960 shlibpath_overrides_runpath=yes
8961 fi
8962 ;;
8963
8964os2*)
8965 libname_spec='$name'
8966 shrext_cmds=".dll"
8967 need_lib_prefix=no
8968 library_names_spec='$libname${shared_ext} $libname.a'
8969 dynamic_linker='OS/2 ld.exe'
8970 shlibpath_var=LIBPATH
8971 ;;
8972
8973osf3* | osf4* | osf5*)
8974 version_type=osf
8975 need_lib_prefix=no
8976 need_version=no
8977 soname_spec='${libname}${release}${shared_ext}$major'
8978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8979 shlibpath_var=LD_LIBRARY_PATH
8980 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8981 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8982 ;;
8983
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008984solaris*)
8985 version_type=linux
8986 need_lib_prefix=no
8987 need_version=no
8988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8989 soname_spec='${libname}${release}${shared_ext}$major'
8990 shlibpath_var=LD_LIBRARY_PATH
8991 shlibpath_overrides_runpath=yes
8992 hardcode_into_libs=yes
8993 # ldd complains unless libraries are executable
8994 postinstall_cmds='chmod +x $lib'
8995 ;;
8996
8997sunos4*)
8998 version_type=sunos
8999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9000 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9001 shlibpath_var=LD_LIBRARY_PATH
9002 shlibpath_overrides_runpath=yes
9003 if test "$with_gnu_ld" = yes; then
9004 need_lib_prefix=no
9005 fi
9006 need_version=yes
9007 ;;
9008
Reid Spencera773bd52006-08-04 18:18:08 +00009009sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009010 version_type=linux
9011 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9012 soname_spec='${libname}${release}${shared_ext}$major'
9013 shlibpath_var=LD_LIBRARY_PATH
9014 case $host_vendor in
9015 sni)
9016 shlibpath_overrides_runpath=no
9017 need_lib_prefix=no
9018 export_dynamic_flag_spec='${wl}-Blargedynsym'
9019 runpath_var=LD_RUN_PATH
9020 ;;
9021 siemens)
9022 need_lib_prefix=no
9023 ;;
9024 motorola)
9025 need_lib_prefix=no
9026 need_version=no
9027 shlibpath_overrides_runpath=no
9028 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9029 ;;
9030 esac
9031 ;;
9032
9033sysv4*MP*)
9034 if test -d /usr/nec ;then
9035 version_type=linux
9036 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9037 soname_spec='$libname${shared_ext}.$major'
9038 shlibpath_var=LD_LIBRARY_PATH
9039 fi
9040 ;;
9041
Reid Spencera773bd52006-08-04 18:18:08 +00009042sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9043 version_type=freebsd-elf
9044 need_lib_prefix=no
9045 need_version=no
9046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9047 soname_spec='${libname}${release}${shared_ext}$major'
9048 shlibpath_var=LD_LIBRARY_PATH
9049 hardcode_into_libs=yes
9050 if test "$with_gnu_ld" = yes; then
9051 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9052 shlibpath_overrides_runpath=no
9053 else
9054 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9055 shlibpath_overrides_runpath=yes
9056 case $host_os in
9057 sco3.2v5*)
9058 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9059 ;;
9060 esac
9061 fi
9062 sys_lib_dlsearch_path_spec='/usr/lib'
9063 ;;
9064
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009065uts4*)
9066 version_type=linux
9067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9068 soname_spec='${libname}${release}${shared_ext}$major'
9069 shlibpath_var=LD_LIBRARY_PATH
9070 ;;
9071
9072*)
9073 dynamic_linker=no
9074 ;;
9075esac
Reid Spencera773bd52006-08-04 18:18:08 +00009076{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9077echo "${ECHO_T}$dynamic_linker" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009078test "$dynamic_linker" = no && can_build_shared=no
9079
Reid Spencera773bd52006-08-04 18:18:08 +00009080variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9081if test "$GCC" = yes; then
9082 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9083fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009084
Reid Spencera773bd52006-08-04 18:18:08 +00009085
9086{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9087echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009088if test "${libltdl_cv_shlibext+set}" = set; then
9089 echo $ECHO_N "(cached) $ECHO_C" >&6
9090else
9091
9092module=yes
9093eval libltdl_cv_shlibext=$shrext_cmds
9094
9095fi
Reid Spencera773bd52006-08-04 18:18:08 +00009096{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9097echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009098if test -n "$libltdl_cv_shlibext"; then
9099
9100cat >>confdefs.h <<_ACEOF
9101#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9102_ACEOF
9103
9104fi
9105
9106
Reid Spencera773bd52006-08-04 18:18:08 +00009107{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9108echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009109if test "${libltdl_cv_shlibpath_var+set}" = set; then
9110 echo $ECHO_N "(cached) $ECHO_C" >&6
9111else
9112 libltdl_cv_shlibpath_var="$shlibpath_var"
9113fi
Reid Spencera773bd52006-08-04 18:18:08 +00009114{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9115echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009116if test -n "$libltdl_cv_shlibpath_var"; then
9117
9118cat >>confdefs.h <<_ACEOF
9119#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9120_ACEOF
9121
9122fi
9123
9124
Reid Spencera773bd52006-08-04 18:18:08 +00009125{ echo "$as_me:$LINENO: checking for the default library search path" >&5
9126echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009127if test "${libltdl_cv_sys_search_path+set}" = set; then
9128 echo $ECHO_N "(cached) $ECHO_C" >&6
9129else
9130 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9131fi
Reid Spencera773bd52006-08-04 18:18:08 +00009132{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9133echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009134if test -n "$libltdl_cv_sys_search_path"; then
9135 sys_search_path=
9136 for dir in $libltdl_cv_sys_search_path; do
9137 if test -z "$sys_search_path"; then
9138 sys_search_path="$dir"
9139 else
9140 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9141 fi
9142 done
9143
9144cat >>confdefs.h <<_ACEOF
9145#define LTDL_SYSSEARCHPATH "$sys_search_path"
9146_ACEOF
9147
9148fi
9149
Reid Spencera773bd52006-08-04 18:18:08 +00009150{ echo "$as_me:$LINENO: checking for objdir" >&5
9151echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009152if test "${libltdl_cv_objdir+set}" = set; then
9153 echo $ECHO_N "(cached) $ECHO_C" >&6
9154else
9155 libltdl_cv_objdir="$objdir"
9156 if test -n "$objdir"; then
9157 :
9158 else
9159 rm -f .libs 2>/dev/null
9160 mkdir .libs 2>/dev/null
9161 if test -d .libs; then
9162 libltdl_cv_objdir=.libs
9163 else
9164 # MS-DOS does not allow filenames that begin with a dot.
9165 libltdl_cv_objdir=_libs
9166 fi
9167 rmdir .libs 2>/dev/null
9168 fi
9169
9170fi
Reid Spencera773bd52006-08-04 18:18:08 +00009171{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9172echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009173
9174cat >>confdefs.h <<_ACEOF
9175#define LTDL_OBJDIR "$libltdl_cv_objdir/"
9176_ACEOF
9177
9178
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009179
9180
9181
9182
9183# Check for command to grab the raw symbol name followed by C symbol from nm.
Reid Spencera773bd52006-08-04 18:18:08 +00009184{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9185echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009186if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9187 echo $ECHO_N "(cached) $ECHO_C" >&6
9188else
9189
9190# These are sane defaults that work on at least a few old systems.
9191# [They come from Ultrix. What could be older than Ultrix?!! ;)]
9192
9193# Character class describing NM global symbol codes.
9194symcode='[BCDEGRST]'
9195
9196# Regexp to match symbols that can be accessed directly from C.
9197sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9198
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009199# Transform an extracted symbol line into a proper C declaration
9200lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9201
9202# Transform an extracted symbol line into symbol name and symbol address
9203lt_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'"
9204
9205# Define system-specific variables.
9206case $host_os in
9207aix*)
9208 symcode='[BCDT]'
9209 ;;
9210cygwin* | mingw* | pw32*)
9211 symcode='[ABCDGISTW]'
9212 ;;
9213hpux*) # Its linker distinguishes data from code symbols
9214 if test "$host_cpu" = ia64; then
9215 symcode='[ABCDEGRST]'
9216 fi
9217 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9218 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'"
9219 ;;
9220linux*)
9221 if test "$host_cpu" = ia64; then
9222 symcode='[ABCDGIRSTW]'
9223 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9224 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'"
9225 fi
9226 ;;
9227irix* | nonstopux*)
9228 symcode='[BCDEGRST]'
9229 ;;
9230osf*)
9231 symcode='[BCDEGQRST]'
9232 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009233solaris*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009234 symcode='[BDRT]'
9235 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009236sco3.2v5*)
9237 symcode='[DT]'
9238 ;;
9239sysv4.2uw2*)
9240 symcode='[DT]'
9241 ;;
9242sysv5* | sco5v6* | unixware* | OpenUNIX*)
9243 symcode='[ABDT]'
9244 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009245sysv4)
9246 symcode='[DFNSTU]'
9247 ;;
9248esac
9249
9250# Handle CRLF in mingw tool chain
9251opt_cr=
9252case $build_os in
9253mingw*)
9254 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9255 ;;
9256esac
9257
9258# If we're using GNU nm, then use its standard symbol codes.
9259case `$NM -V 2>&1` in
9260*GNU* | *'with BFD'*)
9261 symcode='[ABCDGIRSTW]' ;;
9262esac
9263
9264# Try without a prefix undercore, then with it.
9265for ac_symprfx in "" "_"; do
9266
Reid Spencera773bd52006-08-04 18:18:08 +00009267 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9268 symxfrm="\\1 $ac_symprfx\\2 \\2"
9269
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009270 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +00009271 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 +00009272
9273 # Check to see that the pipe works correctly.
9274 pipe_works=no
9275
9276 rm -f conftest*
9277 cat > conftest.$ac_ext <<EOF
9278#ifdef __cplusplus
9279extern "C" {
9280#endif
9281char nm_test_var;
9282void nm_test_func(){}
9283#ifdef __cplusplus
9284}
9285#endif
9286int main(){nm_test_var='a';nm_test_func();return(0);}
9287EOF
9288
9289 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9290 (eval $ac_compile) 2>&5
9291 ac_status=$?
9292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9293 (exit $ac_status); }; then
9294 # Now try to grab the symbols.
9295 nlist=conftest.nm
9296 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9297 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9298 ac_status=$?
9299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9300 (exit $ac_status); } && test -s "$nlist"; then
9301 # Try sorting and uniquifying the output.
9302 if sort "$nlist" | uniq > "$nlist"T; then
9303 mv -f "$nlist"T "$nlist"
9304 else
9305 rm -f "$nlist"T
9306 fi
9307
9308 # Make sure that we snagged all the symbols we need.
9309 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9310 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9311 cat <<EOF > conftest.$ac_ext
9312#ifdef __cplusplus
9313extern "C" {
9314#endif
9315
9316EOF
9317 # Now generate the symbol file.
9318 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9319
9320 cat <<EOF >> conftest.$ac_ext
9321#if defined (__STDC__) && __STDC__
9322# define lt_ptr_t void *
9323#else
9324# define lt_ptr_t char *
9325# define const
9326#endif
9327
9328/* The mapping between symbol names and symbols. */
9329const struct {
9330 const char *name;
9331 lt_ptr_t address;
9332}
9333lt_preloaded_symbols[] =
9334{
9335EOF
9336 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9337 cat <<\EOF >> conftest.$ac_ext
9338 {0, (lt_ptr_t) 0}
9339};
9340
9341#ifdef __cplusplus
9342}
9343#endif
9344EOF
9345 # Now try linking the two files.
9346 mv conftest.$ac_objext conftstm.$ac_objext
9347 lt_save_LIBS="$LIBS"
9348 lt_save_CFLAGS="$CFLAGS"
9349 LIBS="conftstm.$ac_objext"
9350 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9351 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9352 (eval $ac_link) 2>&5
9353 ac_status=$?
9354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9355 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9356 pipe_works=yes
9357 fi
9358 LIBS="$lt_save_LIBS"
9359 CFLAGS="$lt_save_CFLAGS"
9360 else
9361 echo "cannot find nm_test_func in $nlist" >&5
9362 fi
9363 else
9364 echo "cannot find nm_test_var in $nlist" >&5
9365 fi
9366 else
9367 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9368 fi
9369 else
9370 echo "$progname: failed program was:" >&5
9371 cat conftest.$ac_ext >&5
9372 fi
9373 rm -f conftest* conftst*
9374
9375 # Do not use the global_symbol_pipe unless it works.
9376 if test "$pipe_works" = yes; then
9377 break
9378 else
9379 lt_cv_sys_global_symbol_pipe=
9380 fi
9381done
9382
9383fi
9384
9385if test -z "$lt_cv_sys_global_symbol_pipe"; then
9386 lt_cv_sys_global_symbol_to_cdecl=
9387fi
9388if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Reid Spencera773bd52006-08-04 18:18:08 +00009389 { echo "$as_me:$LINENO: result: failed" >&5
9390echo "${ECHO_T}failed" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009391else
Reid Spencera773bd52006-08-04 18:18:08 +00009392 { echo "$as_me:$LINENO: result: ok" >&5
9393echo "${ECHO_T}ok" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009394fi
9395
9396
Reid Spencera773bd52006-08-04 18:18:08 +00009397{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9398echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009399if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9400 echo $ECHO_N "(cached) $ECHO_C" >&6
9401else
9402 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9403 libltdl_cv_preloaded_symbols=yes
9404 else
9405 libltdl_cv_preloaded_symbols=no
9406 fi
9407
9408fi
Reid Spencera773bd52006-08-04 18:18:08 +00009409{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9410echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009411if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9412
9413cat >>confdefs.h <<\_ACEOF
9414#define HAVE_PRELOADED_SYMBOLS 1
9415_ACEOF
9416
9417fi
9418
9419LIBADD_DL=
9420
9421ac_ext=c
9422ac_cpp='$CPP $CPPFLAGS'
9423ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9424ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9425ac_compiler_gnu=$ac_cv_c_compiler_gnu
9426
9427
Reid Spencera773bd52006-08-04 18:18:08 +00009428{ echo "$as_me:$LINENO: checking for shl_load" >&5
9429echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009430if test "${ac_cv_func_shl_load+set}" = set; then
9431 echo $ECHO_N "(cached) $ECHO_C" >&6
9432else
9433 cat >conftest.$ac_ext <<_ACEOF
9434/* confdefs.h. */
9435_ACEOF
9436cat confdefs.h >>conftest.$ac_ext
9437cat >>conftest.$ac_ext <<_ACEOF
9438/* end confdefs.h. */
9439/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9440 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9441#define shl_load innocuous_shl_load
9442
9443/* System header to define __stub macros and hopefully few prototypes,
9444 which can conflict with char shl_load (); below.
9445 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9446 <limits.h> exists even on freestanding compilers. */
9447
9448#ifdef __STDC__
9449# include <limits.h>
9450#else
9451# include <assert.h>
9452#endif
9453
9454#undef shl_load
9455
Reid Spencera773bd52006-08-04 18:18:08 +00009456/* Override any GCC internal prototype to avoid an error.
9457 Use char because int might match the return type of a GCC
9458 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009459#ifdef __cplusplus
9460extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009461#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009462char shl_load ();
9463/* The GNU C library defines this for functions which it implements
9464 to always fail with ENOSYS. Some functions are actually named
9465 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +00009466#if defined __stub_shl_load || defined __stub___shl_load
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009467choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009468#endif
9469
9470int
9471main ()
9472{
Reid Spencera773bd52006-08-04 18:18:08 +00009473return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009474 ;
9475 return 0;
9476}
9477_ACEOF
9478rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009479if { (ac_try="$ac_link"
9480case "(($ac_try" in
9481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9482 *) ac_try_echo=$ac_try;;
9483esac
9484eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9485 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009486 ac_status=$?
9487 grep -v '^ *+' conftest.er1 >conftest.err
9488 rm -f conftest.er1
9489 cat conftest.err >&5
9490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Torok Edwincc499a42008-10-22 09:56:27 +00009491 (exit $ac_status); } && {
9492 test -z "$ac_c_werror_flag" ||
9493 test ! -s conftest.err
9494 } && test -s conftest$ac_exeext &&
9495 $as_test_x conftest$ac_exeext; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009496 ac_cv_func_shl_load=yes
9497else
9498 echo "$as_me: failed program was:" >&5
9499sed 's/^/| /' conftest.$ac_ext >&5
9500
Reid Spencera773bd52006-08-04 18:18:08 +00009501 ac_cv_func_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009502fi
Reid Spencera773bd52006-08-04 18:18:08 +00009503
Torok Edwincc499a42008-10-22 09:56:27 +00009504rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009505 conftest$ac_exeext conftest.$ac_ext
9506fi
Reid Spencera773bd52006-08-04 18:18:08 +00009507{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9508echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009509if test $ac_cv_func_shl_load = yes; then
9510
9511cat >>confdefs.h <<\_ACEOF
9512#define HAVE_SHL_LOAD 1
9513_ACEOF
9514
9515else
Reid Spencera773bd52006-08-04 18:18:08 +00009516 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9517echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009518if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9519 echo $ECHO_N "(cached) $ECHO_C" >&6
9520else
9521 ac_check_lib_save_LIBS=$LIBS
9522LIBS="-ldld $LIBS"
9523cat >conftest.$ac_ext <<_ACEOF
9524/* confdefs.h. */
9525_ACEOF
9526cat confdefs.h >>conftest.$ac_ext
9527cat >>conftest.$ac_ext <<_ACEOF
9528/* end confdefs.h. */
9529
Reid Spencera773bd52006-08-04 18:18:08 +00009530/* Override any GCC internal prototype to avoid an error.
9531 Use char because int might match the return type of a GCC
9532 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009533#ifdef __cplusplus
9534extern "C"
9535#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009536char shl_load ();
9537int
9538main ()
9539{
Reid Spencera773bd52006-08-04 18:18:08 +00009540return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009541 ;
9542 return 0;
9543}
9544_ACEOF
9545rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009546if { (ac_try="$ac_link"
9547case "(($ac_try" in
9548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9549 *) ac_try_echo=$ac_try;;
9550esac
9551eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9552 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009553 ac_status=$?
9554 grep -v '^ *+' conftest.er1 >conftest.err
9555 rm -f conftest.er1
9556 cat conftest.err >&5
9557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Torok Edwincc499a42008-10-22 09:56:27 +00009558 (exit $ac_status); } && {
9559 test -z "$ac_c_werror_flag" ||
9560 test ! -s conftest.err
9561 } && test -s conftest$ac_exeext &&
9562 $as_test_x conftest$ac_exeext; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009563 ac_cv_lib_dld_shl_load=yes
9564else
9565 echo "$as_me: failed program was:" >&5
9566sed 's/^/| /' conftest.$ac_ext >&5
9567
Reid Spencera773bd52006-08-04 18:18:08 +00009568 ac_cv_lib_dld_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009569fi
Reid Spencera773bd52006-08-04 18:18:08 +00009570
Torok Edwincc499a42008-10-22 09:56:27 +00009571rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009572 conftest$ac_exeext conftest.$ac_ext
9573LIBS=$ac_check_lib_save_LIBS
9574fi
Reid Spencera773bd52006-08-04 18:18:08 +00009575{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9576echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009577if test $ac_cv_lib_dld_shl_load = yes; then
9578
9579cat >>confdefs.h <<\_ACEOF
9580#define HAVE_SHL_LOAD 1
9581_ACEOF
9582
9583 LIBADD_DL="$LIBADD_DL -ldld"
9584else
Reid Spencera773bd52006-08-04 18:18:08 +00009585 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9586echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009587if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9588 echo $ECHO_N "(cached) $ECHO_C" >&6
9589else
9590 ac_check_lib_save_LIBS=$LIBS
9591LIBS="-ldl $LIBS"
9592cat >conftest.$ac_ext <<_ACEOF
9593/* confdefs.h. */
9594_ACEOF
9595cat confdefs.h >>conftest.$ac_ext
9596cat >>conftest.$ac_ext <<_ACEOF
9597/* end confdefs.h. */
9598
Reid Spencera773bd52006-08-04 18:18:08 +00009599/* Override any GCC internal prototype to avoid an error.
9600 Use char because int might match the return type of a GCC
9601 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009602#ifdef __cplusplus
9603extern "C"
9604#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009605char dlopen ();
9606int
9607main ()
9608{
Reid Spencera773bd52006-08-04 18:18:08 +00009609return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009610 ;
9611 return 0;
9612}
9613_ACEOF
9614rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009615if { (ac_try="$ac_link"
9616case "(($ac_try" in
9617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9618 *) ac_try_echo=$ac_try;;
9619esac
9620eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9621 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009622 ac_status=$?
9623 grep -v '^ *+' conftest.er1 >conftest.err
9624 rm -f conftest.er1
9625 cat conftest.err >&5
9626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Torok Edwincc499a42008-10-22 09:56:27 +00009627 (exit $ac_status); } && {
9628 test -z "$ac_c_werror_flag" ||
9629 test ! -s conftest.err
9630 } && test -s conftest$ac_exeext &&
9631 $as_test_x conftest$ac_exeext; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009632 ac_cv_lib_dl_dlopen=yes
9633else
9634 echo "$as_me: failed program was:" >&5
9635sed 's/^/| /' conftest.$ac_ext >&5
9636
Reid Spencera773bd52006-08-04 18:18:08 +00009637 ac_cv_lib_dl_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009638fi
Reid Spencera773bd52006-08-04 18:18:08 +00009639
Torok Edwincc499a42008-10-22 09:56:27 +00009640rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009641 conftest$ac_exeext conftest.$ac_ext
9642LIBS=$ac_check_lib_save_LIBS
9643fi
Reid Spencera773bd52006-08-04 18:18:08 +00009644{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9645echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009646if test $ac_cv_lib_dl_dlopen = yes; then
9647
9648cat >>confdefs.h <<\_ACEOF
9649#define HAVE_LIBDL 1
9650_ACEOF
9651
9652 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9653else
9654 cat >conftest.$ac_ext <<_ACEOF
9655/* confdefs.h. */
9656_ACEOF
9657cat confdefs.h >>conftest.$ac_ext
9658cat >>conftest.$ac_ext <<_ACEOF
9659/* end confdefs.h. */
9660#if HAVE_DLFCN_H
9661# include <dlfcn.h>
9662#endif
9663
9664int
9665main ()
9666{
9667dlopen(0, 0);
9668 ;
9669 return 0;
9670}
9671_ACEOF
9672rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009673if { (ac_try="$ac_link"
9674case "(($ac_try" in
9675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9676 *) ac_try_echo=$ac_try;;
9677esac
9678eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9679 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009680 ac_status=$?
9681 grep -v '^ *+' conftest.er1 >conftest.err
9682 rm -f conftest.er1
9683 cat conftest.err >&5
9684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Torok Edwincc499a42008-10-22 09:56:27 +00009685 (exit $ac_status); } && {
9686 test -z "$ac_c_werror_flag" ||
9687 test ! -s conftest.err
9688 } && test -s conftest$ac_exeext &&
9689 $as_test_x conftest$ac_exeext; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009690
9691cat >>confdefs.h <<\_ACEOF
9692#define HAVE_LIBDL 1
9693_ACEOF
9694 libltdl_cv_func_dlopen="yes"
9695else
9696 echo "$as_me: failed program was:" >&5
9697sed 's/^/| /' conftest.$ac_ext >&5
9698
Reid Spencera773bd52006-08-04 18:18:08 +00009699 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9700echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009701if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9702 echo $ECHO_N "(cached) $ECHO_C" >&6
9703else
9704 ac_check_lib_save_LIBS=$LIBS
9705LIBS="-lsvld $LIBS"
9706cat >conftest.$ac_ext <<_ACEOF
9707/* confdefs.h. */
9708_ACEOF
9709cat confdefs.h >>conftest.$ac_ext
9710cat >>conftest.$ac_ext <<_ACEOF
9711/* end confdefs.h. */
9712
Reid Spencera773bd52006-08-04 18:18:08 +00009713/* Override any GCC internal prototype to avoid an error.
9714 Use char because int might match the return type of a GCC
9715 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009716#ifdef __cplusplus
9717extern "C"
9718#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009719char dlopen ();
9720int
9721main ()
9722{
Reid Spencera773bd52006-08-04 18:18:08 +00009723return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009724 ;
9725 return 0;
9726}
9727_ACEOF
9728rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009729if { (ac_try="$ac_link"
9730case "(($ac_try" in
9731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9732 *) ac_try_echo=$ac_try;;
9733esac
9734eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9735 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009736 ac_status=$?
9737 grep -v '^ *+' conftest.er1 >conftest.err
9738 rm -f conftest.er1
9739 cat conftest.err >&5
9740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Torok Edwincc499a42008-10-22 09:56:27 +00009741 (exit $ac_status); } && {
9742 test -z "$ac_c_werror_flag" ||
9743 test ! -s conftest.err
9744 } && test -s conftest$ac_exeext &&
9745 $as_test_x conftest$ac_exeext; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009746 ac_cv_lib_svld_dlopen=yes
9747else
9748 echo "$as_me: failed program was:" >&5
9749sed 's/^/| /' conftest.$ac_ext >&5
9750
Reid Spencera773bd52006-08-04 18:18:08 +00009751 ac_cv_lib_svld_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009752fi
Reid Spencera773bd52006-08-04 18:18:08 +00009753
Torok Edwincc499a42008-10-22 09:56:27 +00009754rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009755 conftest$ac_exeext conftest.$ac_ext
9756LIBS=$ac_check_lib_save_LIBS
9757fi
Reid Spencera773bd52006-08-04 18:18:08 +00009758{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9759echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009760if test $ac_cv_lib_svld_dlopen = yes; then
9761
9762cat >>confdefs.h <<\_ACEOF
9763#define HAVE_LIBDL 1
9764_ACEOF
9765
9766 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
9767else
Reid Spencera773bd52006-08-04 18:18:08 +00009768 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9769echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009770if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9771 echo $ECHO_N "(cached) $ECHO_C" >&6
9772else
9773 ac_check_lib_save_LIBS=$LIBS
9774LIBS="-ldld $LIBS"
9775cat >conftest.$ac_ext <<_ACEOF
9776/* confdefs.h. */
9777_ACEOF
9778cat confdefs.h >>conftest.$ac_ext
9779cat >>conftest.$ac_ext <<_ACEOF
9780/* end confdefs.h. */
9781
Reid Spencera773bd52006-08-04 18:18:08 +00009782/* Override any GCC internal prototype to avoid an error.
9783 Use char because int might match the return type of a GCC
9784 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009785#ifdef __cplusplus
9786extern "C"
9787#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009788char dld_link ();
9789int
9790main ()
9791{
Reid Spencera773bd52006-08-04 18:18:08 +00009792return dld_link ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009793 ;
9794 return 0;
9795}
9796_ACEOF
9797rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009798if { (ac_try="$ac_link"
9799case "(($ac_try" in
9800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9801 *) ac_try_echo=$ac_try;;
9802esac
9803eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9804 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009805 ac_status=$?
9806 grep -v '^ *+' conftest.er1 >conftest.err
9807 rm -f conftest.er1
9808 cat conftest.err >&5
9809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Torok Edwincc499a42008-10-22 09:56:27 +00009810 (exit $ac_status); } && {
9811 test -z "$ac_c_werror_flag" ||
9812 test ! -s conftest.err
9813 } && test -s conftest$ac_exeext &&
9814 $as_test_x conftest$ac_exeext; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009815 ac_cv_lib_dld_dld_link=yes
9816else
9817 echo "$as_me: failed program was:" >&5
9818sed 's/^/| /' conftest.$ac_ext >&5
9819
Reid Spencera773bd52006-08-04 18:18:08 +00009820 ac_cv_lib_dld_dld_link=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009821fi
Reid Spencera773bd52006-08-04 18:18:08 +00009822
Torok Edwincc499a42008-10-22 09:56:27 +00009823rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009824 conftest$ac_exeext conftest.$ac_ext
9825LIBS=$ac_check_lib_save_LIBS
9826fi
Reid Spencera773bd52006-08-04 18:18:08 +00009827{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9828echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009829if test $ac_cv_lib_dld_dld_link = yes; then
9830
9831cat >>confdefs.h <<\_ACEOF
9832#define HAVE_DLD 1
9833_ACEOF
9834
9835 LIBADD_DL="$LIBADD_DL -ldld"
9836else
Reid Spencera773bd52006-08-04 18:18:08 +00009837 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
9838echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009839if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
9840 echo $ECHO_N "(cached) $ECHO_C" >&6
9841else
9842 cat >conftest.$ac_ext <<_ACEOF
9843/* confdefs.h. */
9844_ACEOF
9845cat confdefs.h >>conftest.$ac_ext
9846cat >>conftest.$ac_ext <<_ACEOF
9847/* end confdefs.h. */
9848/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
9849 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9850#define _dyld_func_lookup innocuous__dyld_func_lookup
9851
9852/* System header to define __stub macros and hopefully few prototypes,
9853 which can conflict with char _dyld_func_lookup (); below.
9854 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9855 <limits.h> exists even on freestanding compilers. */
9856
9857#ifdef __STDC__
9858# include <limits.h>
9859#else
9860# include <assert.h>
9861#endif
9862
9863#undef _dyld_func_lookup
9864
Reid Spencera773bd52006-08-04 18:18:08 +00009865/* Override any GCC internal prototype to avoid an error.
9866 Use char because int might match the return type of a GCC
9867 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009868#ifdef __cplusplus
9869extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009870#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009871char _dyld_func_lookup ();
9872/* The GNU C library defines this for functions which it implements
9873 to always fail with ENOSYS. Some functions are actually named
9874 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +00009875#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009876choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009877#endif
9878
9879int
9880main ()
9881{
Reid Spencera773bd52006-08-04 18:18:08 +00009882return _dyld_func_lookup ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009883 ;
9884 return 0;
9885}
9886_ACEOF
9887rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009888if { (ac_try="$ac_link"
9889case "(($ac_try" in
9890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9891 *) ac_try_echo=$ac_try;;
9892esac
9893eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9894 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009895 ac_status=$?
9896 grep -v '^ *+' conftest.er1 >conftest.err
9897 rm -f conftest.er1
9898 cat conftest.err >&5
9899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Torok Edwincc499a42008-10-22 09:56:27 +00009900 (exit $ac_status); } && {
9901 test -z "$ac_c_werror_flag" ||
9902 test ! -s conftest.err
9903 } && test -s conftest$ac_exeext &&
9904 $as_test_x conftest$ac_exeext; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009905 ac_cv_func__dyld_func_lookup=yes
9906else
9907 echo "$as_me: failed program was:" >&5
9908sed 's/^/| /' conftest.$ac_ext >&5
9909
Reid Spencera773bd52006-08-04 18:18:08 +00009910 ac_cv_func__dyld_func_lookup=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009911fi
Reid Spencera773bd52006-08-04 18:18:08 +00009912
Torok Edwincc499a42008-10-22 09:56:27 +00009913rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009914 conftest$ac_exeext conftest.$ac_ext
9915fi
Reid Spencera773bd52006-08-04 18:18:08 +00009916{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
9917echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009918if test $ac_cv_func__dyld_func_lookup = yes; then
9919
9920cat >>confdefs.h <<\_ACEOF
9921#define HAVE_DYLD 1
9922_ACEOF
9923
9924fi
9925
9926
9927fi
9928
9929
9930fi
9931
9932
9933fi
Reid Spencera773bd52006-08-04 18:18:08 +00009934
Torok Edwincc499a42008-10-22 09:56:27 +00009935rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009936 conftest$ac_exeext conftest.$ac_ext
9937
9938fi
9939
9940
9941fi
9942
9943
9944fi
9945
9946
9947if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
9948then
9949 lt_save_LIBS="$LIBS"
9950 LIBS="$LIBS $LIBADD_DL"
9951
9952for ac_func in dlerror
9953do
9954as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +00009955{ echo "$as_me:$LINENO: checking for $ac_func" >&5
9956echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9957if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009958 echo $ECHO_N "(cached) $ECHO_C" >&6
9959else
9960 cat >conftest.$ac_ext <<_ACEOF
9961/* confdefs.h. */
9962_ACEOF
9963cat confdefs.h >>conftest.$ac_ext
9964cat >>conftest.$ac_ext <<_ACEOF
9965/* end confdefs.h. */
9966/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9967 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9968#define $ac_func innocuous_$ac_func
9969
9970/* System header to define __stub macros and hopefully few prototypes,
9971 which can conflict with char $ac_func (); below.
9972 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9973 <limits.h> exists even on freestanding compilers. */
9974
9975#ifdef __STDC__
9976# include <limits.h>
9977#else
9978# include <assert.h>
9979#endif
9980
9981#undef $ac_func
9982
Reid Spencera773bd52006-08-04 18:18:08 +00009983/* Override any GCC internal prototype to avoid an error.
9984 Use char because int might match the return type of a GCC
9985 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009986#ifdef __cplusplus
9987extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009988#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009989char $ac_func ();
9990/* The GNU C library defines this for functions which it implements
9991 to always fail with ENOSYS. Some functions are actually named
9992 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +00009993#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009994choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009995#endif
9996
9997int
9998main ()
9999{
Reid Spencera773bd52006-08-04 18:18:08 +000010000return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010001 ;
10002 return 0;
10003}
10004_ACEOF
10005rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010006if { (ac_try="$ac_link"
10007case "(($ac_try" in
10008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10009 *) ac_try_echo=$ac_try;;
10010esac
10011eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10012 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010013 ac_status=$?
10014 grep -v '^ *+' conftest.er1 >conftest.err
10015 rm -f conftest.er1
10016 cat conftest.err >&5
10017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Torok Edwincc499a42008-10-22 09:56:27 +000010018 (exit $ac_status); } && {
10019 test -z "$ac_c_werror_flag" ||
10020 test ! -s conftest.err
10021 } && test -s conftest$ac_exeext &&
10022 $as_test_x conftest$ac_exeext; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010023 eval "$as_ac_var=yes"
10024else
10025 echo "$as_me: failed program was:" >&5
10026sed 's/^/| /' conftest.$ac_ext >&5
10027
Reid Spencera773bd52006-08-04 18:18:08 +000010028 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010029fi
Reid Spencera773bd52006-08-04 18:18:08 +000010030
Torok Edwincc499a42008-10-22 09:56:27 +000010031rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010032 conftest$ac_exeext conftest.$ac_ext
10033fi
Reid Spencera773bd52006-08-04 18:18:08 +000010034ac_res=`eval echo '${'$as_ac_var'}'`
10035 { echo "$as_me:$LINENO: result: $ac_res" >&5
10036echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010037if test `eval echo '${'$as_ac_var'}'` = yes; then
10038 cat >>confdefs.h <<_ACEOF
10039#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10040_ACEOF
10041
10042fi
10043done
10044
10045 LIBS="$lt_save_LIBS"
10046fi
10047ac_ext=c
10048ac_cpp='$CPP $CPPFLAGS'
10049ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10050ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10051ac_compiler_gnu=$ac_cv_c_compiler_gnu
10052
10053
10054
Reid Spencera773bd52006-08-04 18:18:08 +000010055{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10056echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010057if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10058 echo $ECHO_N "(cached) $ECHO_C" >&6
10059else
10060 ac_cv_sys_symbol_underscore=no
10061 cat > conftest.$ac_ext <<EOF
10062void nm_test_func(){}
10063int main(){nm_test_func;return 0;}
10064EOF
10065 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10066 (eval $ac_compile) 2>&5
10067 ac_status=$?
10068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10069 (exit $ac_status); }; then
10070 # Now try to grab the symbols.
10071 ac_nlist=conftest.nm
10072 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10073 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10074 ac_status=$?
10075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10076 (exit $ac_status); } && test -s "$ac_nlist"; then
10077 # See whether the symbols have a leading underscore.
10078 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10079 ac_cv_sys_symbol_underscore=yes
10080 else
10081 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10082 :
10083 else
10084 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10085 fi
10086 fi
10087 else
10088 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10089 fi
10090 else
10091 echo "configure: failed program was:" >&5
10092 cat conftest.c >&5
10093 fi
10094 rm -rf conftest*
10095
10096fi
Reid Spencera773bd52006-08-04 18:18:08 +000010097{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10098echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010099
10100
10101if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10102 if test x"$libltdl_cv_func_dlopen" = xyes ||
10103 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
Reid Spencera773bd52006-08-04 18:18:08 +000010104 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10105echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010106if test "${libltdl_cv_need_uscore+set}" = set; then
10107 echo $ECHO_N "(cached) $ECHO_C" >&6
10108else
10109 libltdl_cv_need_uscore=unknown
10110 save_LIBS="$LIBS"
10111 LIBS="$LIBS $LIBADD_DL"
10112 if test "$cross_compiling" = yes; then :
10113 libltdl_cv_need_uscore=cross
10114else
10115 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10116 lt_status=$lt_dlunknown
10117 cat > conftest.$ac_ext <<EOF
Torok Edwincc499a42008-10-22 09:56:27 +000010118#line 10118 "configure"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010119#include "confdefs.h"
10120
10121#if HAVE_DLFCN_H
10122#include <dlfcn.h>
10123#endif
10124
10125#include <stdio.h>
10126
10127#ifdef RTLD_GLOBAL
10128# define LT_DLGLOBAL RTLD_GLOBAL
10129#else
10130# ifdef DL_GLOBAL
10131# define LT_DLGLOBAL DL_GLOBAL
10132# else
10133# define LT_DLGLOBAL 0
10134# endif
10135#endif
10136
10137/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10138 find out it does not work in some platform. */
10139#ifndef LT_DLLAZY_OR_NOW
10140# ifdef RTLD_LAZY
10141# define LT_DLLAZY_OR_NOW RTLD_LAZY
10142# else
10143# ifdef DL_LAZY
10144# define LT_DLLAZY_OR_NOW DL_LAZY
10145# else
10146# ifdef RTLD_NOW
10147# define LT_DLLAZY_OR_NOW RTLD_NOW
10148# else
10149# ifdef DL_NOW
10150# define LT_DLLAZY_OR_NOW DL_NOW
10151# else
10152# define LT_DLLAZY_OR_NOW 0
10153# endif
10154# endif
10155# endif
10156# endif
10157#endif
10158
10159#ifdef __cplusplus
10160extern "C" void exit (int);
10161#endif
10162
10163void fnord() { int i=42;}
10164int main ()
10165{
10166 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10167 int status = $lt_dlunknown;
10168
10169 if (self)
10170 {
10171 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10172 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10173 /* dlclose (self); */
10174 }
Reid Spencera773bd52006-08-04 18:18:08 +000010175 else
10176 puts (dlerror ());
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010177
10178 exit (status);
10179}
10180EOF
10181 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10182 (eval $ac_link) 2>&5
10183 ac_status=$?
10184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10185 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000010186 (./conftest; exit; ) >&5 2>/dev/null
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010187 lt_status=$?
10188 case x$lt_status in
10189 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10190 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010191 x$lt_dlunknown|x*) ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010192 esac
10193 else :
10194 # compilation failed
10195
10196 fi
10197fi
10198rm -fr conftest*
10199
10200 LIBS="$save_LIBS"
10201
10202fi
Reid Spencera773bd52006-08-04 18:18:08 +000010203{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10204echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010205 fi
10206fi
10207
10208if test x"$libltdl_cv_need_uscore" = xyes; then
10209
10210cat >>confdefs.h <<\_ACEOF
10211#define NEED_USCORE 1
10212_ACEOF
10213
10214fi
10215
10216
Reid Spencera773bd52006-08-04 18:18:08 +000010217{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10218echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010219if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10220 echo $ECHO_N "(cached) $ECHO_C" >&6
10221else
10222 # PORTME does your system automatically load deplibs for dlopen?
10223 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10224 # For now, we just catch OSes we know something about -- in the
10225 # future, we'll try test this programmatically.
10226 libltdl_cv_sys_dlopen_deplibs=unknown
10227 case "$host_os" in
10228 aix3*|aix4.1.*|aix4.2.*)
10229 # Unknown whether this is true for these versions of AIX, but
10230 # we want this `case' here to explicitly catch those versions.
10231 libltdl_cv_sys_dlopen_deplibs=unknown
10232 ;;
10233 aix[45]*)
10234 libltdl_cv_sys_dlopen_deplibs=yes
10235 ;;
10236 darwin*)
10237 # Assuming the user has installed a libdl from somewhere, this is true
10238 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10239 libltdl_cv_sys_dlopen_deplibs=yes
10240 ;;
10241 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10242 # GNU and its variants, using gnu ld.so (Glibc)
10243 libltdl_cv_sys_dlopen_deplibs=yes
10244 ;;
10245 hpux10*|hpux11*)
10246 libltdl_cv_sys_dlopen_deplibs=yes
10247 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010248 interix*)
10249 libltdl_cv_sys_dlopen_deplibs=yes
10250 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010251 irix[12345]*|irix6.[01]*)
10252 # Catch all versions of IRIX before 6.2, and indicate that we don't
10253 # know how it worked for any of those versions.
10254 libltdl_cv_sys_dlopen_deplibs=unknown
10255 ;;
10256 irix*)
10257 # The case above catches anything before 6.2, and it's known that
10258 # at 6.2 and later dlopen does load deplibs.
10259 libltdl_cv_sys_dlopen_deplibs=yes
10260 ;;
10261 netbsd*)
10262 libltdl_cv_sys_dlopen_deplibs=yes
10263 ;;
10264 openbsd*)
10265 libltdl_cv_sys_dlopen_deplibs=yes
10266 ;;
10267 osf[1234]*)
10268 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10269 # it did *not* use an RPATH in a shared library to find objects the
10270 # library depends on, so we explictly say `no'.
10271 libltdl_cv_sys_dlopen_deplibs=no
10272 ;;
10273 osf5.0|osf5.0a|osf5.1)
10274 # dlopen *does* load deplibs and with the right loader patch applied
10275 # it even uses RPATH in a shared library to search for shared objects
10276 # that the library depends on, but there's no easy way to know if that
10277 # patch is installed. Since this is the case, all we can really
10278 # say is unknown -- it depends on the patch being installed. If
10279 # it is, this changes to `yes'. Without it, it would be `no'.
10280 libltdl_cv_sys_dlopen_deplibs=unknown
10281 ;;
10282 osf*)
10283 # the two cases above should catch all versions of osf <= 5.1. Read
10284 # the comments above for what we know about them.
10285 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10286 # is used to find them so we can finally say `yes'.
10287 libltdl_cv_sys_dlopen_deplibs=yes
10288 ;;
10289 solaris*)
10290 libltdl_cv_sys_dlopen_deplibs=yes
10291 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010292 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10293 libltdl_cv_sys_dlopen_deplibs=yes
10294 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010295 esac
10296
10297fi
Reid Spencera773bd52006-08-04 18:18:08 +000010298{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10299echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010300if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10301
10302cat >>confdefs.h <<\_ACEOF
10303#define LTDL_DLOPEN_DEPLIBS 1
10304_ACEOF
10305
10306fi
10307
10308
10309for ac_header in argz.h
10310do
10311as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000010312if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10313 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10314echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10315if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010316 echo $ECHO_N "(cached) $ECHO_C" >&6
10317fi
Reid Spencera773bd52006-08-04 18:18:08 +000010318ac_res=`eval echo '${'$as_ac_Header'}'`
10319 { echo "$as_me:$LINENO: result: $ac_res" >&5
10320echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010321else
10322 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000010323{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10324echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010325cat >conftest.$ac_ext <<_ACEOF
10326/* confdefs.h. */
10327_ACEOF
10328cat confdefs.h >>conftest.$ac_ext
10329cat >>conftest.$ac_ext <<_ACEOF
10330/* end confdefs.h. */
10331$ac_includes_default
10332#include <$ac_header>
10333_ACEOF
10334rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000010335if { (ac_try="$ac_compile"
10336case "(($ac_try" in
10337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10338 *) ac_try_echo=$ac_try;;
10339esac
10340eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10341 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010342 ac_status=$?
10343 grep -v '^ *+' conftest.er1 >conftest.err
10344 rm -f conftest.er1
10345 cat conftest.err >&5
10346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Torok Edwincc499a42008-10-22 09:56:27 +000010347 (exit $ac_status); } && {
10348 test -z "$ac_c_werror_flag" ||
10349 test ! -s conftest.err
10350 } && test -s conftest.$ac_objext; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010351 ac_header_compiler=yes
10352else
10353 echo "$as_me: failed program was:" >&5
10354sed 's/^/| /' conftest.$ac_ext >&5
10355
Reid Spencera773bd52006-08-04 18:18:08 +000010356 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010357fi
Reid Spencera773bd52006-08-04 18:18:08 +000010358
10359rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10360{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10361echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010362
10363# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000010364{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10365echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010366cat >conftest.$ac_ext <<_ACEOF
10367/* confdefs.h. */
10368_ACEOF
10369cat confdefs.h >>conftest.$ac_ext
10370cat >>conftest.$ac_ext <<_ACEOF
10371/* end confdefs.h. */
10372#include <$ac_header>
10373_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000010374if { (ac_try="$ac_cpp conftest.$ac_ext"
10375case "(($ac_try" in
10376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10377 *) ac_try_echo=$ac_try;;
10378esac
10379eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10380 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010381 ac_status=$?
10382 grep -v '^ *+' conftest.er1 >conftest.err
10383 rm -f conftest.er1
10384 cat conftest.err >&5
10385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Torok Edwincc499a42008-10-22 09:56:27 +000010386 (exit $ac_status); } >/dev/null && {
10387 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10388 test ! -s conftest.err
10389 }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010390 ac_header_preproc=yes
10391else
10392 echo "$as_me: failed program was:" >&5
10393sed 's/^/| /' conftest.$ac_ext >&5
10394
10395 ac_header_preproc=no
10396fi
Reid Spencera773bd52006-08-04 18:18:08 +000010397
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010398rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000010399{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10400echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010401
10402# So? What about this header?
10403case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10404 yes:no: )
10405 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10406echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10407 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10408echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10409 ac_header_preproc=yes
10410 ;;
10411 no:yes:* )
10412 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10413echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10414 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10415echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10416 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10417echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10418 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10419echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10420 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10421echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10422 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10423echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000010424 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010425## ----------------------------------- ##
10426## Report this to llvmbugs@cs.uiuc.edu ##
10427## ----------------------------------- ##
10428_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000010429 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010430 ;;
10431esac
Reid Spencera773bd52006-08-04 18:18:08 +000010432{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10433echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10434if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010435 echo $ECHO_N "(cached) $ECHO_C" >&6
10436else
10437 eval "$as_ac_Header=\$ac_header_preproc"
10438fi
Reid Spencera773bd52006-08-04 18:18:08 +000010439ac_res=`eval echo '${'$as_ac_Header'}'`
10440 { echo "$as_me:$LINENO: result: $ac_res" >&5
10441echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010442
10443fi
10444if test `eval echo '${'$as_ac_Header'}'` = yes; then
10445 cat >>confdefs.h <<_ACEOF
10446#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10447_ACEOF
10448
10449fi
10450
10451done
10452
10453
Reid Spencera773bd52006-08-04 18:18:08 +000010454{ echo "$as_me:$LINENO: checking for error_t" >&5
10455echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010456if test "${ac_cv_type_error_t+set}" = set; then
10457 echo $ECHO_N "(cached) $ECHO_C" >&6
10458else
10459 cat >conftest.$ac_ext <<_ACEOF
10460/* confdefs.h. */
10461_ACEOF
10462cat confdefs.h >>conftest.$ac_ext
10463cat >>conftest.$ac_ext <<_ACEOF
10464/* end confdefs.h. */
10465#if HAVE_ARGZ_H
10466# include <argz.h>
10467#endif
10468
Reid Spencera773bd52006-08-04 18:18:08 +000010469typedef error_t ac__type_new_;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010470int
10471main ()
10472{
Reid Spencera773bd52006-08-04 18:18:08 +000010473if ((ac__type_new_ *) 0)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010474 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000010475if (sizeof (ac__type_new_))
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010476 return 0;
10477 ;
10478 return 0;
10479}
10480_ACEOF
10481rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000010482if { (ac_try="$ac_compile"
10483case "(($ac_try" in
10484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10485 *) ac_try_echo=$ac_try;;
10486esac
10487eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10488 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010489 ac_status=$?
10490 grep -v '^ *+' conftest.er1 >conftest.err
10491 rm -f conftest.er1
10492 cat conftest.err >&5
10493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Torok Edwincc499a42008-10-22 09:56:27 +000010494 (exit $ac_status); } && {
10495 test -z "$ac_c_werror_flag" ||
10496 test ! -s conftest.err
10497 } && test -s conftest.$ac_objext; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010498 ac_cv_type_error_t=yes
10499else
10500 echo "$as_me: failed program was:" >&5
10501sed 's/^/| /' conftest.$ac_ext >&5
10502
Reid Spencera773bd52006-08-04 18:18:08 +000010503 ac_cv_type_error_t=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010504fi
Reid Spencera773bd52006-08-04 18:18:08 +000010505
10506rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010507fi
Reid Spencera773bd52006-08-04 18:18:08 +000010508{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10509echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010510if test $ac_cv_type_error_t = yes; then
10511
10512cat >>confdefs.h <<_ACEOF
10513#define HAVE_ERROR_T 1
10514_ACEOF
10515
10516
10517else
10518
10519cat >>confdefs.h <<\_ACEOF
10520#define error_t int
10521_ACEOF
10522
10523fi
10524
10525
10526
10527
10528
10529
10530
10531for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10532do
10533as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000010534{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10535echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10536if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010537 echo $ECHO_N "(cached) $ECHO_C" >&6
10538else
10539 cat >conftest.$ac_ext <<_ACEOF
10540/* confdefs.h. */
10541_ACEOF
10542cat confdefs.h >>conftest.$ac_ext
10543cat >>conftest.$ac_ext <<_ACEOF
10544/* end confdefs.h. */
10545/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10546 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10547#define $ac_func innocuous_$ac_func
10548
10549/* System header to define __stub macros and hopefully few prototypes,
10550 which can conflict with char $ac_func (); below.
10551 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10552 <limits.h> exists even on freestanding compilers. */
10553
10554#ifdef __STDC__
10555# include <limits.h>
10556#else
10557# include <assert.h>
10558#endif
10559
10560#undef $ac_func
10561
Reid Spencera773bd52006-08-04 18:18:08 +000010562/* Override any GCC internal prototype to avoid an error.
10563 Use char because int might match the return type of a GCC
10564 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010565#ifdef __cplusplus
10566extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010567#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010568char $ac_func ();
10569/* The GNU C library defines this for functions which it implements
10570 to always fail with ENOSYS. Some functions are actually named
10571 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000010572#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010573choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010574#endif
10575
10576int
10577main ()
10578{
Reid Spencera773bd52006-08-04 18:18:08 +000010579return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010580 ;
10581 return 0;
10582}
10583_ACEOF
10584rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010585if { (ac_try="$ac_link"
10586case "(($ac_try" in
10587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10588 *) ac_try_echo=$ac_try;;
10589esac
10590eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10591 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010592 ac_status=$?
10593 grep -v '^ *+' conftest.er1 >conftest.err
10594 rm -f conftest.er1
10595 cat conftest.err >&5
10596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Torok Edwincc499a42008-10-22 09:56:27 +000010597 (exit $ac_status); } && {
10598 test -z "$ac_c_werror_flag" ||
10599 test ! -s conftest.err
10600 } && test -s conftest$ac_exeext &&
10601 $as_test_x conftest$ac_exeext; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010602 eval "$as_ac_var=yes"
10603else
10604 echo "$as_me: failed program was:" >&5
10605sed 's/^/| /' conftest.$ac_ext >&5
10606
Reid Spencera773bd52006-08-04 18:18:08 +000010607 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010608fi
Reid Spencera773bd52006-08-04 18:18:08 +000010609
Torok Edwincc499a42008-10-22 09:56:27 +000010610rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010611 conftest$ac_exeext conftest.$ac_ext
10612fi
Reid Spencera773bd52006-08-04 18:18:08 +000010613ac_res=`eval echo '${'$as_ac_var'}'`
10614 { echo "$as_me:$LINENO: result: $ac_res" >&5
10615echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010616if test `eval echo '${'$as_ac_var'}'` = yes; then
10617 cat >>confdefs.h <<_ACEOF
10618#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10619_ACEOF
10620
10621fi
10622done
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
10652 stdio.h unistd.h
10653do
10654as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000010655if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10656 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10657echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10658if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010659 echo $ECHO_N "(cached) $ECHO_C" >&6
10660fi
Reid Spencera773bd52006-08-04 18:18:08 +000010661ac_res=`eval echo '${'$as_ac_Header'}'`
10662 { echo "$as_me:$LINENO: result: $ac_res" >&5
10663echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010664else
10665 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000010666{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10667echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010668cat >conftest.$ac_ext <<_ACEOF
10669/* confdefs.h. */
10670_ACEOF
10671cat confdefs.h >>conftest.$ac_ext
10672cat >>conftest.$ac_ext <<_ACEOF
10673/* end confdefs.h. */
10674$ac_includes_default
10675#include <$ac_header>
10676_ACEOF
10677rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000010678if { (ac_try="$ac_compile"
10679case "(($ac_try" in
10680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10681 *) ac_try_echo=$ac_try;;
10682esac
10683eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10684 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010685 ac_status=$?
10686 grep -v '^ *+' conftest.er1 >conftest.err
10687 rm -f conftest.er1
10688 cat conftest.err >&5
10689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Torok Edwincc499a42008-10-22 09:56:27 +000010690 (exit $ac_status); } && {
10691 test -z "$ac_c_werror_flag" ||
10692 test ! -s conftest.err
10693 } && test -s conftest.$ac_objext; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010694 ac_header_compiler=yes
10695else
10696 echo "$as_me: failed program was:" >&5
10697sed 's/^/| /' conftest.$ac_ext >&5
10698
Reid Spencera773bd52006-08-04 18:18:08 +000010699 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010700fi
Reid Spencera773bd52006-08-04 18:18:08 +000010701
10702rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10703{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10704echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010705
10706# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000010707{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10708echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010709cat >conftest.$ac_ext <<_ACEOF
10710/* confdefs.h. */
10711_ACEOF
10712cat confdefs.h >>conftest.$ac_ext
10713cat >>conftest.$ac_ext <<_ACEOF
10714/* end confdefs.h. */
10715#include <$ac_header>
10716_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000010717if { (ac_try="$ac_cpp conftest.$ac_ext"
10718case "(($ac_try" in
10719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10720 *) ac_try_echo=$ac_try;;
10721esac
10722eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10723 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010724 ac_status=$?
10725 grep -v '^ *+' conftest.er1 >conftest.err
10726 rm -f conftest.er1
10727 cat conftest.err >&5
10728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Torok Edwincc499a42008-10-22 09:56:27 +000010729 (exit $ac_status); } >/dev/null && {
10730 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10731 test ! -s conftest.err
10732 }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010733 ac_header_preproc=yes
10734else
10735 echo "$as_me: failed program was:" >&5
10736sed 's/^/| /' conftest.$ac_ext >&5
10737
10738 ac_header_preproc=no
10739fi
Reid Spencera773bd52006-08-04 18:18:08 +000010740
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010741rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000010742{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10743echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010744
10745# So? What about this header?
10746case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10747 yes:no: )
10748 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10749echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10750 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10751echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10752 ac_header_preproc=yes
10753 ;;
10754 no:yes:* )
10755 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10756echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10757 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10758echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10759 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10760echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10761 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10762echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10763 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10764echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10765 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10766echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000010767 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010768## ----------------------------------- ##
10769## Report this to llvmbugs@cs.uiuc.edu ##
10770## ----------------------------------- ##
10771_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000010772 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010773 ;;
10774esac
Reid Spencera773bd52006-08-04 18:18:08 +000010775{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10776echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10777if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010778 echo $ECHO_N "(cached) $ECHO_C" >&6
10779else
10780 eval "$as_ac_Header=\$ac_header_preproc"
10781fi
Reid Spencera773bd52006-08-04 18:18:08 +000010782ac_res=`eval echo '${'$as_ac_Header'}'`
10783 { echo "$as_me:$LINENO: result: $ac_res" >&5
10784echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010785
10786fi
10787if test `eval echo '${'$as_ac_Header'}'` = yes; then
10788 cat >>confdefs.h <<_ACEOF
10789#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10790_ACEOF
10791
10792fi
10793
10794done
10795
10796
10797
10798
10799
10800for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
10801do
10802as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000010803if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10804 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10805echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10806if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010807 echo $ECHO_N "(cached) $ECHO_C" >&6
10808fi
Reid Spencera773bd52006-08-04 18:18:08 +000010809ac_res=`eval echo '${'$as_ac_Header'}'`
10810 { echo "$as_me:$LINENO: result: $ac_res" >&5
10811echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010812else
10813 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000010814{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10815echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010816cat >conftest.$ac_ext <<_ACEOF
10817/* confdefs.h. */
10818_ACEOF
10819cat confdefs.h >>conftest.$ac_ext
10820cat >>conftest.$ac_ext <<_ACEOF
10821/* end confdefs.h. */
10822$ac_includes_default
10823#include <$ac_header>
10824_ACEOF
10825rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000010826if { (ac_try="$ac_compile"
10827case "(($ac_try" in
10828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10829 *) ac_try_echo=$ac_try;;
10830esac
10831eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10832 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010833 ac_status=$?
10834 grep -v '^ *+' conftest.er1 >conftest.err
10835 rm -f conftest.er1
10836 cat conftest.err >&5
10837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Torok Edwincc499a42008-10-22 09:56:27 +000010838 (exit $ac_status); } && {
10839 test -z "$ac_c_werror_flag" ||
10840 test ! -s conftest.err
10841 } && test -s conftest.$ac_objext; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010842 ac_header_compiler=yes
10843else
10844 echo "$as_me: failed program was:" >&5
10845sed 's/^/| /' conftest.$ac_ext >&5
10846
Reid Spencera773bd52006-08-04 18:18:08 +000010847 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010848fi
Reid Spencera773bd52006-08-04 18:18:08 +000010849
10850rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10851{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10852echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010853
10854# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000010855{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10856echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010857cat >conftest.$ac_ext <<_ACEOF
10858/* confdefs.h. */
10859_ACEOF
10860cat confdefs.h >>conftest.$ac_ext
10861cat >>conftest.$ac_ext <<_ACEOF
10862/* end confdefs.h. */
10863#include <$ac_header>
10864_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000010865if { (ac_try="$ac_cpp conftest.$ac_ext"
10866case "(($ac_try" in
10867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10868 *) ac_try_echo=$ac_try;;
10869esac
10870eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10871 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010872 ac_status=$?
10873 grep -v '^ *+' conftest.er1 >conftest.err
10874 rm -f conftest.er1
10875 cat conftest.err >&5
10876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Torok Edwincc499a42008-10-22 09:56:27 +000010877 (exit $ac_status); } >/dev/null && {
10878 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10879 test ! -s conftest.err
10880 }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010881 ac_header_preproc=yes
10882else
10883 echo "$as_me: failed program was:" >&5
10884sed 's/^/| /' conftest.$ac_ext >&5
10885
10886 ac_header_preproc=no
10887fi
Reid Spencera773bd52006-08-04 18:18:08 +000010888
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010889rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000010890{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10891echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010892
10893# So? What about this header?
10894case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10895 yes:no: )
10896 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10897echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10898 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10899echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10900 ac_header_preproc=yes
10901 ;;
10902 no:yes:* )
10903 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10904echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10905 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10906echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10907 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10908echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10909 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10910echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10911 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10912echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10913 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10914echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000010915 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010916## ----------------------------------- ##
10917## Report this to llvmbugs@cs.uiuc.edu ##
10918## ----------------------------------- ##
10919_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000010920 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010921 ;;
10922esac
Reid Spencera773bd52006-08-04 18:18:08 +000010923{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10924echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10925if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010926 echo $ECHO_N "(cached) $ECHO_C" >&6
10927else
10928 eval "$as_ac_Header=\$ac_header_preproc"
10929fi
Reid Spencera773bd52006-08-04 18:18:08 +000010930ac_res=`eval echo '${'$as_ac_Header'}'`
10931 { echo "$as_me:$LINENO: result: $ac_res" >&5
10932echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010933
10934fi
10935if test `eval echo '${'$as_ac_Header'}'` = yes; then
10936 cat >>confdefs.h <<_ACEOF
10937#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10938_ACEOF
10939
10940fi
10941
10942done
10943
10944
10945
10946for ac_header in string.h strings.h
10947do
10948as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000010949if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10950 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10951echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10952if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010953 echo $ECHO_N "(cached) $ECHO_C" >&6
10954fi
Reid Spencera773bd52006-08-04 18:18:08 +000010955ac_res=`eval echo '${'$as_ac_Header'}'`
10956 { echo "$as_me:$LINENO: result: $ac_res" >&5
10957echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010958else
10959 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000010960{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10961echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010962cat >conftest.$ac_ext <<_ACEOF
10963/* confdefs.h. */
10964_ACEOF
10965cat confdefs.h >>conftest.$ac_ext
10966cat >>conftest.$ac_ext <<_ACEOF
10967/* end confdefs.h. */
10968$ac_includes_default
10969#include <$ac_header>
10970_ACEOF
10971rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000010972if { (ac_try="$ac_compile"
10973case "(($ac_try" in
10974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10975 *) ac_try_echo=$ac_try;;
10976esac
10977eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10978 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010979 ac_status=$?
10980 grep -v '^ *+' conftest.er1 >conftest.err
10981 rm -f conftest.er1
10982 cat conftest.err >&5
10983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Torok Edwincc499a42008-10-22 09:56:27 +000010984 (exit $ac_status); } && {
10985 test -z "$ac_c_werror_flag" ||
10986 test ! -s conftest.err
10987 } && test -s conftest.$ac_objext; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010988 ac_header_compiler=yes
10989else
10990 echo "$as_me: failed program was:" >&5
10991sed 's/^/| /' conftest.$ac_ext >&5
10992
Reid Spencera773bd52006-08-04 18:18:08 +000010993 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010994fi
Reid Spencera773bd52006-08-04 18:18:08 +000010995
10996rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10997{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10998echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010999
11000# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000011001{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11002echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011003cat >conftest.$ac_ext <<_ACEOF
11004/* confdefs.h. */
11005_ACEOF
11006cat confdefs.h >>conftest.$ac_ext
11007cat >>conftest.$ac_ext <<_ACEOF
11008/* end confdefs.h. */
11009#include <$ac_header>
11010_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000011011if { (ac_try="$ac_cpp conftest.$ac_ext"
11012case "(($ac_try" in
11013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11014 *) ac_try_echo=$ac_try;;
11015esac
11016eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11017 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011018 ac_status=$?
11019 grep -v '^ *+' conftest.er1 >conftest.err
11020 rm -f conftest.er1
11021 cat conftest.err >&5
11022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Torok Edwincc499a42008-10-22 09:56:27 +000011023 (exit $ac_status); } >/dev/null && {
11024 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11025 test ! -s conftest.err
11026 }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011027 ac_header_preproc=yes
11028else
11029 echo "$as_me: failed program was:" >&5
11030sed 's/^/| /' conftest.$ac_ext >&5
11031
11032 ac_header_preproc=no
11033fi
Reid Spencera773bd52006-08-04 18:18:08 +000011034
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011035rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000011036{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11037echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011038
11039# So? What about this header?
11040case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11041 yes:no: )
11042 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11043echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11044 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11045echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11046 ac_header_preproc=yes
11047 ;;
11048 no:yes:* )
11049 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11050echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11051 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11052echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11053 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11054echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11055 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11056echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11057 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11058echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11059 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11060echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000011061 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011062## ----------------------------------- ##
11063## Report this to llvmbugs@cs.uiuc.edu ##
11064## ----------------------------------- ##
11065_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000011066 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011067 ;;
11068esac
Reid Spencera773bd52006-08-04 18:18:08 +000011069{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11070echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11071if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011072 echo $ECHO_N "(cached) $ECHO_C" >&6
11073else
11074 eval "$as_ac_Header=\$ac_header_preproc"
11075fi
Reid Spencera773bd52006-08-04 18:18:08 +000011076ac_res=`eval echo '${'$as_ac_Header'}'`
11077 { echo "$as_me:$LINENO: result: $ac_res" >&5
11078echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011079
11080fi
11081if test `eval echo '${'$as_ac_Header'}'` = yes; then
11082 cat >>confdefs.h <<_ACEOF
11083#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11084_ACEOF
11085 break
11086fi
11087
11088done
11089
11090
11091
11092
11093for ac_func in strchr index
11094do
11095as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011096{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11097echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11098if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011099 echo $ECHO_N "(cached) $ECHO_C" >&6
11100else
11101 cat >conftest.$ac_ext <<_ACEOF
11102/* confdefs.h. */
11103_ACEOF
11104cat confdefs.h >>conftest.$ac_ext
11105cat >>conftest.$ac_ext <<_ACEOF
11106/* end confdefs.h. */
11107/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11108 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11109#define $ac_func innocuous_$ac_func
11110
11111/* System header to define __stub macros and hopefully few prototypes,
11112 which can conflict with char $ac_func (); below.
11113 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11114 <limits.h> exists even on freestanding compilers. */
11115
11116#ifdef __STDC__
11117# include <limits.h>
11118#else
11119# include <assert.h>
11120#endif
11121
11122#undef $ac_func
11123
Reid Spencera773bd52006-08-04 18:18:08 +000011124/* Override any GCC internal prototype to avoid an error.
11125 Use char because int might match the return type of a GCC
11126 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011127#ifdef __cplusplus
11128extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011129#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011130char $ac_func ();
11131/* The GNU C library defines this for functions which it implements
11132 to always fail with ENOSYS. Some functions are actually named
11133 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011134#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011135choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011136#endif
11137
11138int
11139main ()
11140{
Reid Spencera773bd52006-08-04 18:18:08 +000011141return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011142 ;
11143 return 0;
11144}
11145_ACEOF
11146rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011147if { (ac_try="$ac_link"
11148case "(($ac_try" in
11149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11150 *) ac_try_echo=$ac_try;;
11151esac
11152eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11153 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011154 ac_status=$?
11155 grep -v '^ *+' conftest.er1 >conftest.err
11156 rm -f conftest.er1
11157 cat conftest.err >&5
11158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Torok Edwincc499a42008-10-22 09:56:27 +000011159 (exit $ac_status); } && {
11160 test -z "$ac_c_werror_flag" ||
11161 test ! -s conftest.err
11162 } && test -s conftest$ac_exeext &&
11163 $as_test_x conftest$ac_exeext; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011164 eval "$as_ac_var=yes"
11165else
11166 echo "$as_me: failed program was:" >&5
11167sed 's/^/| /' conftest.$ac_ext >&5
11168
Reid Spencera773bd52006-08-04 18:18:08 +000011169 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011170fi
Reid Spencera773bd52006-08-04 18:18:08 +000011171
Torok Edwincc499a42008-10-22 09:56:27 +000011172rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011173 conftest$ac_exeext conftest.$ac_ext
11174fi
Reid Spencera773bd52006-08-04 18:18:08 +000011175ac_res=`eval echo '${'$as_ac_var'}'`
11176 { echo "$as_me:$LINENO: result: $ac_res" >&5
11177echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011178if test `eval echo '${'$as_ac_var'}'` = yes; then
11179 cat >>confdefs.h <<_ACEOF
11180#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11181_ACEOF
11182 break
11183fi
11184done
11185
11186
11187
11188for ac_func in strrchr rindex
11189do
11190as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011191{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11192echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11193if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011194 echo $ECHO_N "(cached) $ECHO_C" >&6
11195else
11196 cat >conftest.$ac_ext <<_ACEOF
11197/* confdefs.h. */
11198_ACEOF
11199cat confdefs.h >>conftest.$ac_ext
11200cat >>conftest.$ac_ext <<_ACEOF
11201/* end confdefs.h. */
11202/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11203 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11204#define $ac_func innocuous_$ac_func
11205
11206/* System header to define __stub macros and hopefully few prototypes,
11207 which can conflict with char $ac_func (); below.
11208 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11209 <limits.h> exists even on freestanding compilers. */
11210
11211#ifdef __STDC__
11212# include <limits.h>
11213#else
11214# include <assert.h>
11215#endif
11216
11217#undef $ac_func
11218
Reid Spencera773bd52006-08-04 18:18:08 +000011219/* Override any GCC internal prototype to avoid an error.
11220 Use char because int might match the return type of a GCC
11221 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011222#ifdef __cplusplus
11223extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011224#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011225char $ac_func ();
11226/* The GNU C library defines this for functions which it implements
11227 to always fail with ENOSYS. Some functions are actually named
11228 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011229#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011230choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011231#endif
11232
11233int
11234main ()
11235{
Reid Spencera773bd52006-08-04 18:18:08 +000011236return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011237 ;
11238 return 0;
11239}
11240_ACEOF
11241rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011242if { (ac_try="$ac_link"
11243case "(($ac_try" in
11244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11245 *) ac_try_echo=$ac_try;;
11246esac
11247eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11248 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011249 ac_status=$?
11250 grep -v '^ *+' conftest.er1 >conftest.err
11251 rm -f conftest.er1
11252 cat conftest.err >&5
11253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Torok Edwincc499a42008-10-22 09:56:27 +000011254 (exit $ac_status); } && {
11255 test -z "$ac_c_werror_flag" ||
11256 test ! -s conftest.err
11257 } && test -s conftest$ac_exeext &&
11258 $as_test_x conftest$ac_exeext; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011259 eval "$as_ac_var=yes"
11260else
11261 echo "$as_me: failed program was:" >&5
11262sed 's/^/| /' conftest.$ac_ext >&5
11263
Reid Spencera773bd52006-08-04 18:18:08 +000011264 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011265fi
Reid Spencera773bd52006-08-04 18:18:08 +000011266
Torok Edwincc499a42008-10-22 09:56:27 +000011267rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011268 conftest$ac_exeext conftest.$ac_ext
11269fi
Reid Spencera773bd52006-08-04 18:18:08 +000011270ac_res=`eval echo '${'$as_ac_var'}'`
11271 { echo "$as_me:$LINENO: result: $ac_res" >&5
11272echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011273if test `eval echo '${'$as_ac_var'}'` = yes; then
11274 cat >>confdefs.h <<_ACEOF
11275#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11276_ACEOF
11277 break
11278fi
11279done
11280
11281
11282
11283for ac_func in memcpy bcopy
11284do
11285as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011286{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11287echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11288if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011289 echo $ECHO_N "(cached) $ECHO_C" >&6
11290else
11291 cat >conftest.$ac_ext <<_ACEOF
11292/* confdefs.h. */
11293_ACEOF
11294cat confdefs.h >>conftest.$ac_ext
11295cat >>conftest.$ac_ext <<_ACEOF
11296/* end confdefs.h. */
11297/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11298 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11299#define $ac_func innocuous_$ac_func
11300
11301/* System header to define __stub macros and hopefully few prototypes,
11302 which can conflict with char $ac_func (); below.
11303 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11304 <limits.h> exists even on freestanding compilers. */
11305
11306#ifdef __STDC__
11307# include <limits.h>
11308#else
11309# include <assert.h>
11310#endif
11311
11312#undef $ac_func
11313
Reid Spencera773bd52006-08-04 18:18:08 +000011314/* Override any GCC internal prototype to avoid an error.
11315 Use char because int might match the return type of a GCC
11316 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011317#ifdef __cplusplus
11318extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011319#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011320char $ac_func ();
11321/* The GNU C library defines this for functions which it implements
11322 to always fail with ENOSYS. Some functions are actually named
11323 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011324#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011325choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011326#endif
11327
11328int
11329main ()
11330{
Reid Spencera773bd52006-08-04 18:18:08 +000011331return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011332 ;
11333 return 0;
11334}
11335_ACEOF
11336rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011337if { (ac_try="$ac_link"
11338case "(($ac_try" in
11339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11340 *) ac_try_echo=$ac_try;;
11341esac
11342eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11343 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011344 ac_status=$?
11345 grep -v '^ *+' conftest.er1 >conftest.err
11346 rm -f conftest.er1
11347 cat conftest.err >&5
11348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Torok Edwincc499a42008-10-22 09:56:27 +000011349 (exit $ac_status); } && {
11350 test -z "$ac_c_werror_flag" ||
11351 test ! -s conftest.err
11352 } && test -s conftest$ac_exeext &&
11353 $as_test_x conftest$ac_exeext; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011354 eval "$as_ac_var=yes"
11355else
11356 echo "$as_me: failed program was:" >&5
11357sed 's/^/| /' conftest.$ac_ext >&5
11358
Reid Spencera773bd52006-08-04 18:18:08 +000011359 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011360fi
Reid Spencera773bd52006-08-04 18:18:08 +000011361
Torok Edwincc499a42008-10-22 09:56:27 +000011362rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011363 conftest$ac_exeext conftest.$ac_ext
11364fi
Reid Spencera773bd52006-08-04 18:18:08 +000011365ac_res=`eval echo '${'$as_ac_var'}'`
11366 { echo "$as_me:$LINENO: result: $ac_res" >&5
11367echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011368if test `eval echo '${'$as_ac_var'}'` = yes; then
11369 cat >>confdefs.h <<_ACEOF
11370#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11371_ACEOF
11372 break
11373fi
11374done
11375
11376
11377
11378for ac_func in memmove strcmp
11379do
11380as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011381{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11382echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11383if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011384 echo $ECHO_N "(cached) $ECHO_C" >&6
11385else
11386 cat >conftest.$ac_ext <<_ACEOF
11387/* confdefs.h. */
11388_ACEOF
11389cat confdefs.h >>conftest.$ac_ext
11390cat >>conftest.$ac_ext <<_ACEOF
11391/* end confdefs.h. */
11392/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11393 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11394#define $ac_func innocuous_$ac_func
11395
11396/* System header to define __stub macros and hopefully few prototypes,
11397 which can conflict with char $ac_func (); below.
11398 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11399 <limits.h> exists even on freestanding compilers. */
11400
11401#ifdef __STDC__
11402# include <limits.h>
11403#else
11404# include <assert.h>
11405#endif
11406
11407#undef $ac_func
11408
Reid Spencera773bd52006-08-04 18:18:08 +000011409/* Override any GCC internal prototype to avoid an error.
11410 Use char because int might match the return type of a GCC
11411 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011412#ifdef __cplusplus
11413extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011414#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011415char $ac_func ();
11416/* The GNU C library defines this for functions which it implements
11417 to always fail with ENOSYS. Some functions are actually named
11418 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011419#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011420choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011421#endif
11422
11423int
11424main ()
11425{
Reid Spencera773bd52006-08-04 18:18:08 +000011426return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011427 ;
11428 return 0;
11429}
11430_ACEOF
11431rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011432if { (ac_try="$ac_link"
11433case "(($ac_try" in
11434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11435 *) ac_try_echo=$ac_try;;
11436esac
11437eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11438 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011439 ac_status=$?
11440 grep -v '^ *+' conftest.er1 >conftest.err
11441 rm -f conftest.er1
11442 cat conftest.err >&5
11443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Torok Edwincc499a42008-10-22 09:56:27 +000011444 (exit $ac_status); } && {
11445 test -z "$ac_c_werror_flag" ||
11446 test ! -s conftest.err
11447 } && test -s conftest$ac_exeext &&
11448 $as_test_x conftest$ac_exeext; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011449 eval "$as_ac_var=yes"
11450else
11451 echo "$as_me: failed program was:" >&5
11452sed 's/^/| /' conftest.$ac_ext >&5
11453
Reid Spencera773bd52006-08-04 18:18:08 +000011454 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011455fi
Reid Spencera773bd52006-08-04 18:18:08 +000011456
Torok Edwincc499a42008-10-22 09:56:27 +000011457rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011458 conftest$ac_exeext conftest.$ac_ext
11459fi
Reid Spencera773bd52006-08-04 18:18:08 +000011460ac_res=`eval echo '${'$as_ac_var'}'`
11461 { echo "$as_me:$LINENO: result: $ac_res" >&5
11462echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011463if test `eval echo '${'$as_ac_var'}'` = yes; then
11464 cat >>confdefs.h <<_ACEOF
11465#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11466_ACEOF
11467
11468fi
11469done
11470
11471
11472
11473
11474for ac_func in closedir opendir readdir
11475do
11476as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011477{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11478echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11479if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011480 echo $ECHO_N "(cached) $ECHO_C" >&6
11481else
11482 cat >conftest.$ac_ext <<_ACEOF
11483/* confdefs.h. */
11484_ACEOF
11485cat confdefs.h >>conftest.$ac_ext
11486cat >>conftest.$ac_ext <<_ACEOF
11487/* end confdefs.h. */
11488/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11489 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11490#define $ac_func innocuous_$ac_func
11491
11492/* System header to define __stub macros and hopefully few prototypes,
11493 which can conflict with char $ac_func (); below.
11494 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11495 <limits.h> exists even on freestanding compilers. */
11496
11497#ifdef __STDC__
11498# include <limits.h>
11499#else
11500# include <assert.h>
11501#endif
11502
11503#undef $ac_func
11504
Reid Spencera773bd52006-08-04 18:18:08 +000011505/* Override any GCC internal prototype to avoid an error.
11506 Use char because int might match the return type of a GCC
11507 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011508#ifdef __cplusplus
11509extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011510#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011511char $ac_func ();
11512/* The GNU C library defines this for functions which it implements
11513 to always fail with ENOSYS. Some functions are actually named
11514 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011515#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011516choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011517#endif
11518
11519int
11520main ()
11521{
Reid Spencera773bd52006-08-04 18:18:08 +000011522return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011523 ;
11524 return 0;
11525}
11526_ACEOF
11527rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011528if { (ac_try="$ac_link"
11529case "(($ac_try" in
11530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11531 *) ac_try_echo=$ac_try;;
11532esac
11533eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11534 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011535 ac_status=$?
11536 grep -v '^ *+' conftest.er1 >conftest.err
11537 rm -f conftest.er1
11538 cat conftest.err >&5
11539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Torok Edwincc499a42008-10-22 09:56:27 +000011540 (exit $ac_status); } && {
11541 test -z "$ac_c_werror_flag" ||
11542 test ! -s conftest.err
11543 } && test -s conftest$ac_exeext &&
11544 $as_test_x conftest$ac_exeext; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011545 eval "$as_ac_var=yes"
11546else
11547 echo "$as_me: failed program was:" >&5
11548sed 's/^/| /' conftest.$ac_ext >&5
11549
Reid Spencera773bd52006-08-04 18:18:08 +000011550 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011551fi
Reid Spencera773bd52006-08-04 18:18:08 +000011552
Torok Edwincc499a42008-10-22 09:56:27 +000011553rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011554 conftest$ac_exeext conftest.$ac_ext
11555fi
Reid Spencera773bd52006-08-04 18:18:08 +000011556ac_res=`eval echo '${'$as_ac_var'}'`
11557 { echo "$as_me:$LINENO: result: $ac_res" >&5
11558echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011559if test `eval echo '${'$as_ac_var'}'` = yes; then
11560 cat >>confdefs.h <<_ACEOF
11561#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11562_ACEOF
11563
11564fi
11565done
11566
11567
Reid Spencera773bd52006-08-04 18:18:08 +000011568# Check whether --enable-shared was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011569if test "${enable_shared+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000011570 enableval=$enable_shared; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011571 case $enableval in
11572 yes) enable_shared=yes ;;
11573 no) enable_shared=no ;;
11574 *)
11575 enable_shared=no
11576 # Look at the argument we got. We use all the common list separators.
11577 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11578 for pkg in $enableval; do
11579 IFS="$lt_save_ifs"
11580 if test "X$pkg" = "X$p"; then
11581 enable_shared=yes
11582 fi
11583 done
11584 IFS="$lt_save_ifs"
11585 ;;
11586 esac
11587else
11588 enable_shared=yes
Reid Spencera773bd52006-08-04 18:18:08 +000011589fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011590
Reid Spencera773bd52006-08-04 18:18:08 +000011591
11592# Check whether --enable-static was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011593if test "${enable_static+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000011594 enableval=$enable_static; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011595 case $enableval in
11596 yes) enable_static=yes ;;
11597 no) enable_static=no ;;
11598 *)
11599 enable_static=no
11600 # Look at the argument we got. We use all the common list separators.
11601 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11602 for pkg in $enableval; do
11603 IFS="$lt_save_ifs"
11604 if test "X$pkg" = "X$p"; then
11605 enable_static=yes
11606 fi
11607 done
11608 IFS="$lt_save_ifs"
11609 ;;
11610 esac
11611else
11612 enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000011613fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011614
Reid Spencera773bd52006-08-04 18:18:08 +000011615
11616# Check whether --enable-fast-install was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011617if test "${enable_fast_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000011618 enableval=$enable_fast_install; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011619 case $enableval in
11620 yes) enable_fast_install=yes ;;
11621 no) enable_fast_install=no ;;
11622 *)
11623 enable_fast_install=no
11624 # Look at the argument we got. We use all the common list separators.
11625 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11626 for pkg in $enableval; do
11627 IFS="$lt_save_ifs"
11628 if test "X$pkg" = "X$p"; then
11629 enable_fast_install=yes
11630 fi
11631 done
11632 IFS="$lt_save_ifs"
11633 ;;
11634 esac
11635else
11636 enable_fast_install=yes
Reid Spencera773bd52006-08-04 18:18:08 +000011637fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011638
Reid Spencera773bd52006-08-04 18:18:08 +000011639
11640{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
11641echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011642if test "${lt_cv_path_SED+set}" = set; then
11643 echo $ECHO_N "(cached) $ECHO_C" >&6
11644else
11645 # Loop through the user's path and test for sed and gsed.
11646# Then use that list of sed's as ones to test for truncation.
11647as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11648for as_dir in $PATH
11649do
11650 IFS=$as_save_IFS
11651 test -z "$as_dir" && as_dir=.
11652 for lt_ac_prog in sed gsed; do
11653 for ac_exec_ext in '' $ac_executable_extensions; do
11654 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
11655 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
11656 fi
11657 done
11658 done
11659done
11660lt_ac_max=0
11661lt_ac_count=0
11662# Add /usr/xpg4/bin/sed as it is typically found on Solaris
11663# along with /bin/sed that truncates output.
11664for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
Reid Spencera773bd52006-08-04 18:18:08 +000011665 test ! -f $lt_ac_sed && continue
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011666 cat /dev/null > conftest.in
11667 lt_ac_count=0
11668 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
11669 # Check for GNU sed and select it if it is found.
11670 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
11671 lt_cv_path_SED=$lt_ac_sed
11672 break
11673 fi
11674 while true; do
11675 cat conftest.in conftest.in >conftest.tmp
11676 mv conftest.tmp conftest.in
11677 cp conftest.in conftest.nl
11678 echo >>conftest.nl
11679 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
11680 cmp -s conftest.out conftest.nl || break
11681 # 10000 chars as input seems more than enough
11682 test $lt_ac_count -gt 10 && break
11683 lt_ac_count=`expr $lt_ac_count + 1`
11684 if test $lt_ac_count -gt $lt_ac_max; then
11685 lt_ac_max=$lt_ac_count
11686 lt_cv_path_SED=$lt_ac_sed
11687 fi
11688 done
11689done
11690
11691fi
11692
11693SED=$lt_cv_path_SED
Reid Spencera773bd52006-08-04 18:18:08 +000011694{ echo "$as_me:$LINENO: result: $SED" >&5
11695echo "${ECHO_T}$SED" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011696
11697
Reid Spencera773bd52006-08-04 18:18:08 +000011698# Check whether --with-gnu-ld was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011699if test "${with_gnu_ld+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000011700 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011701else
11702 with_gnu_ld=no
Reid Spencera773bd52006-08-04 18:18:08 +000011703fi
11704
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011705ac_prog=ld
11706if test "$GCC" = yes; then
11707 # Check if gcc -print-prog-name=ld gives a path.
Reid Spencera773bd52006-08-04 18:18:08 +000011708 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11709echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011710 case $host in
11711 *-*-mingw*)
11712 # gcc leaves a trailing carriage return which upsets mingw
11713 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11714 *)
11715 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11716 esac
11717 case $ac_prog in
11718 # Accept absolute paths.
11719 [\\/]* | ?:[\\/]*)
11720 re_direlt='/[^/][^/]*/\.\./'
11721 # Canonicalize the pathname of ld
11722 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11723 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11724 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11725 done
11726 test -z "$LD" && LD="$ac_prog"
11727 ;;
11728 "")
11729 # If it fails, then pretend we aren't using GCC.
11730 ac_prog=ld
11731 ;;
11732 *)
11733 # If it is relative, then search for the first ld in PATH.
11734 with_gnu_ld=unknown
11735 ;;
11736 esac
11737elif test "$with_gnu_ld" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000011738 { echo "$as_me:$LINENO: checking for GNU ld" >&5
11739echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011740else
Reid Spencera773bd52006-08-04 18:18:08 +000011741 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11742echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011743fi
11744if test "${lt_cv_path_LD+set}" = set; then
11745 echo $ECHO_N "(cached) $ECHO_C" >&6
11746else
11747 if test -z "$LD"; then
11748 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11749 for ac_dir in $PATH; do
11750 IFS="$lt_save_ifs"
11751 test -z "$ac_dir" && ac_dir=.
11752 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11753 lt_cv_path_LD="$ac_dir/$ac_prog"
11754 # Check to see if the program is GNU ld. I'd rather use --version,
Reid Spencera773bd52006-08-04 18:18:08 +000011755 # but apparently some variants of GNU ld only accept -v.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011756 # Break only if it was the GNU/non-GNU ld that we prefer.
11757 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11758 *GNU* | *'with BFD'*)
11759 test "$with_gnu_ld" != no && break
11760 ;;
11761 *)
11762 test "$with_gnu_ld" != yes && break
11763 ;;
11764 esac
11765 fi
11766 done
11767 IFS="$lt_save_ifs"
11768else
11769 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11770fi
11771fi
11772
11773LD="$lt_cv_path_LD"
11774if test -n "$LD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000011775 { echo "$as_me:$LINENO: result: $LD" >&5
11776echo "${ECHO_T}$LD" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011777else
Reid Spencera773bd52006-08-04 18:18:08 +000011778 { echo "$as_me:$LINENO: result: no" >&5
11779echo "${ECHO_T}no" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011780fi
11781test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11782echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11783 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000011784{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11785echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011786if test "${lt_cv_prog_gnu_ld+set}" = set; then
11787 echo $ECHO_N "(cached) $ECHO_C" >&6
11788else
Reid Spencera773bd52006-08-04 18:18:08 +000011789 # I'd rather use --version here, but apparently some GNU lds only accept -v.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011790case `$LD -v 2>&1 </dev/null` in
11791*GNU* | *'with BFD'*)
11792 lt_cv_prog_gnu_ld=yes
11793 ;;
11794*)
11795 lt_cv_prog_gnu_ld=no
11796 ;;
11797esac
11798fi
Reid Spencera773bd52006-08-04 18:18:08 +000011799{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11800echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011801with_gnu_ld=$lt_cv_prog_gnu_ld
11802
11803
Reid Spencera773bd52006-08-04 18:18:08 +000011804{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
11805echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011806if test "${lt_cv_ld_reload_flag+set}" = set; then
11807 echo $ECHO_N "(cached) $ECHO_C" >&6
11808else
11809 lt_cv_ld_reload_flag='-r'
11810fi
Reid Spencera773bd52006-08-04 18:18:08 +000011811{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
11812echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011813reload_flag=$lt_cv_ld_reload_flag
11814case $reload_flag in
11815"" | " "*) ;;
11816*) reload_flag=" $reload_flag" ;;
11817esac
11818reload_cmds='$LD$reload_flag -o $output$reload_objs'
11819case $host_os in
11820 darwin*)
11821 if test "$GCC" = yes; then
Evan Chengf4334c72006-08-09 05:40:14 +000011822 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011823 else
11824 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11825 fi
11826 ;;
11827esac
11828
Reid Spencera773bd52006-08-04 18:18:08 +000011829{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
11830echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011831if test "${lt_cv_deplibs_check_method+set}" = set; then
11832 echo $ECHO_N "(cached) $ECHO_C" >&6
11833else
11834 lt_cv_file_magic_cmd='$MAGIC_CMD'
11835lt_cv_file_magic_test_file=
11836lt_cv_deplibs_check_method='unknown'
11837# Need to set the preceding variable on all platforms that support
11838# interlibrary dependencies.
11839# 'none' -- dependencies not supported.
11840# `unknown' -- same as none, but documents that we really don't know.
11841# 'pass_all' -- all dependencies passed with no checks.
11842# 'test_compile' -- check by making test program.
11843# 'file_magic [[regex]]' -- check by looking for files in library path
11844# which responds to the $file_magic_cmd with a given extended regex.
11845# If you have `file' or equivalent on your system and you're not sure
11846# whether `pass_all' will *always* work, you probably want this one.
11847
11848case $host_os in
11849aix4* | aix5*)
11850 lt_cv_deplibs_check_method=pass_all
11851 ;;
11852
11853beos*)
11854 lt_cv_deplibs_check_method=pass_all
11855 ;;
11856
11857bsdi[45]*)
11858 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
11859 lt_cv_file_magic_cmd='/usr/bin/file -L'
11860 lt_cv_file_magic_test_file=/shlib/libc.so
11861 ;;
11862
11863cygwin*)
11864 # func_win32_libid is a shell function defined in ltmain.sh
11865 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11866 lt_cv_file_magic_cmd='func_win32_libid'
11867 ;;
11868
11869mingw* | pw32*)
11870 # Base MSYS/MinGW do not provide the 'file' command needed by
11871 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
11872 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
11873 lt_cv_file_magic_cmd='$OBJDUMP -f'
11874 ;;
11875
11876darwin* | rhapsody*)
11877 lt_cv_deplibs_check_method=pass_all
11878 ;;
11879
Reid Spencera773bd52006-08-04 18:18:08 +000011880freebsd* | kfreebsd*-gnu | dragonfly*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011881 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
11882 case $host_cpu in
11883 i*86 )
11884 # Not sure whether the presence of OpenBSD here was a mistake.
11885 # Let's accept both of them until this is cleared up.
Reid Spencera773bd52006-08-04 18:18:08 +000011886 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 +000011887 lt_cv_file_magic_cmd=/usr/bin/file
11888 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
11889 ;;
11890 esac
11891 else
11892 lt_cv_deplibs_check_method=pass_all
11893 fi
11894 ;;
11895
11896gnu*)
11897 lt_cv_deplibs_check_method=pass_all
11898 ;;
11899
11900hpux10.20* | hpux11*)
11901 lt_cv_file_magic_cmd=/usr/bin/file
Reid Spencera773bd52006-08-04 18:18:08 +000011902 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011903 ia64*)
11904 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
11905 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
11906 ;;
11907 hppa*64*)
11908 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]'
11909 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
11910 ;;
11911 *)
11912 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
11913 lt_cv_file_magic_test_file=/usr/lib/libc.sl
11914 ;;
11915 esac
11916 ;;
11917
Reid Spencera773bd52006-08-04 18:18:08 +000011918interix3*)
11919 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
11920 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
11921 ;;
11922
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011923irix5* | irix6* | nonstopux*)
11924 case $LD in
11925 *-32|*"-32 ") libmagic=32-bit;;
11926 *-n32|*"-n32 ") libmagic=N32;;
11927 *-64|*"-64 ") libmagic=64-bit;;
11928 *) libmagic=never-match;;
11929 esac
11930 lt_cv_deplibs_check_method=pass_all
11931 ;;
11932
11933# This must be Linux ELF.
11934linux*)
11935 lt_cv_deplibs_check_method=pass_all
11936 ;;
11937
11938netbsd*)
11939 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
11940 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11941 else
11942 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
11943 fi
11944 ;;
11945
11946newos6*)
11947 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
11948 lt_cv_file_magic_cmd=/usr/bin/file
11949 lt_cv_file_magic_test_file=/usr/lib/libnls.so
11950 ;;
11951
11952nto-qnx*)
11953 lt_cv_deplibs_check_method=unknown
11954 ;;
11955
11956openbsd*)
11957 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11958 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
11959 else
11960 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11961 fi
11962 ;;
11963
11964osf3* | osf4* | osf5*)
11965 lt_cv_deplibs_check_method=pass_all
11966 ;;
11967
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011968solaris*)
11969 lt_cv_deplibs_check_method=pass_all
11970 ;;
11971
Reid Spencera773bd52006-08-04 18:18:08 +000011972sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011973 case $host_vendor in
11974 motorola)
11975 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]'
11976 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
11977 ;;
11978 ncr)
11979 lt_cv_deplibs_check_method=pass_all
11980 ;;
11981 sequent)
11982 lt_cv_file_magic_cmd='/bin/file'
11983 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
11984 ;;
11985 sni)
11986 lt_cv_file_magic_cmd='/bin/file'
11987 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
11988 lt_cv_file_magic_test_file=/lib/libc.so
11989 ;;
11990 siemens)
11991 lt_cv_deplibs_check_method=pass_all
11992 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000011993 pc)
11994 lt_cv_deplibs_check_method=pass_all
11995 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011996 esac
11997 ;;
11998
Reid Spencera773bd52006-08-04 18:18:08 +000011999sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012000 lt_cv_deplibs_check_method=pass_all
12001 ;;
12002esac
12003
12004fi
Reid Spencera773bd52006-08-04 18:18:08 +000012005{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
12006echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012007file_magic_cmd=$lt_cv_file_magic_cmd
12008deplibs_check_method=$lt_cv_deplibs_check_method
12009test -z "$deplibs_check_method" && deplibs_check_method=unknown
12010
12011
12012
12013# If no C compiler was specified, use CC.
12014LTCC=${LTCC-"$CC"}
12015
Reid Spencera773bd52006-08-04 18:18:08 +000012016# If no C compiler flags were specified, use CFLAGS.
12017LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12018
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012019# Allow CC to be a program name with arguments.
12020compiler=$CC
12021
Reid Spencera773bd52006-08-04 18:18:08 +000012022# Check whether --enable-libtool-lock was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012023if test "${enable_libtool_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012024 enableval=$enable_libtool_lock;
12025fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012026
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012027test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12028
12029# Some flags need to be propagated to the compiler or linker for good
12030# libtool support.
12031case $host in
12032ia64-*-hpux*)
12033 # Find out which ABI we are using.
12034 echo 'int i;' > conftest.$ac_ext
12035 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12036 (eval $ac_compile) 2>&5
12037 ac_status=$?
12038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12039 (exit $ac_status); }; then
12040 case `/usr/bin/file conftest.$ac_objext` in
12041 *ELF-32*)
12042 HPUX_IA64_MODE="32"
12043 ;;
12044 *ELF-64*)
12045 HPUX_IA64_MODE="64"
12046 ;;
12047 esac
12048 fi
12049 rm -rf conftest*
12050 ;;
12051*-*-irix6*)
12052 # Find out which ABI we are using.
Torok Edwincc499a42008-10-22 09:56:27 +000012053 echo '#line 12053 "configure"' > conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012054 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12055 (eval $ac_compile) 2>&5
12056 ac_status=$?
12057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12058 (exit $ac_status); }; then
12059 if test "$lt_cv_prog_gnu_ld" = yes; then
12060 case `/usr/bin/file conftest.$ac_objext` in
12061 *32-bit*)
12062 LD="${LD-ld} -melf32bsmip"
12063 ;;
12064 *N32*)
12065 LD="${LD-ld} -melf32bmipn32"
12066 ;;
12067 *64-bit*)
12068 LD="${LD-ld} -melf64bmip"
12069 ;;
12070 esac
12071 else
12072 case `/usr/bin/file conftest.$ac_objext` in
12073 *32-bit*)
12074 LD="${LD-ld} -32"
12075 ;;
12076 *N32*)
12077 LD="${LD-ld} -n32"
12078 ;;
12079 *64-bit*)
12080 LD="${LD-ld} -64"
12081 ;;
12082 esac
12083 fi
12084 fi
12085 rm -rf conftest*
12086 ;;
12087
12088x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
12089 # Find out which ABI we are using.
12090 echo 'int i;' > conftest.$ac_ext
12091 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12092 (eval $ac_compile) 2>&5
12093 ac_status=$?
12094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12095 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +000012096 case `/usr/bin/file conftest.o` in
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012097 *32-bit*)
12098 case $host in
12099 x86_64-*linux*)
12100 LD="${LD-ld} -m elf_i386"
12101 ;;
12102 ppc64-*linux*|powerpc64-*linux*)
12103 LD="${LD-ld} -m elf32ppclinux"
12104 ;;
12105 s390x-*linux*)
12106 LD="${LD-ld} -m elf_s390"
12107 ;;
12108 sparc64-*linux*)
12109 LD="${LD-ld} -m elf32_sparc"
12110 ;;
12111 esac
12112 ;;
12113 *64-bit*)
12114 case $host in
12115 x86_64-*linux*)
12116 LD="${LD-ld} -m elf_x86_64"
12117 ;;
12118 ppc*-*linux*|powerpc*-*linux*)
12119 LD="${LD-ld} -m elf64ppc"
12120 ;;
12121 s390*-*linux*)
12122 LD="${LD-ld} -m elf64_s390"
12123 ;;
12124 sparc*-*linux*)
12125 LD="${LD-ld} -m elf64_sparc"
12126 ;;
12127 esac
12128 ;;
12129 esac
12130 fi
12131 rm -rf conftest*
12132 ;;
12133
12134*-*-sco3.2v5*)
12135 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12136 SAVE_CFLAGS="$CFLAGS"
12137 CFLAGS="$CFLAGS -belf"
Reid Spencera773bd52006-08-04 18:18:08 +000012138 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
12139echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012140if test "${lt_cv_cc_needs_belf+set}" = set; then
12141 echo $ECHO_N "(cached) $ECHO_C" >&6
12142else
12143 ac_ext=c
12144ac_cpp='$CPP $CPPFLAGS'
12145ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12146ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12147ac_compiler_gnu=$ac_cv_c_compiler_gnu
12148
12149 cat >conftest.$ac_ext <<_ACEOF
12150/* confdefs.h. */
12151_ACEOF
12152cat confdefs.h >>conftest.$ac_ext
12153cat >>conftest.$ac_ext <<_ACEOF
12154/* end confdefs.h. */
12155
Reid Spencera773bd52006-08-04 18:18:08 +000012156int
12157main ()
12158{
12159
12160 ;
12161 return 0;
12162}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012163_ACEOF
12164rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012165if { (ac_try="$ac_link"
12166case "(($ac_try" in
12167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12168 *) ac_try_echo=$ac_try;;
12169esac
12170eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12171 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012172 ac_status=$?
12173 grep -v '^ *+' conftest.er1 >conftest.err
12174 rm -f conftest.er1
12175 cat conftest.err >&5
12176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Torok Edwincc499a42008-10-22 09:56:27 +000012177 (exit $ac_status); } && {
12178 test -z "$ac_c_werror_flag" ||
12179 test ! -s conftest.err
12180 } && test -s conftest$ac_exeext &&
12181 $as_test_x conftest$ac_exeext; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012182 lt_cv_cc_needs_belf=yes
12183else
12184 echo "$as_me: failed program was:" >&5
12185sed 's/^/| /' conftest.$ac_ext >&5
12186
Reid Spencera773bd52006-08-04 18:18:08 +000012187 lt_cv_cc_needs_belf=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012188fi
Reid Spencera773bd52006-08-04 18:18:08 +000012189
Torok Edwincc499a42008-10-22 09:56:27 +000012190rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012191 conftest$ac_exeext conftest.$ac_ext
12192 ac_ext=c
12193ac_cpp='$CPP $CPPFLAGS'
12194ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12195ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12196ac_compiler_gnu=$ac_cv_c_compiler_gnu
12197
12198fi
Reid Spencera773bd52006-08-04 18:18:08 +000012199{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
12200echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012201 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12202 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12203 CFLAGS="$SAVE_CFLAGS"
12204 fi
12205 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000012206sparc*-*solaris*)
12207 # Find out which ABI we are using.
12208 echo 'int i;' > conftest.$ac_ext
12209 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12210 (eval $ac_compile) 2>&5
12211 ac_status=$?
12212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12213 (exit $ac_status); }; then
12214 case `/usr/bin/file conftest.o` in
12215 *64-bit*)
12216 case $lt_cv_prog_gnu_ld in
12217 yes*) LD="${LD-ld} -m elf64_sparc" ;;
12218 *) LD="${LD-ld} -64" ;;
12219 esac
12220 ;;
12221 esac
12222 fi
12223 rm -rf conftest*
12224 ;;
12225
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012226
12227esac
12228
12229need_locks="$enable_libtool_lock"
12230
12231
Reid Spencer2706f8c2004-09-19 23:53:36 +000012232
12233
12234if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12235 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12236 (test "X$CXX" != "Xg++"))) ; then
Reid Spencera773bd52006-08-04 18:18:08 +000012237 ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000012238ac_cpp='$CXXCPP $CPPFLAGS'
12239ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12240ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12241ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencera773bd52006-08-04 18:18:08 +000012242{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
12243echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012244if test -z "$CXXCPP"; then
12245 if test "${ac_cv_prog_CXXCPP+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000012246 echo $ECHO_N "(cached) $ECHO_C" >&6
12247else
John Criswell47fdd832003-07-14 16:52:07 +000012248 # Double quotes because CXXCPP needs to be expanded
12249 for CXXCPP in "$CXX -E" "/lib/cpp"
12250 do
12251 ac_preproc_ok=false
12252for ac_cxx_preproc_warn_flag in '' yes
12253do
12254 # Use a header file that comes with gcc, so configuring glibc
12255 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000012256 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12257 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000012258 # On the NeXT, cc -E runs the code through the compiler's parser,
12259 # not just through cpp. "Syntax error" is here to catch this case.
12260 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012261/* confdefs.h. */
12262_ACEOF
12263cat confdefs.h >>conftest.$ac_ext
12264cat >>conftest.$ac_ext <<_ACEOF
12265/* end confdefs.h. */
12266#ifdef __STDC__
12267# include <limits.h>
12268#else
12269# include <assert.h>
12270#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000012271 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000012272_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012273if { (ac_try="$ac_cpp conftest.$ac_ext"
12274case "(($ac_try" in
12275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12276 *) ac_try_echo=$ac_try;;
12277esac
12278eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12279 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012280 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000012281 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000012282 rm -f conftest.er1
12283 cat conftest.err >&5
12284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Torok Edwincc499a42008-10-22 09:56:27 +000012285 (exit $ac_status); } >/dev/null && {
12286 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
12287 test ! -s conftest.err
12288 }; then
John Criswell47fdd832003-07-14 16:52:07 +000012289 :
12290else
12291 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012292sed 's/^/| /' conftest.$ac_ext >&5
12293
John Criswell47fdd832003-07-14 16:52:07 +000012294 # Broken: fails on valid input.
12295continue
12296fi
Reid Spencera773bd52006-08-04 18:18:08 +000012297
John Criswell47fdd832003-07-14 16:52:07 +000012298rm -f conftest.err conftest.$ac_ext
12299
Reid Spencera773bd52006-08-04 18:18:08 +000012300 # OK, works on sane cases. Now check whether nonexistent headers
John Criswell47fdd832003-07-14 16:52:07 +000012301 # can be detected and how.
12302 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012303/* confdefs.h. */
12304_ACEOF
12305cat confdefs.h >>conftest.$ac_ext
12306cat >>conftest.$ac_ext <<_ACEOF
12307/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000012308#include <ac_nonexistent.h>
12309_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012310if { (ac_try="$ac_cpp conftest.$ac_ext"
12311case "(($ac_try" in
12312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12313 *) ac_try_echo=$ac_try;;
12314esac
12315eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12316 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012317 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000012318 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000012319 rm -f conftest.er1
12320 cat conftest.err >&5
12321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Torok Edwincc499a42008-10-22 09:56:27 +000012322 (exit $ac_status); } >/dev/null && {
12323 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
12324 test ! -s conftest.err
12325 }; then
John Criswell47fdd832003-07-14 16:52:07 +000012326 # Broken: success on invalid input.
12327continue
12328else
12329 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012330sed 's/^/| /' conftest.$ac_ext >&5
12331
John Criswell47fdd832003-07-14 16:52:07 +000012332 # Passes both tests.
12333ac_preproc_ok=:
12334break
12335fi
Reid Spencera773bd52006-08-04 18:18:08 +000012336
John Criswell47fdd832003-07-14 16:52:07 +000012337rm -f conftest.err conftest.$ac_ext
12338
12339done
12340# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12341rm -f conftest.err conftest.$ac_ext
12342if $ac_preproc_ok; then
12343 break
John Criswell7a73b802003-06-30 21:59:07 +000012344fi
12345
John Criswell47fdd832003-07-14 16:52:07 +000012346 done
12347 ac_cv_prog_CXXCPP=$CXXCPP
12348
12349fi
12350 CXXCPP=$ac_cv_prog_CXXCPP
12351else
12352 ac_cv_prog_CXXCPP=$CXXCPP
12353fi
Reid Spencera773bd52006-08-04 18:18:08 +000012354{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
12355echo "${ECHO_T}$CXXCPP" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012356ac_preproc_ok=false
12357for ac_cxx_preproc_warn_flag in '' yes
12358do
12359 # Use a header file that comes with gcc, so configuring glibc
12360 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000012361 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12362 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000012363 # On the NeXT, cc -E runs the code through the compiler's parser,
12364 # not just through cpp. "Syntax error" is here to catch this case.
12365 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012366/* confdefs.h. */
12367_ACEOF
12368cat confdefs.h >>conftest.$ac_ext
12369cat >>conftest.$ac_ext <<_ACEOF
12370/* end confdefs.h. */
12371#ifdef __STDC__
12372# include <limits.h>
12373#else
12374# include <assert.h>
12375#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000012376 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000012377_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012378if { (ac_try="$ac_cpp conftest.$ac_ext"
12379case "(($ac_try" in
12380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12381 *) ac_try_echo=$ac_try;;
12382esac
12383eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12384 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012385 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000012386 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000012387 rm -f conftest.er1
12388 cat conftest.err >&5
12389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Torok Edwincc499a42008-10-22 09:56:27 +000012390 (exit $ac_status); } >/dev/null && {
12391 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
12392 test ! -s conftest.err
12393 }; then
John Criswell47fdd832003-07-14 16:52:07 +000012394 :
12395else
12396 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012397sed 's/^/| /' conftest.$ac_ext >&5
12398
John Criswell47fdd832003-07-14 16:52:07 +000012399 # Broken: fails on valid input.
12400continue
12401fi
Reid Spencera773bd52006-08-04 18:18:08 +000012402
John Criswell47fdd832003-07-14 16:52:07 +000012403rm -f conftest.err conftest.$ac_ext
12404
Reid Spencera773bd52006-08-04 18:18:08 +000012405 # OK, works on sane cases. Now check whether nonexistent headers
John Criswell47fdd832003-07-14 16:52:07 +000012406 # can be detected and how.
12407 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012408/* confdefs.h. */
12409_ACEOF
12410cat confdefs.h >>conftest.$ac_ext
12411cat >>conftest.$ac_ext <<_ACEOF
12412/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000012413#include <ac_nonexistent.h>
12414_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012415if { (ac_try="$ac_cpp conftest.$ac_ext"
12416case "(($ac_try" in
12417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12418 *) ac_try_echo=$ac_try;;
12419esac
12420eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12421 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012422 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000012423 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000012424 rm -f conftest.er1
12425 cat conftest.err >&5
12426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Torok Edwincc499a42008-10-22 09:56:27 +000012427 (exit $ac_status); } >/dev/null && {
12428 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
12429 test ! -s conftest.err
12430 }; then
John Criswell47fdd832003-07-14 16:52:07 +000012431 # Broken: success on invalid input.
12432continue
12433else
12434 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012435sed 's/^/| /' conftest.$ac_ext >&5
12436
John Criswell47fdd832003-07-14 16:52:07 +000012437 # Passes both tests.
12438ac_preproc_ok=:
12439break
12440fi
Reid Spencera773bd52006-08-04 18:18:08 +000012441
John Criswell47fdd832003-07-14 16:52:07 +000012442rm -f conftest.err conftest.$ac_ext
12443
12444done
12445# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12446rm -f conftest.err conftest.$ac_ext
12447if $ac_preproc_ok; then
12448 :
12449else
John Criswell0c38eaf2003-09-10 15:17:25 +000012450 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
12451See \`config.log' for more details." >&5
12452echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
12453See \`config.log' for more details." >&2;}
John Criswell47fdd832003-07-14 16:52:07 +000012454 { (exit 1); exit 1; }; }
12455fi
12456
Reid Spencera773bd52006-08-04 18:18:08 +000012457ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000012458ac_cpp='$CXXCPP $CPPFLAGS'
12459ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12460ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12461ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12462
Reid Spencer2706f8c2004-09-19 23:53:36 +000012463fi
12464
John Criswell47fdd832003-07-14 16:52:07 +000012465
12466ac_ext=f
12467ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12468ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12469ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12470if test -n "$ac_tool_prefix"; then
Torok Edwincc499a42008-10-22 09:56:27 +000012471 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 +000012472 do
12473 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12474set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000012475{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12476echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012477if test "${ac_cv_prog_F77+set}" = set; then
12478 echo $ECHO_N "(cached) $ECHO_C" >&6
12479else
12480 if test -n "$F77"; then
12481 ac_cv_prog_F77="$F77" # Let the user override the test.
12482else
12483as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12484for as_dir in $PATH
12485do
12486 IFS=$as_save_IFS
12487 test -z "$as_dir" && as_dir=.
12488 for ac_exec_ext in '' $ac_executable_extensions; do
Torok Edwincc499a42008-10-22 09:56:27 +000012489 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 +000012490 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
12491 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12492 break 2
12493 fi
12494done
12495done
Reid Spencera773bd52006-08-04 18:18:08 +000012496IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000012497
12498fi
12499fi
12500F77=$ac_cv_prog_F77
12501if test -n "$F77"; then
Reid Spencera773bd52006-08-04 18:18:08 +000012502 { echo "$as_me:$LINENO: result: $F77" >&5
12503echo "${ECHO_T}$F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012504else
Reid Spencera773bd52006-08-04 18:18:08 +000012505 { echo "$as_me:$LINENO: result: no" >&5
12506echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012507fi
12508
Reid Spencera773bd52006-08-04 18:18:08 +000012509
John Criswell47fdd832003-07-14 16:52:07 +000012510 test -n "$F77" && break
12511 done
12512fi
12513if test -z "$F77"; then
12514 ac_ct_F77=$F77
Torok Edwincc499a42008-10-22 09:56:27 +000012515 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 +000012516do
12517 # Extract the first word of "$ac_prog", so it can be a program name with args.
12518set dummy $ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000012519{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12520echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012521if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
12522 echo $ECHO_N "(cached) $ECHO_C" >&6
12523else
12524 if test -n "$ac_ct_F77"; then
12525 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
12526else
12527as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12528for as_dir in $PATH
12529do
12530 IFS=$as_save_IFS
12531 test -z "$as_dir" && as_dir=.
12532 for ac_exec_ext in '' $ac_executable_extensions; do
Torok Edwincc499a42008-10-22 09:56:27 +000012533 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 +000012534 ac_cv_prog_ac_ct_F77="$ac_prog"
12535 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12536 break 2
12537 fi
12538done
12539done
Reid Spencera773bd52006-08-04 18:18:08 +000012540IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000012541
12542fi
12543fi
12544ac_ct_F77=$ac_cv_prog_ac_ct_F77
12545if test -n "$ac_ct_F77"; then
Reid Spencera773bd52006-08-04 18:18:08 +000012546 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
12547echo "${ECHO_T}$ac_ct_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012548else
Reid Spencera773bd52006-08-04 18:18:08 +000012549 { echo "$as_me:$LINENO: result: no" >&5
12550echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012551fi
12552
Reid Spencera773bd52006-08-04 18:18:08 +000012553
John Criswell47fdd832003-07-14 16:52:07 +000012554 test -n "$ac_ct_F77" && break
12555done
12556
Reid Spencera773bd52006-08-04 18:18:08 +000012557 if test "x$ac_ct_F77" = x; then
12558 F77=""
12559 else
12560 case $cross_compiling:$ac_tool_warned in
12561yes:)
12562{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
12563whose name does not start with the host triplet. If you think this
12564configuration is useful to you, please write to autoconf@gnu.org." >&5
12565echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
12566whose name does not start with the host triplet. If you think this
12567configuration is useful to you, please write to autoconf@gnu.org." >&2;}
12568ac_tool_warned=yes ;;
12569esac
12570 F77=$ac_ct_F77
12571 fi
John Criswell47fdd832003-07-14 16:52:07 +000012572fi
12573
12574
12575# Provide some information about the compiler.
Reid Spencera773bd52006-08-04 18:18:08 +000012576echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
John Criswell47fdd832003-07-14 16:52:07 +000012577ac_compiler=`set X $ac_compile; echo $2`
Reid Spencera773bd52006-08-04 18:18:08 +000012578{ (ac_try="$ac_compiler --version >&5"
12579case "(($ac_try" in
12580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12581 *) ac_try_echo=$ac_try;;
12582esac
12583eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12584 (eval "$ac_compiler --version >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000012585 ac_status=$?
12586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12587 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +000012588{ (ac_try="$ac_compiler -v >&5"
12589case "(($ac_try" in
12590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12591 *) ac_try_echo=$ac_try;;
12592esac
12593eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12594 (eval "$ac_compiler -v >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000012595 ac_status=$?
12596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12597 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +000012598{ (ac_try="$ac_compiler -V >&5"
12599case "(($ac_try" in
12600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12601 *) ac_try_echo=$ac_try;;
12602esac
12603eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12604 (eval "$ac_compiler -V >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000012605 ac_status=$?
12606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12607 (exit $ac_status); }
Reid Spencer2706f8c2004-09-19 23:53:36 +000012608rm -f a.out
John Criswell47fdd832003-07-14 16:52:07 +000012609
12610# If we don't use `.F' as extension, the preprocessor is not run on the
Reid Spencer2706f8c2004-09-19 23:53:36 +000012611# input file. (Note that this only needs to work for GNU compilers.)
John Criswell47fdd832003-07-14 16:52:07 +000012612ac_save_ext=$ac_ext
12613ac_ext=F
Reid Spencera773bd52006-08-04 18:18:08 +000012614{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
12615echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012616if test "${ac_cv_f77_compiler_gnu+set}" = set; then
12617 echo $ECHO_N "(cached) $ECHO_C" >&6
12618else
12619 cat >conftest.$ac_ext <<_ACEOF
12620 program main
12621#ifndef __GNUC__
12622 choke me
12623#endif
12624
12625 end
12626_ACEOF
12627rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000012628if { (ac_try="$ac_compile"
12629case "(($ac_try" in
12630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12631 *) ac_try_echo=$ac_try;;
12632esac
12633eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12634 (eval "$ac_compile") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012635 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000012636 grep -v '^ *+' conftest.er1 >conftest.err
12637 rm -f conftest.er1
12638 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000012639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Torok Edwincc499a42008-10-22 09:56:27 +000012640 (exit $ac_status); } && {
12641 test -z "$ac_f77_werror_flag" ||
12642 test ! -s conftest.err
12643 } && test -s conftest.$ac_objext; then
John Criswell47fdd832003-07-14 16:52:07 +000012644 ac_compiler_gnu=yes
12645else
12646 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012647sed 's/^/| /' conftest.$ac_ext >&5
12648
Reid Spencera773bd52006-08-04 18:18:08 +000012649 ac_compiler_gnu=no
John Criswell47fdd832003-07-14 16:52:07 +000012650fi
Reid Spencera773bd52006-08-04 18:18:08 +000012651
12652rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000012653ac_cv_f77_compiler_gnu=$ac_compiler_gnu
12654
12655fi
Reid Spencera773bd52006-08-04 18:18:08 +000012656{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
12657echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012658ac_ext=$ac_save_ext
John Criswell47fdd832003-07-14 16:52:07 +000012659ac_test_FFLAGS=${FFLAGS+set}
12660ac_save_FFLAGS=$FFLAGS
12661FFLAGS=
Reid Spencera773bd52006-08-04 18:18:08 +000012662{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
12663echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012664if test "${ac_cv_prog_f77_g+set}" = set; then
12665 echo $ECHO_N "(cached) $ECHO_C" >&6
12666else
12667 FFLAGS=-g
12668cat >conftest.$ac_ext <<_ACEOF
12669 program main
12670
12671 end
12672_ACEOF
12673rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000012674if { (ac_try="$ac_compile"
12675case "(($ac_try" in
12676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12677 *) ac_try_echo=$ac_try;;
12678esac
12679eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12680 (eval "$ac_compile") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012681 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000012682 grep -v '^ *+' conftest.er1 >conftest.err
12683 rm -f conftest.er1
12684 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000012685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Torok Edwincc499a42008-10-22 09:56:27 +000012686 (exit $ac_status); } && {
12687 test -z "$ac_f77_werror_flag" ||
12688 test ! -s conftest.err
12689 } && test -s conftest.$ac_objext; then
John Criswell47fdd832003-07-14 16:52:07 +000012690 ac_cv_prog_f77_g=yes
12691else
12692 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012693sed 's/^/| /' conftest.$ac_ext >&5
12694
Reid Spencera773bd52006-08-04 18:18:08 +000012695 ac_cv_prog_f77_g=no
John Criswell47fdd832003-07-14 16:52:07 +000012696fi
Reid Spencera773bd52006-08-04 18:18:08 +000012697
12698rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000012699
12700fi
Reid Spencera773bd52006-08-04 18:18:08 +000012701{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
12702echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012703if test "$ac_test_FFLAGS" = set; then
12704 FFLAGS=$ac_save_FFLAGS
12705elif test $ac_cv_prog_f77_g = yes; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000012706 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000012707 FFLAGS="-g -O2"
12708 else
12709 FFLAGS="-g"
12710 fi
12711else
Reid Spencer2706f8c2004-09-19 23:53:36 +000012712 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000012713 FFLAGS="-O2"
12714 else
12715 FFLAGS=
12716 fi
12717fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000012718
12719G77=`test $ac_compiler_gnu = yes && echo yes`
John Criswell47fdd832003-07-14 16:52:07 +000012720ac_ext=c
12721ac_cpp='$CPP $CPPFLAGS'
12722ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12723ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12724ac_compiler_gnu=$ac_cv_c_compiler_gnu
12725
12726
12727
12728# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
12729
12730# find the maximum length of command line arguments
Reid Spencera773bd52006-08-04 18:18:08 +000012731{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
12732echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012733if test "${lt_cv_sys_max_cmd_len+set}" = set; then
12734 echo $ECHO_N "(cached) $ECHO_C" >&6
12735else
12736 i=0
Reid Spencer2706f8c2004-09-19 23:53:36 +000012737 teststring="ABCD"
John Criswell47fdd832003-07-14 16:52:07 +000012738
12739 case $build_os in
12740 msdosdjgpp*)
12741 # On DJGPP, this test can blow up pretty badly due to problems in libc
12742 # (any single argument exceeding 2000 bytes causes a buffer overrun
12743 # during glob expansion). Even if it were fixed, the result of this
12744 # check would be larger than it should be.
12745 lt_cv_sys_max_cmd_len=12288; # 12K is about right
12746 ;;
12747
12748 gnu*)
12749 # Under GNU Hurd, this test is not required because there is
12750 # no limit to the length of command line arguments.
12751 # Libtool will interpret -1 as no limit whatsoever
12752 lt_cv_sys_max_cmd_len=-1;
12753 ;;
12754
12755 cygwin* | mingw*)
12756 # On Win9x/ME, this test blows up -- it succeeds, but takes
12757 # about 5 minutes as the teststring grows exponentially.
12758 # Worse, since 9x/ME are not pre-emptively multitasking,
12759 # you end up with a "frozen" computer, even though with patience
12760 # the test eventually succeeds (with a max line length of 256k).
12761 # Instead, let's just punt: use the minimum linelength reported by
12762 # all of the supported platforms: 8192 (on NT/2K/XP).
12763 lt_cv_sys_max_cmd_len=8192;
12764 ;;
12765
Reid Spencer2706f8c2004-09-19 23:53:36 +000012766 amigaos*)
12767 # On AmigaOS with pdksh, this test takes hours, literally.
12768 # So we just punt and use a minimum line length of 8192.
12769 lt_cv_sys_max_cmd_len=8192;
12770 ;;
12771
Reid Spencera773bd52006-08-04 18:18:08 +000012772 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000012773 # This has been around since 386BSD, at least. Likely further.
12774 if test -x /sbin/sysctl; then
12775 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
12776 elif test -x /usr/sbin/sysctl; then
12777 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
12778 else
Reid Spencera773bd52006-08-04 18:18:08 +000012779 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
Reid Spencer2706f8c2004-09-19 23:53:36 +000012780 fi
12781 # And add a safety zone
12782 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
Reid Spencera773bd52006-08-04 18:18:08 +000012783 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
Reid Spencer2706f8c2004-09-19 23:53:36 +000012784 ;;
12785
Reid Spencera773bd52006-08-04 18:18:08 +000012786 interix*)
12787 # We know the value 262144 and hardcode it with a safety zone (like BSD)
12788 lt_cv_sys_max_cmd_len=196608
12789 ;;
12790
12791 osf*)
12792 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12793 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12794 # nice to cause kernel panics so lets avoid the loop below.
12795 # First set a reasonable default.
12796 lt_cv_sys_max_cmd_len=16384
12797 #
12798 if test -x /sbin/sysconfig; then
12799 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12800 *1*) lt_cv_sys_max_cmd_len=-1 ;;
12801 esac
12802 fi
12803 ;;
12804 sco3.2v5*)
12805 lt_cv_sys_max_cmd_len=102400
12806 ;;
12807 sysv5* | sco5v6* | sysv4.2uw2*)
12808 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12809 if test -n "$kargmax"; then
12810 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
12811 else
12812 lt_cv_sys_max_cmd_len=32768
12813 fi
12814 ;;
12815 *)
John Criswell47fdd832003-07-14 16:52:07 +000012816 # If test is not a shell built-in, we'll probably end up computing a
12817 # maximum length that is only half of the actual maximum length, but
12818 # we can't tell.
Reid Spencer2706f8c2004-09-19 23:53:36 +000012819 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
12820 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
12821 = "XX$teststring") >/dev/null 2>&1 &&
12822 new_result=`expr "X$teststring" : ".*" 2>&1` &&
John Criswell47fdd832003-07-14 16:52:07 +000012823 lt_cv_sys_max_cmd_len=$new_result &&
12824 test $i != 17 # 1/2 MB should be enough
12825 do
12826 i=`expr $i + 1`
Reid Spencer2706f8c2004-09-19 23:53:36 +000012827 teststring=$teststring$teststring
John Criswell47fdd832003-07-14 16:52:07 +000012828 done
Reid Spencer2706f8c2004-09-19 23:53:36 +000012829 teststring=
John Criswell47fdd832003-07-14 16:52:07 +000012830 # Add a significant safety factor because C++ compilers can tack on massive
12831 # amounts of additional arguments before passing them to the linker.
12832 # It appears as though 1/2 is a usable value.
12833 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
12834 ;;
12835 esac
12836
12837fi
12838
12839if test -n $lt_cv_sys_max_cmd_len ; then
Reid Spencera773bd52006-08-04 18:18:08 +000012840 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
12841echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012842else
Reid Spencera773bd52006-08-04 18:18:08 +000012843 { echo "$as_me:$LINENO: result: none" >&5
12844echo "${ECHO_T}none" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012845fi
12846
12847
12848
12849
12850# Check for command to grab the raw symbol name followed by C symbol from nm.
Reid Spencera773bd52006-08-04 18:18:08 +000012851{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
12852echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012853if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
12854 echo $ECHO_N "(cached) $ECHO_C" >&6
12855else
12856
12857# These are sane defaults that work on at least a few old systems.
12858# [They come from Ultrix. What could be older than Ultrix?!! ;)]
12859
12860# Character class describing NM global symbol codes.
12861symcode='[BCDEGRST]'
12862
12863# Regexp to match symbols that can be accessed directly from C.
12864sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12865
John Criswell47fdd832003-07-14 16:52:07 +000012866# Transform an extracted symbol line into a proper C declaration
12867lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
12868
12869# Transform an extracted symbol line into symbol name and symbol address
12870lt_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'"
12871
12872# Define system-specific variables.
12873case $host_os in
12874aix*)
12875 symcode='[BCDT]'
12876 ;;
12877cygwin* | mingw* | pw32*)
12878 symcode='[ABCDGISTW]'
12879 ;;
12880hpux*) # Its linker distinguishes data from code symbols
12881 if test "$host_cpu" = ia64; then
12882 symcode='[ABCDEGRST]'
12883 fi
12884 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12885 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'"
12886 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000012887linux*)
12888 if test "$host_cpu" = ia64; then
12889 symcode='[ABCDGIRSTW]'
12890 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12891 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'"
12892 fi
12893 ;;
John Criswell47fdd832003-07-14 16:52:07 +000012894irix* | nonstopux*)
12895 symcode='[BCDEGRST]'
12896 ;;
12897osf*)
12898 symcode='[BCDEGQRST]'
12899 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000012900solaris*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000012901 symcode='[BDRT]'
John Criswell47fdd832003-07-14 16:52:07 +000012902 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000012903sco3.2v5*)
12904 symcode='[DT]'
12905 ;;
12906sysv4.2uw2*)
12907 symcode='[DT]'
12908 ;;
12909sysv5* | sco5v6* | unixware* | OpenUNIX*)
12910 symcode='[ABDT]'
12911 ;;
John Criswell47fdd832003-07-14 16:52:07 +000012912sysv4)
12913 symcode='[DFNSTU]'
12914 ;;
12915esac
12916
12917# Handle CRLF in mingw tool chain
12918opt_cr=
12919case $build_os in
12920mingw*)
12921 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12922 ;;
12923esac
12924
12925# If we're using GNU nm, then use its standard symbol codes.
12926case `$NM -V 2>&1` in
12927*GNU* | *'with BFD'*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000012928 symcode='[ABCDGIRSTW]' ;;
John Criswell47fdd832003-07-14 16:52:07 +000012929esac
12930
12931# Try without a prefix undercore, then with it.
12932for ac_symprfx in "" "_"; do
12933
Reid Spencera773bd52006-08-04 18:18:08 +000012934 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
12935 symxfrm="\\1 $ac_symprfx\\2 \\2"
12936
John Criswell47fdd832003-07-14 16:52:07 +000012937 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +000012938 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 +000012939
12940 # Check to see that the pipe works correctly.
12941 pipe_works=no
12942
12943 rm -f conftest*
12944 cat > conftest.$ac_ext <<EOF
12945#ifdef __cplusplus
12946extern "C" {
12947#endif
12948char nm_test_var;
12949void nm_test_func(){}
12950#ifdef __cplusplus
12951}
12952#endif
12953int main(){nm_test_var='a';nm_test_func();return(0);}
12954EOF
12955
12956 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12957 (eval $ac_compile) 2>&5
12958 ac_status=$?
12959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12960 (exit $ac_status); }; then
12961 # Now try to grab the symbols.
12962 nlist=conftest.nm
12963 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
12964 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
12965 ac_status=$?
12966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12967 (exit $ac_status); } && test -s "$nlist"; then
12968 # Try sorting and uniquifying the output.
12969 if sort "$nlist" | uniq > "$nlist"T; then
12970 mv -f "$nlist"T "$nlist"
12971 else
12972 rm -f "$nlist"T
12973 fi
12974
12975 # Make sure that we snagged all the symbols we need.
12976 if grep ' nm_test_var$' "$nlist" >/dev/null; then
12977 if grep ' nm_test_func$' "$nlist" >/dev/null; then
12978 cat <<EOF > conftest.$ac_ext
12979#ifdef __cplusplus
12980extern "C" {
12981#endif
12982
12983EOF
12984 # Now generate the symbol file.
12985 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
12986
12987 cat <<EOF >> conftest.$ac_ext
12988#if defined (__STDC__) && __STDC__
12989# define lt_ptr_t void *
12990#else
12991# define lt_ptr_t char *
12992# define const
12993#endif
12994
12995/* The mapping between symbol names and symbols. */
12996const struct {
12997 const char *name;
12998 lt_ptr_t address;
12999}
13000lt_preloaded_symbols[] =
13001{
13002EOF
13003 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
13004 cat <<\EOF >> conftest.$ac_ext
13005 {0, (lt_ptr_t) 0}
13006};
13007
13008#ifdef __cplusplus
13009}
13010#endif
13011EOF
13012 # Now try linking the two files.
13013 mv conftest.$ac_objext conftstm.$ac_objext
13014 lt_save_LIBS="$LIBS"
13015 lt_save_CFLAGS="$CFLAGS"
13016 LIBS="conftstm.$ac_objext"
13017 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13018 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13019 (eval $ac_link) 2>&5
13020 ac_status=$?
13021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13022 (exit $ac_status); } && test -s conftest${ac_exeext}; then
13023 pipe_works=yes
13024 fi
13025 LIBS="$lt_save_LIBS"
13026 CFLAGS="$lt_save_CFLAGS"
13027 else
13028 echo "cannot find nm_test_func in $nlist" >&5
13029 fi
13030 else
13031 echo "cannot find nm_test_var in $nlist" >&5
13032 fi
13033 else
13034 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13035 fi
13036 else
13037 echo "$progname: failed program was:" >&5
13038 cat conftest.$ac_ext >&5
13039 fi
13040 rm -f conftest* conftst*
13041
13042 # Do not use the global_symbol_pipe unless it works.
13043 if test "$pipe_works" = yes; then
13044 break
13045 else
13046 lt_cv_sys_global_symbol_pipe=
13047 fi
13048done
13049
13050fi
13051
13052if test -z "$lt_cv_sys_global_symbol_pipe"; then
13053 lt_cv_sys_global_symbol_to_cdecl=
13054fi
13055if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013056 { echo "$as_me:$LINENO: result: failed" >&5
13057echo "${ECHO_T}failed" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013058else
Reid Spencera773bd52006-08-04 18:18:08 +000013059 { echo "$as_me:$LINENO: result: ok" >&5
13060echo "${ECHO_T}ok" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013061fi
13062
Reid Spencera773bd52006-08-04 18:18:08 +000013063{ echo "$as_me:$LINENO: checking for objdir" >&5
13064echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013065if test "${lt_cv_objdir+set}" = set; then
13066 echo $ECHO_N "(cached) $ECHO_C" >&6
13067else
13068 rm -f .libs 2>/dev/null
13069mkdir .libs 2>/dev/null
13070if test -d .libs; then
13071 lt_cv_objdir=.libs
13072else
13073 # MS-DOS does not allow filenames that begin with a dot.
13074 lt_cv_objdir=_libs
13075fi
13076rmdir .libs 2>/dev/null
13077fi
Reid Spencera773bd52006-08-04 18:18:08 +000013078{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
13079echo "${ECHO_T}$lt_cv_objdir" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013080objdir=$lt_cv_objdir
13081
13082
13083
13084
13085
13086case $host_os in
13087aix3*)
13088 # AIX sometimes has problems with the GCC collect2 program. For some
13089 # reason, if we set the COLLECT_NAMES environment variable, the problems
13090 # vanish in a puff of smoke.
13091 if test "X${COLLECT_NAMES+set}" != Xset; then
13092 COLLECT_NAMES=
13093 export COLLECT_NAMES
John Criswell7a73b802003-06-30 21:59:07 +000013094 fi
13095 ;;
13096esac
13097
John Criswell47fdd832003-07-14 16:52:07 +000013098# Sed substitution that helps us do robust quoting. It backslashifies
13099# metacharacters that are still active within double-quoted strings.
Reid Spencera773bd52006-08-04 18:18:08 +000013100Xsed='sed -e 1s/^X//'
John Criswell47fdd832003-07-14 16:52:07 +000013101sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
13102
13103# Same as above, but do not quote variable references.
13104double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
13105
13106# Sed substitution to delay expansion of an escaped shell variable in a
13107# double_quote_subst'ed string.
13108delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
13109
13110# Sed substitution to avoid accidental globbing in evaled expressions
13111no_glob_subst='s/\*/\\\*/g'
13112
13113# Constants:
13114rm="rm -f"
13115
13116# Global variables:
Reid Spencere4d18e42004-09-20 01:42:32 +000013117default_ofile=mklib
John Criswell47fdd832003-07-14 16:52:07 +000013118can_build_shared=yes
13119
Reid Spencera773bd52006-08-04 18:18:08 +000013120# All known linkers require a `.a' archive for static linking (except MSVC,
John Criswell47fdd832003-07-14 16:52:07 +000013121# which needs '.lib').
13122libext=a
13123ltmain="$ac_aux_dir/ltmain.sh"
13124ofile="$default_ofile"
13125with_gnu_ld="$lt_cv_prog_gnu_ld"
13126
13127if test -n "$ac_tool_prefix"; then
13128 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13129set dummy ${ac_tool_prefix}ar; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013130{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13131echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013132if test "${ac_cv_prog_AR+set}" = set; then
13133 echo $ECHO_N "(cached) $ECHO_C" >&6
13134else
13135 if test -n "$AR"; then
13136 ac_cv_prog_AR="$AR" # Let the user override the test.
13137else
13138as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13139for as_dir in $PATH
13140do
13141 IFS=$as_save_IFS
13142 test -z "$as_dir" && as_dir=.
13143 for ac_exec_ext in '' $ac_executable_extensions; do
Torok Edwincc499a42008-10-22 09:56:27 +000013144 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 +000013145 ac_cv_prog_AR="${ac_tool_prefix}ar"
13146 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13147 break 2
13148 fi
13149done
13150done
Reid Spencera773bd52006-08-04 18:18:08 +000013151IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000013152
13153fi
13154fi
13155AR=$ac_cv_prog_AR
13156if test -n "$AR"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013157 { echo "$as_me:$LINENO: result: $AR" >&5
13158echo "${ECHO_T}$AR" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013159else
Reid Spencera773bd52006-08-04 18:18:08 +000013160 { echo "$as_me:$LINENO: result: no" >&5
13161echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013162fi
13163
Reid Spencera773bd52006-08-04 18:18:08 +000013164
John Criswell47fdd832003-07-14 16:52:07 +000013165fi
13166if test -z "$ac_cv_prog_AR"; then
13167 ac_ct_AR=$AR
13168 # Extract the first word of "ar", so it can be a program name with args.
13169set dummy ar; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013170{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13171echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013172if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
13173 echo $ECHO_N "(cached) $ECHO_C" >&6
13174else
13175 if test -n "$ac_ct_AR"; then
13176 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13177else
13178as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13179for as_dir in $PATH
13180do
13181 IFS=$as_save_IFS
13182 test -z "$as_dir" && as_dir=.
13183 for ac_exec_ext in '' $ac_executable_extensions; do
Torok Edwincc499a42008-10-22 09:56:27 +000013184 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 +000013185 ac_cv_prog_ac_ct_AR="ar"
13186 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13187 break 2
13188 fi
13189done
13190done
Reid Spencera773bd52006-08-04 18:18:08 +000013191IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000013192
John Criswell47fdd832003-07-14 16:52:07 +000013193fi
13194fi
13195ac_ct_AR=$ac_cv_prog_ac_ct_AR
13196if test -n "$ac_ct_AR"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013197 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
13198echo "${ECHO_T}$ac_ct_AR" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013199else
Reid Spencera773bd52006-08-04 18:18:08 +000013200 { echo "$as_me:$LINENO: result: no" >&5
13201echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013202fi
13203
Reid Spencera773bd52006-08-04 18:18:08 +000013204 if test "x$ac_ct_AR" = x; then
13205 AR="false"
13206 else
13207 case $cross_compiling:$ac_tool_warned in
13208yes:)
13209{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13210whose name does not start with the host triplet. If you think this
13211configuration is useful to you, please write to autoconf@gnu.org." >&5
13212echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13213whose name does not start with the host triplet. If you think this
13214configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13215ac_tool_warned=yes ;;
13216esac
13217 AR=$ac_ct_AR
13218 fi
John Criswell47fdd832003-07-14 16:52:07 +000013219else
13220 AR="$ac_cv_prog_AR"
13221fi
13222
John Criswell7a73b802003-06-30 21:59:07 +000013223if test -n "$ac_tool_prefix"; then
13224 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13225set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013226{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13227echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013228if test "${ac_cv_prog_RANLIB+set}" = set; then
13229 echo $ECHO_N "(cached) $ECHO_C" >&6
13230else
13231 if test -n "$RANLIB"; then
13232 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13233else
13234as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13235for as_dir in $PATH
13236do
13237 IFS=$as_save_IFS
13238 test -z "$as_dir" && as_dir=.
13239 for ac_exec_ext in '' $ac_executable_extensions; do
Torok Edwincc499a42008-10-22 09:56:27 +000013240 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 +000013241 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13242 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13243 break 2
13244 fi
13245done
13246done
Reid Spencera773bd52006-08-04 18:18:08 +000013247IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000013248
13249fi
13250fi
13251RANLIB=$ac_cv_prog_RANLIB
13252if test -n "$RANLIB"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013253 { echo "$as_me:$LINENO: result: $RANLIB" >&5
13254echo "${ECHO_T}$RANLIB" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013255else
Reid Spencera773bd52006-08-04 18:18:08 +000013256 { echo "$as_me:$LINENO: result: no" >&5
13257echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013258fi
13259
Reid Spencera773bd52006-08-04 18:18:08 +000013260
John Criswell7a73b802003-06-30 21:59:07 +000013261fi
13262if test -z "$ac_cv_prog_RANLIB"; then
13263 ac_ct_RANLIB=$RANLIB
13264 # Extract the first word of "ranlib", so it can be a program name with args.
13265set dummy ranlib; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013266{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13267echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013268if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
13269 echo $ECHO_N "(cached) $ECHO_C" >&6
13270else
13271 if test -n "$ac_ct_RANLIB"; then
13272 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13273else
13274as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13275for as_dir in $PATH
13276do
13277 IFS=$as_save_IFS
13278 test -z "$as_dir" && as_dir=.
13279 for ac_exec_ext in '' $ac_executable_extensions; do
Torok Edwincc499a42008-10-22 09:56:27 +000013280 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 +000013281 ac_cv_prog_ac_ct_RANLIB="ranlib"
13282 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13283 break 2
13284 fi
13285done
13286done
Reid Spencera773bd52006-08-04 18:18:08 +000013287IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000013288
John Criswell7a73b802003-06-30 21:59:07 +000013289fi
13290fi
13291ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13292if test -n "$ac_ct_RANLIB"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013293 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
13294echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013295else
Reid Spencera773bd52006-08-04 18:18:08 +000013296 { echo "$as_me:$LINENO: result: no" >&5
13297echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013298fi
13299
Reid Spencera773bd52006-08-04 18:18:08 +000013300 if test "x$ac_ct_RANLIB" = x; then
13301 RANLIB=":"
13302 else
13303 case $cross_compiling:$ac_tool_warned in
13304yes:)
13305{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13306whose name does not start with the host triplet. If you think this
13307configuration is useful to you, please write to autoconf@gnu.org." >&5
13308echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13309whose name does not start with the host triplet. If you think this
13310configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13311ac_tool_warned=yes ;;
13312esac
13313 RANLIB=$ac_ct_RANLIB
13314 fi
John Criswell7a73b802003-06-30 21:59:07 +000013315else
13316 RANLIB="$ac_cv_prog_RANLIB"
13317fi
13318
13319if test -n "$ac_tool_prefix"; then
13320 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13321set dummy ${ac_tool_prefix}strip; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013322{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13323echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013324if test "${ac_cv_prog_STRIP+set}" = set; then
13325 echo $ECHO_N "(cached) $ECHO_C" >&6
13326else
13327 if test -n "$STRIP"; then
13328 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13329else
13330as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13331for as_dir in $PATH
13332do
13333 IFS=$as_save_IFS
13334 test -z "$as_dir" && as_dir=.
13335 for ac_exec_ext in '' $ac_executable_extensions; do
Torok Edwincc499a42008-10-22 09:56:27 +000013336 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 +000013337 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13338 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13339 break 2
13340 fi
13341done
13342done
Reid Spencera773bd52006-08-04 18:18:08 +000013343IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000013344
13345fi
13346fi
13347STRIP=$ac_cv_prog_STRIP
13348if test -n "$STRIP"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013349 { echo "$as_me:$LINENO: result: $STRIP" >&5
13350echo "${ECHO_T}$STRIP" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013351else
Reid Spencera773bd52006-08-04 18:18:08 +000013352 { echo "$as_me:$LINENO: result: no" >&5
13353echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013354fi
13355
Reid Spencera773bd52006-08-04 18:18:08 +000013356
John Criswell7a73b802003-06-30 21:59:07 +000013357fi
13358if test -z "$ac_cv_prog_STRIP"; then
13359 ac_ct_STRIP=$STRIP
13360 # Extract the first word of "strip", so it can be a program name with args.
13361set dummy strip; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013362{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13363echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013364if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
13365 echo $ECHO_N "(cached) $ECHO_C" >&6
13366else
13367 if test -n "$ac_ct_STRIP"; then
13368 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13369else
13370as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13371for as_dir in $PATH
13372do
13373 IFS=$as_save_IFS
13374 test -z "$as_dir" && as_dir=.
13375 for ac_exec_ext in '' $ac_executable_extensions; do
Torok Edwincc499a42008-10-22 09:56:27 +000013376 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 +000013377 ac_cv_prog_ac_ct_STRIP="strip"
13378 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13379 break 2
13380 fi
13381done
13382done
Reid Spencera773bd52006-08-04 18:18:08 +000013383IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000013384
John Criswell7a73b802003-06-30 21:59:07 +000013385fi
13386fi
13387ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13388if test -n "$ac_ct_STRIP"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013389 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
13390echo "${ECHO_T}$ac_ct_STRIP" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013391else
Reid Spencera773bd52006-08-04 18:18:08 +000013392 { echo "$as_me:$LINENO: result: no" >&5
13393echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013394fi
13395
Reid Spencera773bd52006-08-04 18:18:08 +000013396 if test "x$ac_ct_STRIP" = x; then
13397 STRIP=":"
13398 else
13399 case $cross_compiling:$ac_tool_warned in
13400yes:)
13401{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13402whose name does not start with the host triplet. If you think this
13403configuration is useful to you, please write to autoconf@gnu.org." >&5
13404echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13405whose name does not start with the host triplet. If you think this
13406configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13407ac_tool_warned=yes ;;
13408esac
13409 STRIP=$ac_ct_STRIP
13410 fi
John Criswell7a73b802003-06-30 21:59:07 +000013411else
13412 STRIP="$ac_cv_prog_STRIP"
13413fi
13414
13415
John Criswell7a73b802003-06-30 21:59:07 +000013416old_CC="$CC"
13417old_CFLAGS="$CFLAGS"
13418
13419# Set sane defaults for various variables
13420test -z "$AR" && AR=ar
13421test -z "$AR_FLAGS" && AR_FLAGS=cru
13422test -z "$AS" && AS=as
13423test -z "$CC" && CC=cc
John Criswell47fdd832003-07-14 16:52:07 +000013424test -z "$LTCC" && LTCC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000013425test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
John Criswell7a73b802003-06-30 21:59:07 +000013426test -z "$DLLTOOL" && DLLTOOL=dlltool
13427test -z "$LD" && LD=ld
13428test -z "$LN_S" && LN_S="ln -s"
13429test -z "$MAGIC_CMD" && MAGIC_CMD=file
13430test -z "$NM" && NM=nm
John Criswell47fdd832003-07-14 16:52:07 +000013431test -z "$SED" && SED=sed
John Criswell7a73b802003-06-30 21:59:07 +000013432test -z "$OBJDUMP" && OBJDUMP=objdump
13433test -z "$RANLIB" && RANLIB=:
13434test -z "$STRIP" && STRIP=:
13435test -z "$ac_objext" && ac_objext=o
13436
John Criswell7a73b802003-06-30 21:59:07 +000013437# Determine commands to create old-style static archives.
13438old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
13439old_postinstall_cmds='chmod 644 $oldlib'
13440old_postuninstall_cmds=
13441
13442if test -n "$RANLIB"; then
13443 case $host_os in
13444 openbsd*)
Reid Spencera773bd52006-08-04 18:18:08 +000013445 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000013446 ;;
13447 *)
Reid Spencera773bd52006-08-04 18:18:08 +000013448 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000013449 ;;
13450 esac
Reid Spencer177dbe22004-10-13 01:01:03 +000013451 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000013452fi
13453
Reid Spencera773bd52006-08-04 18:18:08 +000013454for cc_temp in $compiler""; do
13455 case $cc_temp in
13456 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13457 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13458 \-*) ;;
13459 *) break;;
13460 esac
13461done
13462cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13463
Reid Spencer2706f8c2004-09-19 23:53:36 +000013464
John Criswell47fdd832003-07-14 16:52:07 +000013465# Only perform the check for file, if the check method requires it
13466case $deplibs_check_method in
13467file_magic*)
13468 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
Reid Spencera773bd52006-08-04 18:18:08 +000013469 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
13470echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013471if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
13472 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000013473else
John Criswell47fdd832003-07-14 16:52:07 +000013474 case $MAGIC_CMD in
13475[\\/*] | ?:[\\/]*)
13476 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13477 ;;
13478*)
13479 lt_save_MAGIC_CMD="$MAGIC_CMD"
13480 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13481 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13482 for ac_dir in $ac_dummy; do
13483 IFS="$lt_save_ifs"
13484 test -z "$ac_dir" && ac_dir=.
13485 if test -f $ac_dir/${ac_tool_prefix}file; then
13486 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
13487 if test -n "$file_magic_test_file"; then
13488 case $deplibs_check_method in
13489 "file_magic "*)
Reid Spencera773bd52006-08-04 18:18:08 +000013490 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
John Criswell47fdd832003-07-14 16:52:07 +000013491 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13492 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13493 $EGREP "$file_magic_regex" > /dev/null; then
13494 :
13495 else
13496 cat <<EOF 1>&2
13497
13498*** Warning: the command libtool uses to detect shared libraries,
13499*** $file_magic_cmd, produces output that libtool cannot recognize.
13500*** The result is that libtool may fail to recognize shared libraries
13501*** as such. This will affect the creation of libtool libraries that
13502*** depend on shared libraries, but programs linked with such libtool
13503*** libraries will work regardless of this problem. Nevertheless, you
13504*** may want to report the problem to your system manager and/or to
13505*** bug-libtool@gnu.org
13506
13507EOF
13508 fi ;;
13509 esac
13510 fi
13511 break
13512 fi
13513 done
13514 IFS="$lt_save_ifs"
13515 MAGIC_CMD="$lt_save_MAGIC_CMD"
13516 ;;
13517esac
John Criswell7a73b802003-06-30 21:59:07 +000013518fi
John Criswell7a73b802003-06-30 21:59:07 +000013519
John Criswell47fdd832003-07-14 16:52:07 +000013520MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13521if test -n "$MAGIC_CMD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013522 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
13523echo "${ECHO_T}$MAGIC_CMD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013524else
Reid Spencera773bd52006-08-04 18:18:08 +000013525 { echo "$as_me:$LINENO: result: no" >&5
13526echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013527fi
John Criswell7a73b802003-06-30 21:59:07 +000013528
John Criswell47fdd832003-07-14 16:52:07 +000013529if test -z "$lt_cv_path_MAGIC_CMD"; then
13530 if test -n "$ac_tool_prefix"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013531 { echo "$as_me:$LINENO: checking for file" >&5
13532echo $ECHO_N "checking for file... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013533if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
13534 echo $ECHO_N "(cached) $ECHO_C" >&6
13535else
13536 case $MAGIC_CMD in
13537[\\/*] | ?:[\\/]*)
13538 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13539 ;;
13540*)
13541 lt_save_MAGIC_CMD="$MAGIC_CMD"
13542 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13543 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13544 for ac_dir in $ac_dummy; do
13545 IFS="$lt_save_ifs"
13546 test -z "$ac_dir" && ac_dir=.
13547 if test -f $ac_dir/file; then
13548 lt_cv_path_MAGIC_CMD="$ac_dir/file"
13549 if test -n "$file_magic_test_file"; then
13550 case $deplibs_check_method in
13551 "file_magic "*)
Reid Spencera773bd52006-08-04 18:18:08 +000013552 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
John Criswell47fdd832003-07-14 16:52:07 +000013553 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13554 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13555 $EGREP "$file_magic_regex" > /dev/null; then
13556 :
13557 else
13558 cat <<EOF 1>&2
13559
13560*** Warning: the command libtool uses to detect shared libraries,
13561*** $file_magic_cmd, produces output that libtool cannot recognize.
13562*** The result is that libtool may fail to recognize shared libraries
13563*** as such. This will affect the creation of libtool libraries that
13564*** depend on shared libraries, but programs linked with such libtool
13565*** libraries will work regardless of this problem. Nevertheless, you
13566*** may want to report the problem to your system manager and/or to
13567*** bug-libtool@gnu.org
13568
13569EOF
13570 fi ;;
13571 esac
13572 fi
13573 break
13574 fi
13575 done
13576 IFS="$lt_save_ifs"
13577 MAGIC_CMD="$lt_save_MAGIC_CMD"
13578 ;;
13579esac
13580fi
13581
13582MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13583if test -n "$MAGIC_CMD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013584 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
13585echo "${ECHO_T}$MAGIC_CMD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013586else
Reid Spencera773bd52006-08-04 18:18:08 +000013587 { echo "$as_me:$LINENO: result: no" >&5
13588echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013589fi
13590
13591 else
13592 MAGIC_CMD=:
13593 fi
13594fi
13595
13596 fi
13597 ;;
13598esac
13599
Reid Spencer17795972004-11-18 09:47:37 +000013600enable_dlopen=yes
John Criswell47fdd832003-07-14 16:52:07 +000013601enable_win32_dll=no
13602
Reid Spencera773bd52006-08-04 18:18:08 +000013603# Check whether --enable-libtool-lock was given.
John Criswell47fdd832003-07-14 16:52:07 +000013604if test "${enable_libtool_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000013605 enableval=$enable_libtool_lock;
13606fi
John Criswell47fdd832003-07-14 16:52:07 +000013607
John Criswell47fdd832003-07-14 16:52:07 +000013608test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13609
John Criswell7a73b802003-06-30 21:59:07 +000013610
Reid Spencera773bd52006-08-04 18:18:08 +000013611# Check whether --with-pic was given.
John Criswell7a73b802003-06-30 21:59:07 +000013612if test "${with_pic+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000013613 withval=$with_pic; pic_mode="$withval"
John Criswell7a73b802003-06-30 21:59:07 +000013614else
13615 pic_mode=default
Reid Spencera773bd52006-08-04 18:18:08 +000013616fi
13617
John Criswell7a73b802003-06-30 21:59:07 +000013618test -z "$pic_mode" && pic_mode=default
13619
John Criswell47fdd832003-07-14 16:52:07 +000013620# Use C for the default configuration in the libtool script
13621tagname=
13622lt_save_CC="$CC"
13623ac_ext=c
13624ac_cpp='$CPP $CPPFLAGS'
13625ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13626ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13627ac_compiler_gnu=$ac_cv_c_compiler_gnu
13628
13629
13630# Source file extension for C test sources.
13631ac_ext=c
13632
13633# Object file extension for compiled C test sources.
13634objext=o
13635objext=$objext
13636
13637# Code to be used in simple compile tests
13638lt_simple_compile_test_code="int some_variable = 0;\n"
13639
13640# Code to be used in simple link tests
13641lt_simple_link_test_code='int main(){return(0);}\n'
13642
13643
13644# If no C compiler was specified, use CC.
13645LTCC=${LTCC-"$CC"}
13646
Reid Spencera773bd52006-08-04 18:18:08 +000013647# If no C compiler flags were specified, use CFLAGS.
13648LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13649
John Criswell47fdd832003-07-14 16:52:07 +000013650# Allow CC to be a program name with arguments.
13651compiler=$CC
13652
13653
Reid Spencera773bd52006-08-04 18:18:08 +000013654# save warnings/boilerplate of simple test code
13655ac_outfile=conftest.$ac_objext
13656printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13657eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13658_lt_compiler_boilerplate=`cat conftest.err`
13659$rm conftest*
John Criswell47fdd832003-07-14 16:52:07 +000013660
Reid Spencera773bd52006-08-04 18:18:08 +000013661ac_outfile=conftest.$ac_objext
13662printf "$lt_simple_link_test_code" >conftest.$ac_ext
13663eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13664_lt_linker_boilerplate=`cat conftest.err`
13665$rm conftest*
John Criswell47fdd832003-07-14 16:52:07 +000013666
13667
Torok Edwincc499a42008-10-22 09:56:27 +000013668## CAVEAT EMPTOR:
13669## There is no encapsulation within the following macros, do not change
13670## the running order or otherwise move them around unless you know exactly
13671## what you are doing...
John Criswell47fdd832003-07-14 16:52:07 +000013672
13673lt_prog_compiler_no_builtin_flag=
13674
13675if test "$GCC" = yes; then
13676 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
13677
Reid Spencer2706f8c2004-09-19 23:53:36 +000013678
Reid Spencera773bd52006-08-04 18:18:08 +000013679{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
13680echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013681if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
13682 echo $ECHO_N "(cached) $ECHO_C" >&6
13683else
13684 lt_cv_prog_compiler_rtti_exceptions=no
13685 ac_outfile=conftest.$ac_objext
13686 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13687 lt_compiler_flag="-fno-rtti -fno-exceptions"
13688 # Insert the option either (1) after the last *FLAGS variable, or
13689 # (2) before a word containing "conftest.", or (3) at the end.
13690 # Note that $ac_compile itself does not contain backslashes and begins
13691 # with a dollar sign (not a hyphen), so the echo should work correctly.
13692 # The option is referenced via a variable to avoid confusing sed.
13693 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000013694 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000013695 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13696 -e 's:$: $lt_compiler_flag:'`
Torok Edwincc499a42008-10-22 09:56:27 +000013697 (eval echo "\"\$as_me:13697: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000013698 (eval "$lt_compile" 2>conftest.err)
13699 ac_status=$?
13700 cat conftest.err >&5
Torok Edwincc499a42008-10-22 09:56:27 +000013701 echo "$as_me:13701: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000013702 if (exit $ac_status) && test -s "$ac_outfile"; then
13703 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000013704 # So say no if there are warnings other than the usual output.
13705 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13706 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13707 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000013708 lt_cv_prog_compiler_rtti_exceptions=yes
13709 fi
13710 fi
13711 $rm conftest*
13712
13713fi
Reid Spencera773bd52006-08-04 18:18:08 +000013714{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
13715echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013716
13717if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
13718 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
13719else
13720 :
13721fi
13722
13723fi
13724
13725lt_prog_compiler_wl=
13726lt_prog_compiler_pic=
13727lt_prog_compiler_static=
13728
Reid Spencera773bd52006-08-04 18:18:08 +000013729{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13730echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013731
13732 if test "$GCC" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000013733 lt_prog_compiler_wl='-Wl,'
13734 lt_prog_compiler_static='-static'
John Criswell7a73b802003-06-30 21:59:07 +000013735
13736 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000013737 aix*)
13738 # All AIX code is PIC.
13739 if test "$host_cpu" = ia64; then
13740 # AIX 5 now supports IA64 processor
13741 lt_prog_compiler_static='-Bstatic'
13742 fi
John Criswell7a73b802003-06-30 21:59:07 +000013743 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013744
John Criswell7a73b802003-06-30 21:59:07 +000013745 amigaos*)
13746 # FIXME: we need at least 68020 code to build shared libraries, but
13747 # adding the `-m68020' flag to GCC prevents building anything better,
13748 # like `-m68040'.
John Criswell47fdd832003-07-14 16:52:07 +000013749 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
John Criswell7a73b802003-06-30 21:59:07 +000013750 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013751
13752 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
John Criswell7a73b802003-06-30 21:59:07 +000013753 # PIC is the default for these OSes.
13754 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013755
13756 mingw* | pw32* | os2*)
13757 # This hack is so that the source file can tell whether it is being
13758 # built for inclusion in a dll (and should export symbols for example).
13759 lt_prog_compiler_pic='-DDLL_EXPORT'
13760 ;;
13761
John Criswell7a73b802003-06-30 21:59:07 +000013762 darwin* | rhapsody*)
13763 # PIC is the default on this platform
13764 # Common symbols not allowed in MH_DYLIB files
John Criswell47fdd832003-07-14 16:52:07 +000013765 lt_prog_compiler_pic='-fno-common'
John Criswell7a73b802003-06-30 21:59:07 +000013766 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013767
Reid Spencera773bd52006-08-04 18:18:08 +000013768 interix3*)
13769 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13770 # Instead, we relocate shared libraries at runtime.
13771 ;;
13772
John Criswell47fdd832003-07-14 16:52:07 +000013773 msdosdjgpp*)
13774 # Just because we use GCC doesn't mean we suddenly get shared libraries
13775 # on systems that don't support them.
13776 lt_prog_compiler_can_build_shared=no
13777 enable_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000013778 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013779
John Criswell7a73b802003-06-30 21:59:07 +000013780 sysv4*MP*)
13781 if test -d /usr/nec; then
John Criswell47fdd832003-07-14 16:52:07 +000013782 lt_prog_compiler_pic=-Kconform_pic
John Criswell7a73b802003-06-30 21:59:07 +000013783 fi
13784 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013785
13786 hpux*)
13787 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13788 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000013789 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000013790 hppa*64*|ia64*)
13791 # +Z the default
13792 ;;
13793 *)
13794 lt_prog_compiler_pic='-fPIC'
13795 ;;
13796 esac
13797 ;;
13798
John Criswell7a73b802003-06-30 21:59:07 +000013799 *)
John Criswell47fdd832003-07-14 16:52:07 +000013800 lt_prog_compiler_pic='-fPIC'
John Criswell7a73b802003-06-30 21:59:07 +000013801 ;;
13802 esac
13803 else
John Criswell47fdd832003-07-14 16:52:07 +000013804 # PORTME Check for flag to pass linker flags through the system compiler.
John Criswell7a73b802003-06-30 21:59:07 +000013805 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000013806 aix*)
13807 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000013808 if test "$host_cpu" = ia64; then
13809 # AIX 5 now supports IA64 processor
John Criswell47fdd832003-07-14 16:52:07 +000013810 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000013811 else
John Criswell47fdd832003-07-14 16:52:07 +000013812 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
John Criswell7a73b802003-06-30 21:59:07 +000013813 fi
13814 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000013815 darwin*)
13816 # PIC is the default on this platform
13817 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000013818 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000013819 xlc*)
13820 lt_prog_compiler_pic='-qnocommon'
13821 lt_prog_compiler_wl='-Wl,'
13822 ;;
13823 esac
13824 ;;
John Criswell7a73b802003-06-30 21:59:07 +000013825
John Criswell47fdd832003-07-14 16:52:07 +000013826 mingw* | pw32* | os2*)
13827 # This hack is so that the source file can tell whether it is being
13828 # built for inclusion in a dll (and should export symbols for example).
13829 lt_prog_compiler_pic='-DDLL_EXPORT'
13830 ;;
13831
John Criswell7a73b802003-06-30 21:59:07 +000013832 hpux9* | hpux10* | hpux11*)
John Criswell47fdd832003-07-14 16:52:07 +000013833 lt_prog_compiler_wl='-Wl,'
13834 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13835 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000013836 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000013837 hppa*64*|ia64*)
13838 # +Z the default
13839 ;;
13840 *)
13841 lt_prog_compiler_pic='+Z'
13842 ;;
13843 esac
13844 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13845 lt_prog_compiler_static='${wl}-a ${wl}archive'
John Criswell7a73b802003-06-30 21:59:07 +000013846 ;;
13847
John Criswell47fdd832003-07-14 16:52:07 +000013848 irix5* | irix6* | nonstopux*)
13849 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000013850 # PIC (with -KPIC) is the default.
John Criswell47fdd832003-07-14 16:52:07 +000013851 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000013852 ;;
13853
13854 newsos6)
John Criswell47fdd832003-07-14 16:52:07 +000013855 lt_prog_compiler_pic='-KPIC'
13856 lt_prog_compiler_static='-Bstatic'
13857 ;;
13858
13859 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000013860 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000013861 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000013862 lt_prog_compiler_wl='-Wl,'
13863 lt_prog_compiler_pic='-KPIC'
13864 lt_prog_compiler_static='-static'
13865 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000013866 pgcc* | pgf77* | pgf90* | pgf95*)
13867 # Portland Group compilers (*not* the Pentium gcc compiler,
13868 # which looks to be a dead project)
13869 lt_prog_compiler_wl='-Wl,'
13870 lt_prog_compiler_pic='-fpic'
13871 lt_prog_compiler_static='-Bstatic'
13872 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000013873 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000013874 lt_prog_compiler_wl='-Wl,'
13875 # All Alpha code is PIC.
13876 lt_prog_compiler_static='-non_shared'
13877 ;;
13878 esac
John Criswell7a73b802003-06-30 21:59:07 +000013879 ;;
13880
13881 osf3* | osf4* | osf5*)
John Criswell47fdd832003-07-14 16:52:07 +000013882 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000013883 # All OSF/1 code is PIC.
John Criswell47fdd832003-07-14 16:52:07 +000013884 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000013885 ;;
13886
John Criswell7a73b802003-06-30 21:59:07 +000013887 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000013888 lt_prog_compiler_pic='-KPIC'
13889 lt_prog_compiler_static='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000013890 case $cc_basename in
13891 f77* | f90* | f95*)
13892 lt_prog_compiler_wl='-Qoption ld ';;
13893 *)
13894 lt_prog_compiler_wl='-Wl,';;
13895 esac
John Criswell7a73b802003-06-30 21:59:07 +000013896 ;;
13897
13898 sunos4*)
John Criswell47fdd832003-07-14 16:52:07 +000013899 lt_prog_compiler_wl='-Qoption ld '
13900 lt_prog_compiler_pic='-PIC'
13901 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000013902 ;;
13903
Reid Spencera773bd52006-08-04 18:18:08 +000013904 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000013905 lt_prog_compiler_wl='-Wl,'
13906 lt_prog_compiler_pic='-KPIC'
13907 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000013908 ;;
13909
13910 sysv4*MP*)
13911 if test -d /usr/nec ;then
John Criswell47fdd832003-07-14 16:52:07 +000013912 lt_prog_compiler_pic='-Kconform_pic'
13913 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000013914 fi
13915 ;;
13916
Reid Spencera773bd52006-08-04 18:18:08 +000013917 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13918 lt_prog_compiler_wl='-Wl,'
13919 lt_prog_compiler_pic='-KPIC'
13920 lt_prog_compiler_static='-Bstatic'
13921 ;;
13922
13923 unicos*)
13924 lt_prog_compiler_wl='-Wl,'
13925 lt_prog_compiler_can_build_shared=no
13926 ;;
13927
John Criswell47fdd832003-07-14 16:52:07 +000013928 uts4*)
13929 lt_prog_compiler_pic='-pic'
13930 lt_prog_compiler_static='-Bstatic'
13931 ;;
13932
John Criswell7a73b802003-06-30 21:59:07 +000013933 *)
John Criswell47fdd832003-07-14 16:52:07 +000013934 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000013935 ;;
13936 esac
13937 fi
13938
Reid Spencera773bd52006-08-04 18:18:08 +000013939{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
13940echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013941
John Criswell47fdd832003-07-14 16:52:07 +000013942#
13943# Check to make sure the PIC flag actually works.
13944#
13945if test -n "$lt_prog_compiler_pic"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000013946
Reid Spencera773bd52006-08-04 18:18:08 +000013947{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
13948echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013949if test "${lt_prog_compiler_pic_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000013950 echo $ECHO_N "(cached) $ECHO_C" >&6
13951else
John Criswell47fdd832003-07-14 16:52:07 +000013952 lt_prog_compiler_pic_works=no
13953 ac_outfile=conftest.$ac_objext
13954 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13955 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
13956 # Insert the option either (1) after the last *FLAGS variable, or
13957 # (2) before a word containing "conftest.", or (3) at the end.
13958 # Note that $ac_compile itself does not contain backslashes and begins
13959 # with a dollar sign (not a hyphen), so the echo should work correctly.
13960 # The option is referenced via a variable to avoid confusing sed.
13961 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000013962 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000013963 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13964 -e 's:$: $lt_compiler_flag:'`
Torok Edwincc499a42008-10-22 09:56:27 +000013965 (eval echo "\"\$as_me:13965: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000013966 (eval "$lt_compile" 2>conftest.err)
13967 ac_status=$?
13968 cat conftest.err >&5
Torok Edwincc499a42008-10-22 09:56:27 +000013969 echo "$as_me:13969: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000013970 if (exit $ac_status) && test -s "$ac_outfile"; then
13971 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000013972 # So say no if there are warnings other than the usual output.
13973 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13974 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13975 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000013976 lt_prog_compiler_pic_works=yes
13977 fi
13978 fi
13979 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000013980
John Criswell47fdd832003-07-14 16:52:07 +000013981fi
Reid Spencera773bd52006-08-04 18:18:08 +000013982{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
13983echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013984
John Criswell47fdd832003-07-14 16:52:07 +000013985if test x"$lt_prog_compiler_pic_works" = xyes; then
13986 case $lt_prog_compiler_pic in
13987 "" | " "*) ;;
13988 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
13989 esac
John Criswell7a73b802003-06-30 21:59:07 +000013990else
John Criswell47fdd832003-07-14 16:52:07 +000013991 lt_prog_compiler_pic=
13992 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000013993fi
13994
John Criswell7a73b802003-06-30 21:59:07 +000013995fi
Reid Spencera773bd52006-08-04 18:18:08 +000013996case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000013997 # For platforms which do not support PIC, -DPIC is meaningless:
13998 *djgpp*)
13999 lt_prog_compiler_pic=
14000 ;;
14001 *)
14002 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14003 ;;
14004esac
John Criswell7a73b802003-06-30 21:59:07 +000014005
Reid Spencera773bd52006-08-04 18:18:08 +000014006#
14007# Check to make sure the static flag actually works.
14008#
14009wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14010{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14011echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14012if test "${lt_prog_compiler_static_works+set}" = set; then
14013 echo $ECHO_N "(cached) $ECHO_C" >&6
14014else
14015 lt_prog_compiler_static_works=no
14016 save_LDFLAGS="$LDFLAGS"
14017 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14018 printf "$lt_simple_link_test_code" > conftest.$ac_ext
14019 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14020 # The linker can only warn and ignore the option if not recognized
14021 # So say no if there are warnings
14022 if test -s conftest.err; then
14023 # Append any errors to the config.log.
14024 cat conftest.err 1>&5
14025 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14026 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14027 if diff conftest.exp conftest.er2 >/dev/null; then
14028 lt_prog_compiler_static_works=yes
14029 fi
14030 else
14031 lt_prog_compiler_static_works=yes
14032 fi
14033 fi
14034 $rm conftest*
14035 LDFLAGS="$save_LDFLAGS"
14036
14037fi
14038{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
14039echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
14040
14041if test x"$lt_prog_compiler_static_works" = xyes; then
14042 :
14043else
14044 lt_prog_compiler_static=
14045fi
14046
14047
14048{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14049echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014050if test "${lt_cv_prog_compiler_c_o+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000014051 echo $ECHO_N "(cached) $ECHO_C" >&6
14052else
John Criswell47fdd832003-07-14 16:52:07 +000014053 lt_cv_prog_compiler_c_o=no
14054 $rm -r conftest 2>/dev/null
14055 mkdir conftest
14056 cd conftest
14057 mkdir out
14058 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014059
John Criswell47fdd832003-07-14 16:52:07 +000014060 lt_compiler_flag="-o out/conftest2.$ac_objext"
14061 # Insert the option either (1) after the last *FLAGS variable, or
14062 # (2) before a word containing "conftest.", or (3) at the end.
14063 # Note that $ac_compile itself does not contain backslashes and begins
14064 # with a dollar sign (not a hyphen), so the echo should work correctly.
14065 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000014066 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000014067 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14068 -e 's:$: $lt_compiler_flag:'`
Torok Edwincc499a42008-10-22 09:56:27 +000014069 (eval echo "\"\$as_me:14069: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000014070 (eval "$lt_compile" 2>out/conftest.err)
14071 ac_status=$?
14072 cat out/conftest.err >&5
Torok Edwincc499a42008-10-22 09:56:27 +000014073 echo "$as_me:14073: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000014074 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14075 then
14076 # The compiler can only warn and ignore the option if not recognized
14077 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000014078 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14079 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14080 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000014081 lt_cv_prog_compiler_c_o=yes
14082 fi
14083 fi
Reid Spencera773bd52006-08-04 18:18:08 +000014084 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000014085 $rm conftest*
14086 # SGI C++ compiler will create directory out/ii_files/ for
14087 # template instantiation
14088 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14089 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000014090 cd ..
14091 rmdir conftest
14092 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000014093
14094fi
Reid Spencera773bd52006-08-04 18:18:08 +000014095{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
14096echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014097
John Criswell7a73b802003-06-30 21:59:07 +000014098
John Criswell7a73b802003-06-30 21:59:07 +000014099hard_links="nottested"
John Criswell47fdd832003-07-14 16:52:07 +000014100if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
John Criswell7a73b802003-06-30 21:59:07 +000014101 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000014102 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14103echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014104 hard_links=yes
14105 $rm conftest*
14106 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14107 touch conftest.a
14108 ln conftest.a conftest.b 2>&5 || hard_links=no
14109 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000014110 { echo "$as_me:$LINENO: result: $hard_links" >&5
14111echo "${ECHO_T}$hard_links" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014112 if test "$hard_links" = no; then
14113 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14114echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14115 need_locks=warn
14116 fi
14117else
14118 need_locks=no
14119fi
John Criswell7a73b802003-06-30 21:59:07 +000014120
Reid Spencera773bd52006-08-04 18:18:08 +000014121{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14122echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014123
14124 runpath_var=
14125 allow_undefined_flag=
14126 enable_shared_with_static_runtimes=no
14127 archive_cmds=
14128 archive_expsym_cmds=
14129 old_archive_From_new_cmds=
14130 old_archive_from_expsyms_cmds=
14131 export_dynamic_flag_spec=
14132 whole_archive_flag_spec=
14133 thread_safe_flag_spec=
14134 hardcode_libdir_flag_spec=
14135 hardcode_libdir_flag_spec_ld=
14136 hardcode_libdir_separator=
14137 hardcode_direct=no
14138 hardcode_minus_L=no
14139 hardcode_shlibpath_var=unsupported
14140 link_all_deplibs=unknown
14141 hardcode_automatic=no
14142 module_cmds=
14143 module_expsym_cmds=
14144 always_export_symbols=no
14145 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14146 # include_expsyms should be a list of space-separated symbols to be *always*
14147 # included in the symbol list
14148 include_expsyms=
14149 # exclude_expsyms can be an extended regexp of symbols to exclude
14150 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14151 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14152 # as well as any symbol that contains `d'.
14153 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
14154 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14155 # platforms (ab)use it in PIC code, but their linkers get confused if
14156 # the symbol is explicitly referenced. Since portable code cannot
14157 # rely on this symbol name, it's probably fine to never include it in
14158 # preloaded symbol tables.
14159 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000014160 # Just being paranoid about ensuring that cc_basename is set.
14161 for cc_temp in $compiler""; do
14162 case $cc_temp in
14163 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14164 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14165 \-*) ;;
14166 *) break;;
14167 esac
14168done
14169cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000014170
14171 case $host_os in
14172 cygwin* | mingw* | pw32*)
14173 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14174 # When not using gcc, we currently assume that we are using
14175 # Microsoft Visual C++.
14176 if test "$GCC" != yes; then
14177 with_gnu_ld=no
14178 fi
14179 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000014180 interix*)
14181 # we just hope/assume this is gcc and not c89 (= MSVC++)
14182 with_gnu_ld=yes
14183 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014184 openbsd*)
14185 with_gnu_ld=no
14186 ;;
14187 esac
14188
14189 ld_shlibs=yes
14190 if test "$with_gnu_ld" = yes; then
14191 # If archive_cmds runs LD, not CC, wlarc should be empty
14192 wlarc='${wl}'
14193
Reid Spencera773bd52006-08-04 18:18:08 +000014194 # Set some defaults for GNU ld with shared library support. These
14195 # are reset later if shared libraries are not supported. Putting them
14196 # here allows them to be overridden if necessary.
14197 runpath_var=LD_RUN_PATH
14198 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
14199 export_dynamic_flag_spec='${wl}--export-dynamic'
14200 # ancient GNU ld didn't support --whole-archive et. al.
14201 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14202 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14203 else
14204 whole_archive_flag_spec=
14205 fi
14206 supports_anon_versioning=no
14207 case `$LD -v 2>/dev/null` in
14208 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14209 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14210 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14211 *\ 2.11.*) ;; # other 2.11 versions
14212 *) supports_anon_versioning=yes ;;
14213 esac
14214
John Criswell47fdd832003-07-14 16:52:07 +000014215 # See if GNU ld supports shared libraries.
14216 case $host_os in
14217 aix3* | aix4* | aix5*)
14218 # On AIX/PPC, the GNU linker is very broken
14219 if test "$host_cpu" != ia64; then
14220 ld_shlibs=no
14221 cat <<EOF 1>&2
14222
14223*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14224*** to be unable to reliably create shared libraries on AIX.
14225*** Therefore, libtool is disabling shared libraries support. If you
14226*** really care for shared libraries, you may want to modify your PATH
14227*** so that a non-GNU linker is found, and then restart.
14228
14229EOF
14230 fi
14231 ;;
14232
14233 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000014234 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 +000014235 hardcode_libdir_flag_spec='-L$libdir'
14236 hardcode_minus_L=yes
14237
14238 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14239 # that the semantics of dynamic libraries on AmigaOS, at least up
14240 # to version 4, is to share data among multiple programs linked
14241 # with the same dynamic library. Since this doesn't match the
14242 # behavior of shared libraries on other platforms, we can't use
14243 # them.
14244 ld_shlibs=no
14245 ;;
14246
14247 beos*)
14248 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14249 allow_undefined_flag=unsupported
14250 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14251 # support --undefined. This deserves some investigation. FIXME
14252 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14253 else
14254 ld_shlibs=no
14255 fi
14256 ;;
14257
14258 cygwin* | mingw* | pw32*)
14259 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14260 # as there is no search path for DLLs.
14261 hardcode_libdir_flag_spec='-L$libdir'
14262 allow_undefined_flag=unsupported
14263 always_export_symbols=no
14264 enable_shared_with_static_runtimes=yes
Reid Spencera773bd52006-08-04 18:18:08 +000014265 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 +000014266
14267 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000014268 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 +000014269 # If the export-symbols file already is a .def file (1st line
14270 # is EXPORTS), use it as is; otherwise, prepend...
14271 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14272 cp $export_symbols $output_objdir/$soname.def;
14273 else
14274 echo EXPORTS > $output_objdir/$soname.def;
14275 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000014276 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000014277 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14278 else
14279 ld_shlibs=no
14280 fi
14281 ;;
14282
14283 interix3*)
14284 hardcode_direct=no
14285 hardcode_shlibpath_var=no
14286 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14287 export_dynamic_flag_spec='${wl}-E'
14288 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14289 # Instead, shared libraries are loaded at an image base (0x10000000 by
14290 # default) and relocated if they conflict, which is a slow very memory
14291 # consuming and fragmenting process. To avoid this, we pick a random,
14292 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14293 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14294 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14295 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'
14296 ;;
14297
14298 linux*)
14299 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14300 tmp_addflag=
14301 case $cc_basename,$host_cpu in
14302 pgcc*) # Portland Group C compiler
14303 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'
14304 tmp_addflag=' $pic_flag'
14305 ;;
14306 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14307 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'
14308 tmp_addflag=' $pic_flag -Mnomain' ;;
14309 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14310 tmp_addflag=' -i_dynamic' ;;
14311 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14312 tmp_addflag=' -i_dynamic -nofor_main' ;;
14313 ifc* | ifort*) # Intel Fortran compiler
14314 tmp_addflag=' -nofor_main' ;;
14315 esac
14316 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14317
14318 if test $supports_anon_versioning = yes; then
14319 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
14320 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14321 $echo "local: *; };" >> $output_objdir/$libname.ver~
14322 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14323 fi
John Criswell47fdd832003-07-14 16:52:07 +000014324 else
14325 ld_shlibs=no
14326 fi
14327 ;;
14328
14329 netbsd*)
14330 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14331 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14332 wlarc=
14333 else
14334 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14335 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14336 fi
14337 ;;
14338
Reid Spencera773bd52006-08-04 18:18:08 +000014339 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000014340 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14341 ld_shlibs=no
14342 cat <<EOF 1>&2
14343
14344*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14345*** create shared libraries on Solaris systems. Therefore, libtool
14346*** is disabling shared libraries support. We urge you to upgrade GNU
14347*** binutils to release 2.9.1 or newer. Another option is to modify
14348*** your PATH or compiler configuration so that the native linker is
14349*** used, and then restart.
14350
14351EOF
14352 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14353 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14354 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14355 else
14356 ld_shlibs=no
14357 fi
14358 ;;
14359
Reid Spencera773bd52006-08-04 18:18:08 +000014360 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14361 case `$LD -v 2>&1` in
14362 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14363 ld_shlibs=no
14364 cat <<_LT_EOF 1>&2
14365
14366*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14367*** reliably create shared libraries on SCO systems. Therefore, libtool
14368*** is disabling shared libraries support. We urge you to upgrade GNU
14369*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14370*** your PATH or compiler configuration so that the native linker is
14371*** used, and then restart.
14372
14373_LT_EOF
14374 ;;
14375 *)
14376 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14377 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14378 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14379 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14380 else
14381 ld_shlibs=no
14382 fi
14383 ;;
14384 esac
14385 ;;
14386
John Criswell47fdd832003-07-14 16:52:07 +000014387 sunos4*)
14388 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14389 wlarc=
14390 hardcode_direct=yes
14391 hardcode_shlibpath_var=no
14392 ;;
14393
14394 *)
14395 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14396 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14397 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14398 else
14399 ld_shlibs=no
14400 fi
14401 ;;
14402 esac
14403
Reid Spencera773bd52006-08-04 18:18:08 +000014404 if test "$ld_shlibs" = no; then
14405 runpath_var=
14406 hardcode_libdir_flag_spec=
14407 export_dynamic_flag_spec=
14408 whole_archive_flag_spec=
John Criswell47fdd832003-07-14 16:52:07 +000014409 fi
14410 else
14411 # PORTME fill in a description of your system's linker (not GNU ld)
14412 case $host_os in
14413 aix3*)
14414 allow_undefined_flag=unsupported
14415 always_export_symbols=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000014416 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 +000014417 # Note: this linker hardcodes the directories in LIBPATH if there
14418 # are no directories specified by -L.
14419 hardcode_minus_L=yes
Reid Spencera773bd52006-08-04 18:18:08 +000014420 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000014421 # Neither direct hardcoding nor static linking is supported with a
14422 # broken collect2.
14423 hardcode_direct=unsupported
14424 fi
14425 ;;
14426
14427 aix4* | aix5*)
14428 if test "$host_cpu" = ia64; then
14429 # On IA64, the linker does run time linking by default, so we don't
14430 # have to do anything special.
14431 aix_use_runtimelinking=no
14432 exp_sym_flag='-Bexport'
14433 no_entry_flag=""
14434 else
14435 # If we're using GNU nm, then we don't want the "-C" option.
14436 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14437 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14438 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'
14439 else
14440 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'
14441 fi
14442 aix_use_runtimelinking=no
14443
14444 # Test if we are trying to use run time linking or normal
14445 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14446 # need to do runtime linking.
14447 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14448 for ld_flag in $LDFLAGS; do
14449 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14450 aix_use_runtimelinking=yes
14451 break
14452 fi
14453 done
Reid Spencera773bd52006-08-04 18:18:08 +000014454 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014455 esac
14456
14457 exp_sym_flag='-bexport'
14458 no_entry_flag='-bnoentry'
14459 fi
14460
14461 # When large executables or shared objects are built, AIX ld can
14462 # have problems creating the table of contents. If linking a library
14463 # or program results in "error TOC overflow" add -mminimal-toc to
14464 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14465 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14466
14467 archive_cmds=''
14468 hardcode_direct=yes
14469 hardcode_libdir_separator=':'
14470 link_all_deplibs=yes
14471
14472 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000014473 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000014474 # We only want to do this on AIX 4.2 and lower, the check
14475 # below for broken collect2 doesn't work under 4.3+
14476 collect2name=`${CC} -print-prog-name=collect2`
14477 if test -f "$collect2name" && \
14478 strings "$collect2name" | grep resolve_lib_name >/dev/null
14479 then
14480 # We have reworked collect2
14481 hardcode_direct=yes
14482 else
14483 # We have old collect2
14484 hardcode_direct=unsupported
14485 # It fails to find uninstalled libraries when the uninstalled
14486 # path is not listed in the libpath. Setting hardcode_minus_L
14487 # to unsupported forces relinking
14488 hardcode_minus_L=yes
14489 hardcode_libdir_flag_spec='-L$libdir'
14490 hardcode_libdir_separator=
14491 fi
Reid Spencera773bd52006-08-04 18:18:08 +000014492 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014493 esac
14494 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000014495 if test "$aix_use_runtimelinking" = yes; then
14496 shared_flag="$shared_flag "'${wl}-G'
14497 fi
John Criswell47fdd832003-07-14 16:52:07 +000014498 else
14499 # not using gcc
14500 if test "$host_cpu" = ia64; then
14501 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14502 # chokes on -Wl,-G. The following line is correct:
14503 shared_flag='-G'
14504 else
Reid Spencera773bd52006-08-04 18:18:08 +000014505 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000014506 shared_flag='${wl}-G'
14507 else
14508 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000014509 fi
John Criswell47fdd832003-07-14 16:52:07 +000014510 fi
14511 fi
14512
14513 # It seems that -bexpall does not export symbols beginning with
14514 # underscore (_), so it is better to generate a list of symbols to export.
14515 always_export_symbols=yes
14516 if test "$aix_use_runtimelinking" = yes; then
14517 # Warning - without using the other runtime loading flags (-brtl),
14518 # -berok will link without error, but may produce a broken library.
14519 allow_undefined_flag='-berok'
14520 # Determine the default libpath from the value encoded in an empty executable.
14521 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014522/* confdefs.h. */
14523_ACEOF
14524cat confdefs.h >>conftest.$ac_ext
14525cat >>conftest.$ac_ext <<_ACEOF
14526/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000014527
John Criswell7a73b802003-06-30 21:59:07 +000014528int
14529main ()
14530{
John Criswell47fdd832003-07-14 16:52:07 +000014531
John Criswell7a73b802003-06-30 21:59:07 +000014532 ;
14533 return 0;
14534}
14535_ACEOF
John Criswell47fdd832003-07-14 16:52:07 +000014536rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000014537if { (ac_try="$ac_link"
14538case "(($ac_try" in
14539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14540 *) ac_try_echo=$ac_try;;
14541esac
14542eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14543 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000014544 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000014545 grep -v '^ *+' conftest.er1 >conftest.err
14546 rm -f conftest.er1
14547 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000014548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Torok Edwincc499a42008-10-22 09:56:27 +000014549 (exit $ac_status); } && {
14550 test -z "$ac_c_werror_flag" ||
14551 test ! -s conftest.err
14552 } && test -s conftest$ac_exeext &&
14553 $as_test_x conftest$ac_exeext; then
John Criswell7a73b802003-06-30 21:59:07 +000014554
John Criswell47fdd832003-07-14 16:52:07 +000014555aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14556}'`
14557# Check for a 64-bit object if we didn't find anything.
14558if 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; }
14559}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000014560else
14561 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000014562sed 's/^/| /' conftest.$ac_ext >&5
14563
Reid Spencera773bd52006-08-04 18:18:08 +000014564
John Criswell7a73b802003-06-30 21:59:07 +000014565fi
Reid Spencera773bd52006-08-04 18:18:08 +000014566
Torok Edwincc499a42008-10-22 09:56:27 +000014567rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer2706f8c2004-09-19 23:53:36 +000014568 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000014569if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000014570
John Criswell47fdd832003-07-14 16:52:07 +000014571 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000014572 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 +000014573 else
14574 if test "$host_cpu" = ia64; then
14575 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
14576 allow_undefined_flag="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000014577 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 +000014578 else
14579 # Determine the default libpath from the value encoded in an empty executable.
14580 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014581/* confdefs.h. */
14582_ACEOF
14583cat confdefs.h >>conftest.$ac_ext
14584cat >>conftest.$ac_ext <<_ACEOF
14585/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000014586
John Criswell47fdd832003-07-14 16:52:07 +000014587int
14588main ()
14589{
John Criswell7a73b802003-06-30 21:59:07 +000014590
John Criswell47fdd832003-07-14 16:52:07 +000014591 ;
14592 return 0;
14593}
14594_ACEOF
14595rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000014596if { (ac_try="$ac_link"
14597case "(($ac_try" in
14598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14599 *) ac_try_echo=$ac_try;;
14600esac
14601eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14602 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000014603 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000014604 grep -v '^ *+' conftest.er1 >conftest.err
14605 rm -f conftest.er1
14606 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000014607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Torok Edwincc499a42008-10-22 09:56:27 +000014608 (exit $ac_status); } && {
14609 test -z "$ac_c_werror_flag" ||
14610 test ! -s conftest.err
14611 } && test -s conftest$ac_exeext &&
14612 $as_test_x conftest$ac_exeext; then
John Criswell7a73b802003-06-30 21:59:07 +000014613
John Criswell47fdd832003-07-14 16:52:07 +000014614aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14615}'`
14616# Check for a 64-bit object if we didn't find anything.
14617if 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; }
14618}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000014619else
John Criswell47fdd832003-07-14 16:52:07 +000014620 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000014621sed 's/^/| /' conftest.$ac_ext >&5
14622
Reid Spencera773bd52006-08-04 18:18:08 +000014623
John Criswell47fdd832003-07-14 16:52:07 +000014624fi
Reid Spencera773bd52006-08-04 18:18:08 +000014625
Torok Edwincc499a42008-10-22 09:56:27 +000014626rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer2706f8c2004-09-19 23:53:36 +000014627 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000014628if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000014629
John Criswell47fdd832003-07-14 16:52:07 +000014630 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
14631 # Warning - without using the other run time loading flags,
14632 # -berok will link without error, but may produce a broken library.
14633 no_undefined_flag=' ${wl}-bernotok'
14634 allow_undefined_flag=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000014635 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000014636 whole_archive_flag_spec='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000014637 archive_cmds_need_lc=yes
Reid Spencera773bd52006-08-04 18:18:08 +000014638 # This is similar to how AIX traditionally builds its shared libraries.
14639 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 +000014640 fi
14641 fi
John Criswell7a73b802003-06-30 21:59:07 +000014642 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014643
14644 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000014645 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 +000014646 hardcode_libdir_flag_spec='-L$libdir'
14647 hardcode_minus_L=yes
14648 # see comment about different semantics on the GNU ld section
14649 ld_shlibs=no
John Criswell7a73b802003-06-30 21:59:07 +000014650 ;;
John Criswell7a73b802003-06-30 21:59:07 +000014651
Reid Spencer2706f8c2004-09-19 23:53:36 +000014652 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000014653 export_dynamic_flag_spec=-rdynamic
14654 ;;
John Criswell7a73b802003-06-30 21:59:07 +000014655
John Criswell47fdd832003-07-14 16:52:07 +000014656 cygwin* | mingw* | pw32*)
14657 # When not using gcc, we currently assume that we are using
14658 # Microsoft Visual C++.
14659 # hardcode_libdir_flag_spec is actually meaningless, as there is
14660 # no search path for DLLs.
14661 hardcode_libdir_flag_spec=' '
14662 allow_undefined_flag=unsupported
14663 # Tell ltmain to make .lib files, not .a files.
14664 libext=lib
14665 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000014666 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000014667 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000014668 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
John Criswell47fdd832003-07-14 16:52:07 +000014669 # The linker will automatically build a .lib file if we build a DLL.
14670 old_archive_From_new_cmds='true'
14671 # FIXME: Should let the user specify the lib program.
14672 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
14673 fix_srcfile_path='`cygpath -w "$srcfile"`'
14674 enable_shared_with_static_runtimes=yes
14675 ;;
John Criswell7a73b802003-06-30 21:59:07 +000014676
John Criswell47fdd832003-07-14 16:52:07 +000014677 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000014678 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000014679 rhapsody* | darwin1.[012])
14680 allow_undefined_flag='${wl}-undefined ${wl}suppress'
14681 ;;
14682 *) # Darwin 1.3 on
14683 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14684 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14685 else
14686 case ${MACOSX_DEPLOYMENT_TARGET} in
14687 10.[012])
14688 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14689 ;;
14690 10.*)
14691 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
14692 ;;
14693 esac
14694 fi
14695 ;;
John Criswell7a73b802003-06-30 21:59:07 +000014696 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000014697 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000014698 hardcode_direct=no
14699 hardcode_automatic=yes
14700 hardcode_shlibpath_var=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000014701 whole_archive_flag_spec=''
John Criswell47fdd832003-07-14 16:52:07 +000014702 link_all_deplibs=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000014703 if test "$GCC" = yes ; then
14704 output_verbose_link_cmd='echo'
14705 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14706 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000014707 # 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 +000014708 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}'
14709 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 +000014710 else
Reid Spencera773bd52006-08-04 18:18:08 +000014711 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000014712 xlc*)
14713 output_verbose_link_cmd='echo'
14714 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14715 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000014716 # 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 +000014717 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}'
14718 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 +000014719 ;;
14720 *)
14721 ld_shlibs=no
14722 ;;
14723 esac
John Criswell7a73b802003-06-30 21:59:07 +000014724 fi
John Criswell47fdd832003-07-14 16:52:07 +000014725 ;;
John Criswell7a73b802003-06-30 21:59:07 +000014726
John Criswell47fdd832003-07-14 16:52:07 +000014727 dgux*)
John Criswell7a73b802003-06-30 21:59:07 +000014728 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
John Criswell47fdd832003-07-14 16:52:07 +000014729 hardcode_libdir_flag_spec='-L$libdir'
14730 hardcode_shlibpath_var=no
14731 ;;
John Criswell7a73b802003-06-30 21:59:07 +000014732
John Criswell47fdd832003-07-14 16:52:07 +000014733 freebsd1*)
14734 ld_shlibs=no
14735 ;;
John Criswell7a73b802003-06-30 21:59:07 +000014736
John Criswell47fdd832003-07-14 16:52:07 +000014737 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14738 # support. Future versions do this automatically, but an explicit c++rt0.o
14739 # does not break anything, and helps significantly (at the cost of a little
14740 # extra space).
14741 freebsd2.2*)
14742 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14743 hardcode_libdir_flag_spec='-R$libdir'
14744 hardcode_direct=yes
14745 hardcode_shlibpath_var=no
14746 ;;
John Criswell7a73b802003-06-30 21:59:07 +000014747
John Criswell47fdd832003-07-14 16:52:07 +000014748 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14749 freebsd2*)
14750 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14751 hardcode_direct=yes
14752 hardcode_minus_L=yes
14753 hardcode_shlibpath_var=no
14754 ;;
John Criswell7a73b802003-06-30 21:59:07 +000014755
John Criswell47fdd832003-07-14 16:52:07 +000014756 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000014757 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000014758 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14759 hardcode_libdir_flag_spec='-R$libdir'
14760 hardcode_direct=yes
14761 hardcode_shlibpath_var=no
14762 ;;
John Criswell7a73b802003-06-30 21:59:07 +000014763
John Criswell47fdd832003-07-14 16:52:07 +000014764 hpux9*)
14765 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000014766 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 +000014767 else
Reid Spencer177dbe22004-10-13 01:01:03 +000014768 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 +000014769 fi
14770 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14771 hardcode_libdir_separator=:
14772 hardcode_direct=yes
14773
14774 # hardcode_minus_L: Not really in the search PATH,
14775 # but as the default location of the library.
14776 hardcode_minus_L=yes
14777 export_dynamic_flag_spec='${wl}-E'
14778 ;;
14779
Reid Spencera773bd52006-08-04 18:18:08 +000014780 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000014781 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000014782 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14783 else
14784 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14785 fi
14786 if test "$with_gnu_ld" = no; then
14787 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14788 hardcode_libdir_separator=:
14789
14790 hardcode_direct=yes
14791 export_dynamic_flag_spec='${wl}-E'
14792
14793 # hardcode_minus_L: Not really in the search PATH,
14794 # but as the default location of the library.
14795 hardcode_minus_L=yes
14796 fi
14797 ;;
14798
14799 hpux11*)
14800 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14801 case $host_cpu in
14802 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000014803 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14804 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000014805 ia64*)
14806 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14807 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014808 *)
14809 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14810 ;;
14811 esac
14812 else
Reid Spencera773bd52006-08-04 18:18:08 +000014813 case $host_cpu in
14814 hppa*64*)
14815 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14816 ;;
14817 ia64*)
14818 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000014819 ;;
14820 *)
Reid Spencera773bd52006-08-04 18:18:08 +000014821 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 +000014822 ;;
14823 esac
14824 fi
14825 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000014826 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14827 hardcode_libdir_separator=:
John Criswell47fdd832003-07-14 16:52:07 +000014828
Reid Spencera773bd52006-08-04 18:18:08 +000014829 case $host_cpu in
14830 hppa*64*|ia64*)
14831 hardcode_libdir_flag_spec_ld='+b $libdir'
14832 hardcode_direct=no
14833 hardcode_shlibpath_var=no
John Criswell47fdd832003-07-14 16:52:07 +000014834 ;;
14835 *)
John Criswell47fdd832003-07-14 16:52:07 +000014836 hardcode_direct=yes
14837 export_dynamic_flag_spec='${wl}-E'
14838
14839 # hardcode_minus_L: Not really in the search PATH,
14840 # but as the default location of the library.
14841 hardcode_minus_L=yes
14842 ;;
14843 esac
14844 fi
14845 ;;
14846
14847 irix5* | irix6* | nonstopux*)
14848 if test "$GCC" = yes; then
14849 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'
14850 else
14851 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'
14852 hardcode_libdir_flag_spec_ld='-rpath $libdir'
14853 fi
14854 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14855 hardcode_libdir_separator=:
14856 link_all_deplibs=yes
14857 ;;
14858
14859 netbsd*)
14860 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14861 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14862 else
14863 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14864 fi
14865 hardcode_libdir_flag_spec='-R$libdir'
14866 hardcode_direct=yes
14867 hardcode_shlibpath_var=no
14868 ;;
14869
14870 newsos6)
14871 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14872 hardcode_direct=yes
14873 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14874 hardcode_libdir_separator=:
14875 hardcode_shlibpath_var=no
14876 ;;
14877
14878 openbsd*)
14879 hardcode_direct=yes
14880 hardcode_shlibpath_var=no
14881 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14882 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000014883 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 +000014884 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14885 export_dynamic_flag_spec='${wl}-E'
14886 else
14887 case $host_os in
14888 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14889 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14890 hardcode_libdir_flag_spec='-R$libdir'
14891 ;;
14892 *)
14893 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14894 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14895 ;;
14896 esac
14897 fi
14898 ;;
14899
14900 os2*)
14901 hardcode_libdir_flag_spec='-L$libdir'
14902 hardcode_minus_L=yes
14903 allow_undefined_flag=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000014904 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 +000014905 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14906 ;;
14907
14908 osf3*)
14909 if test "$GCC" = yes; then
14910 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
14911 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'
14912 else
14913 allow_undefined_flag=' -expect_unresolved \*'
14914 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'
14915 fi
14916 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14917 hardcode_libdir_separator=:
14918 ;;
14919
14920 osf4* | osf5*) # as osf3* with the addition of -msym flag
14921 if test "$GCC" = yes; then
14922 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
14923 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'
14924 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14925 else
14926 allow_undefined_flag=' -expect_unresolved \*'
14927 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 +000014928 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 +000014929 $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 +000014930
John Criswell47fdd832003-07-14 16:52:07 +000014931 # Both c and cxx compiler support -rpath directly
14932 hardcode_libdir_flag_spec='-rpath $libdir'
14933 fi
14934 hardcode_libdir_separator=:
14935 ;;
14936
John Criswell47fdd832003-07-14 16:52:07 +000014937 solaris*)
14938 no_undefined_flag=' -z text'
14939 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000014940 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000014941 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000014942 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14943 $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 +000014944 else
Reid Spencera773bd52006-08-04 18:18:08 +000014945 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000014946 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_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 $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 +000014949 fi
14950 hardcode_libdir_flag_spec='-R$libdir'
14951 hardcode_shlibpath_var=no
14952 case $host_os in
14953 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000014954 *)
14955 # The compiler driver will combine linker options so we
14956 # cannot just pass the convience library names through
14957 # without $wl, iff we do not link with $LD.
14958 # Luckily, gcc supports the same syntax we need for Sun Studio.
14959 # Supported since Solaris 2.6 (maybe 2.5.1?)
14960 case $wlarc in
14961 '')
14962 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
14963 *)
14964 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' ;;
14965 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000014966 esac
14967 link_all_deplibs=yes
14968 ;;
John Criswell7a73b802003-06-30 21:59:07 +000014969
John Criswell47fdd832003-07-14 16:52:07 +000014970 sunos4*)
14971 if test "x$host_vendor" = xsequent; then
14972 # Use $CC to link under sequent, because it throws in some extra .o
14973 # files that make .init and .fini sections work.
14974 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14975 else
14976 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14977 fi
14978 hardcode_libdir_flag_spec='-L$libdir'
14979 hardcode_direct=yes
14980 hardcode_minus_L=yes
14981 hardcode_shlibpath_var=no
14982 ;;
John Criswell7a73b802003-06-30 21:59:07 +000014983
John Criswell47fdd832003-07-14 16:52:07 +000014984 sysv4)
14985 case $host_vendor in
14986 sni)
14987 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14988 hardcode_direct=yes # is this really true???
14989 ;;
14990 siemens)
14991 ## LD is ld it makes a PLAMLIB
14992 ## CC just makes a GrossModule.
14993 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14994 reload_cmds='$CC -r -o $output$reload_objs'
14995 hardcode_direct=no
14996 ;;
14997 motorola)
14998 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14999 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15000 ;;
15001 esac
15002 runpath_var='LD_RUN_PATH'
15003 hardcode_shlibpath_var=no
15004 ;;
15005
15006 sysv4.3*)
15007 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15008 hardcode_shlibpath_var=no
15009 export_dynamic_flag_spec='-Bexport'
15010 ;;
15011
15012 sysv4*MP*)
15013 if test -d /usr/nec; then
15014 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15015 hardcode_shlibpath_var=no
15016 runpath_var=LD_RUN_PATH
15017 hardcode_runpath_var=yes
15018 ld_shlibs=yes
15019 fi
15020 ;;
15021
Reid Spencera773bd52006-08-04 18:18:08 +000015022 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15023 no_undefined_flag='${wl}-z,text'
15024 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000015025 hardcode_shlibpath_var=no
Reid Spencera773bd52006-08-04 18:18:08 +000015026 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000015027
John Criswell47fdd832003-07-14 16:52:07 +000015028 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000015029 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15030 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 +000015031 else
Reid Spencera773bd52006-08-04 18:18:08 +000015032 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15033 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 +000015034 fi
John Criswell47fdd832003-07-14 16:52:07 +000015035 ;;
15036
Reid Spencera773bd52006-08-04 18:18:08 +000015037 sysv5* | sco3.2v5* | sco5v6*)
15038 # Note: We can NOT use -z defs as we might desire, because we do not
15039 # link with -lc, and that would cause any symbols used from libc to
15040 # always be unresolved, which means just about no library would
15041 # ever link correctly. If we're not using GNU ld we use -z text
15042 # though, which does catch some bad symbols but isn't as heavy-handed
15043 # as -z defs.
15044 no_undefined_flag='${wl}-z,text'
15045 allow_undefined_flag='${wl}-z,nodefs'
15046 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000015047 hardcode_shlibpath_var=no
Reid Spencera773bd52006-08-04 18:18:08 +000015048 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15049 hardcode_libdir_separator=':'
15050 link_all_deplibs=yes
15051 export_dynamic_flag_spec='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000015052 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000015053
15054 if test "$GCC" = yes; then
15055 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15056 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15057 else
15058 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15059 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15060 fi
John Criswell47fdd832003-07-14 16:52:07 +000015061 ;;
15062
15063 uts4*)
15064 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15065 hardcode_libdir_flag_spec='-L$libdir'
15066 hardcode_shlibpath_var=no
15067 ;;
15068
15069 *)
15070 ld_shlibs=no
15071 ;;
15072 esac
15073 fi
15074
Reid Spencera773bd52006-08-04 18:18:08 +000015075{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
15076echo "${ECHO_T}$ld_shlibs" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015077test "$ld_shlibs" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000015078
John Criswell47fdd832003-07-14 16:52:07 +000015079#
15080# Do we need to explicitly link libc?
15081#
15082case "x$archive_cmds_need_lc" in
15083x|xyes)
15084 # Assume -lc should be added
15085 archive_cmds_need_lc=yes
15086
15087 if test "$enable_shared" = yes && test "$GCC" = yes; then
15088 case $archive_cmds in
Reid Spencer2706f8c2004-09-19 23:53:36 +000015089 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000015090 # FIXME: we may have to deal with multi-command sequences.
15091 ;;
15092 '$CC '*)
15093 # Test whether the compiler implicitly links with -lc since on some
15094 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15095 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000015096 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15097echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000015098 $rm conftest*
15099 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15100
15101 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15102 (eval $ac_compile) 2>&5
15103 ac_status=$?
15104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15105 (exit $ac_status); } 2>conftest.err; then
15106 soname=conftest
15107 lib=conftest
15108 libobjs=conftest.$ac_objext
15109 deplibs=
15110 wl=$lt_prog_compiler_wl
Reid Spencera773bd52006-08-04 18:18:08 +000015111 pic_flag=$lt_prog_compiler_pic
John Criswell47fdd832003-07-14 16:52:07 +000015112 compiler_flags=-v
15113 linker_flags=-v
15114 verstring=
15115 output_objdir=.
15116 libname=conftest
15117 lt_save_allow_undefined_flag=$allow_undefined_flag
15118 allow_undefined_flag=
15119 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15120 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15121 ac_status=$?
15122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15123 (exit $ac_status); }
15124 then
15125 archive_cmds_need_lc=no
15126 else
15127 archive_cmds_need_lc=yes
15128 fi
15129 allow_undefined_flag=$lt_save_allow_undefined_flag
15130 else
15131 cat conftest.err 1>&5
15132 fi
15133 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000015134 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
15135echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000015136 ;;
15137 esac
15138 fi
15139 ;;
15140esac
15141
Reid Spencera773bd52006-08-04 18:18:08 +000015142{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15143echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015144library_names_spec=
15145libname_spec='lib$name'
15146soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000015147shrext_cmds=".so"
John Criswell7a73b802003-06-30 21:59:07 +000015148postinstall_cmds=
15149postuninstall_cmds=
15150finish_cmds=
15151finish_eval=
15152shlibpath_var=
15153shlibpath_overrides_runpath=unknown
15154version_type=none
15155dynamic_linker="$host_os ld.so"
15156sys_lib_dlsearch_path_spec="/lib /usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000015157if test "$GCC" = yes; then
15158 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15159 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15160 # if the path contains ";" then we assume it to be the separator
15161 # otherwise default to the standard path separator (i.e. ":") - it is
15162 # assumed that no part of a normal pathname contains ";" but that should
15163 # okay in the real world where ";" in dirpaths is itself problematic.
15164 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15165 else
15166 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15167 fi
15168else
15169 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15170fi
15171need_lib_prefix=unknown
15172hardcode_into_libs=no
15173
15174# when you set need_version to no, make sure it does not cause -set_version
15175# flags to be left without arguments
15176need_version=unknown
John Criswell7a73b802003-06-30 21:59:07 +000015177
15178case $host_os in
15179aix3*)
15180 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000015181 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000015182 shlibpath_var=LIBPATH
15183
John Criswell47fdd832003-07-14 16:52:07 +000015184 # AIX 3 has no versioning support, so we append a major version to the name.
15185 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000015186 ;;
15187
15188aix4* | aix5*)
15189 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000015190 need_lib_prefix=no
15191 need_version=no
15192 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000015193 if test "$host_cpu" = ia64; then
15194 # AIX 5 supports IA64
John Criswell47fdd832003-07-14 16:52:07 +000015195 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000015196 shlibpath_var=LD_LIBRARY_PATH
15197 else
15198 # With GCC up to 2.95.x, collect2 would create an import file
15199 # for dependence libraries. The import file would start with
15200 # the line `#! .'. This would cause the generated library to
15201 # depend on `.', always an invalid library. This was fixed in
15202 # development snapshots of GCC prior to 3.0.
15203 case $host_os in
15204 aix4 | aix4.[01] | aix4.[01].*)
John Criswell47fdd832003-07-14 16:52:07 +000015205 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15206 echo ' yes '
15207 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15208 :
15209 else
15210 can_build_shared=no
15211 fi
15212 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015213 esac
John Criswell47fdd832003-07-14 16:52:07 +000015214 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15215 # soname into executable. Probably we can add versioning support to
15216 # collect2, so additional links can be useful in future.
John Criswell7a73b802003-06-30 21:59:07 +000015217 if test "$aix_use_runtimelinking" = yes; then
15218 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15219 # instead of lib<name>.a to let people know that these are not
15220 # typical AIX shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000015221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000015222 else
15223 # We preserve .a as extension for shared libraries through AIX4.2
15224 # and later when we are not doing run time linking.
15225 library_names_spec='${libname}${release}.a $libname.a'
John Criswell47fdd832003-07-14 16:52:07 +000015226 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000015227 fi
15228 shlibpath_var=LIBPATH
15229 fi
15230 ;;
15231
15232amigaos*)
15233 library_names_spec='$libname.ixlibrary $libname.a'
15234 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015235 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 +000015236 ;;
15237
15238beos*)
John Criswell47fdd832003-07-14 16:52:07 +000015239 library_names_spec='${libname}${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000015240 dynamic_linker="$host_os ld.so"
15241 shlibpath_var=LIBRARY_PATH
15242 ;;
15243
Reid Spencer2706f8c2004-09-19 23:53:36 +000015244bsdi[45]*)
John Criswell7a73b802003-06-30 21:59:07 +000015245 version_type=linux
15246 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000015247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15248 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000015249 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15250 shlibpath_var=LD_LIBRARY_PATH
15251 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15252 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
John Criswell7a73b802003-06-30 21:59:07 +000015253 # the default ld.so.conf also contains /usr/contrib/lib and
15254 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15255 # libtool to hard-code these into programs
15256 ;;
15257
15258cygwin* | mingw* | pw32*)
15259 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000015260 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000015261 need_version=no
15262 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000015263
John Criswell7a73b802003-06-30 21:59:07 +000015264 case $GCC,$host_os in
John Criswell47fdd832003-07-14 16:52:07 +000015265 yes,cygwin* | yes,mingw* | yes,pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000015266 library_names_spec='$libname.dll.a'
John Criswell47fdd832003-07-14 16:52:07 +000015267 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000015268 postinstall_cmds='base_file=`basename \${file}`~
15269 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15270 dldir=$destdir/`dirname \$dlpath`~
15271 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000015272 $install_prog $dir/$dlname \$dldir/$dlname~
15273 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000015274 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15275 dlpath=$dir/\$dldll~
John Criswell7a73b802003-06-30 21:59:07 +000015276 $rm \$dlpath'
John Criswell47fdd832003-07-14 16:52:07 +000015277 shlibpath_overrides_runpath=yes
15278
15279 case $host_os in
15280 cygwin*)
15281 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15282 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 +000015283 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000015284 ;;
15285 mingw*)
15286 # MinGW DLLs use traditional 'lib' prefix
15287 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15288 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15289 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15290 # It is most probably a Windows format PATH printed by
15291 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15292 # path with ; separators, and with drive letters. We can handle the
15293 # drive letters (cygwin fileutils understands them), so leave them,
15294 # especially as we might pass files found there to a mingw objdump,
15295 # which wouldn't understand a cygwinified path. Ahh.
15296 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15297 else
15298 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15299 fi
15300 ;;
15301 pw32*)
15302 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000015303 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 +000015304 ;;
15305 esac
John Criswell7a73b802003-06-30 21:59:07 +000015306 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015307
John Criswell7a73b802003-06-30 21:59:07 +000015308 *)
John Criswell47fdd832003-07-14 16:52:07 +000015309 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
John Criswell7a73b802003-06-30 21:59:07 +000015310 ;;
15311 esac
15312 dynamic_linker='Win32 ld.exe'
15313 # FIXME: first we should search . and the directory the executable is in
15314 shlibpath_var=PATH
15315 ;;
15316
15317darwin* | rhapsody*)
15318 dynamic_linker="$host_os dyld"
15319 version_type=darwin
15320 need_lib_prefix=no
15321 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000015322 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000015323 soname_spec='${libname}${release}${major}$shared_ext'
John Criswell7a73b802003-06-30 21:59:07 +000015324 shlibpath_overrides_runpath=yes
15325 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000015326 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000015327 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015328 if test "$GCC" = yes; then
15329 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"`
15330 else
15331 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000015332 fi
15333 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15334 ;;
15335
15336dgux*)
15337 version_type=linux
15338 need_lib_prefix=no
15339 need_version=no
15340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15341 soname_spec='${libname}${release}${shared_ext}$major'
15342 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000015343 ;;
15344
15345freebsd1*)
15346 dynamic_linker=no
15347 ;;
15348
Reid Spencer2706f8c2004-09-19 23:53:36 +000015349kfreebsd*-gnu)
15350 version_type=linux
15351 need_lib_prefix=no
15352 need_version=no
15353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15354 soname_spec='${libname}${release}${shared_ext}$major'
15355 shlibpath_var=LD_LIBRARY_PATH
15356 shlibpath_overrides_runpath=no
15357 hardcode_into_libs=yes
15358 dynamic_linker='GNU ld.so'
15359 ;;
15360
Reid Spencera773bd52006-08-04 18:18:08 +000015361freebsd* | dragonfly*)
15362 # DragonFly does not have aout. When/if they implement a new
15363 # versioning mechanism, adjust this.
15364 if test -x /usr/bin/objformat; then
15365 objformat=`/usr/bin/objformat`
15366 else
15367 case $host_os in
15368 freebsd[123]*) objformat=aout ;;
15369 *) objformat=elf ;;
15370 esac
15371 fi
John Criswell7a73b802003-06-30 21:59:07 +000015372 version_type=freebsd-$objformat
15373 case $version_type in
15374 freebsd-elf*)
John Criswell47fdd832003-07-14 16:52:07 +000015375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000015376 need_version=no
15377 need_lib_prefix=no
15378 ;;
15379 freebsd-*)
John Criswell47fdd832003-07-14 16:52:07 +000015380 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000015381 need_version=yes
15382 ;;
15383 esac
15384 shlibpath_var=LD_LIBRARY_PATH
15385 case $host_os in
15386 freebsd2*)
15387 shlibpath_overrides_runpath=yes
15388 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000015389 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000015390 shlibpath_overrides_runpath=yes
15391 hardcode_into_libs=yes
15392 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000015393 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15394 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell7a73b802003-06-30 21:59:07 +000015395 shlibpath_overrides_runpath=no
15396 hardcode_into_libs=yes
15397 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000015398 freebsd*) # from 4.6 on
15399 shlibpath_overrides_runpath=yes
15400 hardcode_into_libs=yes
15401 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015402 esac
15403 ;;
15404
15405gnu*)
15406 version_type=linux
15407 need_lib_prefix=no
15408 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000015409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15410 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000015411 shlibpath_var=LD_LIBRARY_PATH
15412 hardcode_into_libs=yes
15413 ;;
15414
15415hpux9* | hpux10* | hpux11*)
15416 # Give a soname corresponding to the major version so that dld.sl refuses to
15417 # link against other versions.
John Criswell7a73b802003-06-30 21:59:07 +000015418 version_type=sunos
15419 need_lib_prefix=no
15420 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000015421 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000015422 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000015423 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000015424 hardcode_into_libs=yes
15425 dynamic_linker="$host_os dld.so"
15426 shlibpath_var=LD_LIBRARY_PATH
15427 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15429 soname_spec='${libname}${release}${shared_ext}$major'
15430 if test "X$HPUX_IA64_MODE" = X32; then
15431 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15432 else
15433 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15434 fi
15435 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15436 ;;
15437 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000015438 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000015439 hardcode_into_libs=yes
15440 dynamic_linker="$host_os dld.sl"
15441 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15442 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15444 soname_spec='${libname}${release}${shared_ext}$major'
15445 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15446 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15447 ;;
15448 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000015449 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000015450 dynamic_linker="$host_os dld.sl"
15451 shlibpath_var=SHLIB_PATH
15452 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15454 soname_spec='${libname}${release}${shared_ext}$major'
15455 ;;
15456 esac
John Criswell7a73b802003-06-30 21:59:07 +000015457 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15458 postinstall_cmds='chmod 555 $lib'
15459 ;;
15460
Reid Spencera773bd52006-08-04 18:18:08 +000015461interix3*)
15462 version_type=linux
15463 need_lib_prefix=no
15464 need_version=no
15465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15466 soname_spec='${libname}${release}${shared_ext}$major'
15467 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15468 shlibpath_var=LD_LIBRARY_PATH
15469 shlibpath_overrides_runpath=no
15470 hardcode_into_libs=yes
15471 ;;
15472
John Criswell47fdd832003-07-14 16:52:07 +000015473irix5* | irix6* | nonstopux*)
15474 case $host_os in
15475 nonstopux*) version_type=nonstopux ;;
15476 *)
15477 if test "$lt_cv_prog_gnu_ld" = yes; then
15478 version_type=linux
15479 else
15480 version_type=irix
15481 fi ;;
15482 esac
John Criswell7a73b802003-06-30 21:59:07 +000015483 need_lib_prefix=no
15484 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000015485 soname_spec='${libname}${release}${shared_ext}$major'
15486 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 +000015487 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000015488 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +000015489 libsuff= shlibsuff=
15490 ;;
15491 *)
15492 case $LD in # libtool.m4 will add one of these switches to LD
John Criswell47fdd832003-07-14 16:52:07 +000015493 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15494 libsuff= shlibsuff= libmagic=32-bit;;
15495 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15496 libsuff=32 shlibsuff=N32 libmagic=N32;;
15497 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15498 libsuff=64 shlibsuff=64 libmagic=64-bit;;
John Criswell7a73b802003-06-30 21:59:07 +000015499 *) libsuff= shlibsuff= libmagic=never-match;;
15500 esac
15501 ;;
15502 esac
15503 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15504 shlibpath_overrides_runpath=no
15505 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15506 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
John Criswell47fdd832003-07-14 16:52:07 +000015507 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000015508 ;;
15509
15510# No shared lib support for Linux oldld, aout, or coff.
John Criswell47fdd832003-07-14 16:52:07 +000015511linux*oldld* | linux*aout* | linux*coff*)
John Criswell7a73b802003-06-30 21:59:07 +000015512 dynamic_linker=no
15513 ;;
15514
15515# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +000015516linux*)
John Criswell7a73b802003-06-30 21:59:07 +000015517 version_type=linux
15518 need_lib_prefix=no
15519 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000015520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15521 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000015522 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15523 shlibpath_var=LD_LIBRARY_PATH
15524 shlibpath_overrides_runpath=no
15525 # This implies no fast_install, which is unacceptable.
15526 # Some rework will be needed to allow for fast_install
15527 # before this can be enabled.
15528 hardcode_into_libs=yes
15529
Reid Spencer2706f8c2004-09-19 23:53:36 +000015530 # Append ld.so.conf contents to the search path
15531 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000015532 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 +000015533 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15534 fi
15535
John Criswell7a73b802003-06-30 21:59:07 +000015536 # We used to test for /lib/ld.so.1 and disable shared libraries on
15537 # powerpc, because MkLinux only supported shared libraries with the
15538 # GNU dynamic linker. Since this was broken with cross compilers,
15539 # most powerpc-linux boxes support dynamic linking these days and
15540 # people can always --disable-shared, the test was removed, and we
15541 # assume the GNU/Linux dynamic linker is in use.
15542 dynamic_linker='GNU/Linux ld.so'
15543 ;;
15544
Reid Spencer2706f8c2004-09-19 23:53:36 +000015545knetbsd*-gnu)
15546 version_type=linux
15547 need_lib_prefix=no
15548 need_version=no
15549 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15550 soname_spec='${libname}${release}${shared_ext}$major'
15551 shlibpath_var=LD_LIBRARY_PATH
15552 shlibpath_overrides_runpath=no
15553 hardcode_into_libs=yes
15554 dynamic_linker='GNU ld.so'
15555 ;;
15556
John Criswell7a73b802003-06-30 21:59:07 +000015557netbsd*)
15558 version_type=sunos
15559 need_lib_prefix=no
15560 need_version=no
15561 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000015562 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000015563 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15564 dynamic_linker='NetBSD (a.out) ld.so'
15565 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000015566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000015567 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000015568 dynamic_linker='NetBSD ld.elf_so'
15569 fi
15570 shlibpath_var=LD_LIBRARY_PATH
15571 shlibpath_overrides_runpath=yes
15572 hardcode_into_libs=yes
15573 ;;
15574
15575newsos6)
15576 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000015577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15578 shlibpath_var=LD_LIBRARY_PATH
15579 shlibpath_overrides_runpath=yes
15580 ;;
15581
Reid Spencer2706f8c2004-09-19 23:53:36 +000015582nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000015583 version_type=linux
15584 need_lib_prefix=no
15585 need_version=no
15586 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15587 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000015588 shlibpath_var=LD_LIBRARY_PATH
15589 shlibpath_overrides_runpath=yes
15590 ;;
15591
15592openbsd*)
15593 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000015594 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell7a73b802003-06-30 21:59:07 +000015595 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000015596 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15597 case $host_os in
15598 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15599 *) need_version=no ;;
15600 esac
John Criswell47fdd832003-07-14 16:52:07 +000015601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15602 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15603 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000015604 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 +000015605 case $host_os in
15606 openbsd2.[89] | openbsd2.[89].*)
15607 shlibpath_overrides_runpath=no
15608 ;;
15609 *)
15610 shlibpath_overrides_runpath=yes
15611 ;;
15612 esac
John Criswell7a73b802003-06-30 21:59:07 +000015613 else
15614 shlibpath_overrides_runpath=yes
15615 fi
John Criswell7a73b802003-06-30 21:59:07 +000015616 ;;
15617
15618os2*)
15619 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000015620 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000015621 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000015622 library_names_spec='$libname${shared_ext} $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000015623 dynamic_linker='OS/2 ld.exe'
15624 shlibpath_var=LIBPATH
15625 ;;
15626
15627osf3* | osf4* | osf5*)
15628 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +000015629 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000015630 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000015631 soname_spec='${libname}${release}${shared_ext}$major'
15632 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000015633 shlibpath_var=LD_LIBRARY_PATH
15634 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15635 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15636 ;;
15637
John Criswell7a73b802003-06-30 21:59:07 +000015638solaris*)
15639 version_type=linux
15640 need_lib_prefix=no
15641 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000015642 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15643 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000015644 shlibpath_var=LD_LIBRARY_PATH
15645 shlibpath_overrides_runpath=yes
15646 hardcode_into_libs=yes
15647 # ldd complains unless libraries are executable
15648 postinstall_cmds='chmod +x $lib'
15649 ;;
15650
15651sunos4*)
15652 version_type=sunos
John Criswell47fdd832003-07-14 16:52:07 +000015653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000015654 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15655 shlibpath_var=LD_LIBRARY_PATH
15656 shlibpath_overrides_runpath=yes
15657 if test "$with_gnu_ld" = yes; then
15658 need_lib_prefix=no
15659 fi
15660 need_version=yes
15661 ;;
15662
Reid Spencera773bd52006-08-04 18:18:08 +000015663sysv4 | sysv4.3*)
John Criswell7a73b802003-06-30 21:59:07 +000015664 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000015665 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15666 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000015667 shlibpath_var=LD_LIBRARY_PATH
15668 case $host_vendor in
15669 sni)
15670 shlibpath_overrides_runpath=no
John Criswell47fdd832003-07-14 16:52:07 +000015671 need_lib_prefix=no
15672 export_dynamic_flag_spec='${wl}-Blargedynsym'
15673 runpath_var=LD_RUN_PATH
15674 ;;
15675 siemens)
15676 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000015677 ;;
15678 motorola)
15679 need_lib_prefix=no
15680 need_version=no
15681 shlibpath_overrides_runpath=no
15682 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15683 ;;
15684 esac
15685 ;;
15686
John Criswell7a73b802003-06-30 21:59:07 +000015687sysv4*MP*)
15688 if test -d /usr/nec ;then
15689 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000015690 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15691 soname_spec='$libname${shared_ext}.$major'
John Criswell7a73b802003-06-30 21:59:07 +000015692 shlibpath_var=LD_LIBRARY_PATH
15693 fi
15694 ;;
15695
Reid Spencera773bd52006-08-04 18:18:08 +000015696sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15697 version_type=freebsd-elf
15698 need_lib_prefix=no
15699 need_version=no
15700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15701 soname_spec='${libname}${release}${shared_ext}$major'
15702 shlibpath_var=LD_LIBRARY_PATH
15703 hardcode_into_libs=yes
15704 if test "$with_gnu_ld" = yes; then
15705 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15706 shlibpath_overrides_runpath=no
15707 else
15708 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15709 shlibpath_overrides_runpath=yes
15710 case $host_os in
15711 sco3.2v5*)
15712 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15713 ;;
15714 esac
15715 fi
15716 sys_lib_dlsearch_path_spec='/usr/lib'
15717 ;;
15718
John Criswell47fdd832003-07-14 16:52:07 +000015719uts4*)
15720 version_type=linux
15721 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15722 soname_spec='${libname}${release}${shared_ext}$major'
15723 shlibpath_var=LD_LIBRARY_PATH
15724 ;;
15725
John Criswell7a73b802003-06-30 21:59:07 +000015726*)
15727 dynamic_linker=no
15728 ;;
15729esac
Reid Spencera773bd52006-08-04 18:18:08 +000015730{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15731echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015732test "$dynamic_linker" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000015733
Reid Spencera773bd52006-08-04 18:18:08 +000015734variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15735if test "$GCC" = yes; then
15736 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15737fi
15738
15739{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15740echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000015741hardcode_action=
15742if test -n "$hardcode_libdir_flag_spec" || \
15743 test -n "$runpath_var" || \
15744 test "X$hardcode_automatic" = "Xyes" ; then
15745
15746 # We can hardcode non-existant directories.
15747 if test "$hardcode_direct" != no &&
15748 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15749 # have to relink, otherwise we might link with an installed library
15750 # when we should be linking with a yet-to-be-installed one
15751 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
15752 test "$hardcode_minus_L" != no; then
15753 # Linking always hardcodes the temporary library directory.
15754 hardcode_action=relink
15755 else
15756 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15757 hardcode_action=immediate
15758 fi
15759else
15760 # We cannot hardcode anything, or else we can only hardcode existing
15761 # directories.
15762 hardcode_action=unsupported
15763fi
Reid Spencera773bd52006-08-04 18:18:08 +000015764{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
15765echo "${ECHO_T}$hardcode_action" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000015766
15767if test "$hardcode_action" = relink; then
15768 # Fast installation is not supported
15769 enable_fast_install=no
15770elif test "$shlibpath_overrides_runpath" = yes ||
15771 test "$enable_shared" = no; then
15772 # Fast installation is not necessary
15773 enable_fast_install=needless
15774fi
15775
15776striplib=
15777old_striplib=
Reid Spencera773bd52006-08-04 18:18:08 +000015778{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15779echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000015780if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15781 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15782 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
Reid Spencera773bd52006-08-04 18:18:08 +000015783 { echo "$as_me:$LINENO: result: yes" >&5
15784echo "${ECHO_T}yes" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000015785else
15786# FIXME - insert some real tests, host_os isn't really good enough
15787 case $host_os in
15788 darwin*)
15789 if test -n "$STRIP" ; then
15790 striplib="$STRIP -x"
Reid Spencera773bd52006-08-04 18:18:08 +000015791 { echo "$as_me:$LINENO: result: yes" >&5
15792echo "${ECHO_T}yes" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000015793 else
Reid Spencera773bd52006-08-04 18:18:08 +000015794 { echo "$as_me:$LINENO: result: no" >&5
15795echo "${ECHO_T}no" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000015796fi
15797 ;;
15798 *)
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 +000015801 ;;
15802 esac
15803fi
15804
John Criswell7a73b802003-06-30 21:59:07 +000015805if test "x$enable_dlopen" != xyes; then
15806 enable_dlopen=unknown
15807 enable_dlopen_self=unknown
15808 enable_dlopen_self_static=unknown
15809else
15810 lt_cv_dlopen=no
15811 lt_cv_dlopen_libs=
15812
15813 case $host_os in
15814 beos*)
15815 lt_cv_dlopen="load_add_on"
15816 lt_cv_dlopen_libs=
15817 lt_cv_dlopen_self=yes
15818 ;;
15819
John Criswell47fdd832003-07-14 16:52:07 +000015820 mingw* | pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000015821 lt_cv_dlopen="LoadLibrary"
15822 lt_cv_dlopen_libs=
15823 ;;
15824
John Criswell47fdd832003-07-14 16:52:07 +000015825 cygwin*)
15826 lt_cv_dlopen="dlopen"
15827 lt_cv_dlopen_libs=
15828 ;;
15829
15830 darwin*)
15831 # if libdl is installed we need to link against it
Reid Spencera773bd52006-08-04 18:18:08 +000015832 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
15833echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000015834if test "${ac_cv_lib_dl_dlopen+set}" = set; then
15835 echo $ECHO_N "(cached) $ECHO_C" >&6
15836else
15837 ac_check_lib_save_LIBS=$LIBS
15838LIBS="-ldl $LIBS"
15839cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015840/* confdefs.h. */
15841_ACEOF
15842cat confdefs.h >>conftest.$ac_ext
15843cat >>conftest.$ac_ext <<_ACEOF
15844/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000015845
Reid Spencera773bd52006-08-04 18:18:08 +000015846/* Override any GCC internal prototype to avoid an error.
15847 Use char because int might match the return type of a GCC
15848 builtin and then its argument prototype would still apply. */
John Criswell47fdd832003-07-14 16:52:07 +000015849#ifdef __cplusplus
15850extern "C"
15851#endif
John Criswell47fdd832003-07-14 16:52:07 +000015852char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000015853int
15854main ()
15855{
Reid Spencera773bd52006-08-04 18:18:08 +000015856return dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000015857 ;
15858 return 0;
15859}
15860_ACEOF
15861rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000015862if { (ac_try="$ac_link"
15863case "(($ac_try" in
15864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15865 *) ac_try_echo=$ac_try;;
15866esac
15867eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15868 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000015869 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015870 grep -v '^ *+' conftest.er1 >conftest.err
15871 rm -f conftest.er1
15872 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000015873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Torok Edwincc499a42008-10-22 09:56:27 +000015874 (exit $ac_status); } && {
15875 test -z "$ac_c_werror_flag" ||
15876 test ! -s conftest.err
15877 } && test -s conftest$ac_exeext &&
15878 $as_test_x conftest$ac_exeext; then
John Criswell47fdd832003-07-14 16:52:07 +000015879 ac_cv_lib_dl_dlopen=yes
15880else
15881 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015882sed 's/^/| /' conftest.$ac_ext >&5
15883
Reid Spencera773bd52006-08-04 18:18:08 +000015884 ac_cv_lib_dl_dlopen=no
John Criswell47fdd832003-07-14 16:52:07 +000015885fi
Reid Spencera773bd52006-08-04 18:18:08 +000015886
Torok Edwincc499a42008-10-22 09:56:27 +000015887rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer2706f8c2004-09-19 23:53:36 +000015888 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015889LIBS=$ac_check_lib_save_LIBS
15890fi
Reid Spencera773bd52006-08-04 18:18:08 +000015891{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
15892echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000015893if test $ac_cv_lib_dl_dlopen = yes; then
15894 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15895else
15896
15897 lt_cv_dlopen="dyld"
15898 lt_cv_dlopen_libs=
15899 lt_cv_dlopen_self=yes
15900
15901fi
15902
15903 ;;
15904
John Criswell7a73b802003-06-30 21:59:07 +000015905 *)
Reid Spencera773bd52006-08-04 18:18:08 +000015906 { echo "$as_me:$LINENO: checking for shl_load" >&5
15907echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015908if test "${ac_cv_func_shl_load+set}" = set; then
15909 echo $ECHO_N "(cached) $ECHO_C" >&6
15910else
15911 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015912/* confdefs.h. */
15913_ACEOF
15914cat confdefs.h >>conftest.$ac_ext
15915cat >>conftest.$ac_ext <<_ACEOF
15916/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000015917/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
15918 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15919#define shl_load innocuous_shl_load
15920
John Criswell7a73b802003-06-30 21:59:07 +000015921/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000015922 which can conflict with char shl_load (); below.
15923 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15924 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000015925
John Criswell0c38eaf2003-09-10 15:17:25 +000015926#ifdef __STDC__
15927# include <limits.h>
15928#else
15929# include <assert.h>
15930#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000015931
15932#undef shl_load
15933
Reid Spencera773bd52006-08-04 18:18:08 +000015934/* Override any GCC internal prototype to avoid an error.
15935 Use char because int might match the return type of a GCC
15936 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000015937#ifdef __cplusplus
15938extern "C"
15939#endif
John Criswell7a73b802003-06-30 21:59:07 +000015940char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000015941/* The GNU C library defines this for functions which it implements
15942 to always fail with ENOSYS. Some functions are actually named
15943 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000015944#if defined __stub_shl_load || defined __stub___shl_load
John Criswell7a73b802003-06-30 21:59:07 +000015945choke me
John Criswell7a73b802003-06-30 21:59:07 +000015946#endif
15947
John Criswell0c38eaf2003-09-10 15:17:25 +000015948int
15949main ()
15950{
Reid Spencera773bd52006-08-04 18:18:08 +000015951return shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000015952 ;
15953 return 0;
15954}
15955_ACEOF
15956rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000015957if { (ac_try="$ac_link"
15958case "(($ac_try" in
15959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15960 *) ac_try_echo=$ac_try;;
15961esac
15962eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15963 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000015964 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015965 grep -v '^ *+' conftest.er1 >conftest.err
15966 rm -f conftest.er1
15967 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000015968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Torok Edwincc499a42008-10-22 09:56:27 +000015969 (exit $ac_status); } && {
15970 test -z "$ac_c_werror_flag" ||
15971 test ! -s conftest.err
15972 } && test -s conftest$ac_exeext &&
15973 $as_test_x conftest$ac_exeext; then
John Criswell7a73b802003-06-30 21:59:07 +000015974 ac_cv_func_shl_load=yes
15975else
15976 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015977sed 's/^/| /' conftest.$ac_ext >&5
15978
Reid Spencera773bd52006-08-04 18:18:08 +000015979 ac_cv_func_shl_load=no
John Criswell7a73b802003-06-30 21:59:07 +000015980fi
Reid Spencera773bd52006-08-04 18:18:08 +000015981
Torok Edwincc499a42008-10-22 09:56:27 +000015982rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer2706f8c2004-09-19 23:53:36 +000015983 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000015984fi
Reid Spencera773bd52006-08-04 18:18:08 +000015985{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
15986echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015987if test $ac_cv_func_shl_load = yes; then
15988 lt_cv_dlopen="shl_load"
15989else
Reid Spencera773bd52006-08-04 18:18:08 +000015990 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
15991echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015992if test "${ac_cv_lib_dld_shl_load+set}" = set; then
15993 echo $ECHO_N "(cached) $ECHO_C" >&6
15994else
15995 ac_check_lib_save_LIBS=$LIBS
15996LIBS="-ldld $LIBS"
15997cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015998/* confdefs.h. */
15999_ACEOF
16000cat confdefs.h >>conftest.$ac_ext
16001cat >>conftest.$ac_ext <<_ACEOF
16002/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000016003
Reid Spencera773bd52006-08-04 18:18:08 +000016004/* Override any GCC internal prototype to avoid an error.
16005 Use char because int might match the return type of a GCC
16006 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000016007#ifdef __cplusplus
16008extern "C"
16009#endif
John Criswell7a73b802003-06-30 21:59:07 +000016010char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000016011int
16012main ()
16013{
Reid Spencera773bd52006-08-04 18:18:08 +000016014return shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000016015 ;
16016 return 0;
16017}
16018_ACEOF
16019rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016020if { (ac_try="$ac_link"
16021case "(($ac_try" in
16022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16023 *) ac_try_echo=$ac_try;;
16024esac
16025eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16026 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000016027 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016028 grep -v '^ *+' conftest.er1 >conftest.err
16029 rm -f conftest.er1
16030 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000016031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Torok Edwincc499a42008-10-22 09:56:27 +000016032 (exit $ac_status); } && {
16033 test -z "$ac_c_werror_flag" ||
16034 test ! -s conftest.err
16035 } && test -s conftest$ac_exeext &&
16036 $as_test_x conftest$ac_exeext; then
John Criswell7a73b802003-06-30 21:59:07 +000016037 ac_cv_lib_dld_shl_load=yes
16038else
16039 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016040sed 's/^/| /' conftest.$ac_ext >&5
16041
Reid Spencera773bd52006-08-04 18:18:08 +000016042 ac_cv_lib_dld_shl_load=no
John Criswell7a73b802003-06-30 21:59:07 +000016043fi
Reid Spencera773bd52006-08-04 18:18:08 +000016044
Torok Edwincc499a42008-10-22 09:56:27 +000016045rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016046 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000016047LIBS=$ac_check_lib_save_LIBS
16048fi
Reid Spencera773bd52006-08-04 18:18:08 +000016049{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16050echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016051if test $ac_cv_lib_dld_shl_load = yes; then
16052 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16053else
Reid Spencera773bd52006-08-04 18:18:08 +000016054 { echo "$as_me:$LINENO: checking for dlopen" >&5
16055echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016056if test "${ac_cv_func_dlopen+set}" = set; then
16057 echo $ECHO_N "(cached) $ECHO_C" >&6
16058else
16059 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016060/* confdefs.h. */
16061_ACEOF
16062cat confdefs.h >>conftest.$ac_ext
16063cat >>conftest.$ac_ext <<_ACEOF
16064/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000016065/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
16066 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16067#define dlopen innocuous_dlopen
16068
John Criswell7a73b802003-06-30 21:59:07 +000016069/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000016070 which can conflict with char dlopen (); below.
16071 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16072 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000016073
John Criswell0c38eaf2003-09-10 15:17:25 +000016074#ifdef __STDC__
16075# include <limits.h>
16076#else
16077# include <assert.h>
16078#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000016079
16080#undef dlopen
16081
Reid Spencera773bd52006-08-04 18:18:08 +000016082/* Override any GCC internal prototype to avoid an error.
16083 Use char because int might match the return type of a GCC
16084 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000016085#ifdef __cplusplus
16086extern "C"
16087#endif
John Criswell7a73b802003-06-30 21:59:07 +000016088char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000016089/* The GNU C library defines this for functions which it implements
16090 to always fail with ENOSYS. Some functions are actually named
16091 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000016092#if defined __stub_dlopen || defined __stub___dlopen
John Criswell7a73b802003-06-30 21:59:07 +000016093choke me
John Criswell7a73b802003-06-30 21:59:07 +000016094#endif
16095
John Criswell0c38eaf2003-09-10 15:17:25 +000016096int
16097main ()
16098{
Reid Spencera773bd52006-08-04 18:18:08 +000016099return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000016100 ;
16101 return 0;
16102}
16103_ACEOF
16104rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016105if { (ac_try="$ac_link"
16106case "(($ac_try" in
16107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16108 *) ac_try_echo=$ac_try;;
16109esac
16110eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16111 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000016112 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016113 grep -v '^ *+' conftest.er1 >conftest.err
16114 rm -f conftest.er1
16115 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000016116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Torok Edwincc499a42008-10-22 09:56:27 +000016117 (exit $ac_status); } && {
16118 test -z "$ac_c_werror_flag" ||
16119 test ! -s conftest.err
16120 } && test -s conftest$ac_exeext &&
16121 $as_test_x conftest$ac_exeext; then
John Criswell7a73b802003-06-30 21:59:07 +000016122 ac_cv_func_dlopen=yes
16123else
16124 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016125sed 's/^/| /' conftest.$ac_ext >&5
16126
Reid Spencera773bd52006-08-04 18:18:08 +000016127 ac_cv_func_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000016128fi
Reid Spencera773bd52006-08-04 18:18:08 +000016129
Torok Edwincc499a42008-10-22 09:56:27 +000016130rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016131 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000016132fi
Reid Spencera773bd52006-08-04 18:18:08 +000016133{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
16134echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016135if test $ac_cv_func_dlopen = yes; then
16136 lt_cv_dlopen="dlopen"
16137else
Reid Spencera773bd52006-08-04 18:18:08 +000016138 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16139echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016140if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16141 echo $ECHO_N "(cached) $ECHO_C" >&6
16142else
16143 ac_check_lib_save_LIBS=$LIBS
16144LIBS="-ldl $LIBS"
16145cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016146/* confdefs.h. */
16147_ACEOF
16148cat confdefs.h >>conftest.$ac_ext
16149cat >>conftest.$ac_ext <<_ACEOF
16150/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000016151
Reid Spencera773bd52006-08-04 18:18:08 +000016152/* Override any GCC internal prototype to avoid an error.
16153 Use char because int might match the return type of a GCC
16154 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000016155#ifdef __cplusplus
16156extern "C"
16157#endif
John Criswell7a73b802003-06-30 21:59:07 +000016158char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000016159int
16160main ()
16161{
Reid Spencera773bd52006-08-04 18:18:08 +000016162return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000016163 ;
16164 return 0;
16165}
16166_ACEOF
16167rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016168if { (ac_try="$ac_link"
16169case "(($ac_try" in
16170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16171 *) ac_try_echo=$ac_try;;
16172esac
16173eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16174 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000016175 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016176 grep -v '^ *+' conftest.er1 >conftest.err
16177 rm -f conftest.er1
16178 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000016179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Torok Edwincc499a42008-10-22 09:56:27 +000016180 (exit $ac_status); } && {
16181 test -z "$ac_c_werror_flag" ||
16182 test ! -s conftest.err
16183 } && test -s conftest$ac_exeext &&
16184 $as_test_x conftest$ac_exeext; then
John Criswell7a73b802003-06-30 21:59:07 +000016185 ac_cv_lib_dl_dlopen=yes
16186else
16187 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016188sed 's/^/| /' conftest.$ac_ext >&5
16189
Reid Spencera773bd52006-08-04 18:18:08 +000016190 ac_cv_lib_dl_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000016191fi
Reid Spencera773bd52006-08-04 18:18:08 +000016192
Torok Edwincc499a42008-10-22 09:56:27 +000016193rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016194 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000016195LIBS=$ac_check_lib_save_LIBS
16196fi
Reid Spencera773bd52006-08-04 18:18:08 +000016197{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16198echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016199if test $ac_cv_lib_dl_dlopen = yes; then
16200 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16201else
Reid Spencera773bd52006-08-04 18:18:08 +000016202 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
16203echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016204if test "${ac_cv_lib_svld_dlopen+set}" = set; then
16205 echo $ECHO_N "(cached) $ECHO_C" >&6
16206else
16207 ac_check_lib_save_LIBS=$LIBS
16208LIBS="-lsvld $LIBS"
16209cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016210/* confdefs.h. */
16211_ACEOF
16212cat confdefs.h >>conftest.$ac_ext
16213cat >>conftest.$ac_ext <<_ACEOF
16214/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000016215
Reid Spencera773bd52006-08-04 18:18:08 +000016216/* Override any GCC internal prototype to avoid an error.
16217 Use char because int might match the return type of a GCC
16218 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000016219#ifdef __cplusplus
16220extern "C"
16221#endif
John Criswell7a73b802003-06-30 21:59:07 +000016222char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000016223int
16224main ()
16225{
Reid Spencera773bd52006-08-04 18:18:08 +000016226return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000016227 ;
16228 return 0;
16229}
16230_ACEOF
16231rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016232if { (ac_try="$ac_link"
16233case "(($ac_try" in
16234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16235 *) ac_try_echo=$ac_try;;
16236esac
16237eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16238 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000016239 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016240 grep -v '^ *+' conftest.er1 >conftest.err
16241 rm -f conftest.er1
16242 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000016243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Torok Edwincc499a42008-10-22 09:56:27 +000016244 (exit $ac_status); } && {
16245 test -z "$ac_c_werror_flag" ||
16246 test ! -s conftest.err
16247 } && test -s conftest$ac_exeext &&
16248 $as_test_x conftest$ac_exeext; then
John Criswell7a73b802003-06-30 21:59:07 +000016249 ac_cv_lib_svld_dlopen=yes
16250else
16251 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016252sed 's/^/| /' conftest.$ac_ext >&5
16253
Reid Spencera773bd52006-08-04 18:18:08 +000016254 ac_cv_lib_svld_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000016255fi
Reid Spencera773bd52006-08-04 18:18:08 +000016256
Torok Edwincc499a42008-10-22 09:56:27 +000016257rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016258 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000016259LIBS=$ac_check_lib_save_LIBS
16260fi
Reid Spencera773bd52006-08-04 18:18:08 +000016261{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
16262echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016263if test $ac_cv_lib_svld_dlopen = yes; then
16264 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16265else
Reid Spencera773bd52006-08-04 18:18:08 +000016266 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
16267echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016268if test "${ac_cv_lib_dld_dld_link+set}" = set; then
16269 echo $ECHO_N "(cached) $ECHO_C" >&6
16270else
16271 ac_check_lib_save_LIBS=$LIBS
16272LIBS="-ldld $LIBS"
16273cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016274/* confdefs.h. */
16275_ACEOF
16276cat confdefs.h >>conftest.$ac_ext
16277cat >>conftest.$ac_ext <<_ACEOF
16278/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000016279
Reid Spencera773bd52006-08-04 18:18:08 +000016280/* Override any GCC internal prototype to avoid an error.
16281 Use char because int might match the return type of a GCC
16282 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000016283#ifdef __cplusplus
16284extern "C"
16285#endif
John Criswell7a73b802003-06-30 21:59:07 +000016286char dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +000016287int
16288main ()
16289{
Reid Spencera773bd52006-08-04 18:18:08 +000016290return dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +000016291 ;
16292 return 0;
16293}
16294_ACEOF
16295rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016296if { (ac_try="$ac_link"
16297case "(($ac_try" in
16298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16299 *) ac_try_echo=$ac_try;;
16300esac
16301eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16302 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000016303 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016304 grep -v '^ *+' conftest.er1 >conftest.err
16305 rm -f conftest.er1
16306 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000016307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Torok Edwincc499a42008-10-22 09:56:27 +000016308 (exit $ac_status); } && {
16309 test -z "$ac_c_werror_flag" ||
16310 test ! -s conftest.err
16311 } && test -s conftest$ac_exeext &&
16312 $as_test_x conftest$ac_exeext; then
John Criswell7a73b802003-06-30 21:59:07 +000016313 ac_cv_lib_dld_dld_link=yes
16314else
16315 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016316sed 's/^/| /' conftest.$ac_ext >&5
16317
Reid Spencera773bd52006-08-04 18:18:08 +000016318 ac_cv_lib_dld_dld_link=no
John Criswell7a73b802003-06-30 21:59:07 +000016319fi
Reid Spencera773bd52006-08-04 18:18:08 +000016320
Torok Edwincc499a42008-10-22 09:56:27 +000016321rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016322 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000016323LIBS=$ac_check_lib_save_LIBS
16324fi
Reid Spencera773bd52006-08-04 18:18:08 +000016325{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
16326echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016327if test $ac_cv_lib_dld_dld_link = yes; then
16328 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
16329fi
16330
16331
16332fi
16333
16334
16335fi
16336
16337
16338fi
16339
16340
16341fi
16342
16343
16344fi
16345
16346 ;;
16347 esac
16348
16349 if test "x$lt_cv_dlopen" != xno; then
16350 enable_dlopen=yes
16351 else
16352 enable_dlopen=no
16353 fi
16354
16355 case $lt_cv_dlopen in
16356 dlopen)
16357 save_CPPFLAGS="$CPPFLAGS"
John Criswell47fdd832003-07-14 16:52:07 +000016358 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
John Criswell7a73b802003-06-30 21:59:07 +000016359
16360 save_LDFLAGS="$LDFLAGS"
Reid Spencera773bd52006-08-04 18:18:08 +000016361 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
John Criswell7a73b802003-06-30 21:59:07 +000016362
16363 save_LIBS="$LIBS"
16364 LIBS="$lt_cv_dlopen_libs $LIBS"
16365
Reid Spencera773bd52006-08-04 18:18:08 +000016366 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
16367echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016368if test "${lt_cv_dlopen_self+set}" = set; then
16369 echo $ECHO_N "(cached) $ECHO_C" >&6
16370else
16371 if test "$cross_compiling" = yes; then :
16372 lt_cv_dlopen_self=cross
16373else
John Criswell47fdd832003-07-14 16:52:07 +000016374 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000016375 lt_status=$lt_dlunknown
16376 cat > conftest.$ac_ext <<EOF
Torok Edwincc499a42008-10-22 09:56:27 +000016377#line 16377 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000016378#include "confdefs.h"
16379
16380#if HAVE_DLFCN_H
16381#include <dlfcn.h>
16382#endif
16383
16384#include <stdio.h>
16385
16386#ifdef RTLD_GLOBAL
16387# define LT_DLGLOBAL RTLD_GLOBAL
16388#else
16389# ifdef DL_GLOBAL
16390# define LT_DLGLOBAL DL_GLOBAL
16391# else
16392# define LT_DLGLOBAL 0
16393# endif
16394#endif
16395
16396/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16397 find out it does not work in some platform. */
16398#ifndef LT_DLLAZY_OR_NOW
16399# ifdef RTLD_LAZY
16400# define LT_DLLAZY_OR_NOW RTLD_LAZY
16401# else
16402# ifdef DL_LAZY
16403# define LT_DLLAZY_OR_NOW DL_LAZY
16404# else
16405# ifdef RTLD_NOW
16406# define LT_DLLAZY_OR_NOW RTLD_NOW
16407# else
16408# ifdef DL_NOW
16409# define LT_DLLAZY_OR_NOW DL_NOW
16410# else
16411# define LT_DLLAZY_OR_NOW 0
16412# endif
16413# endif
16414# endif
16415# endif
16416#endif
16417
16418#ifdef __cplusplus
16419extern "C" void exit (int);
16420#endif
16421
16422void fnord() { int i=42;}
16423int main ()
16424{
16425 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16426 int status = $lt_dlunknown;
16427
16428 if (self)
16429 {
16430 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
16431 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16432 /* dlclose (self); */
16433 }
Reid Spencera773bd52006-08-04 18:18:08 +000016434 else
16435 puts (dlerror ());
John Criswell7a73b802003-06-30 21:59:07 +000016436
16437 exit (status);
16438}
16439EOF
16440 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16441 (eval $ac_link) 2>&5
16442 ac_status=$?
16443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16444 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000016445 (./conftest; exit; ) >&5 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000016446 lt_status=$?
16447 case x$lt_status in
16448 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
16449 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000016450 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
John Criswell7a73b802003-06-30 21:59:07 +000016451 esac
16452 else :
16453 # compilation failed
16454 lt_cv_dlopen_self=no
16455 fi
16456fi
16457rm -fr conftest*
16458
16459
16460fi
Reid Spencera773bd52006-08-04 18:18:08 +000016461{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
16462echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016463
16464 if test "x$lt_cv_dlopen_self" = xyes; then
Reid Spencera773bd52006-08-04 18:18:08 +000016465 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
16466 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
16467echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016468if test "${lt_cv_dlopen_self_static+set}" = set; then
16469 echo $ECHO_N "(cached) $ECHO_C" >&6
16470else
16471 if test "$cross_compiling" = yes; then :
16472 lt_cv_dlopen_self_static=cross
16473else
John Criswell47fdd832003-07-14 16:52:07 +000016474 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000016475 lt_status=$lt_dlunknown
16476 cat > conftest.$ac_ext <<EOF
Torok Edwincc499a42008-10-22 09:56:27 +000016477#line 16477 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000016478#include "confdefs.h"
16479
16480#if HAVE_DLFCN_H
16481#include <dlfcn.h>
16482#endif
16483
16484#include <stdio.h>
16485
16486#ifdef RTLD_GLOBAL
16487# define LT_DLGLOBAL RTLD_GLOBAL
16488#else
16489# ifdef DL_GLOBAL
16490# define LT_DLGLOBAL DL_GLOBAL
16491# else
16492# define LT_DLGLOBAL 0
16493# endif
16494#endif
16495
16496/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16497 find out it does not work in some platform. */
16498#ifndef LT_DLLAZY_OR_NOW
16499# ifdef RTLD_LAZY
16500# define LT_DLLAZY_OR_NOW RTLD_LAZY
16501# else
16502# ifdef DL_LAZY
16503# define LT_DLLAZY_OR_NOW DL_LAZY
16504# else
16505# ifdef RTLD_NOW
16506# define LT_DLLAZY_OR_NOW RTLD_NOW
16507# else
16508# ifdef DL_NOW
16509# define LT_DLLAZY_OR_NOW DL_NOW
16510# else
16511# define LT_DLLAZY_OR_NOW 0
16512# endif
16513# endif
16514# endif
16515# endif
16516#endif
16517
16518#ifdef __cplusplus
16519extern "C" void exit (int);
16520#endif
16521
16522void fnord() { int i=42;}
16523int main ()
16524{
16525 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16526 int status = $lt_dlunknown;
16527
16528 if (self)
16529 {
16530 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
16531 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16532 /* dlclose (self); */
16533 }
Reid Spencera773bd52006-08-04 18:18:08 +000016534 else
16535 puts (dlerror ());
John Criswell7a73b802003-06-30 21:59:07 +000016536
16537 exit (status);
16538}
16539EOF
16540 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16541 (eval $ac_link) 2>&5
16542 ac_status=$?
16543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16544 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000016545 (./conftest; exit; ) >&5 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000016546 lt_status=$?
16547 case x$lt_status in
16548 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
16549 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000016550 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
John Criswell7a73b802003-06-30 21:59:07 +000016551 esac
16552 else :
16553 # compilation failed
16554 lt_cv_dlopen_self_static=no
16555 fi
16556fi
16557rm -fr conftest*
16558
16559
16560fi
Reid Spencera773bd52006-08-04 18:18:08 +000016561{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
16562echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016563 fi
16564
16565 CPPFLAGS="$save_CPPFLAGS"
16566 LDFLAGS="$save_LDFLAGS"
16567 LIBS="$save_LIBS"
16568 ;;
16569 esac
16570
16571 case $lt_cv_dlopen_self in
16572 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
16573 *) enable_dlopen_self=unknown ;;
16574 esac
16575
16576 case $lt_cv_dlopen_self_static in
16577 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
16578 *) enable_dlopen_self_static=unknown ;;
16579 esac
16580fi
16581
16582
Reid Spencera773bd52006-08-04 18:18:08 +000016583# Report which library types will actually be built
16584{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
16585echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
16586{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
16587echo "${ECHO_T}$can_build_shared" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016588
Reid Spencera773bd52006-08-04 18:18:08 +000016589{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
16590echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000016591test "$can_build_shared" = "no" && enable_shared=no
16592
16593# On AIX, shared libraries and static libraries use the same namespace, and
16594# are all built from PIC.
Reid Spencera773bd52006-08-04 18:18:08 +000016595case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000016596aix3*)
16597 test "$enable_shared" = yes && enable_static=no
16598 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000016599 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000016600 postinstall_cmds='$RANLIB $lib'
16601 fi
16602 ;;
16603
Reid Spencer2706f8c2004-09-19 23:53:36 +000016604aix4* | aix5*)
John Criswell47fdd832003-07-14 16:52:07 +000016605 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
16606 test "$enable_shared" = yes && enable_static=no
16607 fi
John Criswell7a73b802003-06-30 21:59:07 +000016608 ;;
John Criswell47fdd832003-07-14 16:52:07 +000016609esac
Reid Spencera773bd52006-08-04 18:18:08 +000016610{ echo "$as_me:$LINENO: result: $enable_shared" >&5
16611echo "${ECHO_T}$enable_shared" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016612
Reid Spencera773bd52006-08-04 18:18:08 +000016613{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
16614echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000016615# Make sure either enable_shared or enable_static is yes.
16616test "$enable_shared" = yes || enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000016617{ echo "$as_me:$LINENO: result: $enable_static" >&5
16618echo "${ECHO_T}$enable_static" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000016619
16620# The else clause should only fire when bootstrapping the
John Criswell7a73b802003-06-30 21:59:07 +000016621# libtool distribution, otherwise you forgot to ship ltmain.sh
16622# with your package, and you will get complaints that there are
16623# no rules to generate ltmain.sh.
16624if test -f "$ltmain"; then
John Criswell47fdd832003-07-14 16:52:07 +000016625 # See if we are running on zsh, and set the options which allow our commands through
16626 # without removal of \ escapes.
16627 if test -n "${ZSH_VERSION+set}" ; then
16628 setopt NO_GLOB_SUBST
16629 fi
John Criswell7a73b802003-06-30 21:59:07 +000016630 # Now quote all the things that may contain metacharacters while being
16631 # careful not to overquote the AC_SUBSTed values. We take copies of the
16632 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000016633 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 +000016634 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000016635 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16636 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16637 deplibs_check_method reload_flag reload_cmds need_locks \
16638 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16639 lt_cv_sys_global_symbol_to_c_name_address \
John Criswell7a73b802003-06-30 21:59:07 +000016640 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
John Criswell47fdd832003-07-14 16:52:07 +000016641 old_postinstall_cmds old_postuninstall_cmds \
16642 compiler \
16643 CC \
16644 LD \
16645 lt_prog_compiler_wl \
16646 lt_prog_compiler_pic \
16647 lt_prog_compiler_static \
16648 lt_prog_compiler_no_builtin_flag \
16649 export_dynamic_flag_spec \
16650 thread_safe_flag_spec \
16651 whole_archive_flag_spec \
16652 enable_shared_with_static_runtimes \
16653 old_archive_cmds \
16654 old_archive_from_new_cmds \
16655 predep_objects \
16656 postdep_objects \
16657 predeps \
16658 postdeps \
16659 compiler_lib_search_path \
16660 archive_cmds \
16661 archive_expsym_cmds \
16662 postinstall_cmds \
16663 postuninstall_cmds \
16664 old_archive_from_expsyms_cmds \
16665 allow_undefined_flag \
16666 no_undefined_flag \
16667 export_symbols_cmds \
16668 hardcode_libdir_flag_spec \
16669 hardcode_libdir_flag_spec_ld \
16670 hardcode_libdir_separator \
16671 hardcode_automatic \
16672 module_cmds \
16673 module_expsym_cmds \
16674 lt_cv_prog_compiler_c_o \
16675 exclude_expsyms \
16676 include_expsyms; do
John Criswell7a73b802003-06-30 21:59:07 +000016677
16678 case $var in
John Criswell47fdd832003-07-14 16:52:07 +000016679 old_archive_cmds | \
16680 old_archive_from_new_cmds | \
16681 archive_cmds | \
16682 archive_expsym_cmds | \
16683 module_cmds | \
16684 module_expsym_cmds | \
16685 old_archive_from_expsyms_cmds | \
16686 export_symbols_cmds | \
16687 extract_expsyms_cmds | reload_cmds | finish_cmds | \
John Criswell7a73b802003-06-30 21:59:07 +000016688 postinstall_cmds | postuninstall_cmds | \
John Criswell47fdd832003-07-14 16:52:07 +000016689 old_postinstall_cmds | old_postuninstall_cmds | \
16690 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
John Criswell7a73b802003-06-30 21:59:07 +000016691 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000016692 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 +000016693 ;;
16694 *)
16695 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16696 ;;
16697 esac
16698 done
16699
John Criswell47fdd832003-07-14 16:52:07 +000016700 case $lt_echo in
16701 *'\$0 --fallback-echo"')
16702 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16703 ;;
16704 esac
16705
16706cfgfile="${ofile}T"
16707 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
16708 $rm -f "$cfgfile"
16709 { echo "$as_me:$LINENO: creating $ofile" >&5
16710echo "$as_me: creating $ofile" >&6;}
16711
16712 cat <<__EOF__ >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000016713#! $SHELL
16714
John Criswell47fdd832003-07-14 16:52:07 +000016715# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
John Criswell7a73b802003-06-30 21:59:07 +000016716# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
16717# NOTE: Changes made to this file will be lost: look at ltmain.sh.
16718#
John Criswell47fdd832003-07-14 16:52:07 +000016719# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
16720# Free Software Foundation, Inc.
16721#
16722# This file is part of GNU Libtool:
John Criswell7a73b802003-06-30 21:59:07 +000016723# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
16724#
16725# This program is free software; you can redistribute it and/or modify
16726# it under the terms of the GNU General Public License as published by
16727# the Free Software Foundation; either version 2 of the License, or
16728# (at your option) any later version.
16729#
16730# This program is distributed in the hope that it will be useful, but
16731# WITHOUT ANY WARRANTY; without even the implied warranty of
16732# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16733# General Public License for more details.
16734#
16735# You should have received a copy of the GNU General Public License
16736# along with this program; if not, write to the Free Software
Reid Spencera773bd52006-08-04 18:18:08 +000016737# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
John Criswell7a73b802003-06-30 21:59:07 +000016738#
16739# As a special exception to the GNU General Public License, if you
16740# distribute this file as part of a program that contains a
16741# configuration script generated by Autoconf, you may include it under
16742# the same distribution terms that you use for the rest of that program.
16743
John Criswell47fdd832003-07-14 16:52:07 +000016744# A sed program that does not truncate output.
16745SED=$lt_SED
16746
John Criswell7a73b802003-06-30 21:59:07 +000016747# Sed that helps us avoid accidentally triggering echo(1) options like -n.
Reid Spencera773bd52006-08-04 18:18:08 +000016748Xsed="$SED -e 1s/^X//"
John Criswell7a73b802003-06-30 21:59:07 +000016749
16750# The HP-UX ksh and POSIX shell print the target directory to stdout
16751# if CDPATH is set.
Reid Spencer2706f8c2004-09-19 23:53:36 +000016752(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +000016753
John Criswell47fdd832003-07-14 16:52:07 +000016754# The names of the tagged configurations supported by this script.
16755available_tags=
16756
John Criswell7a73b802003-06-30 21:59:07 +000016757# ### BEGIN LIBTOOL CONFIG
16758
16759# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16760
16761# Shell to use when invoking shell scripts.
16762SHELL=$lt_SHELL
16763
16764# Whether or not to build shared libraries.
16765build_libtool_libs=$enable_shared
16766
16767# Whether or not to build static libraries.
16768build_old_libs=$enable_static
16769
16770# Whether or not to add -lc for building shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000016771build_libtool_need_lc=$archive_cmds_need_lc
16772
16773# Whether or not to disallow shared libs when runtime libs are static
16774allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
John Criswell7a73b802003-06-30 21:59:07 +000016775
16776# Whether or not to optimize for fast installation.
16777fast_install=$enable_fast_install
16778
16779# The host system.
16780host_alias=$host_alias
16781host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000016782host_os=$host_os
16783
16784# The build system.
16785build_alias=$build_alias
16786build=$build
16787build_os=$build_os
John Criswell7a73b802003-06-30 21:59:07 +000016788
16789# An echo program that does not interpret backslashes.
16790echo=$lt_echo
16791
16792# The archiver.
16793AR=$lt_AR
16794AR_FLAGS=$lt_AR_FLAGS
16795
John Criswell47fdd832003-07-14 16:52:07 +000016796# A C compiler.
16797LTCC=$lt_LTCC
16798
Reid Spencera773bd52006-08-04 18:18:08 +000016799# LTCC compiler flags.
16800LTCFLAGS=$lt_LTCFLAGS
16801
John Criswell47fdd832003-07-14 16:52:07 +000016802# A language-specific compiler.
16803CC=$lt_compiler
John Criswell7a73b802003-06-30 21:59:07 +000016804
16805# Is the compiler the GNU C compiler?
16806with_gcc=$GCC
16807
John Criswell47fdd832003-07-14 16:52:07 +000016808# An ERE matcher.
16809EGREP=$lt_EGREP
16810
John Criswell7a73b802003-06-30 21:59:07 +000016811# The linker used to build libraries.
16812LD=$lt_LD
16813
16814# Whether we need hard or soft links.
16815LN_S=$lt_LN_S
16816
16817# A BSD-compatible nm program.
16818NM=$lt_NM
16819
16820# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000016821STRIP=$lt_STRIP
John Criswell7a73b802003-06-30 21:59:07 +000016822
16823# Used to examine libraries when file_magic_cmd begins "file"
16824MAGIC_CMD=$MAGIC_CMD
16825
16826# Used on cygwin: DLL creation program.
16827DLLTOOL="$DLLTOOL"
16828
16829# Used on cygwin: object dumper.
16830OBJDUMP="$OBJDUMP"
16831
16832# Used on cygwin: assembler.
16833AS="$AS"
16834
16835# The name of the directory that contains temporary libtool files.
16836objdir=$objdir
16837
16838# How to create reloadable object files.
16839reload_flag=$lt_reload_flag
16840reload_cmds=$lt_reload_cmds
16841
16842# How to pass a linker flag through the compiler.
John Criswell47fdd832003-07-14 16:52:07 +000016843wl=$lt_lt_prog_compiler_wl
John Criswell7a73b802003-06-30 21:59:07 +000016844
16845# Object file suffix (normally "o").
16846objext="$ac_objext"
16847
16848# Old archive suffix (normally "a").
16849libext="$libext"
16850
John Criswell47fdd832003-07-14 16:52:07 +000016851# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000016852shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000016853
John Criswell7a73b802003-06-30 21:59:07 +000016854# Executable file suffix (normally "").
16855exeext="$exeext"
16856
16857# Additional compiler flags for building library objects.
John Criswell47fdd832003-07-14 16:52:07 +000016858pic_flag=$lt_lt_prog_compiler_pic
John Criswell7a73b802003-06-30 21:59:07 +000016859pic_mode=$pic_mode
16860
John Criswell47fdd832003-07-14 16:52:07 +000016861# What is the maximum length of a command?
16862max_cmd_len=$lt_cv_sys_max_cmd_len
John Criswell7a73b802003-06-30 21:59:07 +000016863
John Criswell47fdd832003-07-14 16:52:07 +000016864# Does compiler simultaneously support -c and -o options?
16865compiler_c_o=$lt_lt_cv_prog_compiler_c_o
John Criswell7a73b802003-06-30 21:59:07 +000016866
Reid Spencera773bd52006-08-04 18:18:08 +000016867# Must we lock files when doing compilation?
John Criswell7a73b802003-06-30 21:59:07 +000016868need_locks=$lt_need_locks
16869
16870# Do we need the lib prefix for modules?
16871need_lib_prefix=$need_lib_prefix
16872
16873# Do we need a version for libraries?
16874need_version=$need_version
16875
16876# Whether dlopen is supported.
16877dlopen_support=$enable_dlopen
16878
16879# Whether dlopen of programs is supported.
16880dlopen_self=$enable_dlopen_self
16881
16882# Whether dlopen of statically linked programs is supported.
16883dlopen_self_static=$enable_dlopen_self_static
16884
16885# Compiler flag to prevent dynamic linking.
John Criswell47fdd832003-07-14 16:52:07 +000016886link_static_flag=$lt_lt_prog_compiler_static
John Criswell7a73b802003-06-30 21:59:07 +000016887
16888# Compiler flag to turn off builtin functions.
John Criswell47fdd832003-07-14 16:52:07 +000016889no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
John Criswell7a73b802003-06-30 21:59:07 +000016890
16891# Compiler flag to allow reflexive dlopens.
16892export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16893
16894# Compiler flag to generate shared objects directly from archives.
16895whole_archive_flag_spec=$lt_whole_archive_flag_spec
16896
16897# Compiler flag to generate thread-safe objects.
16898thread_safe_flag_spec=$lt_thread_safe_flag_spec
16899
16900# Library versioning type.
16901version_type=$version_type
16902
16903# Format of library name prefix.
16904libname_spec=$lt_libname_spec
16905
16906# List of archive names. First name is the real one, the rest are links.
16907# The last name is the one that the linker finds with -lNAME.
16908library_names_spec=$lt_library_names_spec
16909
16910# The coded name of the library, if different from the real name.
16911soname_spec=$lt_soname_spec
16912
16913# Commands used to build and install an old-style archive.
16914RANLIB=$lt_RANLIB
16915old_archive_cmds=$lt_old_archive_cmds
16916old_postinstall_cmds=$lt_old_postinstall_cmds
16917old_postuninstall_cmds=$lt_old_postuninstall_cmds
16918
16919# Create an old-style archive from a shared archive.
16920old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16921
16922# Create a temporary old-style archive to link instead of a shared archive.
16923old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16924
16925# Commands used to build and install a shared archive.
16926archive_cmds=$lt_archive_cmds
16927archive_expsym_cmds=$lt_archive_expsym_cmds
16928postinstall_cmds=$lt_postinstall_cmds
16929postuninstall_cmds=$lt_postuninstall_cmds
16930
John Criswell47fdd832003-07-14 16:52:07 +000016931# Commands used to build a loadable module (assumed same as above if empty)
16932module_cmds=$lt_module_cmds
16933module_expsym_cmds=$lt_module_expsym_cmds
16934
John Criswell7a73b802003-06-30 21:59:07 +000016935# Commands to strip libraries.
16936old_striplib=$lt_old_striplib
16937striplib=$lt_striplib
16938
John Criswell47fdd832003-07-14 16:52:07 +000016939# Dependencies to place before the objects being linked to create a
16940# shared library.
16941predep_objects=$lt_predep_objects
16942
16943# Dependencies to place after the objects being linked to create a
16944# shared library.
16945postdep_objects=$lt_postdep_objects
16946
16947# Dependencies to place before the objects being linked to create a
16948# shared library.
16949predeps=$lt_predeps
16950
16951# Dependencies to place after the objects being linked to create a
16952# shared library.
16953postdeps=$lt_postdeps
16954
16955# The library search path used internally by the compiler when linking
16956# a shared library.
16957compiler_lib_search_path=$lt_compiler_lib_search_path
16958
John Criswell7a73b802003-06-30 21:59:07 +000016959# Method to check whether dependent libraries are shared objects.
16960deplibs_check_method=$lt_deplibs_check_method
16961
16962# Command to use when deplibs_check_method == file_magic.
16963file_magic_cmd=$lt_file_magic_cmd
16964
16965# Flag that allows shared libraries with undefined symbols to be built.
16966allow_undefined_flag=$lt_allow_undefined_flag
16967
16968# Flag that forces no undefined symbols.
16969no_undefined_flag=$lt_no_undefined_flag
16970
16971# Commands used to finish a libtool library installation in a directory.
16972finish_cmds=$lt_finish_cmds
16973
16974# Same as above, but a single script fragment to be evaled but not shown.
16975finish_eval=$lt_finish_eval
16976
16977# Take the output of nm and produce a listing of raw symbols and C names.
John Criswell47fdd832003-07-14 16:52:07 +000016978global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
John Criswell7a73b802003-06-30 21:59:07 +000016979
16980# Transform the output of nm in a proper C declaration
John Criswell47fdd832003-07-14 16:52:07 +000016981global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
John Criswell7a73b802003-06-30 21:59:07 +000016982
16983# Transform the output of nm in a C name address pair
John Criswell47fdd832003-07-14 16:52:07 +000016984global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
John Criswell7a73b802003-06-30 21:59:07 +000016985
16986# This is the shared library runtime path variable.
16987runpath_var=$runpath_var
16988
16989# This is the shared library path variable.
16990shlibpath_var=$shlibpath_var
16991
16992# Is shlibpath searched before the hard-coded library search path?
16993shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16994
16995# How to hardcode a shared library path into an executable.
16996hardcode_action=$hardcode_action
16997
16998# Whether we should hardcode library paths into libraries.
16999hardcode_into_libs=$hardcode_into_libs
17000
17001# Flag to hardcode \$libdir into a binary during linking.
17002# This must work even if \$libdir does not exist.
17003hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17004
John Criswell47fdd832003-07-14 16:52:07 +000017005# If ld is used when linking, flag to hardcode \$libdir into
17006# a binary during linking. This must work even if \$libdir does
17007# not exist.
17008hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17009
John Criswell7a73b802003-06-30 21:59:07 +000017010# Whether we need a single -rpath flag with a separated argument.
17011hardcode_libdir_separator=$lt_hardcode_libdir_separator
17012
John Criswell47fdd832003-07-14 16:52:07 +000017013# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
John Criswell7a73b802003-06-30 21:59:07 +000017014# resulting binary.
17015hardcode_direct=$hardcode_direct
17016
17017# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17018# resulting binary.
17019hardcode_minus_L=$hardcode_minus_L
17020
17021# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17022# the resulting binary.
17023hardcode_shlibpath_var=$hardcode_shlibpath_var
17024
John Criswell47fdd832003-07-14 16:52:07 +000017025# Set to yes if building a shared library automatically hardcodes DIR into the library
17026# and all subsequent libraries and executables linked against it.
17027hardcode_automatic=$hardcode_automatic
17028
John Criswell7a73b802003-06-30 21:59:07 +000017029# Variables whose values should be saved in libtool wrapper scripts and
17030# restored at relink time.
17031variables_saved_for_relink="$variables_saved_for_relink"
17032
17033# Whether libtool must link a program against all its dependency libraries.
17034link_all_deplibs=$link_all_deplibs
17035
17036# Compile-time system search path for libraries
17037sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17038
17039# Run-time system search path for libraries
17040sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17041
17042# Fix the shell variable \$srcfile for the compiler.
17043fix_srcfile_path="$fix_srcfile_path"
17044
17045# Set to yes if exported symbols are required.
17046always_export_symbols=$always_export_symbols
17047
17048# The commands to list exported symbols.
17049export_symbols_cmds=$lt_export_symbols_cmds
17050
17051# The commands to extract the exported symbol list from a shared archive.
17052extract_expsyms_cmds=$lt_extract_expsyms_cmds
17053
17054# Symbols that should not be listed in the preloaded symbols.
17055exclude_expsyms=$lt_exclude_expsyms
17056
17057# Symbols that must always be exported.
17058include_expsyms=$lt_include_expsyms
17059
17060# ### END LIBTOOL CONFIG
17061
17062__EOF__
17063
John Criswell47fdd832003-07-14 16:52:07 +000017064
John Criswell7a73b802003-06-30 21:59:07 +000017065 case $host_os in
17066 aix3*)
John Criswell47fdd832003-07-14 16:52:07 +000017067 cat <<\EOF >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000017068
17069# AIX sometimes has problems with the GCC collect2 program. For some
17070# reason, if we set the COLLECT_NAMES environment variable, the problems
17071# vanish in a puff of smoke.
17072if test "X${COLLECT_NAMES+set}" != Xset; then
17073 COLLECT_NAMES=
17074 export COLLECT_NAMES
17075fi
17076EOF
17077 ;;
17078 esac
17079
John Criswell7a73b802003-06-30 21:59:07 +000017080 # We use sed instead of cat because bash on DJGPP gets confused if
17081 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17082 # text mode, it properly converts lines to CR/LF. This bash problem
17083 # is reportedly fixed, but why not run on old versions too?
John Criswell47fdd832003-07-14 16:52:07 +000017084 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
John Criswell7a73b802003-06-30 21:59:07 +000017085
John Criswell47fdd832003-07-14 16:52:07 +000017086 mv -f "$cfgfile" "$ofile" || \
17087 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
John Criswell7a73b802003-06-30 21:59:07 +000017088 chmod +x "$ofile"
John Criswell47fdd832003-07-14 16:52:07 +000017089
17090else
17091 # If there is no Makefile yet, we rely on a make rule to execute
17092 # `config.status --recheck' to rerun these tests and create the
17093 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000017094 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17095 if test -f "$ltmain_in"; then
17096 test -f Makefile && make "$ltmain"
17097 fi
John Criswell7a73b802003-06-30 21:59:07 +000017098fi
John Criswell7a73b802003-06-30 21:59:07 +000017099
17100
John Criswell47fdd832003-07-14 16:52:07 +000017101ac_ext=c
17102ac_cpp='$CPP $CPPFLAGS'
17103ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17104ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17105ac_compiler_gnu=$ac_cv_c_compiler_gnu
17106
17107CC="$lt_save_CC"
17108
17109
Reid Spencera773bd52006-08-04 18:18:08 +000017110# Check whether --with-tags was given.
John Criswell47fdd832003-07-14 16:52:07 +000017111if test "${with_tags+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000017112 withval=$with_tags; tagnames="$withval"
17113fi
17114
John Criswell47fdd832003-07-14 16:52:07 +000017115
17116if test -f "$ltmain" && test -n "$tagnames"; then
17117 if test ! -f "${ofile}"; then
17118 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
17119echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
17120 fi
17121
17122 if test -z "$LTCC"; then
17123 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
17124 if test -z "$LTCC"; then
17125 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
17126echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
17127 else
17128 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
17129echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
17130 fi
17131 fi
Reid Spencera773bd52006-08-04 18:18:08 +000017132 if test -z "$LTCFLAGS"; then
17133 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
17134 fi
John Criswell47fdd832003-07-14 16:52:07 +000017135
17136 # Extract list of available tagged configurations in $ofile.
17137 # Note that this assumes the entire list is on one line.
17138 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
17139
17140 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
17141 for tagname in $tagnames; do
17142 IFS="$lt_save_ifs"
17143 # Check whether tagname contains only valid characters
17144 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
17145 "") ;;
17146 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
17147echo "$as_me: error: invalid tag name: $tagname" >&2;}
17148 { (exit 1); exit 1; }; }
17149 ;;
17150 esac
17151
17152 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
17153 then
17154 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
17155echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
17156 { (exit 1); exit 1; }; }
17157 fi
17158
17159 # Update the list of available tags.
17160 if test -n "$tagname"; then
Reid Spencera773bd52006-08-04 18:18:08 +000017161 echo appending configuration tag \"$tagname\" to $ofile
John Criswell47fdd832003-07-14 16:52:07 +000017162
17163 case $tagname in
17164 CXX)
Reid Spencer2706f8c2004-09-19 23:53:36 +000017165 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
17166 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
17167 (test "X$CXX" != "Xg++"))) ; then
Reid Spencera773bd52006-08-04 18:18:08 +000017168 ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000017169ac_cpp='$CXXCPP $CPPFLAGS'
17170ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17171ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17172ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17173
17174
17175
17176
17177archive_cmds_need_lc_CXX=no
17178allow_undefined_flag_CXX=
17179always_export_symbols_CXX=no
17180archive_expsym_cmds_CXX=
17181export_dynamic_flag_spec_CXX=
17182hardcode_direct_CXX=no
17183hardcode_libdir_flag_spec_CXX=
17184hardcode_libdir_flag_spec_ld_CXX=
17185hardcode_libdir_separator_CXX=
17186hardcode_minus_L_CXX=no
Reid Spencera773bd52006-08-04 18:18:08 +000017187hardcode_shlibpath_var_CXX=unsupported
John Criswell47fdd832003-07-14 16:52:07 +000017188hardcode_automatic_CXX=no
17189module_cmds_CXX=
17190module_expsym_cmds_CXX=
17191link_all_deplibs_CXX=unknown
17192old_archive_cmds_CXX=$old_archive_cmds
17193no_undefined_flag_CXX=
17194whole_archive_flag_spec_CXX=
17195enable_shared_with_static_runtimes_CXX=no
17196
17197# Dependencies to place before and after the object being linked:
17198predep_objects_CXX=
17199postdep_objects_CXX=
17200predeps_CXX=
17201postdeps_CXX=
17202compiler_lib_search_path_CXX=
17203
17204# Source file extension for C++ test sources.
Reid Spencera773bd52006-08-04 18:18:08 +000017205ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000017206
17207# Object file extension for compiled C++ test sources.
17208objext=o
17209objext_CXX=$objext
17210
17211# Code to be used in simple compile tests
17212lt_simple_compile_test_code="int some_variable = 0;\n"
17213
17214# Code to be used in simple link tests
Reid Spencera773bd52006-08-04 18:18:08 +000017215lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
John Criswell47fdd832003-07-14 16:52:07 +000017216
17217# ltmain only uses $CC for tagged configurations so make sure $CC is set.
17218
17219# If no C compiler was specified, use CC.
17220LTCC=${LTCC-"$CC"}
17221
Reid Spencera773bd52006-08-04 18:18:08 +000017222# If no C compiler flags were specified, use CFLAGS.
17223LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17224
John Criswell47fdd832003-07-14 16:52:07 +000017225# Allow CC to be a program name with arguments.
17226compiler=$CC
17227
17228
Reid Spencera773bd52006-08-04 18:18:08 +000017229# save warnings/boilerplate of simple test code
17230ac_outfile=conftest.$ac_objext
17231printf "$lt_simple_compile_test_code" >conftest.$ac_ext
17232eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17233_lt_compiler_boilerplate=`cat conftest.err`
17234$rm conftest*
17235
17236ac_outfile=conftest.$ac_objext
17237printf "$lt_simple_link_test_code" >conftest.$ac_ext
17238eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17239_lt_linker_boilerplate=`cat conftest.err`
17240$rm conftest*
17241
17242
John Criswell47fdd832003-07-14 16:52:07 +000017243# Allow CC to be a program name with arguments.
17244lt_save_CC=$CC
17245lt_save_LD=$LD
17246lt_save_GCC=$GCC
17247GCC=$GXX
17248lt_save_with_gnu_ld=$with_gnu_ld
17249lt_save_path_LD=$lt_cv_path_LD
17250if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
17251 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
17252else
Reid Spencera773bd52006-08-04 18:18:08 +000017253 $as_unset lt_cv_prog_gnu_ld
John Criswell47fdd832003-07-14 16:52:07 +000017254fi
17255if test -n "${lt_cv_path_LDCXX+set}"; then
17256 lt_cv_path_LD=$lt_cv_path_LDCXX
17257else
Reid Spencera773bd52006-08-04 18:18:08 +000017258 $as_unset lt_cv_path_LD
John Criswell47fdd832003-07-14 16:52:07 +000017259fi
17260test -z "${LDCXX+set}" || LD=$LDCXX
17261CC=${CXX-"c++"}
17262compiler=$CC
17263compiler_CXX=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000017264for cc_temp in $compiler""; do
17265 case $cc_temp in
17266 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17267 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17268 \-*) ;;
17269 *) break;;
17270 esac
17271done
17272cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17273
John Criswell47fdd832003-07-14 16:52:07 +000017274
17275# We don't want -fno-exception wen compiling C++ code, so set the
17276# no_builtin_flag separately
17277if test "$GXX" = yes; then
17278 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
17279else
17280 lt_prog_compiler_no_builtin_flag_CXX=
17281fi
17282
17283if test "$GXX" = yes; then
17284 # Set up default GNU C++ configuration
17285
17286
Reid Spencera773bd52006-08-04 18:18:08 +000017287# Check whether --with-gnu-ld was given.
John Criswell47fdd832003-07-14 16:52:07 +000017288if test "${with_gnu_ld+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000017289 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
John Criswell47fdd832003-07-14 16:52:07 +000017290else
17291 with_gnu_ld=no
Reid Spencera773bd52006-08-04 18:18:08 +000017292fi
17293
John Criswell47fdd832003-07-14 16:52:07 +000017294ac_prog=ld
17295if test "$GCC" = yes; then
17296 # Check if gcc -print-prog-name=ld gives a path.
Reid Spencera773bd52006-08-04 18:18:08 +000017297 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
17298echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017299 case $host in
17300 *-*-mingw*)
17301 # gcc leaves a trailing carriage return which upsets mingw
17302 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17303 *)
17304 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17305 esac
17306 case $ac_prog in
17307 # Accept absolute paths.
17308 [\\/]* | ?:[\\/]*)
17309 re_direlt='/[^/][^/]*/\.\./'
Reid Spencer2706f8c2004-09-19 23:53:36 +000017310 # Canonicalize the pathname of ld
John Criswell47fdd832003-07-14 16:52:07 +000017311 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
17312 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
17313 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
17314 done
17315 test -z "$LD" && LD="$ac_prog"
17316 ;;
17317 "")
17318 # If it fails, then pretend we aren't using GCC.
17319 ac_prog=ld
17320 ;;
17321 *)
17322 # If it is relative, then search for the first ld in PATH.
17323 with_gnu_ld=unknown
17324 ;;
17325 esac
17326elif test "$with_gnu_ld" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000017327 { echo "$as_me:$LINENO: checking for GNU ld" >&5
17328echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017329else
Reid Spencera773bd52006-08-04 18:18:08 +000017330 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
17331echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017332fi
17333if test "${lt_cv_path_LD+set}" = set; then
17334 echo $ECHO_N "(cached) $ECHO_C" >&6
17335else
17336 if test -z "$LD"; then
17337 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
17338 for ac_dir in $PATH; do
17339 IFS="$lt_save_ifs"
17340 test -z "$ac_dir" && ac_dir=.
17341 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17342 lt_cv_path_LD="$ac_dir/$ac_prog"
17343 # Check to see if the program is GNU ld. I'd rather use --version,
Reid Spencera773bd52006-08-04 18:18:08 +000017344 # but apparently some variants of GNU ld only accept -v.
John Criswell47fdd832003-07-14 16:52:07 +000017345 # Break only if it was the GNU/non-GNU ld that we prefer.
17346 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
17347 *GNU* | *'with BFD'*)
17348 test "$with_gnu_ld" != no && break
17349 ;;
17350 *)
17351 test "$with_gnu_ld" != yes && break
17352 ;;
17353 esac
17354 fi
17355 done
17356 IFS="$lt_save_ifs"
17357else
17358 lt_cv_path_LD="$LD" # Let the user override the test with a path.
17359fi
17360fi
17361
17362LD="$lt_cv_path_LD"
17363if test -n "$LD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000017364 { echo "$as_me:$LINENO: result: $LD" >&5
17365echo "${ECHO_T}$LD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017366else
Reid Spencera773bd52006-08-04 18:18:08 +000017367 { echo "$as_me:$LINENO: result: no" >&5
17368echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017369fi
17370test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
17371echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
17372 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000017373{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
17374echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017375if test "${lt_cv_prog_gnu_ld+set}" = set; then
17376 echo $ECHO_N "(cached) $ECHO_C" >&6
17377else
Reid Spencera773bd52006-08-04 18:18:08 +000017378 # I'd rather use --version here, but apparently some GNU lds only accept -v.
Reid Spencer2706f8c2004-09-19 23:53:36 +000017379case `$LD -v 2>&1 </dev/null` in
John Criswell47fdd832003-07-14 16:52:07 +000017380*GNU* | *'with BFD'*)
17381 lt_cv_prog_gnu_ld=yes
17382 ;;
17383*)
17384 lt_cv_prog_gnu_ld=no
17385 ;;
17386esac
17387fi
Reid Spencera773bd52006-08-04 18:18:08 +000017388{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
17389echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017390with_gnu_ld=$lt_cv_prog_gnu_ld
17391
17392
17393
17394 # Check if GNU C++ uses GNU ld as the underlying linker, since the
17395 # archiving commands below assume that GNU ld is being used.
17396 if test "$with_gnu_ld" = yes; then
17397 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17398 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'
17399
17400 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
17401 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17402
17403 # If archive_cmds runs LD, not CC, wlarc should be empty
17404 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
17405 # investigate it a little bit more. (MM)
17406 wlarc='${wl}'
17407
17408 # ancient GNU ld didn't support --whole-archive et. al.
17409 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
17410 grep 'no-whole-archive' > /dev/null; then
17411 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17412 else
17413 whole_archive_flag_spec_CXX=
17414 fi
17415 else
17416 with_gnu_ld=no
17417 wlarc=
17418
17419 # A generic and very simple default shared library creation
17420 # command for GNU C++ for the case where it uses the native
17421 # linker, instead of GNU ld. If possible, this setting should
17422 # overridden to take advantage of the native linker features on
17423 # the platform it is being used on.
Reid Spencer2706f8c2004-09-19 23:53:36 +000017424 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
John Criswell47fdd832003-07-14 16:52:07 +000017425 fi
17426
17427 # Commands to make compiler produce verbose output that lists
17428 # what "hidden" libraries, object files and flags are used when
17429 # linking a shared library.
17430 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
17431
17432else
17433 GXX=no
17434 with_gnu_ld=no
17435 wlarc=
17436fi
17437
17438# PORTME: fill in a description of your system's C++ link characteristics
Reid Spencera773bd52006-08-04 18:18:08 +000017439{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17440echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017441ld_shlibs_CXX=yes
17442case $host_os in
17443 aix3*)
17444 # FIXME: insert proper C++ library support
17445 ld_shlibs_CXX=no
17446 ;;
17447 aix4* | aix5*)
17448 if test "$host_cpu" = ia64; then
17449 # On IA64, the linker does run time linking by default, so we don't
17450 # have to do anything special.
17451 aix_use_runtimelinking=no
17452 exp_sym_flag='-Bexport'
17453 no_entry_flag=""
17454 else
17455 aix_use_runtimelinking=no
17456
17457 # Test if we are trying to use run time linking or normal
17458 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17459 # need to do runtime linking.
17460 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17461 for ld_flag in $LDFLAGS; do
17462 case $ld_flag in
17463 *-brtl*)
17464 aix_use_runtimelinking=yes
17465 break
17466 ;;
17467 esac
17468 done
Reid Spencera773bd52006-08-04 18:18:08 +000017469 ;;
John Criswell47fdd832003-07-14 16:52:07 +000017470 esac
17471
17472 exp_sym_flag='-bexport'
17473 no_entry_flag='-bnoentry'
17474 fi
17475
17476 # When large executables or shared objects are built, AIX ld can
17477 # have problems creating the table of contents. If linking a library
17478 # or program results in "error TOC overflow" add -mminimal-toc to
17479 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17480 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17481
17482 archive_cmds_CXX=''
17483 hardcode_direct_CXX=yes
17484 hardcode_libdir_separator_CXX=':'
17485 link_all_deplibs_CXX=yes
17486
17487 if test "$GXX" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000017488 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000017489 # We only want to do this on AIX 4.2 and lower, the check
17490 # below for broken collect2 doesn't work under 4.3+
17491 collect2name=`${CC} -print-prog-name=collect2`
17492 if test -f "$collect2name" && \
17493 strings "$collect2name" | grep resolve_lib_name >/dev/null
17494 then
17495 # We have reworked collect2
17496 hardcode_direct_CXX=yes
17497 else
17498 # We have old collect2
17499 hardcode_direct_CXX=unsupported
17500 # It fails to find uninstalled libraries when the uninstalled
17501 # path is not listed in the libpath. Setting hardcode_minus_L
17502 # to unsupported forces relinking
17503 hardcode_minus_L_CXX=yes
17504 hardcode_libdir_flag_spec_CXX='-L$libdir'
17505 hardcode_libdir_separator_CXX=
17506 fi
Reid Spencera773bd52006-08-04 18:18:08 +000017507 ;;
John Criswell47fdd832003-07-14 16:52:07 +000017508 esac
17509 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000017510 if test "$aix_use_runtimelinking" = yes; then
17511 shared_flag="$shared_flag "'${wl}-G'
17512 fi
John Criswell47fdd832003-07-14 16:52:07 +000017513 else
17514 # not using gcc
17515 if test "$host_cpu" = ia64; then
17516 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17517 # chokes on -Wl,-G. The following line is correct:
17518 shared_flag='-G'
17519 else
17520 if test "$aix_use_runtimelinking" = yes; then
17521 shared_flag='${wl}-G'
17522 else
17523 shared_flag='${wl}-bM:SRE'
17524 fi
17525 fi
17526 fi
17527
17528 # It seems that -bexpall does not export symbols beginning with
17529 # underscore (_), so it is better to generate a list of symbols to export.
17530 always_export_symbols_CXX=yes
17531 if test "$aix_use_runtimelinking" = yes; then
17532 # Warning - without using the other runtime loading flags (-brtl),
17533 # -berok will link without error, but may produce a broken library.
17534 allow_undefined_flag_CXX='-berok'
17535 # Determine the default libpath from the value encoded in an empty executable.
17536 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017537/* confdefs.h. */
17538_ACEOF
17539cat confdefs.h >>conftest.$ac_ext
17540cat >>conftest.$ac_ext <<_ACEOF
17541/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017542
John Criswell47fdd832003-07-14 16:52:07 +000017543int
17544main ()
17545{
17546
17547 ;
17548 return 0;
17549}
17550_ACEOF
17551rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017552if { (ac_try="$ac_link"
17553case "(($ac_try" in
17554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17555 *) ac_try_echo=$ac_try;;
17556esac
17557eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17558 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017559 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017560 grep -v '^ *+' conftest.er1 >conftest.err
17561 rm -f conftest.er1
17562 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Torok Edwincc499a42008-10-22 09:56:27 +000017564 (exit $ac_status); } && {
17565 test -z "$ac_cxx_werror_flag" ||
17566 test ! -s conftest.err
17567 } && test -s conftest$ac_exeext &&
17568 $as_test_x conftest$ac_exeext; then
John Criswell47fdd832003-07-14 16:52:07 +000017569
17570aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17571}'`
17572# Check for a 64-bit object if we didn't find anything.
17573if 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; }
17574}'`; fi
17575else
17576 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017577sed 's/^/| /' conftest.$ac_ext >&5
17578
Reid Spencera773bd52006-08-04 18:18:08 +000017579
John Criswell47fdd832003-07-14 16:52:07 +000017580fi
Reid Spencera773bd52006-08-04 18:18:08 +000017581
Torok Edwincc499a42008-10-22 09:56:27 +000017582rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017583 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017584if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17585
17586 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
17587
Reid Spencera773bd52006-08-04 18:18:08 +000017588 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 +000017589 else
17590 if test "$host_cpu" = ia64; then
17591 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
17592 allow_undefined_flag_CXX="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000017593 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 +000017594 else
17595 # Determine the default libpath from the value encoded in an empty executable.
17596 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017597/* confdefs.h. */
17598_ACEOF
17599cat confdefs.h >>conftest.$ac_ext
17600cat >>conftest.$ac_ext <<_ACEOF
17601/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017602
John Criswell47fdd832003-07-14 16:52:07 +000017603int
17604main ()
17605{
17606
17607 ;
17608 return 0;
17609}
17610_ACEOF
17611rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017612if { (ac_try="$ac_link"
17613case "(($ac_try" in
17614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17615 *) ac_try_echo=$ac_try;;
17616esac
17617eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17618 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017619 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017620 grep -v '^ *+' conftest.er1 >conftest.err
17621 rm -f conftest.er1
17622 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Torok Edwincc499a42008-10-22 09:56:27 +000017624 (exit $ac_status); } && {
17625 test -z "$ac_cxx_werror_flag" ||
17626 test ! -s conftest.err
17627 } && test -s conftest$ac_exeext &&
17628 $as_test_x conftest$ac_exeext; then
John Criswell47fdd832003-07-14 16:52:07 +000017629
17630aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17631}'`
17632# Check for a 64-bit object if we didn't find anything.
17633if 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; }
17634}'`; fi
17635else
17636 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017637sed 's/^/| /' conftest.$ac_ext >&5
17638
Reid Spencera773bd52006-08-04 18:18:08 +000017639
John Criswell47fdd832003-07-14 16:52:07 +000017640fi
Reid Spencera773bd52006-08-04 18:18:08 +000017641
Torok Edwincc499a42008-10-22 09:56:27 +000017642rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017643 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017644if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17645
17646 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
17647 # Warning - without using the other run time loading flags,
17648 # -berok will link without error, but may produce a broken library.
17649 no_undefined_flag_CXX=' ${wl}-bernotok'
17650 allow_undefined_flag_CXX=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000017651 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000017652 whole_archive_flag_spec_CXX='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000017653 archive_cmds_need_lc_CXX=yes
Reid Spencera773bd52006-08-04 18:18:08 +000017654 # This is similar to how AIX traditionally builds its shared libraries.
17655 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 +000017656 fi
17657 fi
17658 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000017659
17660 beos*)
17661 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17662 allow_undefined_flag_CXX=unsupported
17663 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17664 # support --undefined. This deserves some investigation. FIXME
17665 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17666 else
17667 ld_shlibs_CXX=no
17668 fi
17669 ;;
17670
John Criswell47fdd832003-07-14 16:52:07 +000017671 chorus*)
17672 case $cc_basename in
17673 *)
17674 # FIXME: insert proper C++ library support
17675 ld_shlibs_CXX=no
17676 ;;
17677 esac
17678 ;;
17679
17680 cygwin* | mingw* | pw32*)
17681 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
17682 # as there is no search path for DLLs.
17683 hardcode_libdir_flag_spec_CXX='-L$libdir'
17684 allow_undefined_flag_CXX=unsupported
17685 always_export_symbols_CXX=no
17686 enable_shared_with_static_runtimes_CXX=yes
17687
17688 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000017689 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 +000017690 # If the export-symbols file already is a .def file (1st line
17691 # is EXPORTS), use it as is; otherwise, prepend...
17692 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17693 cp $export_symbols $output_objdir/$soname.def;
17694 else
17695 echo EXPORTS > $output_objdir/$soname.def;
17696 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000017697 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000017698 $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 +000017699 else
17700 ld_shlibs_CXX=no
17701 fi
17702 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000017703 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000017704 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000017705 rhapsody* | darwin1.[012])
17706 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
17707 ;;
17708 *) # Darwin 1.3 on
17709 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17710 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17711 else
17712 case ${MACOSX_DEPLOYMENT_TARGET} in
17713 10.[012])
17714 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17715 ;;
17716 10.*)
17717 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
17718 ;;
17719 esac
17720 fi
17721 ;;
17722 esac
17723 archive_cmds_need_lc_CXX=no
17724 hardcode_direct_CXX=no
17725 hardcode_automatic_CXX=yes
17726 hardcode_shlibpath_var_CXX=unsupported
17727 whole_archive_flag_spec_CXX=''
17728 link_all_deplibs_CXX=yes
John Criswell47fdd832003-07-14 16:52:07 +000017729
Reid Spencer2706f8c2004-09-19 23:53:36 +000017730 if test "$GXX" = yes ; then
17731 lt_int_apple_cc_single_mod=no
17732 output_verbose_link_cmd='echo'
17733 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
17734 lt_int_apple_cc_single_mod=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000017735 fi
Brian Gaeke0a621332004-09-08 20:38:05 +000017736 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000017737 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 +000017738 else
Reid Spencer177dbe22004-10-13 01:01:03 +000017739 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 +000017740 fi
17741 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000017742 # 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 +000017743 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer177dbe22004-10-13 01:01:03 +000017744 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 +000017745 else
Reid Spencer177dbe22004-10-13 01:01:03 +000017746 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 +000017747 fi
Reid Spencer177dbe22004-10-13 01:01:03 +000017748 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 +000017749 else
Reid Spencera773bd52006-08-04 18:18:08 +000017750 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000017751 xlc*)
17752 output_verbose_link_cmd='echo'
17753 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'
17754 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000017755 # 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 +000017756 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}'
17757 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 +000017758 ;;
17759 *)
17760 ld_shlibs_CXX=no
17761 ;;
17762 esac
Brian Gaeke0a621332004-09-08 20:38:05 +000017763 fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017764 ;;
John Criswell47fdd832003-07-14 16:52:07 +000017765
17766 dgux*)
17767 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000017768 ec++*)
John Criswell47fdd832003-07-14 16:52:07 +000017769 # FIXME: insert proper C++ library support
17770 ld_shlibs_CXX=no
17771 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000017772 ghcx*)
John Criswell47fdd832003-07-14 16:52:07 +000017773 # Green Hills C++ Compiler
17774 # FIXME: insert proper C++ library support
17775 ld_shlibs_CXX=no
17776 ;;
17777 *)
17778 # FIXME: insert proper C++ library support
17779 ld_shlibs_CXX=no
17780 ;;
17781 esac
17782 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000017783 freebsd[12]*)
John Criswell47fdd832003-07-14 16:52:07 +000017784 # C++ shared libraries reported to be fairly broken before switch to ELF
17785 ld_shlibs_CXX=no
17786 ;;
17787 freebsd-elf*)
17788 archive_cmds_need_lc_CXX=no
17789 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000017790 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000017791 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
17792 # conventions
17793 ld_shlibs_CXX=yes
17794 ;;
17795 gnu*)
17796 ;;
17797 hpux9*)
17798 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
17799 hardcode_libdir_separator_CXX=:
17800 export_dynamic_flag_spec_CXX='${wl}-E'
17801 hardcode_direct_CXX=yes
17802 hardcode_minus_L_CXX=yes # Not in the search PATH,
17803 # but as the default
17804 # location of the library.
17805
17806 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000017807 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000017808 # FIXME: insert proper C++ library support
17809 ld_shlibs_CXX=no
17810 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000017811 aCC*)
Reid Spencer177dbe22004-10-13 01:01:03 +000017812 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 +000017813 # Commands to make compiler produce verbose output that lists
17814 # what "hidden" libraries, object files and flags are used when
17815 # linking a shared library.
17816 #
17817 # There doesn't appear to be a way to prevent this compiler from
17818 # explicitly linking system object files so we need to strip them
17819 # from the output so that they don't get included in the library
17820 # dependencies.
Reid Spencera773bd52006-08-04 18:18:08 +000017821 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 +000017822 ;;
17823 *)
17824 if test "$GXX" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000017825 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 +000017826 else
17827 # FIXME: insert proper C++ library support
17828 ld_shlibs_CXX=no
17829 fi
17830 ;;
17831 esac
17832 ;;
17833 hpux10*|hpux11*)
17834 if test $with_gnu_ld = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000017835 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
17836 hardcode_libdir_separator_CXX=:
17837
17838 case $host_cpu in
17839 hppa*64*|ia64*)
John Criswell47fdd832003-07-14 16:52:07 +000017840 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
John Criswell47fdd832003-07-14 16:52:07 +000017841 ;;
17842 *)
John Criswell47fdd832003-07-14 16:52:07 +000017843 export_dynamic_flag_spec_CXX='${wl}-E'
17844 ;;
17845 esac
17846 fi
Reid Spencera773bd52006-08-04 18:18:08 +000017847 case $host_cpu in
17848 hppa*64*|ia64*)
John Criswell47fdd832003-07-14 16:52:07 +000017849 hardcode_direct_CXX=no
17850 hardcode_shlibpath_var_CXX=no
17851 ;;
John Criswell47fdd832003-07-14 16:52:07 +000017852 *)
17853 hardcode_direct_CXX=yes
17854 hardcode_minus_L_CXX=yes # Not in the search PATH,
17855 # but as the default
17856 # location of the library.
17857 ;;
17858 esac
17859
17860 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000017861 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000017862 # FIXME: insert proper C++ library support
17863 ld_shlibs_CXX=no
17864 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000017865 aCC*)
17866 case $host_cpu in
17867 hppa*64*)
17868 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17869 ;;
17870 ia64*)
17871 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 +000017872 ;;
17873 *)
17874 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17875 ;;
17876 esac
17877 # Commands to make compiler produce verbose output that lists
17878 # what "hidden" libraries, object files and flags are used when
17879 # linking a shared library.
17880 #
17881 # There doesn't appear to be a way to prevent this compiler from
17882 # explicitly linking system object files so we need to strip them
17883 # from the output so that they don't get included in the library
17884 # dependencies.
17885 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'
17886 ;;
17887 *)
17888 if test "$GXX" = yes; then
17889 if test $with_gnu_ld = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000017890 case $host_cpu in
17891 hppa*64*)
17892 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17893 ;;
17894 ia64*)
17895 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 +000017896 ;;
17897 *)
17898 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'
17899 ;;
17900 esac
17901 fi
17902 else
17903 # FIXME: insert proper C++ library support
17904 ld_shlibs_CXX=no
17905 fi
17906 ;;
17907 esac
17908 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000017909 interix3*)
17910 hardcode_direct_CXX=no
17911 hardcode_shlibpath_var_CXX=no
17912 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17913 export_dynamic_flag_spec_CXX='${wl}-E'
17914 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17915 # Instead, shared libraries are loaded at an image base (0x10000000 by
17916 # default) and relocated if they conflict, which is a slow very memory
17917 # consuming and fragmenting process. To avoid this, we pick a random,
17918 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17919 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17920 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'
17921 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'
17922 ;;
John Criswell47fdd832003-07-14 16:52:07 +000017923 irix5* | irix6*)
17924 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000017925 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000017926 # SGI C++
Reid Spencera773bd52006-08-04 18:18:08 +000017927 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 +000017928
17929 # Archives containing C++ object files must be created using
17930 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
17931 # necessary to make sure instantiated templates are included
17932 # in the archive.
17933 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
17934 ;;
17935 *)
17936 if test "$GXX" = yes; then
17937 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000017938 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 +000017939 else
17940 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'
17941 fi
17942 fi
17943 link_all_deplibs_CXX=yes
17944 ;;
17945 esac
17946 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17947 hardcode_libdir_separator_CXX=:
17948 ;;
17949 linux*)
17950 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000017951 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000017952 # Kuck and Associates, Inc. (KAI) C++ Compiler
17953
17954 # KCC will only create a shared library if the output file
17955 # ends with ".so" (or ".sl" for HP-UX), so rename the library
17956 # to its proper name (with version) after linking.
17957 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'
17958 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'
17959 # Commands to make compiler produce verbose output that lists
17960 # what "hidden" libraries, object files and flags are used when
17961 # linking a shared library.
17962 #
17963 # There doesn't appear to be a way to prevent this compiler from
17964 # explicitly linking system object files so we need to strip them
17965 # from the output so that they don't get included in the library
17966 # dependencies.
17967 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'
17968
17969 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
17970 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17971
17972 # Archives containing C++ object files must be created using
17973 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
17974 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
17975 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000017976 icpc*)
John Criswell47fdd832003-07-14 16:52:07 +000017977 # Intel C++
17978 with_gnu_ld=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000017979 # version 8.0 and above of icpc choke on multiply defined symbols
17980 # if we add $predep_objects and $postdep_objects, however 7.1 and
17981 # earlier do not add the objects themselves.
17982 case `$CC -V 2>&1` in
17983 *"Version 7."*)
17984 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17985 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'
17986 ;;
17987 *) # Version 8.0 or newer
Reid Spencera773bd52006-08-04 18:18:08 +000017988 tmp_idyn=
17989 case $host_cpu in
17990 ia64*) tmp_idyn=' -i_dynamic';;
17991 esac
17992 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17993 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 +000017994 ;;
17995 esac
John Criswell47fdd832003-07-14 16:52:07 +000017996 archive_cmds_need_lc_CXX=no
John Criswell47fdd832003-07-14 16:52:07 +000017997 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17998 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17999 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18000 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018001 pgCC*)
18002 # Portland Group C++ compiler
18003 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18004 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'
18005
18006 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18007 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18008 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'
18009 ;;
18010 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000018011 # Compaq C++
18012 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18013 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'
18014
18015 runpath_var=LD_RUN_PATH
18016 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18017 hardcode_libdir_separator_CXX=:
18018
18019 # Commands to make compiler produce verbose output that lists
18020 # what "hidden" libraries, object files and flags are used when
18021 # linking a shared library.
18022 #
18023 # There doesn't appear to be a way to prevent this compiler from
18024 # explicitly linking system object files so we need to strip them
18025 # from the output so that they don't get included in the library
18026 # dependencies.
18027 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'
18028 ;;
18029 esac
18030 ;;
18031 lynxos*)
18032 # FIXME: insert proper C++ library support
18033 ld_shlibs_CXX=no
18034 ;;
18035 m88k*)
18036 # FIXME: insert proper C++ library support
18037 ld_shlibs_CXX=no
18038 ;;
18039 mvs*)
18040 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018041 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000018042 # FIXME: insert proper C++ library support
18043 ld_shlibs_CXX=no
18044 ;;
18045 *)
18046 # FIXME: insert proper C++ library support
18047 ld_shlibs_CXX=no
18048 ;;
18049 esac
18050 ;;
18051 netbsd*)
18052 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18053 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18054 wlarc=
18055 hardcode_libdir_flag_spec_CXX='-R$libdir'
18056 hardcode_direct_CXX=yes
18057 hardcode_shlibpath_var_CXX=no
18058 fi
18059 # Workaround some broken pre-1.5 toolchains
18060 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18061 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000018062 openbsd2*)
18063 # C++ shared libraries are fairly broken
18064 ld_shlibs_CXX=no
18065 ;;
18066 openbsd*)
18067 hardcode_direct_CXX=yes
18068 hardcode_shlibpath_var_CXX=no
18069 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18070 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18071 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18072 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18073 export_dynamic_flag_spec_CXX='${wl}-E'
18074 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18075 fi
18076 output_verbose_link_cmd='echo'
18077 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018078 osf3*)
18079 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018080 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000018081 # Kuck and Associates, Inc. (KAI) C++ Compiler
18082
18083 # KCC will only create a shared library if the output file
18084 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18085 # to its proper name (with version) after linking.
18086 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'
18087
18088 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18089 hardcode_libdir_separator_CXX=:
18090
18091 # Archives containing C++ object files must be created using
18092 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18093 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18094
18095 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018096 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000018097 # Rational C++ 2.4.1
18098 # FIXME: insert proper C++ library support
18099 ld_shlibs_CXX=no
18100 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018101 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000018102 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000018103 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 +000018104
18105 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18106 hardcode_libdir_separator_CXX=:
18107
18108 # Commands to make compiler produce verbose output that lists
18109 # what "hidden" libraries, object files and flags are used when
18110 # linking a shared library.
18111 #
18112 # There doesn't appear to be a way to prevent this compiler from
18113 # explicitly linking system object files so we need to strip them
18114 # from the output so that they don't get included in the library
18115 # dependencies.
18116 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'
18117 ;;
18118 *)
18119 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18120 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000018121 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 +000018122
18123 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18124 hardcode_libdir_separator_CXX=:
18125
18126 # Commands to make compiler produce verbose output that lists
18127 # what "hidden" libraries, object files and flags are used when
18128 # linking a shared library.
18129 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18130
18131 else
18132 # FIXME: insert proper C++ library support
18133 ld_shlibs_CXX=no
18134 fi
18135 ;;
18136 esac
18137 ;;
18138 osf4* | osf5*)
18139 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018140 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000018141 # Kuck and Associates, Inc. (KAI) C++ Compiler
18142
18143 # KCC will only create a shared library if the output file
18144 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18145 # to its proper name (with version) after linking.
18146 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'
18147
18148 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18149 hardcode_libdir_separator_CXX=:
18150
18151 # Archives containing C++ object files must be created using
18152 # the KAI C++ compiler.
18153 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
18154 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018155 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000018156 # Rational C++ 2.4.1
18157 # FIXME: insert proper C++ library support
18158 ld_shlibs_CXX=no
18159 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018160 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000018161 allow_undefined_flag_CXX=' -expect_unresolved \*'
Reid Spencera773bd52006-08-04 18:18:08 +000018162 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 +000018163 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
18164 echo "-hidden">> $lib.exp~
Reid Spencera773bd52006-08-04 18:18:08 +000018165 $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 +000018166 $rm $lib.exp'
John Criswell47fdd832003-07-14 16:52:07 +000018167
18168 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18169 hardcode_libdir_separator_CXX=:
18170
18171 # Commands to make compiler produce verbose output that lists
18172 # what "hidden" libraries, object files and flags are used when
18173 # linking a shared library.
18174 #
18175 # There doesn't appear to be a way to prevent this compiler from
18176 # explicitly linking system object files so we need to strip them
18177 # from the output so that they don't get included in the library
18178 # dependencies.
18179 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'
18180 ;;
18181 *)
18182 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18183 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000018184 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 +000018185
18186 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18187 hardcode_libdir_separator_CXX=:
18188
18189 # Commands to make compiler produce verbose output that lists
18190 # what "hidden" libraries, object files and flags are used when
18191 # linking a shared library.
18192 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18193
18194 else
18195 # FIXME: insert proper C++ library support
18196 ld_shlibs_CXX=no
18197 fi
18198 ;;
18199 esac
18200 ;;
18201 psos*)
18202 # FIXME: insert proper C++ library support
18203 ld_shlibs_CXX=no
18204 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018205 sunos4*)
18206 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018207 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000018208 # Sun C++ 4.x
18209 # FIXME: insert proper C++ library support
18210 ld_shlibs_CXX=no
18211 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018212 lcc*)
John Criswell47fdd832003-07-14 16:52:07 +000018213 # Lucid
18214 # FIXME: insert proper C++ library support
18215 ld_shlibs_CXX=no
18216 ;;
18217 *)
18218 # FIXME: insert proper C++ library support
18219 ld_shlibs_CXX=no
18220 ;;
18221 esac
18222 ;;
18223 solaris*)
18224 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018225 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000018226 # Sun C++ 4.2, 5.x and Centerline C++
Reid Spencera773bd52006-08-04 18:18:08 +000018227 archive_cmds_need_lc_CXX=yes
John Criswell47fdd832003-07-14 16:52:07 +000018228 no_undefined_flag_CXX=' -zdefs'
Reid Spencera773bd52006-08-04 18:18:08 +000018229 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 +000018230 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 +000018231 $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 +000018232
18233 hardcode_libdir_flag_spec_CXX='-R$libdir'
18234 hardcode_shlibpath_var_CXX=no
18235 case $host_os in
Reid Spencera773bd52006-08-04 18:18:08 +000018236 solaris2.[0-5] | solaris2.[0-5].*) ;;
John Criswell47fdd832003-07-14 16:52:07 +000018237 *)
18238 # The C++ compiler is used as linker so we must use $wl
18239 # flag to pass the commands to the underlying system
Reid Spencera773bd52006-08-04 18:18:08 +000018240 # linker. We must also pass each convience library through
18241 # to the system linker between allextract/defaultextract.
18242 # The C++ compiler will combine linker options so we
18243 # cannot just pass the convience library names through
18244 # without $wl.
John Criswell47fdd832003-07-14 16:52:07 +000018245 # Supported since Solaris 2.6 (maybe 2.5.1?)
Reid Spencera773bd52006-08-04 18:18:08 +000018246 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 +000018247 ;;
18248 esac
18249 link_all_deplibs_CXX=yes
18250
Reid Spencera773bd52006-08-04 18:18:08 +000018251 output_verbose_link_cmd='echo'
John Criswell47fdd832003-07-14 16:52:07 +000018252
18253 # Archives containing C++ object files must be created using
18254 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18255 # necessary to make sure instantiated templates are included
18256 # in the archive.
18257 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18258 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018259 gcx*)
John Criswell47fdd832003-07-14 16:52:07 +000018260 # Green Hills C++ Compiler
18261 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18262
18263 # The C++ compiler must be used to create the archive.
18264 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
18265 ;;
18266 *)
18267 # GNU C++ compiler with Solaris linker
18268 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18269 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
18270 if $CC --version | grep -v '^2\.7' > /dev/null; then
Reid Spencer9751dbf2004-09-07 18:04:45 +000018271 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 +000018272 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18273 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
18274
John Criswell47fdd832003-07-14 16:52:07 +000018275 # Commands to make compiler produce verbose output that lists
18276 # what "hidden" libraries, object files and flags are used when
18277 # linking a shared library.
Reid Spencer9751dbf2004-09-07 18:04:45 +000018278 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
John Criswell47fdd832003-07-14 16:52:07 +000018279 else
18280 # g++ 2.7 appears to require `-G' NOT `-shared' on this
18281 # platform.
18282 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 +000018283 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18284 $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 +000018285
18286 # Commands to make compiler produce verbose output that lists
18287 # what "hidden" libraries, object files and flags are used when
18288 # linking a shared library.
18289 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
18290 fi
18291
18292 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
18293 fi
18294 ;;
18295 esac
18296 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018297 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18298 no_undefined_flag_CXX='${wl}-z,text'
John Criswell47fdd832003-07-14 16:52:07 +000018299 archive_cmds_need_lc_CXX=no
Reid Spencera773bd52006-08-04 18:18:08 +000018300 hardcode_shlibpath_var_CXX=no
18301 runpath_var='LD_RUN_PATH'
18302
18303 case $cc_basename in
18304 CC*)
18305 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18306 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18307 ;;
18308 *)
18309 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18310 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18311 ;;
18312 esac
18313 ;;
18314 sysv5* | sco3.2v5* | sco5v6*)
18315 # Note: We can NOT use -z defs as we might desire, because we do not
18316 # link with -lc, and that would cause any symbols used from libc to
18317 # always be unresolved, which means just about no library would
18318 # ever link correctly. If we're not using GNU ld we use -z text
18319 # though, which does catch some bad symbols but isn't as heavy-handed
18320 # as -z defs.
18321 # For security reasons, it is highly recommended that you always
18322 # use absolute paths for naming shared libraries, and exclude the
18323 # DT_RUNPATH tag from executables and libraries. But doing so
18324 # requires that you compile everything twice, which is a pain.
18325 # So that behaviour is only enabled if SCOABSPATH is set to a
18326 # non-empty value in the environment. Most likely only useful for
18327 # creating official distributions of packages.
18328 # This is a hack until libtool officially supports absolute path
18329 # names for shared libraries.
18330 no_undefined_flag_CXX='${wl}-z,text'
18331 allow_undefined_flag_CXX='${wl}-z,nodefs'
18332 archive_cmds_need_lc_CXX=no
18333 hardcode_shlibpath_var_CXX=no
18334 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18335 hardcode_libdir_separator_CXX=':'
18336 link_all_deplibs_CXX=yes
18337 export_dynamic_flag_spec_CXX='${wl}-Bexport'
18338 runpath_var='LD_RUN_PATH'
18339
18340 case $cc_basename in
18341 CC*)
18342 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18343 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18344 ;;
18345 *)
18346 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18347 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18348 ;;
18349 esac
John Criswell47fdd832003-07-14 16:52:07 +000018350 ;;
18351 tandem*)
18352 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018353 NCC*)
John Criswell47fdd832003-07-14 16:52:07 +000018354 # NonStop-UX NCC 3.20
18355 # FIXME: insert proper C++ library support
18356 ld_shlibs_CXX=no
18357 ;;
18358 *)
18359 # FIXME: insert proper C++ library support
18360 ld_shlibs_CXX=no
18361 ;;
18362 esac
18363 ;;
18364 vxworks*)
18365 # FIXME: insert proper C++ library support
18366 ld_shlibs_CXX=no
18367 ;;
18368 *)
18369 # FIXME: insert proper C++ library support
18370 ld_shlibs_CXX=no
18371 ;;
18372esac
Reid Spencera773bd52006-08-04 18:18:08 +000018373{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
18374echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018375test "$ld_shlibs_CXX" = no && can_build_shared=no
18376
18377GCC_CXX="$GXX"
18378LD_CXX="$LD"
18379
Torok Edwincc499a42008-10-22 09:56:27 +000018380## CAVEAT EMPTOR:
18381## There is no encapsulation within the following macros, do not change
18382## the running order or otherwise move them around unless you know exactly
18383## what you are doing...
John Criswell47fdd832003-07-14 16:52:07 +000018384
18385cat > conftest.$ac_ext <<EOF
18386class Foo
18387{
18388public:
18389 Foo (void) { a = 0; }
18390private:
18391 int a;
18392};
18393EOF
18394
18395if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18396 (eval $ac_compile) 2>&5
18397 ac_status=$?
18398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18399 (exit $ac_status); }; then
18400 # Parse the compiler output and extract the necessary
18401 # objects, libraries and library flags.
18402
18403 # Sentinel used to keep track of whether or not we are before
18404 # the conftest object file.
18405 pre_test_object_deps_done=no
18406
18407 # The `*' in the case matches for architectures that use `case' in
18408 # $output_verbose_cmd can trigger glob expansion during the loop
18409 # eval without this substitution.
Reid Spencera773bd52006-08-04 18:18:08 +000018410 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
John Criswell47fdd832003-07-14 16:52:07 +000018411
18412 for p in `eval $output_verbose_link_cmd`; do
18413 case $p in
18414
18415 -L* | -R* | -l*)
18416 # Some compilers place space between "-{L,R}" and the path.
18417 # Remove the space.
18418 if test $p = "-L" \
18419 || test $p = "-R"; then
18420 prev=$p
18421 continue
18422 else
18423 prev=
18424 fi
18425
18426 if test "$pre_test_object_deps_done" = no; then
18427 case $p in
18428 -L* | -R*)
18429 # Internal compiler library paths should come after those
18430 # provided the user. The postdeps already come after the
18431 # user supplied libs so there is no need to process them.
18432 if test -z "$compiler_lib_search_path_CXX"; then
18433 compiler_lib_search_path_CXX="${prev}${p}"
18434 else
18435 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
18436 fi
18437 ;;
18438 # The "-l" case would never come before the object being
18439 # linked, so don't bother handling this case.
18440 esac
18441 else
18442 if test -z "$postdeps_CXX"; then
18443 postdeps_CXX="${prev}${p}"
18444 else
18445 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
18446 fi
18447 fi
18448 ;;
18449
18450 *.$objext)
18451 # This assumes that the test object file only shows up
18452 # once in the compiler output.
18453 if test "$p" = "conftest.$objext"; then
18454 pre_test_object_deps_done=yes
18455 continue
18456 fi
18457
18458 if test "$pre_test_object_deps_done" = no; then
18459 if test -z "$predep_objects_CXX"; then
18460 predep_objects_CXX="$p"
18461 else
18462 predep_objects_CXX="$predep_objects_CXX $p"
18463 fi
18464 else
18465 if test -z "$postdep_objects_CXX"; then
18466 postdep_objects_CXX="$p"
18467 else
18468 postdep_objects_CXX="$postdep_objects_CXX $p"
18469 fi
18470 fi
18471 ;;
18472
18473 *) ;; # Ignore the rest.
18474
18475 esac
18476 done
18477
18478 # Clean up.
18479 rm -f a.out a.exe
18480else
18481 echo "libtool.m4: error: problem compiling CXX test program"
18482fi
18483
18484$rm -f confest.$objext
18485
Reid Spencera773bd52006-08-04 18:18:08 +000018486# PORTME: override above test on systems where it is broken
18487case $host_os in
18488interix3*)
18489 # Interix 3.5 installs completely hosed .la files for C++, so rather than
18490 # hack all around it, let's just trust "g++" to DTRT.
18491 predep_objects_CXX=
18492 postdep_objects_CXX=
18493 postdeps_CXX=
18494 ;;
18495
18496solaris*)
18497 case $cc_basename in
18498 CC*)
18499 # Adding this requires a known-good setup of shared libraries for
18500 # Sun compiler versions before 5.6, else PIC objects from an old
18501 # archive will be linked into the output, leading to subtle bugs.
18502 postdeps_CXX='-lCstd -lCrun'
18503 ;;
18504 esac
18505 ;;
18506esac
18507
18508
John Criswell47fdd832003-07-14 16:52:07 +000018509case " $postdeps_CXX " in
18510*" -lc "*) archive_cmds_need_lc_CXX=no ;;
18511esac
18512
18513lt_prog_compiler_wl_CXX=
18514lt_prog_compiler_pic_CXX=
18515lt_prog_compiler_static_CXX=
18516
Reid Spencera773bd52006-08-04 18:18:08 +000018517{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18518echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018519
18520 # C++ specific cases for pic, static, wl, etc.
18521 if test "$GXX" = yes; then
18522 lt_prog_compiler_wl_CXX='-Wl,'
18523 lt_prog_compiler_static_CXX='-static'
18524
18525 case $host_os in
18526 aix*)
18527 # All AIX code is PIC.
18528 if test "$host_cpu" = ia64; then
18529 # AIX 5 now supports IA64 processor
18530 lt_prog_compiler_static_CXX='-Bstatic'
18531 fi
18532 ;;
18533 amigaos*)
18534 # FIXME: we need at least 68020 code to build shared libraries, but
18535 # adding the `-m68020' flag to GCC prevents building anything better,
18536 # like `-m68040'.
18537 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
18538 ;;
18539 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18540 # PIC is the default for these OSes.
18541 ;;
18542 mingw* | os2* | pw32*)
18543 # This hack is so that the source file can tell whether it is being
18544 # built for inclusion in a dll (and should export symbols for example).
18545 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
18546 ;;
18547 darwin* | rhapsody*)
18548 # PIC is the default on this platform
18549 # Common symbols not allowed in MH_DYLIB files
18550 lt_prog_compiler_pic_CXX='-fno-common'
18551 ;;
18552 *djgpp*)
18553 # DJGPP does not support shared libraries at all
18554 lt_prog_compiler_pic_CXX=
18555 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018556 interix3*)
18557 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
18558 # Instead, we relocate shared libraries at runtime.
18559 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018560 sysv4*MP*)
18561 if test -d /usr/nec; then
18562 lt_prog_compiler_pic_CXX=-Kconform_pic
18563 fi
18564 ;;
18565 hpux*)
18566 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18567 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000018568 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000018569 hppa*64*|ia64*)
18570 ;;
18571 *)
18572 lt_prog_compiler_pic_CXX='-fPIC'
18573 ;;
18574 esac
18575 ;;
18576 *)
18577 lt_prog_compiler_pic_CXX='-fPIC'
18578 ;;
18579 esac
18580 else
18581 case $host_os in
18582 aix4* | aix5*)
18583 # All AIX code is PIC.
18584 if test "$host_cpu" = ia64; then
18585 # AIX 5 now supports IA64 processor
18586 lt_prog_compiler_static_CXX='-Bstatic'
18587 else
18588 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
18589 fi
18590 ;;
18591 chorus*)
18592 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018593 cxch68*)
John Criswell47fdd832003-07-14 16:52:07 +000018594 # Green Hills C++ Compiler
18595 # _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"
18596 ;;
18597 esac
18598 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000018599 darwin*)
18600 # PIC is the default on this platform
18601 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000018602 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000018603 xlc*)
18604 lt_prog_compiler_pic_CXX='-qnocommon'
18605 lt_prog_compiler_wl_CXX='-Wl,'
18606 ;;
18607 esac
18608 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018609 dgux*)
18610 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018611 ec++*)
John Criswell47fdd832003-07-14 16:52:07 +000018612 lt_prog_compiler_pic_CXX='-KPIC'
18613 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018614 ghcx*)
John Criswell47fdd832003-07-14 16:52:07 +000018615 # Green Hills C++ Compiler
18616 lt_prog_compiler_pic_CXX='-pic'
18617 ;;
18618 *)
18619 ;;
18620 esac
18621 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018622 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000018623 # FreeBSD uses GNU C++
18624 ;;
18625 hpux9* | hpux10* | hpux11*)
18626 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018627 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000018628 lt_prog_compiler_wl_CXX='-Wl,'
Reid Spencera773bd52006-08-04 18:18:08 +000018629 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
John Criswell47fdd832003-07-14 16:52:07 +000018630 if test "$host_cpu" != ia64; then
18631 lt_prog_compiler_pic_CXX='+Z'
18632 fi
18633 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018634 aCC*)
John Criswell47fdd832003-07-14 16:52:07 +000018635 lt_prog_compiler_wl_CXX='-Wl,'
Reid Spencera773bd52006-08-04 18:18:08 +000018636 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
18637 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000018638 hppa*64*|ia64*)
18639 # +Z the default
18640 ;;
18641 *)
18642 lt_prog_compiler_pic_CXX='+Z'
18643 ;;
18644 esac
18645 ;;
18646 *)
18647 ;;
18648 esac
18649 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018650 interix*)
18651 # This is c89, which is MS Visual C++ (no shared libs)
18652 # Anyone wants to do a port?
18653 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018654 irix5* | irix6* | nonstopux*)
18655 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018656 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000018657 lt_prog_compiler_wl_CXX='-Wl,'
18658 lt_prog_compiler_static_CXX='-non_shared'
18659 # CC pic flag -KPIC is the default.
18660 ;;
18661 *)
18662 ;;
18663 esac
18664 ;;
18665 linux*)
18666 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018667 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000018668 # KAI C++ Compiler
18669 lt_prog_compiler_wl_CXX='--backend -Wl,'
18670 lt_prog_compiler_pic_CXX='-fPIC'
18671 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018672 icpc* | ecpc*)
John Criswell47fdd832003-07-14 16:52:07 +000018673 # Intel C++
18674 lt_prog_compiler_wl_CXX='-Wl,'
18675 lt_prog_compiler_pic_CXX='-KPIC'
18676 lt_prog_compiler_static_CXX='-static'
18677 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018678 pgCC*)
18679 # Portland Group C++ compiler.
18680 lt_prog_compiler_wl_CXX='-Wl,'
18681 lt_prog_compiler_pic_CXX='-fpic'
18682 lt_prog_compiler_static_CXX='-Bstatic'
18683 ;;
18684 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000018685 # Compaq C++
18686 # Make sure the PIC flag is empty. It appears that all Alpha
18687 # Linux and Compaq Tru64 Unix objects are PIC.
18688 lt_prog_compiler_pic_CXX=
18689 lt_prog_compiler_static_CXX='-non_shared'
18690 ;;
18691 *)
18692 ;;
18693 esac
18694 ;;
18695 lynxos*)
18696 ;;
18697 m88k*)
18698 ;;
18699 mvs*)
18700 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018701 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000018702 lt_prog_compiler_pic_CXX='-W c,exportall'
18703 ;;
18704 *)
18705 ;;
18706 esac
18707 ;;
18708 netbsd*)
18709 ;;
18710 osf3* | osf4* | osf5*)
18711 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018712 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000018713 lt_prog_compiler_wl_CXX='--backend -Wl,'
18714 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018715 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000018716 # Rational C++ 2.4.1
18717 lt_prog_compiler_pic_CXX='-pic'
18718 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018719 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000018720 # Digital/Compaq C++
18721 lt_prog_compiler_wl_CXX='-Wl,'
18722 # Make sure the PIC flag is empty. It appears that all Alpha
18723 # Linux and Compaq Tru64 Unix objects are PIC.
18724 lt_prog_compiler_pic_CXX=
18725 lt_prog_compiler_static_CXX='-non_shared'
18726 ;;
18727 *)
18728 ;;
18729 esac
18730 ;;
18731 psos*)
18732 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018733 solaris*)
18734 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018735 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000018736 # Sun C++ 4.2, 5.x and Centerline C++
18737 lt_prog_compiler_pic_CXX='-KPIC'
18738 lt_prog_compiler_static_CXX='-Bstatic'
18739 lt_prog_compiler_wl_CXX='-Qoption ld '
18740 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018741 gcx*)
John Criswell47fdd832003-07-14 16:52:07 +000018742 # Green Hills C++ Compiler
18743 lt_prog_compiler_pic_CXX='-PIC'
18744 ;;
18745 *)
18746 ;;
18747 esac
18748 ;;
18749 sunos4*)
18750 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018751 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000018752 # Sun C++ 4.x
18753 lt_prog_compiler_pic_CXX='-pic'
18754 lt_prog_compiler_static_CXX='-Bstatic'
18755 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018756 lcc*)
John Criswell47fdd832003-07-14 16:52:07 +000018757 # Lucid
18758 lt_prog_compiler_pic_CXX='-pic'
18759 ;;
18760 *)
18761 ;;
18762 esac
18763 ;;
18764 tandem*)
18765 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018766 NCC*)
John Criswell47fdd832003-07-14 16:52:07 +000018767 # NonStop-UX NCC 3.20
18768 lt_prog_compiler_pic_CXX='-KPIC'
18769 ;;
18770 *)
18771 ;;
18772 esac
18773 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018774 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18775 case $cc_basename in
18776 CC*)
18777 lt_prog_compiler_wl_CXX='-Wl,'
18778 lt_prog_compiler_pic_CXX='-KPIC'
18779 lt_prog_compiler_static_CXX='-Bstatic'
18780 ;;
18781 esac
John Criswell47fdd832003-07-14 16:52:07 +000018782 ;;
18783 vxworks*)
18784 ;;
18785 *)
18786 lt_prog_compiler_can_build_shared_CXX=no
18787 ;;
18788 esac
18789 fi
18790
Reid Spencera773bd52006-08-04 18:18:08 +000018791{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
18792echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018793
18794#
18795# Check to make sure the PIC flag actually works.
18796#
18797if test -n "$lt_prog_compiler_pic_CXX"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000018798
Reid Spencera773bd52006-08-04 18:18:08 +000018799{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
18800echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018801if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
18802 echo $ECHO_N "(cached) $ECHO_C" >&6
18803else
18804 lt_prog_compiler_pic_works_CXX=no
18805 ac_outfile=conftest.$ac_objext
18806 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18807 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
18808 # Insert the option either (1) after the last *FLAGS variable, or
18809 # (2) before a word containing "conftest.", or (3) at the end.
18810 # Note that $ac_compile itself does not contain backslashes and begins
18811 # with a dollar sign (not a hyphen), so the echo should work correctly.
18812 # The option is referenced via a variable to avoid confusing sed.
18813 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000018814 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000018815 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18816 -e 's:$: $lt_compiler_flag:'`
Torok Edwincc499a42008-10-22 09:56:27 +000018817 (eval echo "\"\$as_me:18817: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000018818 (eval "$lt_compile" 2>conftest.err)
18819 ac_status=$?
18820 cat conftest.err >&5
Torok Edwincc499a42008-10-22 09:56:27 +000018821 echo "$as_me:18821: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000018822 if (exit $ac_status) && test -s "$ac_outfile"; then
18823 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000018824 # So say no if there are warnings other than the usual output.
18825 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
18826 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18827 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000018828 lt_prog_compiler_pic_works_CXX=yes
18829 fi
18830 fi
18831 $rm conftest*
18832
18833fi
Reid Spencera773bd52006-08-04 18:18:08 +000018834{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
18835echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018836
18837if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
18838 case $lt_prog_compiler_pic_CXX in
18839 "" | " "*) ;;
18840 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
18841 esac
18842else
18843 lt_prog_compiler_pic_CXX=
18844 lt_prog_compiler_can_build_shared_CXX=no
18845fi
18846
18847fi
Reid Spencera773bd52006-08-04 18:18:08 +000018848case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000018849 # For platforms which do not support PIC, -DPIC is meaningless:
18850 *djgpp*)
18851 lt_prog_compiler_pic_CXX=
18852 ;;
18853 *)
18854 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
18855 ;;
18856esac
18857
Reid Spencera773bd52006-08-04 18:18:08 +000018858#
18859# Check to make sure the static flag actually works.
18860#
18861wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
18862{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18863echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
18864if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
18865 echo $ECHO_N "(cached) $ECHO_C" >&6
18866else
18867 lt_prog_compiler_static_works_CXX=no
18868 save_LDFLAGS="$LDFLAGS"
18869 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18870 printf "$lt_simple_link_test_code" > conftest.$ac_ext
18871 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18872 # The linker can only warn and ignore the option if not recognized
18873 # So say no if there are warnings
18874 if test -s conftest.err; then
18875 # Append any errors to the config.log.
18876 cat conftest.err 1>&5
18877 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
18878 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18879 if diff conftest.exp conftest.er2 >/dev/null; then
18880 lt_prog_compiler_static_works_CXX=yes
18881 fi
18882 else
18883 lt_prog_compiler_static_works_CXX=yes
18884 fi
18885 fi
18886 $rm conftest*
18887 LDFLAGS="$save_LDFLAGS"
18888
18889fi
18890{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
18891echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
18892
18893if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
18894 :
18895else
18896 lt_prog_compiler_static_CXX=
18897fi
18898
18899
18900{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18901echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018902if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
18903 echo $ECHO_N "(cached) $ECHO_C" >&6
18904else
18905 lt_cv_prog_compiler_c_o_CXX=no
18906 $rm -r conftest 2>/dev/null
18907 mkdir conftest
18908 cd conftest
18909 mkdir out
18910 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18911
John Criswell47fdd832003-07-14 16:52:07 +000018912 lt_compiler_flag="-o out/conftest2.$ac_objext"
18913 # Insert the option either (1) after the last *FLAGS variable, or
18914 # (2) before a word containing "conftest.", or (3) at the end.
18915 # Note that $ac_compile itself does not contain backslashes and begins
18916 # with a dollar sign (not a hyphen), so the echo should work correctly.
18917 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000018918 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000018919 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18920 -e 's:$: $lt_compiler_flag:'`
Torok Edwincc499a42008-10-22 09:56:27 +000018921 (eval echo "\"\$as_me:18921: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000018922 (eval "$lt_compile" 2>out/conftest.err)
18923 ac_status=$?
18924 cat out/conftest.err >&5
Torok Edwincc499a42008-10-22 09:56:27 +000018925 echo "$as_me:18925: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000018926 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18927 then
18928 # The compiler can only warn and ignore the option if not recognized
18929 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000018930 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
18931 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18932 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000018933 lt_cv_prog_compiler_c_o_CXX=yes
18934 fi
18935 fi
Reid Spencera773bd52006-08-04 18:18:08 +000018936 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000018937 $rm conftest*
18938 # SGI C++ compiler will create directory out/ii_files/ for
18939 # template instantiation
18940 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
18941 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000018942 cd ..
18943 rmdir conftest
18944 $rm conftest*
18945
18946fi
Reid Spencera773bd52006-08-04 18:18:08 +000018947{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
18948echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018949
18950
18951hard_links="nottested"
18952if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
18953 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000018954 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
18955echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018956 hard_links=yes
18957 $rm conftest*
18958 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18959 touch conftest.a
18960 ln conftest.a conftest.b 2>&5 || hard_links=no
18961 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000018962 { echo "$as_me:$LINENO: result: $hard_links" >&5
18963echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018964 if test "$hard_links" = no; then
18965 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18966echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18967 need_locks=warn
18968 fi
18969else
18970 need_locks=no
18971fi
18972
Reid Spencera773bd52006-08-04 18:18:08 +000018973{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18974echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018975
18976 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18977 case $host_os in
18978 aix4* | aix5*)
18979 # If we're using GNU nm, then we don't want the "-C" option.
18980 # -C means demangle to AIX nm, but means don't demangle with GNU nm
18981 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
18982 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'
18983 else
18984 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'
18985 fi
18986 ;;
18987 pw32*)
18988 export_symbols_cmds_CXX="$ltdll_cmds"
18989 ;;
18990 cygwin* | mingw*)
Reid Spencera773bd52006-08-04 18:18:08 +000018991 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 +000018992 ;;
18993 *)
18994 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18995 ;;
18996 esac
18997
Reid Spencera773bd52006-08-04 18:18:08 +000018998{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
18999echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019000test "$ld_shlibs_CXX" = no && can_build_shared=no
19001
John Criswell47fdd832003-07-14 16:52:07 +000019002#
19003# Do we need to explicitly link libc?
19004#
19005case "x$archive_cmds_need_lc_CXX" in
19006x|xyes)
19007 # Assume -lc should be added
19008 archive_cmds_need_lc_CXX=yes
19009
19010 if test "$enable_shared" = yes && test "$GCC" = yes; then
19011 case $archive_cmds_CXX in
Reid Spencer2706f8c2004-09-19 23:53:36 +000019012 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000019013 # FIXME: we may have to deal with multi-command sequences.
19014 ;;
19015 '$CC '*)
19016 # Test whether the compiler implicitly links with -lc since on some
19017 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19018 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000019019 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19020echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019021 $rm conftest*
19022 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19023
19024 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19025 (eval $ac_compile) 2>&5
19026 ac_status=$?
19027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19028 (exit $ac_status); } 2>conftest.err; then
19029 soname=conftest
19030 lib=conftest
19031 libobjs=conftest.$ac_objext
19032 deplibs=
19033 wl=$lt_prog_compiler_wl_CXX
Reid Spencera773bd52006-08-04 18:18:08 +000019034 pic_flag=$lt_prog_compiler_pic_CXX
John Criswell47fdd832003-07-14 16:52:07 +000019035 compiler_flags=-v
19036 linker_flags=-v
19037 verstring=
19038 output_objdir=.
19039 libname=conftest
19040 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19041 allow_undefined_flag_CXX=
19042 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19043 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19044 ac_status=$?
19045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19046 (exit $ac_status); }
19047 then
19048 archive_cmds_need_lc_CXX=no
19049 else
19050 archive_cmds_need_lc_CXX=yes
19051 fi
19052 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19053 else
19054 cat conftest.err 1>&5
19055 fi
19056 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000019057 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
19058echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019059 ;;
19060 esac
19061 fi
19062 ;;
19063esac
19064
Reid Spencera773bd52006-08-04 18:18:08 +000019065{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19066echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019067library_names_spec=
19068libname_spec='lib$name'
19069soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000019070shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000019071postinstall_cmds=
19072postuninstall_cmds=
19073finish_cmds=
19074finish_eval=
19075shlibpath_var=
19076shlibpath_overrides_runpath=unknown
19077version_type=none
19078dynamic_linker="$host_os ld.so"
19079sys_lib_dlsearch_path_spec="/lib /usr/lib"
19080if test "$GCC" = yes; then
19081 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19082 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19083 # if the path contains ";" then we assume it to be the separator
19084 # otherwise default to the standard path separator (i.e. ":") - it is
19085 # assumed that no part of a normal pathname contains ";" but that should
19086 # okay in the real world where ";" in dirpaths is itself problematic.
19087 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19088 else
19089 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19090 fi
19091else
19092 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19093fi
19094need_lib_prefix=unknown
19095hardcode_into_libs=no
19096
19097# when you set need_version to no, make sure it does not cause -set_version
19098# flags to be left without arguments
19099need_version=unknown
19100
19101case $host_os in
19102aix3*)
19103 version_type=linux
19104 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19105 shlibpath_var=LIBPATH
19106
19107 # AIX 3 has no versioning support, so we append a major version to the name.
19108 soname_spec='${libname}${release}${shared_ext}$major'
19109 ;;
19110
19111aix4* | aix5*)
19112 version_type=linux
19113 need_lib_prefix=no
19114 need_version=no
19115 hardcode_into_libs=yes
19116 if test "$host_cpu" = ia64; then
19117 # AIX 5 supports IA64
19118 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19119 shlibpath_var=LD_LIBRARY_PATH
19120 else
19121 # With GCC up to 2.95.x, collect2 would create an import file
19122 # for dependence libraries. The import file would start with
19123 # the line `#! .'. This would cause the generated library to
19124 # depend on `.', always an invalid library. This was fixed in
19125 # development snapshots of GCC prior to 3.0.
19126 case $host_os in
19127 aix4 | aix4.[01] | aix4.[01].*)
19128 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19129 echo ' yes '
19130 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19131 :
19132 else
19133 can_build_shared=no
19134 fi
19135 ;;
19136 esac
19137 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19138 # soname into executable. Probably we can add versioning support to
19139 # collect2, so additional links can be useful in future.
19140 if test "$aix_use_runtimelinking" = yes; then
19141 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19142 # instead of lib<name>.a to let people know that these are not
19143 # typical AIX shared libraries.
19144 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19145 else
19146 # We preserve .a as extension for shared libraries through AIX4.2
19147 # and later when we are not doing run time linking.
19148 library_names_spec='${libname}${release}.a $libname.a'
19149 soname_spec='${libname}${release}${shared_ext}$major'
19150 fi
19151 shlibpath_var=LIBPATH
19152 fi
19153 ;;
19154
19155amigaos*)
19156 library_names_spec='$libname.ixlibrary $libname.a'
19157 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000019158 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 +000019159 ;;
19160
19161beos*)
19162 library_names_spec='${libname}${shared_ext}'
19163 dynamic_linker="$host_os ld.so"
19164 shlibpath_var=LIBRARY_PATH
19165 ;;
19166
Reid Spencer2706f8c2004-09-19 23:53:36 +000019167bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000019168 version_type=linux
19169 need_version=no
19170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19171 soname_spec='${libname}${release}${shared_ext}$major'
19172 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19173 shlibpath_var=LD_LIBRARY_PATH
19174 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19175 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19176 # the default ld.so.conf also contains /usr/contrib/lib and
19177 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19178 # libtool to hard-code these into programs
19179 ;;
19180
19181cygwin* | mingw* | pw32*)
19182 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000019183 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000019184 need_version=no
19185 need_lib_prefix=no
19186
19187 case $GCC,$host_os in
19188 yes,cygwin* | yes,mingw* | yes,pw32*)
19189 library_names_spec='$libname.dll.a'
19190 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000019191 postinstall_cmds='base_file=`basename \${file}`~
19192 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19193 dldir=$destdir/`dirname \$dlpath`~
19194 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000019195 $install_prog $dir/$dlname \$dldir/$dlname~
19196 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000019197 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19198 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000019199 $rm \$dlpath'
19200 shlibpath_overrides_runpath=yes
19201
19202 case $host_os in
19203 cygwin*)
19204 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19205 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 +000019206 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000019207 ;;
19208 mingw*)
19209 # MinGW DLLs use traditional 'lib' prefix
19210 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19211 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19212 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
19213 # It is most probably a Windows format PATH printed by
19214 # mingw gcc, but we are running on Cygwin. Gcc prints its search
19215 # path with ; separators, and with drive letters. We can handle the
19216 # drive letters (cygwin fileutils understands them), so leave them,
19217 # especially as we might pass files found there to a mingw objdump,
19218 # which wouldn't understand a cygwinified path. Ahh.
19219 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19220 else
19221 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19222 fi
19223 ;;
19224 pw32*)
19225 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000019226 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 +000019227 ;;
19228 esac
19229 ;;
19230
19231 *)
19232 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19233 ;;
19234 esac
19235 dynamic_linker='Win32 ld.exe'
19236 # FIXME: first we should search . and the directory the executable is in
19237 shlibpath_var=PATH
19238 ;;
19239
19240darwin* | rhapsody*)
19241 dynamic_linker="$host_os dyld"
19242 version_type=darwin
19243 need_lib_prefix=no
19244 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000019245 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000019246 soname_spec='${libname}${release}${major}$shared_ext'
19247 shlibpath_overrides_runpath=yes
19248 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000019249 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000019250 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000019251 if test "$GCC" = yes; then
19252 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"`
19253 else
19254 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000019255 fi
19256 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19257 ;;
19258
19259dgux*)
19260 version_type=linux
19261 need_lib_prefix=no
19262 need_version=no
19263 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19264 soname_spec='${libname}${release}${shared_ext}$major'
19265 shlibpath_var=LD_LIBRARY_PATH
19266 ;;
19267
19268freebsd1*)
19269 dynamic_linker=no
19270 ;;
19271
Reid Spencer2706f8c2004-09-19 23:53:36 +000019272kfreebsd*-gnu)
19273 version_type=linux
19274 need_lib_prefix=no
19275 need_version=no
19276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19277 soname_spec='${libname}${release}${shared_ext}$major'
19278 shlibpath_var=LD_LIBRARY_PATH
19279 shlibpath_overrides_runpath=no
19280 hardcode_into_libs=yes
19281 dynamic_linker='GNU ld.so'
19282 ;;
19283
Reid Spencera773bd52006-08-04 18:18:08 +000019284freebsd* | dragonfly*)
19285 # DragonFly does not have aout. When/if they implement a new
19286 # versioning mechanism, adjust this.
19287 if test -x /usr/bin/objformat; then
19288 objformat=`/usr/bin/objformat`
19289 else
19290 case $host_os in
19291 freebsd[123]*) objformat=aout ;;
19292 *) objformat=elf ;;
19293 esac
19294 fi
John Criswell47fdd832003-07-14 16:52:07 +000019295 version_type=freebsd-$objformat
19296 case $version_type in
19297 freebsd-elf*)
19298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19299 need_version=no
19300 need_lib_prefix=no
19301 ;;
19302 freebsd-*)
19303 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19304 need_version=yes
19305 ;;
19306 esac
19307 shlibpath_var=LD_LIBRARY_PATH
19308 case $host_os in
19309 freebsd2*)
19310 shlibpath_overrides_runpath=yes
19311 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019312 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000019313 shlibpath_overrides_runpath=yes
19314 hardcode_into_libs=yes
19315 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019316 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19317 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000019318 shlibpath_overrides_runpath=no
19319 hardcode_into_libs=yes
19320 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019321 freebsd*) # from 4.6 on
19322 shlibpath_overrides_runpath=yes
19323 hardcode_into_libs=yes
19324 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019325 esac
19326 ;;
19327
19328gnu*)
19329 version_type=linux
19330 need_lib_prefix=no
19331 need_version=no
19332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19333 soname_spec='${libname}${release}${shared_ext}$major'
19334 shlibpath_var=LD_LIBRARY_PATH
19335 hardcode_into_libs=yes
19336 ;;
19337
19338hpux9* | hpux10* | hpux11*)
19339 # Give a soname corresponding to the major version so that dld.sl refuses to
19340 # link against other versions.
19341 version_type=sunos
19342 need_lib_prefix=no
19343 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000019344 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000019345 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000019346 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000019347 hardcode_into_libs=yes
19348 dynamic_linker="$host_os dld.so"
19349 shlibpath_var=LD_LIBRARY_PATH
19350 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19352 soname_spec='${libname}${release}${shared_ext}$major'
19353 if test "X$HPUX_IA64_MODE" = X32; then
19354 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19355 else
19356 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19357 fi
19358 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19359 ;;
19360 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000019361 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000019362 hardcode_into_libs=yes
19363 dynamic_linker="$host_os dld.sl"
19364 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19365 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19367 soname_spec='${libname}${release}${shared_ext}$major'
19368 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19369 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19370 ;;
19371 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000019372 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000019373 dynamic_linker="$host_os dld.sl"
19374 shlibpath_var=SHLIB_PATH
19375 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19377 soname_spec='${libname}${release}${shared_ext}$major'
19378 ;;
19379 esac
19380 # HP-UX runs *really* slowly unless shared libraries are mode 555.
19381 postinstall_cmds='chmod 555 $lib'
19382 ;;
19383
Reid Spencera773bd52006-08-04 18:18:08 +000019384interix3*)
19385 version_type=linux
19386 need_lib_prefix=no
19387 need_version=no
19388 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19389 soname_spec='${libname}${release}${shared_ext}$major'
19390 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19391 shlibpath_var=LD_LIBRARY_PATH
19392 shlibpath_overrides_runpath=no
19393 hardcode_into_libs=yes
19394 ;;
19395
John Criswell47fdd832003-07-14 16:52:07 +000019396irix5* | irix6* | nonstopux*)
19397 case $host_os in
19398 nonstopux*) version_type=nonstopux ;;
19399 *)
19400 if test "$lt_cv_prog_gnu_ld" = yes; then
19401 version_type=linux
19402 else
19403 version_type=irix
19404 fi ;;
19405 esac
19406 need_lib_prefix=no
19407 need_version=no
19408 soname_spec='${libname}${release}${shared_ext}$major'
19409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19410 case $host_os in
19411 irix5* | nonstopux*)
19412 libsuff= shlibsuff=
19413 ;;
19414 *)
19415 case $LD in # libtool.m4 will add one of these switches to LD
19416 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19417 libsuff= shlibsuff= libmagic=32-bit;;
19418 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19419 libsuff=32 shlibsuff=N32 libmagic=N32;;
19420 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19421 libsuff=64 shlibsuff=64 libmagic=64-bit;;
19422 *) libsuff= shlibsuff= libmagic=never-match;;
19423 esac
19424 ;;
19425 esac
19426 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19427 shlibpath_overrides_runpath=no
19428 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19429 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19430 hardcode_into_libs=yes
19431 ;;
19432
19433# No shared lib support for Linux oldld, aout, or coff.
19434linux*oldld* | linux*aout* | linux*coff*)
19435 dynamic_linker=no
19436 ;;
19437
19438# This must be Linux ELF.
19439linux*)
19440 version_type=linux
19441 need_lib_prefix=no
19442 need_version=no
19443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19444 soname_spec='${libname}${release}${shared_ext}$major'
19445 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19446 shlibpath_var=LD_LIBRARY_PATH
19447 shlibpath_overrides_runpath=no
19448 # This implies no fast_install, which is unacceptable.
19449 # Some rework will be needed to allow for fast_install
19450 # before this can be enabled.
19451 hardcode_into_libs=yes
19452
Reid Spencer2706f8c2004-09-19 23:53:36 +000019453 # Append ld.so.conf contents to the search path
19454 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000019455 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 +000019456 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19457 fi
19458
John Criswell47fdd832003-07-14 16:52:07 +000019459 # We used to test for /lib/ld.so.1 and disable shared libraries on
19460 # powerpc, because MkLinux only supported shared libraries with the
19461 # GNU dynamic linker. Since this was broken with cross compilers,
19462 # most powerpc-linux boxes support dynamic linking these days and
19463 # people can always --disable-shared, the test was removed, and we
19464 # assume the GNU/Linux dynamic linker is in use.
19465 dynamic_linker='GNU/Linux ld.so'
19466 ;;
19467
Reid Spencer2706f8c2004-09-19 23:53:36 +000019468knetbsd*-gnu)
19469 version_type=linux
19470 need_lib_prefix=no
19471 need_version=no
19472 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19473 soname_spec='${libname}${release}${shared_ext}$major'
19474 shlibpath_var=LD_LIBRARY_PATH
19475 shlibpath_overrides_runpath=no
19476 hardcode_into_libs=yes
19477 dynamic_linker='GNU ld.so'
19478 ;;
19479
John Criswell47fdd832003-07-14 16:52:07 +000019480netbsd*)
19481 version_type=sunos
19482 need_lib_prefix=no
19483 need_version=no
19484 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19486 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19487 dynamic_linker='NetBSD (a.out) ld.so'
19488 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000019489 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000019490 soname_spec='${libname}${release}${shared_ext}$major'
19491 dynamic_linker='NetBSD ld.elf_so'
19492 fi
19493 shlibpath_var=LD_LIBRARY_PATH
19494 shlibpath_overrides_runpath=yes
19495 hardcode_into_libs=yes
19496 ;;
19497
19498newsos6)
19499 version_type=linux
19500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19501 shlibpath_var=LD_LIBRARY_PATH
19502 shlibpath_overrides_runpath=yes
19503 ;;
19504
Reid Spencer2706f8c2004-09-19 23:53:36 +000019505nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000019506 version_type=linux
19507 need_lib_prefix=no
19508 need_version=no
19509 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19510 soname_spec='${libname}${release}${shared_ext}$major'
19511 shlibpath_var=LD_LIBRARY_PATH
19512 shlibpath_overrides_runpath=yes
19513 ;;
19514
19515openbsd*)
19516 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000019517 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000019518 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000019519 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19520 case $host_os in
19521 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19522 *) need_version=no ;;
19523 esac
John Criswell47fdd832003-07-14 16:52:07 +000019524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19525 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19526 shlibpath_var=LD_LIBRARY_PATH
19527 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19528 case $host_os in
19529 openbsd2.[89] | openbsd2.[89].*)
19530 shlibpath_overrides_runpath=no
19531 ;;
19532 *)
19533 shlibpath_overrides_runpath=yes
19534 ;;
19535 esac
19536 else
19537 shlibpath_overrides_runpath=yes
19538 fi
19539 ;;
19540
19541os2*)
19542 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000019543 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000019544 need_lib_prefix=no
19545 library_names_spec='$libname${shared_ext} $libname.a'
19546 dynamic_linker='OS/2 ld.exe'
19547 shlibpath_var=LIBPATH
19548 ;;
19549
19550osf3* | osf4* | osf5*)
19551 version_type=osf
19552 need_lib_prefix=no
19553 need_version=no
19554 soname_spec='${libname}${release}${shared_ext}$major'
19555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19556 shlibpath_var=LD_LIBRARY_PATH
19557 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19558 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19559 ;;
19560
John Criswell47fdd832003-07-14 16:52:07 +000019561solaris*)
19562 version_type=linux
19563 need_lib_prefix=no
19564 need_version=no
19565 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19566 soname_spec='${libname}${release}${shared_ext}$major'
19567 shlibpath_var=LD_LIBRARY_PATH
19568 shlibpath_overrides_runpath=yes
19569 hardcode_into_libs=yes
19570 # ldd complains unless libraries are executable
19571 postinstall_cmds='chmod +x $lib'
19572 ;;
19573
19574sunos4*)
19575 version_type=sunos
19576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19577 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19578 shlibpath_var=LD_LIBRARY_PATH
19579 shlibpath_overrides_runpath=yes
19580 if test "$with_gnu_ld" = yes; then
19581 need_lib_prefix=no
19582 fi
19583 need_version=yes
19584 ;;
19585
Reid Spencera773bd52006-08-04 18:18:08 +000019586sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000019587 version_type=linux
19588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19589 soname_spec='${libname}${release}${shared_ext}$major'
19590 shlibpath_var=LD_LIBRARY_PATH
19591 case $host_vendor in
19592 sni)
19593 shlibpath_overrides_runpath=no
19594 need_lib_prefix=no
19595 export_dynamic_flag_spec='${wl}-Blargedynsym'
19596 runpath_var=LD_RUN_PATH
19597 ;;
19598 siemens)
19599 need_lib_prefix=no
19600 ;;
19601 motorola)
19602 need_lib_prefix=no
19603 need_version=no
19604 shlibpath_overrides_runpath=no
19605 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19606 ;;
19607 esac
19608 ;;
19609
19610sysv4*MP*)
19611 if test -d /usr/nec ;then
19612 version_type=linux
19613 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19614 soname_spec='$libname${shared_ext}.$major'
19615 shlibpath_var=LD_LIBRARY_PATH
19616 fi
19617 ;;
19618
Reid Spencera773bd52006-08-04 18:18:08 +000019619sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19620 version_type=freebsd-elf
19621 need_lib_prefix=no
19622 need_version=no
19623 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19624 soname_spec='${libname}${release}${shared_ext}$major'
19625 shlibpath_var=LD_LIBRARY_PATH
19626 hardcode_into_libs=yes
19627 if test "$with_gnu_ld" = yes; then
19628 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19629 shlibpath_overrides_runpath=no
19630 else
19631 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19632 shlibpath_overrides_runpath=yes
19633 case $host_os in
19634 sco3.2v5*)
19635 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19636 ;;
19637 esac
19638 fi
19639 sys_lib_dlsearch_path_spec='/usr/lib'
19640 ;;
19641
John Criswell47fdd832003-07-14 16:52:07 +000019642uts4*)
19643 version_type=linux
19644 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19645 soname_spec='${libname}${release}${shared_ext}$major'
19646 shlibpath_var=LD_LIBRARY_PATH
19647 ;;
19648
19649*)
19650 dynamic_linker=no
19651 ;;
19652esac
Reid Spencera773bd52006-08-04 18:18:08 +000019653{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19654echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019655test "$dynamic_linker" = no && can_build_shared=no
19656
Reid Spencera773bd52006-08-04 18:18:08 +000019657variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19658if test "$GCC" = yes; then
19659 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19660fi
19661
19662{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19663echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000019664hardcode_action_CXX=
19665if test -n "$hardcode_libdir_flag_spec_CXX" || \
19666 test -n "$runpath_var_CXX" || \
19667 test "X$hardcode_automatic_CXX" = "Xyes" ; then
19668
19669 # We can hardcode non-existant directories.
19670 if test "$hardcode_direct_CXX" != no &&
19671 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19672 # have to relink, otherwise we might link with an installed library
19673 # when we should be linking with a yet-to-be-installed one
19674 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
19675 test "$hardcode_minus_L_CXX" != no; then
19676 # Linking always hardcodes the temporary library directory.
19677 hardcode_action_CXX=relink
19678 else
19679 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19680 hardcode_action_CXX=immediate
19681 fi
19682else
19683 # We cannot hardcode anything, or else we can only hardcode existing
19684 # directories.
19685 hardcode_action_CXX=unsupported
19686fi
Reid Spencera773bd52006-08-04 18:18:08 +000019687{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
19688echo "${ECHO_T}$hardcode_action_CXX" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000019689
19690if test "$hardcode_action_CXX" = relink; then
19691 # Fast installation is not supported
19692 enable_fast_install=no
19693elif test "$shlibpath_overrides_runpath" = yes ||
19694 test "$enable_shared" = no; then
19695 # Fast installation is not necessary
19696 enable_fast_install=needless
19697fi
19698
John Criswell47fdd832003-07-14 16:52:07 +000019699
19700# The else clause should only fire when bootstrapping the
19701# libtool distribution, otherwise you forgot to ship ltmain.sh
19702# with your package, and you will get complaints that there are
19703# no rules to generate ltmain.sh.
19704if test -f "$ltmain"; then
19705 # See if we are running on zsh, and set the options which allow our commands through
19706 # without removal of \ escapes.
19707 if test -n "${ZSH_VERSION+set}" ; then
19708 setopt NO_GLOB_SUBST
19709 fi
19710 # Now quote all the things that may contain metacharacters while being
19711 # careful not to overquote the AC_SUBSTed values. We take copies of the
19712 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000019713 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 +000019714 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000019715 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19716 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19717 deplibs_check_method reload_flag reload_cmds need_locks \
19718 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19719 lt_cv_sys_global_symbol_to_c_name_address \
19720 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19721 old_postinstall_cmds old_postuninstall_cmds \
19722 compiler_CXX \
19723 CC_CXX \
19724 LD_CXX \
19725 lt_prog_compiler_wl_CXX \
19726 lt_prog_compiler_pic_CXX \
19727 lt_prog_compiler_static_CXX \
19728 lt_prog_compiler_no_builtin_flag_CXX \
19729 export_dynamic_flag_spec_CXX \
19730 thread_safe_flag_spec_CXX \
19731 whole_archive_flag_spec_CXX \
19732 enable_shared_with_static_runtimes_CXX \
19733 old_archive_cmds_CXX \
19734 old_archive_from_new_cmds_CXX \
19735 predep_objects_CXX \
19736 postdep_objects_CXX \
19737 predeps_CXX \
19738 postdeps_CXX \
19739 compiler_lib_search_path_CXX \
19740 archive_cmds_CXX \
19741 archive_expsym_cmds_CXX \
19742 postinstall_cmds_CXX \
19743 postuninstall_cmds_CXX \
19744 old_archive_from_expsyms_cmds_CXX \
19745 allow_undefined_flag_CXX \
19746 no_undefined_flag_CXX \
19747 export_symbols_cmds_CXX \
19748 hardcode_libdir_flag_spec_CXX \
19749 hardcode_libdir_flag_spec_ld_CXX \
19750 hardcode_libdir_separator_CXX \
19751 hardcode_automatic_CXX \
19752 module_cmds_CXX \
19753 module_expsym_cmds_CXX \
19754 lt_cv_prog_compiler_c_o_CXX \
19755 exclude_expsyms_CXX \
19756 include_expsyms_CXX; do
19757
19758 case $var in
19759 old_archive_cmds_CXX | \
19760 old_archive_from_new_cmds_CXX | \
19761 archive_cmds_CXX | \
19762 archive_expsym_cmds_CXX | \
19763 module_cmds_CXX | \
19764 module_expsym_cmds_CXX | \
19765 old_archive_from_expsyms_cmds_CXX | \
19766 export_symbols_cmds_CXX | \
19767 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19768 postinstall_cmds | postuninstall_cmds | \
19769 old_postinstall_cmds | old_postuninstall_cmds | \
19770 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19771 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000019772 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 +000019773 ;;
19774 *)
19775 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19776 ;;
19777 esac
19778 done
19779
19780 case $lt_echo in
19781 *'\$0 --fallback-echo"')
19782 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19783 ;;
19784 esac
19785
19786cfgfile="$ofile"
19787
19788 cat <<__EOF__ >> "$cfgfile"
19789# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19790
19791# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19792
19793# Shell to use when invoking shell scripts.
19794SHELL=$lt_SHELL
19795
19796# Whether or not to build shared libraries.
19797build_libtool_libs=$enable_shared
19798
19799# Whether or not to build static libraries.
19800build_old_libs=$enable_static
19801
19802# Whether or not to add -lc for building shared libraries.
19803build_libtool_need_lc=$archive_cmds_need_lc_CXX
19804
19805# Whether or not to disallow shared libs when runtime libs are static
19806allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19807
19808# Whether or not to optimize for fast installation.
19809fast_install=$enable_fast_install
19810
19811# The host system.
19812host_alias=$host_alias
19813host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000019814host_os=$host_os
19815
19816# The build system.
19817build_alias=$build_alias
19818build=$build
19819build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000019820
19821# An echo program that does not interpret backslashes.
19822echo=$lt_echo
19823
19824# The archiver.
19825AR=$lt_AR
19826AR_FLAGS=$lt_AR_FLAGS
19827
19828# A C compiler.
19829LTCC=$lt_LTCC
19830
Reid Spencera773bd52006-08-04 18:18:08 +000019831# LTCC compiler flags.
19832LTCFLAGS=$lt_LTCFLAGS
19833
John Criswell47fdd832003-07-14 16:52:07 +000019834# A language-specific compiler.
19835CC=$lt_compiler_CXX
19836
19837# Is the compiler the GNU C compiler?
19838with_gcc=$GCC_CXX
19839
19840# An ERE matcher.
19841EGREP=$lt_EGREP
19842
19843# The linker used to build libraries.
19844LD=$lt_LD_CXX
19845
19846# Whether we need hard or soft links.
19847LN_S=$lt_LN_S
19848
19849# A BSD-compatible nm program.
19850NM=$lt_NM
19851
19852# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000019853STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000019854
19855# Used to examine libraries when file_magic_cmd begins "file"
19856MAGIC_CMD=$MAGIC_CMD
19857
19858# Used on cygwin: DLL creation program.
19859DLLTOOL="$DLLTOOL"
19860
19861# Used on cygwin: object dumper.
19862OBJDUMP="$OBJDUMP"
19863
19864# Used on cygwin: assembler.
19865AS="$AS"
19866
19867# The name of the directory that contains temporary libtool files.
19868objdir=$objdir
19869
19870# How to create reloadable object files.
19871reload_flag=$lt_reload_flag
19872reload_cmds=$lt_reload_cmds
19873
19874# How to pass a linker flag through the compiler.
19875wl=$lt_lt_prog_compiler_wl_CXX
19876
19877# Object file suffix (normally "o").
19878objext="$ac_objext"
19879
19880# Old archive suffix (normally "a").
19881libext="$libext"
19882
19883# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000019884shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000019885
19886# Executable file suffix (normally "").
19887exeext="$exeext"
19888
19889# Additional compiler flags for building library objects.
19890pic_flag=$lt_lt_prog_compiler_pic_CXX
19891pic_mode=$pic_mode
19892
19893# What is the maximum length of a command?
19894max_cmd_len=$lt_cv_sys_max_cmd_len
19895
19896# Does compiler simultaneously support -c and -o options?
19897compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19898
Reid Spencera773bd52006-08-04 18:18:08 +000019899# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000019900need_locks=$lt_need_locks
19901
19902# Do we need the lib prefix for modules?
19903need_lib_prefix=$need_lib_prefix
19904
19905# Do we need a version for libraries?
19906need_version=$need_version
19907
19908# Whether dlopen is supported.
19909dlopen_support=$enable_dlopen
19910
19911# Whether dlopen of programs is supported.
19912dlopen_self=$enable_dlopen_self
19913
19914# Whether dlopen of statically linked programs is supported.
19915dlopen_self_static=$enable_dlopen_self_static
19916
19917# Compiler flag to prevent dynamic linking.
19918link_static_flag=$lt_lt_prog_compiler_static_CXX
19919
19920# Compiler flag to turn off builtin functions.
19921no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19922
19923# Compiler flag to allow reflexive dlopens.
19924export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19925
19926# Compiler flag to generate shared objects directly from archives.
19927whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19928
19929# Compiler flag to generate thread-safe objects.
19930thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
19931
19932# Library versioning type.
19933version_type=$version_type
19934
19935# Format of library name prefix.
19936libname_spec=$lt_libname_spec
19937
19938# List of archive names. First name is the real one, the rest are links.
19939# The last name is the one that the linker finds with -lNAME.
19940library_names_spec=$lt_library_names_spec
19941
19942# The coded name of the library, if different from the real name.
19943soname_spec=$lt_soname_spec
19944
19945# Commands used to build and install an old-style archive.
19946RANLIB=$lt_RANLIB
19947old_archive_cmds=$lt_old_archive_cmds_CXX
19948old_postinstall_cmds=$lt_old_postinstall_cmds
19949old_postuninstall_cmds=$lt_old_postuninstall_cmds
19950
19951# Create an old-style archive from a shared archive.
19952old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19953
19954# Create a temporary old-style archive to link instead of a shared archive.
19955old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19956
19957# Commands used to build and install a shared archive.
19958archive_cmds=$lt_archive_cmds_CXX
19959archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19960postinstall_cmds=$lt_postinstall_cmds
19961postuninstall_cmds=$lt_postuninstall_cmds
19962
19963# Commands used to build a loadable module (assumed same as above if empty)
19964module_cmds=$lt_module_cmds_CXX
19965module_expsym_cmds=$lt_module_expsym_cmds_CXX
19966
19967# Commands to strip libraries.
19968old_striplib=$lt_old_striplib
19969striplib=$lt_striplib
19970
19971# Dependencies to place before the objects being linked to create a
19972# shared library.
19973predep_objects=$lt_predep_objects_CXX
19974
19975# Dependencies to place after the objects being linked to create a
19976# shared library.
19977postdep_objects=$lt_postdep_objects_CXX
19978
19979# Dependencies to place before the objects being linked to create a
19980# shared library.
19981predeps=$lt_predeps_CXX
19982
19983# Dependencies to place after the objects being linked to create a
19984# shared library.
19985postdeps=$lt_postdeps_CXX
19986
19987# The library search path used internally by the compiler when linking
19988# a shared library.
19989compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19990
19991# Method to check whether dependent libraries are shared objects.
19992deplibs_check_method=$lt_deplibs_check_method
19993
19994# Command to use when deplibs_check_method == file_magic.
19995file_magic_cmd=$lt_file_magic_cmd
19996
19997# Flag that allows shared libraries with undefined symbols to be built.
19998allow_undefined_flag=$lt_allow_undefined_flag_CXX
19999
20000# Flag that forces no undefined symbols.
20001no_undefined_flag=$lt_no_undefined_flag_CXX
20002
20003# Commands used to finish a libtool library installation in a directory.
20004finish_cmds=$lt_finish_cmds
20005
20006# Same as above, but a single script fragment to be evaled but not shown.
20007finish_eval=$lt_finish_eval
20008
20009# Take the output of nm and produce a listing of raw symbols and C names.
20010global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20011
20012# Transform the output of nm in a proper C declaration
20013global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20014
20015# Transform the output of nm in a C name address pair
20016global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20017
20018# This is the shared library runtime path variable.
20019runpath_var=$runpath_var
20020
20021# This is the shared library path variable.
20022shlibpath_var=$shlibpath_var
20023
20024# Is shlibpath searched before the hard-coded library search path?
20025shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20026
20027# How to hardcode a shared library path into an executable.
20028hardcode_action=$hardcode_action_CXX
20029
20030# Whether we should hardcode library paths into libraries.
20031hardcode_into_libs=$hardcode_into_libs
20032
20033# Flag to hardcode \$libdir into a binary during linking.
20034# This must work even if \$libdir does not exist.
20035hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20036
20037# If ld is used when linking, flag to hardcode \$libdir into
20038# a binary during linking. This must work even if \$libdir does
20039# not exist.
20040hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
20041
20042# Whether we need a single -rpath flag with a separated argument.
20043hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20044
20045# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20046# resulting binary.
20047hardcode_direct=$hardcode_direct_CXX
20048
20049# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20050# resulting binary.
20051hardcode_minus_L=$hardcode_minus_L_CXX
20052
20053# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20054# the resulting binary.
20055hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20056
20057# Set to yes if building a shared library automatically hardcodes DIR into the library
20058# and all subsequent libraries and executables linked against it.
20059hardcode_automatic=$hardcode_automatic_CXX
20060
20061# Variables whose values should be saved in libtool wrapper scripts and
20062# restored at relink time.
20063variables_saved_for_relink="$variables_saved_for_relink"
20064
20065# Whether libtool must link a program against all its dependency libraries.
20066link_all_deplibs=$link_all_deplibs_CXX
20067
20068# Compile-time system search path for libraries
20069sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20070
20071# Run-time system search path for libraries
20072sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20073
20074# Fix the shell variable \$srcfile for the compiler.
20075fix_srcfile_path="$fix_srcfile_path_CXX"
20076
20077# Set to yes if exported symbols are required.
20078always_export_symbols=$always_export_symbols_CXX
20079
20080# The commands to list exported symbols.
20081export_symbols_cmds=$lt_export_symbols_cmds_CXX
20082
20083# The commands to extract the exported symbol list from a shared archive.
20084extract_expsyms_cmds=$lt_extract_expsyms_cmds
20085
20086# Symbols that should not be listed in the preloaded symbols.
20087exclude_expsyms=$lt_exclude_expsyms_CXX
20088
20089# Symbols that must always be exported.
20090include_expsyms=$lt_include_expsyms_CXX
20091
20092# ### END LIBTOOL TAG CONFIG: $tagname
20093
20094__EOF__
20095
20096
20097else
20098 # If there is no Makefile yet, we rely on a make rule to execute
20099 # `config.status --recheck' to rerun these tests and create the
20100 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020101 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20102 if test -f "$ltmain_in"; then
20103 test -f Makefile && make "$ltmain"
20104 fi
John Criswell47fdd832003-07-14 16:52:07 +000020105fi
20106
20107
20108ac_ext=c
20109ac_cpp='$CPP $CPPFLAGS'
20110ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20111ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20112ac_compiler_gnu=$ac_cv_c_compiler_gnu
20113
20114CC=$lt_save_CC
20115LDCXX=$LD
20116LD=$lt_save_LD
20117GCC=$lt_save_GCC
20118with_gnu_ldcxx=$with_gnu_ld
20119with_gnu_ld=$lt_save_with_gnu_ld
20120lt_cv_path_LDCXX=$lt_cv_path_LD
20121lt_cv_path_LD=$lt_save_path_LD
20122lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
20123lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
20124
20125 else
20126 tagname=""
20127 fi
20128 ;;
20129
20130 F77)
20131 if test -n "$F77" && test "X$F77" != "Xno"; then
20132
20133ac_ext=f
20134ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
20135ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20136ac_compiler_gnu=$ac_cv_f77_compiler_gnu
20137
20138
20139archive_cmds_need_lc_F77=no
20140allow_undefined_flag_F77=
20141always_export_symbols_F77=no
20142archive_expsym_cmds_F77=
20143export_dynamic_flag_spec_F77=
20144hardcode_direct_F77=no
20145hardcode_libdir_flag_spec_F77=
20146hardcode_libdir_flag_spec_ld_F77=
20147hardcode_libdir_separator_F77=
20148hardcode_minus_L_F77=no
20149hardcode_automatic_F77=no
20150module_cmds_F77=
20151module_expsym_cmds_F77=
20152link_all_deplibs_F77=unknown
20153old_archive_cmds_F77=$old_archive_cmds
20154no_undefined_flag_F77=
20155whole_archive_flag_spec_F77=
20156enable_shared_with_static_runtimes_F77=no
20157
20158# Source file extension for f77 test sources.
20159ac_ext=f
20160
20161# Object file extension for compiled f77 test sources.
20162objext=o
20163objext_F77=$objext
20164
20165# Code to be used in simple compile tests
20166lt_simple_compile_test_code=" subroutine t\n return\n end\n"
20167
20168# Code to be used in simple link tests
20169lt_simple_link_test_code=" program t\n end\n"
20170
20171# ltmain only uses $CC for tagged configurations so make sure $CC is set.
20172
20173# If no C compiler was specified, use CC.
20174LTCC=${LTCC-"$CC"}
20175
Reid Spencera773bd52006-08-04 18:18:08 +000020176# If no C compiler flags were specified, use CFLAGS.
20177LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
20178
John Criswell47fdd832003-07-14 16:52:07 +000020179# Allow CC to be a program name with arguments.
20180compiler=$CC
20181
20182
Reid Spencera773bd52006-08-04 18:18:08 +000020183# save warnings/boilerplate of simple test code
20184ac_outfile=conftest.$ac_objext
20185printf "$lt_simple_compile_test_code" >conftest.$ac_ext
20186eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20187_lt_compiler_boilerplate=`cat conftest.err`
20188$rm conftest*
20189
20190ac_outfile=conftest.$ac_objext
20191printf "$lt_simple_link_test_code" >conftest.$ac_ext
20192eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20193_lt_linker_boilerplate=`cat conftest.err`
20194$rm conftest*
20195
20196
John Criswell47fdd832003-07-14 16:52:07 +000020197# Allow CC to be a program name with arguments.
20198lt_save_CC="$CC"
20199CC=${F77-"f77"}
20200compiler=$CC
20201compiler_F77=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000020202for cc_temp in $compiler""; do
20203 case $cc_temp in
20204 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20205 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20206 \-*) ;;
20207 *) break;;
20208 esac
20209done
20210cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000020211
John Criswell47fdd832003-07-14 16:52:07 +000020212
Reid Spencera773bd52006-08-04 18:18:08 +000020213{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
20214echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
20215{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
20216echo "${ECHO_T}$can_build_shared" >&6; }
20217
20218{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
20219echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020220test "$can_build_shared" = "no" && enable_shared=no
20221
20222# On AIX, shared libraries and static libraries use the same namespace, and
20223# are all built from PIC.
Reid Spencera773bd52006-08-04 18:18:08 +000020224case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000020225aix3*)
20226 test "$enable_shared" = yes && enable_static=no
20227 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000020228 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000020229 postinstall_cmds='$RANLIB $lib'
20230 fi
20231 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000020232aix4* | aix5*)
Reid Spencera773bd52006-08-04 18:18:08 +000020233 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
20234 test "$enable_shared" = yes && enable_static=no
20235 fi
John Criswell47fdd832003-07-14 16:52:07 +000020236 ;;
20237esac
Reid Spencera773bd52006-08-04 18:18:08 +000020238{ echo "$as_me:$LINENO: result: $enable_shared" >&5
20239echo "${ECHO_T}$enable_shared" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020240
Reid Spencera773bd52006-08-04 18:18:08 +000020241{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
20242echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020243# Make sure either enable_shared or enable_static is yes.
20244test "$enable_shared" = yes || enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000020245{ echo "$as_me:$LINENO: result: $enable_static" >&5
20246echo "${ECHO_T}$enable_static" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020247
20248GCC_F77="$G77"
20249LD_F77="$LD"
20250
20251lt_prog_compiler_wl_F77=
20252lt_prog_compiler_pic_F77=
20253lt_prog_compiler_static_F77=
20254
Reid Spencera773bd52006-08-04 18:18:08 +000020255{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
20256echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020257
20258 if test "$GCC" = yes; then
20259 lt_prog_compiler_wl_F77='-Wl,'
20260 lt_prog_compiler_static_F77='-static'
20261
20262 case $host_os in
20263 aix*)
20264 # All AIX code is PIC.
20265 if test "$host_cpu" = ia64; then
20266 # AIX 5 now supports IA64 processor
20267 lt_prog_compiler_static_F77='-Bstatic'
20268 fi
20269 ;;
20270
20271 amigaos*)
20272 # FIXME: we need at least 68020 code to build shared libraries, but
20273 # adding the `-m68020' flag to GCC prevents building anything better,
20274 # like `-m68040'.
20275 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
20276 ;;
20277
20278 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20279 # PIC is the default for these OSes.
20280 ;;
20281
20282 mingw* | pw32* | os2*)
20283 # This hack is so that the source file can tell whether it is being
20284 # built for inclusion in a dll (and should export symbols for example).
20285 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
20286 ;;
20287
20288 darwin* | rhapsody*)
20289 # PIC is the default on this platform
20290 # Common symbols not allowed in MH_DYLIB files
20291 lt_prog_compiler_pic_F77='-fno-common'
20292 ;;
20293
Reid Spencera773bd52006-08-04 18:18:08 +000020294 interix3*)
20295 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20296 # Instead, we relocate shared libraries at runtime.
20297 ;;
20298
John Criswell47fdd832003-07-14 16:52:07 +000020299 msdosdjgpp*)
20300 # Just because we use GCC doesn't mean we suddenly get shared libraries
20301 # on systems that don't support them.
20302 lt_prog_compiler_can_build_shared_F77=no
20303 enable_shared=no
20304 ;;
20305
20306 sysv4*MP*)
20307 if test -d /usr/nec; then
20308 lt_prog_compiler_pic_F77=-Kconform_pic
20309 fi
20310 ;;
20311
20312 hpux*)
20313 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
20314 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000020315 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000020316 hppa*64*|ia64*)
20317 # +Z the default
20318 ;;
20319 *)
20320 lt_prog_compiler_pic_F77='-fPIC'
20321 ;;
20322 esac
20323 ;;
20324
20325 *)
20326 lt_prog_compiler_pic_F77='-fPIC'
20327 ;;
20328 esac
20329 else
20330 # PORTME Check for flag to pass linker flags through the system compiler.
20331 case $host_os in
20332 aix*)
20333 lt_prog_compiler_wl_F77='-Wl,'
20334 if test "$host_cpu" = ia64; then
20335 # AIX 5 now supports IA64 processor
20336 lt_prog_compiler_static_F77='-Bstatic'
20337 else
20338 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
20339 fi
20340 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000020341 darwin*)
20342 # PIC is the default on this platform
20343 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000020344 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000020345 xlc*)
20346 lt_prog_compiler_pic_F77='-qnocommon'
20347 lt_prog_compiler_wl_F77='-Wl,'
20348 ;;
20349 esac
20350 ;;
John Criswell47fdd832003-07-14 16:52:07 +000020351
20352 mingw* | pw32* | os2*)
20353 # This hack is so that the source file can tell whether it is being
20354 # built for inclusion in a dll (and should export symbols for example).
20355 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
20356 ;;
20357
20358 hpux9* | hpux10* | hpux11*)
20359 lt_prog_compiler_wl_F77='-Wl,'
20360 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
20361 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000020362 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000020363 hppa*64*|ia64*)
20364 # +Z the default
20365 ;;
20366 *)
20367 lt_prog_compiler_pic_F77='+Z'
20368 ;;
20369 esac
20370 # Is there a better lt_prog_compiler_static that works with the bundled CC?
20371 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
20372 ;;
20373
20374 irix5* | irix6* | nonstopux*)
20375 lt_prog_compiler_wl_F77='-Wl,'
20376 # PIC (with -KPIC) is the default.
20377 lt_prog_compiler_static_F77='-non_shared'
20378 ;;
20379
20380 newsos6)
20381 lt_prog_compiler_pic_F77='-KPIC'
20382 lt_prog_compiler_static_F77='-Bstatic'
20383 ;;
20384
20385 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000020386 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000020387 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000020388 lt_prog_compiler_wl_F77='-Wl,'
20389 lt_prog_compiler_pic_F77='-KPIC'
20390 lt_prog_compiler_static_F77='-static'
20391 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020392 pgcc* | pgf77* | pgf90* | pgf95*)
20393 # Portland Group compilers (*not* the Pentium gcc compiler,
20394 # which looks to be a dead project)
20395 lt_prog_compiler_wl_F77='-Wl,'
20396 lt_prog_compiler_pic_F77='-fpic'
20397 lt_prog_compiler_static_F77='-Bstatic'
20398 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000020399 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000020400 lt_prog_compiler_wl_F77='-Wl,'
20401 # All Alpha code is PIC.
20402 lt_prog_compiler_static_F77='-non_shared'
20403 ;;
20404 esac
20405 ;;
20406
20407 osf3* | osf4* | osf5*)
20408 lt_prog_compiler_wl_F77='-Wl,'
20409 # All OSF/1 code is PIC.
20410 lt_prog_compiler_static_F77='-non_shared'
20411 ;;
20412
John Criswell47fdd832003-07-14 16:52:07 +000020413 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000020414 lt_prog_compiler_pic_F77='-KPIC'
20415 lt_prog_compiler_static_F77='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000020416 case $cc_basename in
20417 f77* | f90* | f95*)
20418 lt_prog_compiler_wl_F77='-Qoption ld ';;
20419 *)
20420 lt_prog_compiler_wl_F77='-Wl,';;
20421 esac
John Criswell47fdd832003-07-14 16:52:07 +000020422 ;;
20423
20424 sunos4*)
20425 lt_prog_compiler_wl_F77='-Qoption ld '
20426 lt_prog_compiler_pic_F77='-PIC'
20427 lt_prog_compiler_static_F77='-Bstatic'
20428 ;;
20429
Reid Spencera773bd52006-08-04 18:18:08 +000020430 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000020431 lt_prog_compiler_wl_F77='-Wl,'
20432 lt_prog_compiler_pic_F77='-KPIC'
20433 lt_prog_compiler_static_F77='-Bstatic'
20434 ;;
20435
20436 sysv4*MP*)
20437 if test -d /usr/nec ;then
20438 lt_prog_compiler_pic_F77='-Kconform_pic'
20439 lt_prog_compiler_static_F77='-Bstatic'
20440 fi
20441 ;;
20442
Reid Spencera773bd52006-08-04 18:18:08 +000020443 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20444 lt_prog_compiler_wl_F77='-Wl,'
20445 lt_prog_compiler_pic_F77='-KPIC'
20446 lt_prog_compiler_static_F77='-Bstatic'
20447 ;;
20448
20449 unicos*)
20450 lt_prog_compiler_wl_F77='-Wl,'
20451 lt_prog_compiler_can_build_shared_F77=no
20452 ;;
20453
John Criswell47fdd832003-07-14 16:52:07 +000020454 uts4*)
20455 lt_prog_compiler_pic_F77='-pic'
20456 lt_prog_compiler_static_F77='-Bstatic'
20457 ;;
20458
20459 *)
20460 lt_prog_compiler_can_build_shared_F77=no
20461 ;;
20462 esac
20463 fi
20464
Reid Spencera773bd52006-08-04 18:18:08 +000020465{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
20466echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020467
20468#
20469# Check to make sure the PIC flag actually works.
20470#
20471if test -n "$lt_prog_compiler_pic_F77"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000020472
Reid Spencera773bd52006-08-04 18:18:08 +000020473{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
20474echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020475if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
20476 echo $ECHO_N "(cached) $ECHO_C" >&6
20477else
20478 lt_prog_compiler_pic_works_F77=no
20479 ac_outfile=conftest.$ac_objext
20480 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20481 lt_compiler_flag="$lt_prog_compiler_pic_F77"
20482 # Insert the option either (1) after the last *FLAGS variable, or
20483 # (2) before a word containing "conftest.", or (3) at the end.
20484 # Note that $ac_compile itself does not contain backslashes and begins
20485 # with a dollar sign (not a hyphen), so the echo should work correctly.
20486 # The option is referenced via a variable to avoid confusing sed.
20487 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000020488 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000020489 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20490 -e 's:$: $lt_compiler_flag:'`
Torok Edwincc499a42008-10-22 09:56:27 +000020491 (eval echo "\"\$as_me:20491: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000020492 (eval "$lt_compile" 2>conftest.err)
20493 ac_status=$?
20494 cat conftest.err >&5
Torok Edwincc499a42008-10-22 09:56:27 +000020495 echo "$as_me:20495: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000020496 if (exit $ac_status) && test -s "$ac_outfile"; then
20497 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000020498 # So say no if there are warnings other than the usual output.
20499 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
20500 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20501 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000020502 lt_prog_compiler_pic_works_F77=yes
20503 fi
20504 fi
20505 $rm conftest*
20506
20507fi
Reid Spencera773bd52006-08-04 18:18:08 +000020508{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
20509echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020510
20511if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
20512 case $lt_prog_compiler_pic_F77 in
20513 "" | " "*) ;;
20514 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
20515 esac
20516else
20517 lt_prog_compiler_pic_F77=
20518 lt_prog_compiler_can_build_shared_F77=no
20519fi
20520
20521fi
Reid Spencera773bd52006-08-04 18:18:08 +000020522case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000020523 # For platforms which do not support PIC, -DPIC is meaningless:
20524 *djgpp*)
20525 lt_prog_compiler_pic_F77=
20526 ;;
20527 *)
20528 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
20529 ;;
20530esac
20531
Reid Spencera773bd52006-08-04 18:18:08 +000020532#
20533# Check to make sure the static flag actually works.
20534#
20535wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
20536{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20537echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
20538if test "${lt_prog_compiler_static_works_F77+set}" = set; then
20539 echo $ECHO_N "(cached) $ECHO_C" >&6
20540else
20541 lt_prog_compiler_static_works_F77=no
20542 save_LDFLAGS="$LDFLAGS"
20543 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20544 printf "$lt_simple_link_test_code" > conftest.$ac_ext
20545 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20546 # The linker can only warn and ignore the option if not recognized
20547 # So say no if there are warnings
20548 if test -s conftest.err; then
20549 # Append any errors to the config.log.
20550 cat conftest.err 1>&5
20551 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
20552 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20553 if diff conftest.exp conftest.er2 >/dev/null; then
20554 lt_prog_compiler_static_works_F77=yes
20555 fi
20556 else
20557 lt_prog_compiler_static_works_F77=yes
20558 fi
20559 fi
20560 $rm conftest*
20561 LDFLAGS="$save_LDFLAGS"
20562
20563fi
20564{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
20565echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
20566
20567if test x"$lt_prog_compiler_static_works_F77" = xyes; then
20568 :
20569else
20570 lt_prog_compiler_static_F77=
20571fi
20572
20573
20574{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
20575echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020576if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
20577 echo $ECHO_N "(cached) $ECHO_C" >&6
20578else
20579 lt_cv_prog_compiler_c_o_F77=no
20580 $rm -r conftest 2>/dev/null
20581 mkdir conftest
20582 cd conftest
20583 mkdir out
20584 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20585
John Criswell47fdd832003-07-14 16:52:07 +000020586 lt_compiler_flag="-o out/conftest2.$ac_objext"
20587 # Insert the option either (1) after the last *FLAGS variable, or
20588 # (2) before a word containing "conftest.", or (3) at the end.
20589 # Note that $ac_compile itself does not contain backslashes and begins
20590 # with a dollar sign (not a hyphen), so the echo should work correctly.
20591 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000020592 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000020593 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20594 -e 's:$: $lt_compiler_flag:'`
Torok Edwincc499a42008-10-22 09:56:27 +000020595 (eval echo "\"\$as_me:20595: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000020596 (eval "$lt_compile" 2>out/conftest.err)
20597 ac_status=$?
20598 cat out/conftest.err >&5
Torok Edwincc499a42008-10-22 09:56:27 +000020599 echo "$as_me:20599: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000020600 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20601 then
20602 # The compiler can only warn and ignore the option if not recognized
20603 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000020604 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
20605 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20606 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000020607 lt_cv_prog_compiler_c_o_F77=yes
20608 fi
20609 fi
Reid Spencera773bd52006-08-04 18:18:08 +000020610 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000020611 $rm conftest*
20612 # SGI C++ compiler will create directory out/ii_files/ for
20613 # template instantiation
20614 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
20615 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000020616 cd ..
20617 rmdir conftest
20618 $rm conftest*
20619
20620fi
Reid Spencera773bd52006-08-04 18:18:08 +000020621{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
20622echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020623
20624
20625hard_links="nottested"
20626if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
20627 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000020628 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
20629echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020630 hard_links=yes
20631 $rm conftest*
20632 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20633 touch conftest.a
20634 ln conftest.a conftest.b 2>&5 || hard_links=no
20635 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000020636 { echo "$as_me:$LINENO: result: $hard_links" >&5
20637echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020638 if test "$hard_links" = no; then
20639 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20640echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20641 need_locks=warn
20642 fi
20643else
20644 need_locks=no
20645fi
20646
Reid Spencera773bd52006-08-04 18:18:08 +000020647{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20648echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020649
20650 runpath_var=
20651 allow_undefined_flag_F77=
20652 enable_shared_with_static_runtimes_F77=no
20653 archive_cmds_F77=
20654 archive_expsym_cmds_F77=
20655 old_archive_From_new_cmds_F77=
20656 old_archive_from_expsyms_cmds_F77=
20657 export_dynamic_flag_spec_F77=
20658 whole_archive_flag_spec_F77=
20659 thread_safe_flag_spec_F77=
20660 hardcode_libdir_flag_spec_F77=
20661 hardcode_libdir_flag_spec_ld_F77=
20662 hardcode_libdir_separator_F77=
20663 hardcode_direct_F77=no
20664 hardcode_minus_L_F77=no
20665 hardcode_shlibpath_var_F77=unsupported
20666 link_all_deplibs_F77=unknown
20667 hardcode_automatic_F77=no
20668 module_cmds_F77=
20669 module_expsym_cmds_F77=
20670 always_export_symbols_F77=no
20671 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20672 # include_expsyms should be a list of space-separated symbols to be *always*
20673 # included in the symbol list
20674 include_expsyms_F77=
20675 # exclude_expsyms can be an extended regexp of symbols to exclude
20676 # it will be wrapped by ` (' and `)$', so one must not match beginning or
20677 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
20678 # as well as any symbol that contains `d'.
20679 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
20680 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
20681 # platforms (ab)use it in PIC code, but their linkers get confused if
20682 # the symbol is explicitly referenced. Since portable code cannot
20683 # rely on this symbol name, it's probably fine to never include it in
20684 # preloaded symbol tables.
20685 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000020686 # Just being paranoid about ensuring that cc_basename is set.
20687 for cc_temp in $compiler""; do
20688 case $cc_temp in
20689 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20690 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20691 \-*) ;;
20692 *) break;;
20693 esac
20694done
20695cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000020696
20697 case $host_os in
20698 cygwin* | mingw* | pw32*)
20699 # FIXME: the MSVC++ port hasn't been tested in a loooong time
20700 # When not using gcc, we currently assume that we are using
20701 # Microsoft Visual C++.
20702 if test "$GCC" != yes; then
20703 with_gnu_ld=no
20704 fi
20705 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020706 interix*)
20707 # we just hope/assume this is gcc and not c89 (= MSVC++)
20708 with_gnu_ld=yes
20709 ;;
John Criswell47fdd832003-07-14 16:52:07 +000020710 openbsd*)
20711 with_gnu_ld=no
20712 ;;
20713 esac
20714
20715 ld_shlibs_F77=yes
20716 if test "$with_gnu_ld" = yes; then
20717 # If archive_cmds runs LD, not CC, wlarc should be empty
20718 wlarc='${wl}'
20719
Reid Spencera773bd52006-08-04 18:18:08 +000020720 # Set some defaults for GNU ld with shared library support. These
20721 # are reset later if shared libraries are not supported. Putting them
20722 # here allows them to be overridden if necessary.
20723 runpath_var=LD_RUN_PATH
20724 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
20725 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
20726 # ancient GNU ld didn't support --whole-archive et. al.
20727 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
20728 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
20729 else
20730 whole_archive_flag_spec_F77=
20731 fi
20732 supports_anon_versioning=no
20733 case `$LD -v 2>/dev/null` in
20734 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
20735 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
20736 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
20737 *\ 2.11.*) ;; # other 2.11 versions
20738 *) supports_anon_versioning=yes ;;
20739 esac
20740
John Criswell47fdd832003-07-14 16:52:07 +000020741 # See if GNU ld supports shared libraries.
20742 case $host_os in
20743 aix3* | aix4* | aix5*)
20744 # On AIX/PPC, the GNU linker is very broken
20745 if test "$host_cpu" != ia64; then
20746 ld_shlibs_F77=no
20747 cat <<EOF 1>&2
20748
20749*** Warning: the GNU linker, at least up to release 2.9.1, is reported
20750*** to be unable to reliably create shared libraries on AIX.
20751*** Therefore, libtool is disabling shared libraries support. If you
20752*** really care for shared libraries, you may want to modify your PATH
20753*** so that a non-GNU linker is found, and then restart.
20754
20755EOF
20756 fi
20757 ;;
20758
20759 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000020760 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 +000020761 hardcode_libdir_flag_spec_F77='-L$libdir'
20762 hardcode_minus_L_F77=yes
20763
20764 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
20765 # that the semantics of dynamic libraries on AmigaOS, at least up
20766 # to version 4, is to share data among multiple programs linked
20767 # with the same dynamic library. Since this doesn't match the
20768 # behavior of shared libraries on other platforms, we can't use
20769 # them.
20770 ld_shlibs_F77=no
20771 ;;
20772
20773 beos*)
20774 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20775 allow_undefined_flag_F77=unsupported
20776 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
20777 # support --undefined. This deserves some investigation. FIXME
20778 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20779 else
20780 ld_shlibs_F77=no
20781 fi
20782 ;;
20783
20784 cygwin* | mingw* | pw32*)
20785 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
20786 # as there is no search path for DLLs.
20787 hardcode_libdir_flag_spec_F77='-L$libdir'
20788 allow_undefined_flag_F77=unsupported
20789 always_export_symbols_F77=no
20790 enable_shared_with_static_runtimes_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000020791 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 +000020792
20793 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000020794 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 +000020795 # If the export-symbols file already is a .def file (1st line
20796 # is EXPORTS), use it as is; otherwise, prepend...
20797 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
20798 cp $export_symbols $output_objdir/$soname.def;
20799 else
20800 echo EXPORTS > $output_objdir/$soname.def;
20801 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000020802 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000020803 $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 +000020804 else
Reid Spencera773bd52006-08-04 18:18:08 +000020805 ld_shlibs_F77=no
20806 fi
20807 ;;
20808
20809 interix3*)
20810 hardcode_direct_F77=no
20811 hardcode_shlibpath_var_F77=no
20812 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
20813 export_dynamic_flag_spec_F77='${wl}-E'
20814 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
20815 # Instead, shared libraries are loaded at an image base (0x10000000 by
20816 # default) and relocated if they conflict, which is a slow very memory
20817 # consuming and fragmenting process. To avoid this, we pick a random,
20818 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
20819 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
20820 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'
20821 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'
20822 ;;
20823
20824 linux*)
20825 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20826 tmp_addflag=
20827 case $cc_basename,$host_cpu in
20828 pgcc*) # Portland Group C compiler
20829 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'
20830 tmp_addflag=' $pic_flag'
20831 ;;
20832 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
20833 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'
20834 tmp_addflag=' $pic_flag -Mnomain' ;;
20835 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
20836 tmp_addflag=' -i_dynamic' ;;
20837 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
20838 tmp_addflag=' -i_dynamic -nofor_main' ;;
20839 ifc* | ifort*) # Intel Fortran compiler
20840 tmp_addflag=' -nofor_main' ;;
20841 esac
20842 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20843
20844 if test $supports_anon_versioning = yes; then
20845 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
20846 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
20847 $echo "local: *; };" >> $output_objdir/$libname.ver~
20848 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
20849 fi
20850 else
20851 ld_shlibs_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000020852 fi
20853 ;;
20854
20855 netbsd*)
20856 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20857 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
20858 wlarc=
20859 else
20860 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20861 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
20862 fi
20863 ;;
20864
Reid Spencera773bd52006-08-04 18:18:08 +000020865 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000020866 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
20867 ld_shlibs_F77=no
20868 cat <<EOF 1>&2
20869
20870*** Warning: The releases 2.8.* of the GNU linker cannot reliably
20871*** create shared libraries on Solaris systems. Therefore, libtool
20872*** is disabling shared libraries support. We urge you to upgrade GNU
20873*** binutils to release 2.9.1 or newer. Another option is to modify
20874*** your PATH or compiler configuration so that the native linker is
20875*** used, and then restart.
20876
20877EOF
20878 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20879 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20880 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
20881 else
20882 ld_shlibs_F77=no
20883 fi
20884 ;;
20885
Reid Spencera773bd52006-08-04 18:18:08 +000020886 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
20887 case `$LD -v 2>&1` in
20888 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
20889 ld_shlibs_F77=no
20890 cat <<_LT_EOF 1>&2
20891
20892*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
20893*** reliably create shared libraries on SCO systems. Therefore, libtool
20894*** is disabling shared libraries support. We urge you to upgrade GNU
20895*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
20896*** your PATH or compiler configuration so that the native linker is
20897*** used, and then restart.
20898
20899_LT_EOF
20900 ;;
20901 *)
20902 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20903 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
20904 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
20905 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
20906 else
20907 ld_shlibs_F77=no
20908 fi
20909 ;;
20910 esac
20911 ;;
20912
John Criswell47fdd832003-07-14 16:52:07 +000020913 sunos4*)
20914 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
20915 wlarc=
20916 hardcode_direct_F77=yes
20917 hardcode_shlibpath_var_F77=no
20918 ;;
20919
20920 *)
20921 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20922 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20923 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
20924 else
20925 ld_shlibs_F77=no
20926 fi
20927 ;;
20928 esac
20929
Reid Spencera773bd52006-08-04 18:18:08 +000020930 if test "$ld_shlibs_F77" = no; then
20931 runpath_var=
20932 hardcode_libdir_flag_spec_F77=
20933 export_dynamic_flag_spec_F77=
20934 whole_archive_flag_spec_F77=
John Criswell47fdd832003-07-14 16:52:07 +000020935 fi
20936 else
20937 # PORTME fill in a description of your system's linker (not GNU ld)
20938 case $host_os in
20939 aix3*)
20940 allow_undefined_flag_F77=unsupported
20941 always_export_symbols_F77=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000020942 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 +000020943 # Note: this linker hardcodes the directories in LIBPATH if there
20944 # are no directories specified by -L.
20945 hardcode_minus_L_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000020946 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000020947 # Neither direct hardcoding nor static linking is supported with a
20948 # broken collect2.
20949 hardcode_direct_F77=unsupported
20950 fi
20951 ;;
20952
20953 aix4* | aix5*)
20954 if test "$host_cpu" = ia64; then
20955 # On IA64, the linker does run time linking by default, so we don't
20956 # have to do anything special.
20957 aix_use_runtimelinking=no
20958 exp_sym_flag='-Bexport'
20959 no_entry_flag=""
20960 else
20961 # If we're using GNU nm, then we don't want the "-C" option.
20962 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20963 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
20964 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'
20965 else
20966 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'
20967 fi
20968 aix_use_runtimelinking=no
20969
20970 # Test if we are trying to use run time linking or normal
20971 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
20972 # need to do runtime linking.
20973 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
20974 for ld_flag in $LDFLAGS; do
20975 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
20976 aix_use_runtimelinking=yes
20977 break
20978 fi
20979 done
Reid Spencera773bd52006-08-04 18:18:08 +000020980 ;;
John Criswell47fdd832003-07-14 16:52:07 +000020981 esac
20982
20983 exp_sym_flag='-bexport'
20984 no_entry_flag='-bnoentry'
20985 fi
20986
20987 # When large executables or shared objects are built, AIX ld can
20988 # have problems creating the table of contents. If linking a library
20989 # or program results in "error TOC overflow" add -mminimal-toc to
20990 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
20991 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
20992
20993 archive_cmds_F77=''
20994 hardcode_direct_F77=yes
20995 hardcode_libdir_separator_F77=':'
20996 link_all_deplibs_F77=yes
20997
20998 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000020999 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000021000 # We only want to do this on AIX 4.2 and lower, the check
21001 # below for broken collect2 doesn't work under 4.3+
21002 collect2name=`${CC} -print-prog-name=collect2`
21003 if test -f "$collect2name" && \
21004 strings "$collect2name" | grep resolve_lib_name >/dev/null
21005 then
21006 # We have reworked collect2
21007 hardcode_direct_F77=yes
21008 else
21009 # We have old collect2
21010 hardcode_direct_F77=unsupported
21011 # It fails to find uninstalled libraries when the uninstalled
21012 # path is not listed in the libpath. Setting hardcode_minus_L
21013 # to unsupported forces relinking
21014 hardcode_minus_L_F77=yes
21015 hardcode_libdir_flag_spec_F77='-L$libdir'
21016 hardcode_libdir_separator_F77=
21017 fi
Reid Spencera773bd52006-08-04 18:18:08 +000021018 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021019 esac
21020 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000021021 if test "$aix_use_runtimelinking" = yes; then
21022 shared_flag="$shared_flag "'${wl}-G'
21023 fi
John Criswell47fdd832003-07-14 16:52:07 +000021024 else
21025 # not using gcc
21026 if test "$host_cpu" = ia64; then
21027 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21028 # chokes on -Wl,-G. The following line is correct:
21029 shared_flag='-G'
21030 else
Reid Spencera773bd52006-08-04 18:18:08 +000021031 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000021032 shared_flag='${wl}-G'
21033 else
21034 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000021035 fi
John Criswell47fdd832003-07-14 16:52:07 +000021036 fi
21037 fi
21038
21039 # It seems that -bexpall does not export symbols beginning with
21040 # underscore (_), so it is better to generate a list of symbols to export.
21041 always_export_symbols_F77=yes
21042 if test "$aix_use_runtimelinking" = yes; then
21043 # Warning - without using the other runtime loading flags (-brtl),
21044 # -berok will link without error, but may produce a broken library.
21045 allow_undefined_flag_F77='-berok'
21046 # Determine the default libpath from the value encoded in an empty executable.
21047 cat >conftest.$ac_ext <<_ACEOF
21048 program main
21049
21050 end
21051_ACEOF
21052rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000021053if { (ac_try="$ac_link"
21054case "(($ac_try" in
21055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21056 *) ac_try_echo=$ac_try;;
21057esac
21058eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21059 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000021060 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021061 grep -v '^ *+' conftest.er1 >conftest.err
21062 rm -f conftest.er1
21063 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000021064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Torok Edwincc499a42008-10-22 09:56:27 +000021065 (exit $ac_status); } && {
21066 test -z "$ac_f77_werror_flag" ||
21067 test ! -s conftest.err
21068 } && test -s conftest$ac_exeext &&
21069 $as_test_x conftest$ac_exeext; then
John Criswell47fdd832003-07-14 16:52:07 +000021070
21071aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21072}'`
21073# Check for a 64-bit object if we didn't find anything.
21074if 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; }
21075}'`; fi
21076else
21077 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021078sed 's/^/| /' conftest.$ac_ext >&5
21079
Reid Spencera773bd52006-08-04 18:18:08 +000021080
John Criswell47fdd832003-07-14 16:52:07 +000021081fi
Reid Spencera773bd52006-08-04 18:18:08 +000021082
Torok Edwincc499a42008-10-22 09:56:27 +000021083rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer2706f8c2004-09-19 23:53:36 +000021084 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000021085if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21086
21087 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000021088 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 +000021089 else
21090 if test "$host_cpu" = ia64; then
21091 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
21092 allow_undefined_flag_F77="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000021093 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 +000021094 else
21095 # Determine the default libpath from the value encoded in an empty executable.
21096 cat >conftest.$ac_ext <<_ACEOF
21097 program main
21098
21099 end
21100_ACEOF
21101rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000021102if { (ac_try="$ac_link"
21103case "(($ac_try" in
21104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21105 *) ac_try_echo=$ac_try;;
21106esac
21107eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21108 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000021109 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021110 grep -v '^ *+' conftest.er1 >conftest.err
21111 rm -f conftest.er1
21112 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000021113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Torok Edwincc499a42008-10-22 09:56:27 +000021114 (exit $ac_status); } && {
21115 test -z "$ac_f77_werror_flag" ||
21116 test ! -s conftest.err
21117 } && test -s conftest$ac_exeext &&
21118 $as_test_x conftest$ac_exeext; then
John Criswell47fdd832003-07-14 16:52:07 +000021119
21120aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21121}'`
21122# Check for a 64-bit object if we didn't find anything.
21123if 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; }
21124}'`; fi
21125else
21126 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021127sed 's/^/| /' conftest.$ac_ext >&5
21128
Reid Spencera773bd52006-08-04 18:18:08 +000021129
John Criswell47fdd832003-07-14 16:52:07 +000021130fi
Reid Spencera773bd52006-08-04 18:18:08 +000021131
Torok Edwincc499a42008-10-22 09:56:27 +000021132rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer2706f8c2004-09-19 23:53:36 +000021133 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000021134if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21135
21136 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
21137 # Warning - without using the other run time loading flags,
21138 # -berok will link without error, but may produce a broken library.
21139 no_undefined_flag_F77=' ${wl}-bernotok'
21140 allow_undefined_flag_F77=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000021141 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000021142 whole_archive_flag_spec_F77='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000021143 archive_cmds_need_lc_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000021144 # This is similar to how AIX traditionally builds its shared libraries.
21145 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 +000021146 fi
21147 fi
21148 ;;
21149
21150 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000021151 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 +000021152 hardcode_libdir_flag_spec_F77='-L$libdir'
21153 hardcode_minus_L_F77=yes
21154 # see comment about different semantics on the GNU ld section
21155 ld_shlibs_F77=no
21156 ;;
21157
Reid Spencer2706f8c2004-09-19 23:53:36 +000021158 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000021159 export_dynamic_flag_spec_F77=-rdynamic
21160 ;;
21161
21162 cygwin* | mingw* | pw32*)
21163 # When not using gcc, we currently assume that we are using
21164 # Microsoft Visual C++.
21165 # hardcode_libdir_flag_spec is actually meaningless, as there is
21166 # no search path for DLLs.
21167 hardcode_libdir_flag_spec_F77=' '
21168 allow_undefined_flag_F77=unsupported
21169 # Tell ltmain to make .lib files, not .a files.
21170 libext=lib
21171 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021172 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000021173 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000021174 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 +000021175 # The linker will automatically build a .lib file if we build a DLL.
21176 old_archive_From_new_cmds_F77='true'
21177 # FIXME: Should let the user specify the lib program.
21178 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
Reid Spencera773bd52006-08-04 18:18:08 +000021179 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
John Criswell47fdd832003-07-14 16:52:07 +000021180 enable_shared_with_static_runtimes_F77=yes
21181 ;;
21182
21183 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000021184 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021185 rhapsody* | darwin1.[012])
21186 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
21187 ;;
21188 *) # Darwin 1.3 on
21189 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
21190 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21191 else
21192 case ${MACOSX_DEPLOYMENT_TARGET} in
21193 10.[012])
21194 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21195 ;;
21196 10.*)
21197 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
21198 ;;
21199 esac
21200 fi
21201 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021202 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000021203 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000021204 hardcode_direct_F77=no
21205 hardcode_automatic_F77=yes
21206 hardcode_shlibpath_var_F77=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000021207 whole_archive_flag_spec_F77=''
John Criswell47fdd832003-07-14 16:52:07 +000021208 link_all_deplibs_F77=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000021209 if test "$GCC" = yes ; then
21210 output_verbose_link_cmd='echo'
21211 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
21212 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000021213 # 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 +000021214 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}'
21215 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 +000021216 else
Reid Spencera773bd52006-08-04 18:18:08 +000021217 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021218 xlc*)
21219 output_verbose_link_cmd='echo'
21220 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
21221 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000021222 # 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 +000021223 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}'
21224 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 +000021225 ;;
21226 *)
21227 ld_shlibs_F77=no
21228 ;;
21229 esac
John Criswell47fdd832003-07-14 16:52:07 +000021230 fi
21231 ;;
21232
21233 dgux*)
21234 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21235 hardcode_libdir_flag_spec_F77='-L$libdir'
21236 hardcode_shlibpath_var_F77=no
21237 ;;
21238
21239 freebsd1*)
21240 ld_shlibs_F77=no
21241 ;;
21242
21243 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
21244 # support. Future versions do this automatically, but an explicit c++rt0.o
21245 # does not break anything, and helps significantly (at the cost of a little
21246 # extra space).
21247 freebsd2.2*)
21248 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
21249 hardcode_libdir_flag_spec_F77='-R$libdir'
21250 hardcode_direct_F77=yes
21251 hardcode_shlibpath_var_F77=no
21252 ;;
21253
21254 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
21255 freebsd2*)
21256 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21257 hardcode_direct_F77=yes
21258 hardcode_minus_L_F77=yes
21259 hardcode_shlibpath_var_F77=no
21260 ;;
21261
21262 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000021263 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000021264 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
21265 hardcode_libdir_flag_spec_F77='-R$libdir'
21266 hardcode_direct_F77=yes
21267 hardcode_shlibpath_var_F77=no
21268 ;;
21269
21270 hpux9*)
21271 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000021272 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 +000021273 else
Reid Spencer177dbe22004-10-13 01:01:03 +000021274 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 +000021275 fi
21276 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
21277 hardcode_libdir_separator_F77=:
21278 hardcode_direct_F77=yes
21279
21280 # hardcode_minus_L: Not really in the search PATH,
21281 # but as the default location of the library.
21282 hardcode_minus_L_F77=yes
21283 export_dynamic_flag_spec_F77='${wl}-E'
21284 ;;
21285
Reid Spencera773bd52006-08-04 18:18:08 +000021286 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000021287 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000021288 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21289 else
21290 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
21291 fi
21292 if test "$with_gnu_ld" = no; then
21293 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
21294 hardcode_libdir_separator_F77=:
21295
21296 hardcode_direct_F77=yes
21297 export_dynamic_flag_spec_F77='${wl}-E'
21298
21299 # hardcode_minus_L: Not really in the search PATH,
21300 # but as the default location of the library.
21301 hardcode_minus_L_F77=yes
21302 fi
21303 ;;
21304
21305 hpux11*)
21306 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
21307 case $host_cpu in
21308 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000021309 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21310 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021311 ia64*)
21312 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
21313 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021314 *)
21315 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21316 ;;
21317 esac
21318 else
Reid Spencera773bd52006-08-04 18:18:08 +000021319 case $host_cpu in
21320 hppa*64*)
21321 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21322 ;;
21323 ia64*)
21324 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000021325 ;;
21326 *)
Reid Spencera773bd52006-08-04 18:18:08 +000021327 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 +000021328 ;;
21329 esac
21330 fi
21331 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000021332 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
21333 hardcode_libdir_separator_F77=:
John Criswell47fdd832003-07-14 16:52:07 +000021334
Reid Spencera773bd52006-08-04 18:18:08 +000021335 case $host_cpu in
21336 hppa*64*|ia64*)
21337 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
21338 hardcode_direct_F77=no
21339 hardcode_shlibpath_var_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000021340 ;;
21341 *)
John Criswell47fdd832003-07-14 16:52:07 +000021342 hardcode_direct_F77=yes
21343 export_dynamic_flag_spec_F77='${wl}-E'
21344
21345 # hardcode_minus_L: Not really in the search PATH,
21346 # but as the default location of the library.
21347 hardcode_minus_L_F77=yes
21348 ;;
21349 esac
21350 fi
21351 ;;
21352
21353 irix5* | irix6* | nonstopux*)
21354 if test "$GCC" = yes; then
21355 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'
21356 else
21357 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'
21358 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
21359 fi
21360 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
21361 hardcode_libdir_separator_F77=:
21362 link_all_deplibs_F77=yes
21363 ;;
21364
21365 netbsd*)
21366 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21367 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
21368 else
21369 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
21370 fi
21371 hardcode_libdir_flag_spec_F77='-R$libdir'
21372 hardcode_direct_F77=yes
21373 hardcode_shlibpath_var_F77=no
21374 ;;
21375
21376 newsos6)
21377 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21378 hardcode_direct_F77=yes
21379 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
21380 hardcode_libdir_separator_F77=:
21381 hardcode_shlibpath_var_F77=no
21382 ;;
21383
21384 openbsd*)
21385 hardcode_direct_F77=yes
21386 hardcode_shlibpath_var_F77=no
21387 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21388 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000021389 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 +000021390 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21391 export_dynamic_flag_spec_F77='${wl}-E'
21392 else
21393 case $host_os in
21394 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
21395 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21396 hardcode_libdir_flag_spec_F77='-R$libdir'
21397 ;;
21398 *)
21399 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
21400 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21401 ;;
21402 esac
21403 fi
21404 ;;
21405
21406 os2*)
21407 hardcode_libdir_flag_spec_F77='-L$libdir'
21408 hardcode_minus_L_F77=yes
21409 allow_undefined_flag_F77=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000021410 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 +000021411 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
21412 ;;
21413
21414 osf3*)
21415 if test "$GCC" = yes; then
21416 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
21417 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'
21418 else
21419 allow_undefined_flag_F77=' -expect_unresolved \*'
21420 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'
21421 fi
21422 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
21423 hardcode_libdir_separator_F77=:
21424 ;;
21425
21426 osf4* | osf5*) # as osf3* with the addition of -msym flag
21427 if test "$GCC" = yes; then
21428 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
21429 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'
21430 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
21431 else
21432 allow_undefined_flag_F77=' -expect_unresolved \*'
21433 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 +000021434 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 +000021435 $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 +000021436
John Criswell47fdd832003-07-14 16:52:07 +000021437 # Both c and cxx compiler support -rpath directly
21438 hardcode_libdir_flag_spec_F77='-rpath $libdir'
21439 fi
21440 hardcode_libdir_separator_F77=:
21441 ;;
21442
John Criswell47fdd832003-07-14 16:52:07 +000021443 solaris*)
21444 no_undefined_flag_F77=' -z text'
21445 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000021446 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000021447 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000021448 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
21449 $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 +000021450 else
Reid Spencera773bd52006-08-04 18:18:08 +000021451 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000021452 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000021453 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
21454 $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 +000021455 fi
21456 hardcode_libdir_flag_spec_F77='-R$libdir'
21457 hardcode_shlibpath_var_F77=no
21458 case $host_os in
21459 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021460 *)
21461 # The compiler driver will combine linker options so we
21462 # cannot just pass the convience library names through
21463 # without $wl, iff we do not link with $LD.
21464 # Luckily, gcc supports the same syntax we need for Sun Studio.
21465 # Supported since Solaris 2.6 (maybe 2.5.1?)
21466 case $wlarc in
21467 '')
21468 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
21469 *)
21470 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' ;;
21471 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000021472 esac
21473 link_all_deplibs_F77=yes
21474 ;;
21475
21476 sunos4*)
21477 if test "x$host_vendor" = xsequent; then
21478 # Use $CC to link under sequent, because it throws in some extra .o
21479 # files that make .init and .fini sections work.
21480 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
21481 else
21482 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
21483 fi
21484 hardcode_libdir_flag_spec_F77='-L$libdir'
21485 hardcode_direct_F77=yes
21486 hardcode_minus_L_F77=yes
21487 hardcode_shlibpath_var_F77=no
21488 ;;
21489
21490 sysv4)
21491 case $host_vendor in
21492 sni)
21493 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21494 hardcode_direct_F77=yes # is this really true???
21495 ;;
21496 siemens)
21497 ## LD is ld it makes a PLAMLIB
21498 ## CC just makes a GrossModule.
21499 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
21500 reload_cmds_F77='$CC -r -o $output$reload_objs'
21501 hardcode_direct_F77=no
21502 ;;
21503 motorola)
21504 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21505 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
21506 ;;
21507 esac
21508 runpath_var='LD_RUN_PATH'
21509 hardcode_shlibpath_var_F77=no
21510 ;;
21511
21512 sysv4.3*)
21513 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21514 hardcode_shlibpath_var_F77=no
21515 export_dynamic_flag_spec_F77='-Bexport'
21516 ;;
21517
21518 sysv4*MP*)
21519 if test -d /usr/nec; then
21520 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21521 hardcode_shlibpath_var_F77=no
21522 runpath_var=LD_RUN_PATH
21523 hardcode_runpath_var=yes
21524 ld_shlibs_F77=yes
21525 fi
21526 ;;
21527
Reid Spencera773bd52006-08-04 18:18:08 +000021528 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
21529 no_undefined_flag_F77='${wl}-z,text'
21530 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000021531 hardcode_shlibpath_var_F77=no
Reid Spencera773bd52006-08-04 18:18:08 +000021532 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000021533
John Criswell47fdd832003-07-14 16:52:07 +000021534 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000021535 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21536 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 +000021537 else
Reid Spencera773bd52006-08-04 18:18:08 +000021538 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21539 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 +000021540 fi
John Criswell47fdd832003-07-14 16:52:07 +000021541 ;;
21542
Reid Spencera773bd52006-08-04 18:18:08 +000021543 sysv5* | sco3.2v5* | sco5v6*)
21544 # Note: We can NOT use -z defs as we might desire, because we do not
21545 # link with -lc, and that would cause any symbols used from libc to
21546 # always be unresolved, which means just about no library would
21547 # ever link correctly. If we're not using GNU ld we use -z text
21548 # though, which does catch some bad symbols but isn't as heavy-handed
21549 # as -z defs.
21550 no_undefined_flag_F77='${wl}-z,text'
21551 allow_undefined_flag_F77='${wl}-z,nodefs'
21552 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000021553 hardcode_shlibpath_var_F77=no
Reid Spencera773bd52006-08-04 18:18:08 +000021554 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
21555 hardcode_libdir_separator_F77=':'
21556 link_all_deplibs_F77=yes
21557 export_dynamic_flag_spec_F77='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000021558 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000021559
21560 if test "$GCC" = yes; then
21561 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
21562 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
21563 else
21564 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
21565 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
21566 fi
John Criswell47fdd832003-07-14 16:52:07 +000021567 ;;
21568
21569 uts4*)
21570 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21571 hardcode_libdir_flag_spec_F77='-L$libdir'
21572 hardcode_shlibpath_var_F77=no
21573 ;;
21574
21575 *)
21576 ld_shlibs_F77=no
21577 ;;
21578 esac
21579 fi
21580
Reid Spencera773bd52006-08-04 18:18:08 +000021581{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
21582echo "${ECHO_T}$ld_shlibs_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021583test "$ld_shlibs_F77" = no && can_build_shared=no
21584
John Criswell47fdd832003-07-14 16:52:07 +000021585#
21586# Do we need to explicitly link libc?
21587#
21588case "x$archive_cmds_need_lc_F77" in
21589x|xyes)
21590 # Assume -lc should be added
21591 archive_cmds_need_lc_F77=yes
21592
21593 if test "$enable_shared" = yes && test "$GCC" = yes; then
21594 case $archive_cmds_F77 in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021595 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000021596 # FIXME: we may have to deal with multi-command sequences.
21597 ;;
21598 '$CC '*)
21599 # Test whether the compiler implicitly links with -lc since on some
21600 # systems, -lgcc has to come before -lc. If gcc already passes -lc
21601 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000021602 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
21603echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021604 $rm conftest*
21605 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21606
21607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21608 (eval $ac_compile) 2>&5
21609 ac_status=$?
21610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21611 (exit $ac_status); } 2>conftest.err; then
21612 soname=conftest
21613 lib=conftest
21614 libobjs=conftest.$ac_objext
21615 deplibs=
21616 wl=$lt_prog_compiler_wl_F77
Reid Spencera773bd52006-08-04 18:18:08 +000021617 pic_flag=$lt_prog_compiler_pic_F77
John Criswell47fdd832003-07-14 16:52:07 +000021618 compiler_flags=-v
21619 linker_flags=-v
21620 verstring=
21621 output_objdir=.
21622 libname=conftest
21623 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
21624 allow_undefined_flag_F77=
21625 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
21626 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
21627 ac_status=$?
21628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21629 (exit $ac_status); }
21630 then
21631 archive_cmds_need_lc_F77=no
21632 else
21633 archive_cmds_need_lc_F77=yes
21634 fi
21635 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
21636 else
21637 cat conftest.err 1>&5
21638 fi
21639 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000021640 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
21641echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021642 ;;
21643 esac
21644 fi
21645 ;;
21646esac
21647
Reid Spencera773bd52006-08-04 18:18:08 +000021648{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
21649echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021650library_names_spec=
21651libname_spec='lib$name'
21652soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000021653shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000021654postinstall_cmds=
21655postuninstall_cmds=
21656finish_cmds=
21657finish_eval=
21658shlibpath_var=
21659shlibpath_overrides_runpath=unknown
21660version_type=none
21661dynamic_linker="$host_os ld.so"
21662sys_lib_dlsearch_path_spec="/lib /usr/lib"
21663if test "$GCC" = yes; then
21664 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
21665 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
21666 # if the path contains ";" then we assume it to be the separator
21667 # otherwise default to the standard path separator (i.e. ":") - it is
21668 # assumed that no part of a normal pathname contains ";" but that should
21669 # okay in the real world where ";" in dirpaths is itself problematic.
21670 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
21671 else
21672 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
21673 fi
21674else
21675 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
21676fi
21677need_lib_prefix=unknown
21678hardcode_into_libs=no
21679
21680# when you set need_version to no, make sure it does not cause -set_version
21681# flags to be left without arguments
21682need_version=unknown
21683
21684case $host_os in
21685aix3*)
21686 version_type=linux
21687 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
21688 shlibpath_var=LIBPATH
21689
21690 # AIX 3 has no versioning support, so we append a major version to the name.
21691 soname_spec='${libname}${release}${shared_ext}$major'
21692 ;;
21693
21694aix4* | aix5*)
21695 version_type=linux
21696 need_lib_prefix=no
21697 need_version=no
21698 hardcode_into_libs=yes
21699 if test "$host_cpu" = ia64; then
21700 # AIX 5 supports IA64
21701 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
21702 shlibpath_var=LD_LIBRARY_PATH
21703 else
21704 # With GCC up to 2.95.x, collect2 would create an import file
21705 # for dependence libraries. The import file would start with
21706 # the line `#! .'. This would cause the generated library to
21707 # depend on `.', always an invalid library. This was fixed in
21708 # development snapshots of GCC prior to 3.0.
21709 case $host_os in
21710 aix4 | aix4.[01] | aix4.[01].*)
21711 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
21712 echo ' yes '
21713 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
21714 :
21715 else
21716 can_build_shared=no
21717 fi
21718 ;;
21719 esac
21720 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
21721 # soname into executable. Probably we can add versioning support to
21722 # collect2, so additional links can be useful in future.
21723 if test "$aix_use_runtimelinking" = yes; then
21724 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
21725 # instead of lib<name>.a to let people know that these are not
21726 # typical AIX shared libraries.
21727 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21728 else
21729 # We preserve .a as extension for shared libraries through AIX4.2
21730 # and later when we are not doing run time linking.
21731 library_names_spec='${libname}${release}.a $libname.a'
21732 soname_spec='${libname}${release}${shared_ext}$major'
21733 fi
21734 shlibpath_var=LIBPATH
21735 fi
21736 ;;
21737
21738amigaos*)
21739 library_names_spec='$libname.ixlibrary $libname.a'
21740 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021741 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 +000021742 ;;
21743
21744beos*)
21745 library_names_spec='${libname}${shared_ext}'
21746 dynamic_linker="$host_os ld.so"
21747 shlibpath_var=LIBRARY_PATH
21748 ;;
21749
Reid Spencer2706f8c2004-09-19 23:53:36 +000021750bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000021751 version_type=linux
21752 need_version=no
21753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21754 soname_spec='${libname}${release}${shared_ext}$major'
21755 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
21756 shlibpath_var=LD_LIBRARY_PATH
21757 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
21758 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
21759 # the default ld.so.conf also contains /usr/contrib/lib and
21760 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
21761 # libtool to hard-code these into programs
21762 ;;
21763
21764cygwin* | mingw* | pw32*)
21765 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000021766 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000021767 need_version=no
21768 need_lib_prefix=no
21769
21770 case $GCC,$host_os in
21771 yes,cygwin* | yes,mingw* | yes,pw32*)
21772 library_names_spec='$libname.dll.a'
21773 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000021774 postinstall_cmds='base_file=`basename \${file}`~
21775 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
21776 dldir=$destdir/`dirname \$dlpath`~
21777 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000021778 $install_prog $dir/$dlname \$dldir/$dlname~
21779 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000021780 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
21781 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000021782 $rm \$dlpath'
21783 shlibpath_overrides_runpath=yes
21784
21785 case $host_os in
21786 cygwin*)
21787 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
21788 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 +000021789 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000021790 ;;
21791 mingw*)
21792 # MinGW DLLs use traditional 'lib' prefix
21793 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21794 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
21795 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
21796 # It is most probably a Windows format PATH printed by
21797 # mingw gcc, but we are running on Cygwin. Gcc prints its search
21798 # path with ; separators, and with drive letters. We can handle the
21799 # drive letters (cygwin fileutils understands them), so leave them,
21800 # especially as we might pass files found there to a mingw objdump,
21801 # which wouldn't understand a cygwinified path. Ahh.
21802 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
21803 else
21804 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
21805 fi
21806 ;;
21807 pw32*)
21808 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000021809 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 +000021810 ;;
21811 esac
21812 ;;
21813
21814 *)
21815 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
21816 ;;
21817 esac
21818 dynamic_linker='Win32 ld.exe'
21819 # FIXME: first we should search . and the directory the executable is in
21820 shlibpath_var=PATH
21821 ;;
21822
21823darwin* | rhapsody*)
21824 dynamic_linker="$host_os dyld"
21825 version_type=darwin
21826 need_lib_prefix=no
21827 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000021828 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000021829 soname_spec='${libname}${release}${major}$shared_ext'
21830 shlibpath_overrides_runpath=yes
21831 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000021832 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000021833 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021834 if test "$GCC" = yes; then
21835 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"`
21836 else
21837 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000021838 fi
21839 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
21840 ;;
21841
21842dgux*)
21843 version_type=linux
21844 need_lib_prefix=no
21845 need_version=no
21846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
21847 soname_spec='${libname}${release}${shared_ext}$major'
21848 shlibpath_var=LD_LIBRARY_PATH
21849 ;;
21850
21851freebsd1*)
21852 dynamic_linker=no
21853 ;;
21854
Reid Spencer2706f8c2004-09-19 23:53:36 +000021855kfreebsd*-gnu)
21856 version_type=linux
21857 need_lib_prefix=no
21858 need_version=no
21859 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21860 soname_spec='${libname}${release}${shared_ext}$major'
21861 shlibpath_var=LD_LIBRARY_PATH
21862 shlibpath_overrides_runpath=no
21863 hardcode_into_libs=yes
21864 dynamic_linker='GNU ld.so'
21865 ;;
21866
Reid Spencera773bd52006-08-04 18:18:08 +000021867freebsd* | dragonfly*)
21868 # DragonFly does not have aout. When/if they implement a new
21869 # versioning mechanism, adjust this.
21870 if test -x /usr/bin/objformat; then
21871 objformat=`/usr/bin/objformat`
21872 else
21873 case $host_os in
21874 freebsd[123]*) objformat=aout ;;
21875 *) objformat=elf ;;
21876 esac
21877 fi
John Criswell47fdd832003-07-14 16:52:07 +000021878 version_type=freebsd-$objformat
21879 case $version_type in
21880 freebsd-elf*)
21881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21882 need_version=no
21883 need_lib_prefix=no
21884 ;;
21885 freebsd-*)
21886 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
21887 need_version=yes
21888 ;;
21889 esac
21890 shlibpath_var=LD_LIBRARY_PATH
21891 case $host_os in
21892 freebsd2*)
21893 shlibpath_overrides_runpath=yes
21894 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021895 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000021896 shlibpath_overrides_runpath=yes
21897 hardcode_into_libs=yes
21898 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021899 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
21900 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000021901 shlibpath_overrides_runpath=no
21902 hardcode_into_libs=yes
21903 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021904 freebsd*) # from 4.6 on
21905 shlibpath_overrides_runpath=yes
21906 hardcode_into_libs=yes
21907 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021908 esac
21909 ;;
21910
21911gnu*)
21912 version_type=linux
21913 need_lib_prefix=no
21914 need_version=no
21915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21916 soname_spec='${libname}${release}${shared_ext}$major'
21917 shlibpath_var=LD_LIBRARY_PATH
21918 hardcode_into_libs=yes
21919 ;;
21920
21921hpux9* | hpux10* | hpux11*)
21922 # Give a soname corresponding to the major version so that dld.sl refuses to
21923 # link against other versions.
21924 version_type=sunos
21925 need_lib_prefix=no
21926 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000021927 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000021928 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000021929 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000021930 hardcode_into_libs=yes
21931 dynamic_linker="$host_os dld.so"
21932 shlibpath_var=LD_LIBRARY_PATH
21933 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21935 soname_spec='${libname}${release}${shared_ext}$major'
21936 if test "X$HPUX_IA64_MODE" = X32; then
21937 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
21938 else
21939 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
21940 fi
21941 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21942 ;;
21943 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000021944 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000021945 hardcode_into_libs=yes
21946 dynamic_linker="$host_os dld.sl"
21947 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
21948 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21950 soname_spec='${libname}${release}${shared_ext}$major'
21951 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21952 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21953 ;;
21954 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000021955 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000021956 dynamic_linker="$host_os dld.sl"
21957 shlibpath_var=SHLIB_PATH
21958 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
21959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21960 soname_spec='${libname}${release}${shared_ext}$major'
21961 ;;
21962 esac
21963 # HP-UX runs *really* slowly unless shared libraries are mode 555.
21964 postinstall_cmds='chmod 555 $lib'
21965 ;;
21966
Reid Spencera773bd52006-08-04 18:18:08 +000021967interix3*)
21968 version_type=linux
21969 need_lib_prefix=no
21970 need_version=no
21971 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21972 soname_spec='${libname}${release}${shared_ext}$major'
21973 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
21974 shlibpath_var=LD_LIBRARY_PATH
21975 shlibpath_overrides_runpath=no
21976 hardcode_into_libs=yes
21977 ;;
21978
John Criswell47fdd832003-07-14 16:52:07 +000021979irix5* | irix6* | nonstopux*)
21980 case $host_os in
21981 nonstopux*) version_type=nonstopux ;;
21982 *)
21983 if test "$lt_cv_prog_gnu_ld" = yes; then
21984 version_type=linux
21985 else
21986 version_type=irix
21987 fi ;;
21988 esac
21989 need_lib_prefix=no
21990 need_version=no
21991 soname_spec='${libname}${release}${shared_ext}$major'
21992 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21993 case $host_os in
21994 irix5* | nonstopux*)
21995 libsuff= shlibsuff=
21996 ;;
21997 *)
21998 case $LD in # libtool.m4 will add one of these switches to LD
21999 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22000 libsuff= shlibsuff= libmagic=32-bit;;
22001 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22002 libsuff=32 shlibsuff=N32 libmagic=N32;;
22003 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22004 libsuff=64 shlibsuff=64 libmagic=64-bit;;
22005 *) libsuff= shlibsuff= libmagic=never-match;;
22006 esac
22007 ;;
22008 esac
22009 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22010 shlibpath_overrides_runpath=no
22011 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22012 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22013 hardcode_into_libs=yes
22014 ;;
22015
22016# No shared lib support for Linux oldld, aout, or coff.
22017linux*oldld* | linux*aout* | linux*coff*)
22018 dynamic_linker=no
22019 ;;
22020
22021# This must be Linux ELF.
22022linux*)
22023 version_type=linux
22024 need_lib_prefix=no
22025 need_version=no
22026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22027 soname_spec='${libname}${release}${shared_ext}$major'
22028 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22029 shlibpath_var=LD_LIBRARY_PATH
22030 shlibpath_overrides_runpath=no
22031 # This implies no fast_install, which is unacceptable.
22032 # Some rework will be needed to allow for fast_install
22033 # before this can be enabled.
22034 hardcode_into_libs=yes
22035
Reid Spencer2706f8c2004-09-19 23:53:36 +000022036 # Append ld.so.conf contents to the search path
22037 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000022038 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 +000022039 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22040 fi
22041
John Criswell47fdd832003-07-14 16:52:07 +000022042 # We used to test for /lib/ld.so.1 and disable shared libraries on
22043 # powerpc, because MkLinux only supported shared libraries with the
22044 # GNU dynamic linker. Since this was broken with cross compilers,
22045 # most powerpc-linux boxes support dynamic linking these days and
22046 # people can always --disable-shared, the test was removed, and we
22047 # assume the GNU/Linux dynamic linker is in use.
22048 dynamic_linker='GNU/Linux ld.so'
22049 ;;
22050
Reid Spencer2706f8c2004-09-19 23:53:36 +000022051knetbsd*-gnu)
22052 version_type=linux
22053 need_lib_prefix=no
22054 need_version=no
22055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22056 soname_spec='${libname}${release}${shared_ext}$major'
22057 shlibpath_var=LD_LIBRARY_PATH
22058 shlibpath_overrides_runpath=no
22059 hardcode_into_libs=yes
22060 dynamic_linker='GNU ld.so'
22061 ;;
22062
John Criswell47fdd832003-07-14 16:52:07 +000022063netbsd*)
22064 version_type=sunos
22065 need_lib_prefix=no
22066 need_version=no
22067 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22069 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22070 dynamic_linker='NetBSD (a.out) ld.so'
22071 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000022072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000022073 soname_spec='${libname}${release}${shared_ext}$major'
22074 dynamic_linker='NetBSD ld.elf_so'
22075 fi
22076 shlibpath_var=LD_LIBRARY_PATH
22077 shlibpath_overrides_runpath=yes
22078 hardcode_into_libs=yes
22079 ;;
22080
22081newsos6)
22082 version_type=linux
22083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22084 shlibpath_var=LD_LIBRARY_PATH
22085 shlibpath_overrides_runpath=yes
22086 ;;
22087
Reid Spencer2706f8c2004-09-19 23:53:36 +000022088nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000022089 version_type=linux
22090 need_lib_prefix=no
22091 need_version=no
22092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22093 soname_spec='${libname}${release}${shared_ext}$major'
22094 shlibpath_var=LD_LIBRARY_PATH
22095 shlibpath_overrides_runpath=yes
22096 ;;
22097
22098openbsd*)
22099 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000022100 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000022101 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000022102 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
22103 case $host_os in
22104 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
22105 *) need_version=no ;;
22106 esac
John Criswell47fdd832003-07-14 16:52:07 +000022107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22108 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22109 shlibpath_var=LD_LIBRARY_PATH
22110 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22111 case $host_os in
22112 openbsd2.[89] | openbsd2.[89].*)
22113 shlibpath_overrides_runpath=no
22114 ;;
22115 *)
22116 shlibpath_overrides_runpath=yes
22117 ;;
22118 esac
22119 else
22120 shlibpath_overrides_runpath=yes
22121 fi
22122 ;;
22123
22124os2*)
22125 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000022126 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000022127 need_lib_prefix=no
22128 library_names_spec='$libname${shared_ext} $libname.a'
22129 dynamic_linker='OS/2 ld.exe'
22130 shlibpath_var=LIBPATH
22131 ;;
22132
22133osf3* | osf4* | osf5*)
22134 version_type=osf
22135 need_lib_prefix=no
22136 need_version=no
22137 soname_spec='${libname}${release}${shared_ext}$major'
22138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22139 shlibpath_var=LD_LIBRARY_PATH
22140 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22141 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22142 ;;
22143
John Criswell47fdd832003-07-14 16:52:07 +000022144solaris*)
22145 version_type=linux
22146 need_lib_prefix=no
22147 need_version=no
22148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22149 soname_spec='${libname}${release}${shared_ext}$major'
22150 shlibpath_var=LD_LIBRARY_PATH
22151 shlibpath_overrides_runpath=yes
22152 hardcode_into_libs=yes
22153 # ldd complains unless libraries are executable
22154 postinstall_cmds='chmod +x $lib'
22155 ;;
22156
22157sunos4*)
22158 version_type=sunos
22159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22160 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22161 shlibpath_var=LD_LIBRARY_PATH
22162 shlibpath_overrides_runpath=yes
22163 if test "$with_gnu_ld" = yes; then
22164 need_lib_prefix=no
22165 fi
22166 need_version=yes
22167 ;;
22168
Reid Spencera773bd52006-08-04 18:18:08 +000022169sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000022170 version_type=linux
22171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22172 soname_spec='${libname}${release}${shared_ext}$major'
22173 shlibpath_var=LD_LIBRARY_PATH
22174 case $host_vendor in
22175 sni)
22176 shlibpath_overrides_runpath=no
22177 need_lib_prefix=no
22178 export_dynamic_flag_spec='${wl}-Blargedynsym'
22179 runpath_var=LD_RUN_PATH
22180 ;;
22181 siemens)
22182 need_lib_prefix=no
22183 ;;
22184 motorola)
22185 need_lib_prefix=no
22186 need_version=no
22187 shlibpath_overrides_runpath=no
22188 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
22189 ;;
22190 esac
22191 ;;
22192
22193sysv4*MP*)
22194 if test -d /usr/nec ;then
22195 version_type=linux
22196 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22197 soname_spec='$libname${shared_ext}.$major'
22198 shlibpath_var=LD_LIBRARY_PATH
22199 fi
22200 ;;
22201
Reid Spencera773bd52006-08-04 18:18:08 +000022202sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
22203 version_type=freebsd-elf
22204 need_lib_prefix=no
22205 need_version=no
22206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22207 soname_spec='${libname}${release}${shared_ext}$major'
22208 shlibpath_var=LD_LIBRARY_PATH
22209 hardcode_into_libs=yes
22210 if test "$with_gnu_ld" = yes; then
22211 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
22212 shlibpath_overrides_runpath=no
22213 else
22214 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
22215 shlibpath_overrides_runpath=yes
22216 case $host_os in
22217 sco3.2v5*)
22218 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
22219 ;;
22220 esac
22221 fi
22222 sys_lib_dlsearch_path_spec='/usr/lib'
22223 ;;
22224
John Criswell47fdd832003-07-14 16:52:07 +000022225uts4*)
22226 version_type=linux
22227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22228 soname_spec='${libname}${release}${shared_ext}$major'
22229 shlibpath_var=LD_LIBRARY_PATH
22230 ;;
22231
22232*)
22233 dynamic_linker=no
22234 ;;
22235esac
Reid Spencera773bd52006-08-04 18:18:08 +000022236{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
22237echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022238test "$dynamic_linker" = no && can_build_shared=no
22239
Reid Spencera773bd52006-08-04 18:18:08 +000022240variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22241if test "$GCC" = yes; then
22242 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22243fi
22244
22245{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
22246echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000022247hardcode_action_F77=
22248if test -n "$hardcode_libdir_flag_spec_F77" || \
22249 test -n "$runpath_var_F77" || \
22250 test "X$hardcode_automatic_F77" = "Xyes" ; then
22251
22252 # We can hardcode non-existant directories.
22253 if test "$hardcode_direct_F77" != no &&
22254 # If the only mechanism to avoid hardcoding is shlibpath_var, we
22255 # have to relink, otherwise we might link with an installed library
22256 # when we should be linking with a yet-to-be-installed one
22257 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
22258 test "$hardcode_minus_L_F77" != no; then
22259 # Linking always hardcodes the temporary library directory.
22260 hardcode_action_F77=relink
22261 else
22262 # We can link without hardcoding, and we can hardcode nonexisting dirs.
22263 hardcode_action_F77=immediate
22264 fi
22265else
22266 # We cannot hardcode anything, or else we can only hardcode existing
22267 # directories.
22268 hardcode_action_F77=unsupported
22269fi
Reid Spencera773bd52006-08-04 18:18:08 +000022270{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
22271echo "${ECHO_T}$hardcode_action_F77" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000022272
22273if test "$hardcode_action_F77" = relink; then
22274 # Fast installation is not supported
22275 enable_fast_install=no
22276elif test "$shlibpath_overrides_runpath" = yes ||
22277 test "$enable_shared" = no; then
22278 # Fast installation is not necessary
22279 enable_fast_install=needless
22280fi
22281
John Criswell47fdd832003-07-14 16:52:07 +000022282
22283# The else clause should only fire when bootstrapping the
22284# libtool distribution, otherwise you forgot to ship ltmain.sh
22285# with your package, and you will get complaints that there are
22286# no rules to generate ltmain.sh.
22287if test -f "$ltmain"; then
22288 # See if we are running on zsh, and set the options which allow our commands through
22289 # without removal of \ escapes.
22290 if test -n "${ZSH_VERSION+set}" ; then
22291 setopt NO_GLOB_SUBST
22292 fi
22293 # Now quote all the things that may contain metacharacters while being
22294 # careful not to overquote the AC_SUBSTed values. We take copies of the
22295 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000022296 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 +000022297 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000022298 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
22299 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
22300 deplibs_check_method reload_flag reload_cmds need_locks \
22301 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
22302 lt_cv_sys_global_symbol_to_c_name_address \
22303 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
22304 old_postinstall_cmds old_postuninstall_cmds \
22305 compiler_F77 \
22306 CC_F77 \
22307 LD_F77 \
22308 lt_prog_compiler_wl_F77 \
22309 lt_prog_compiler_pic_F77 \
22310 lt_prog_compiler_static_F77 \
22311 lt_prog_compiler_no_builtin_flag_F77 \
22312 export_dynamic_flag_spec_F77 \
22313 thread_safe_flag_spec_F77 \
22314 whole_archive_flag_spec_F77 \
22315 enable_shared_with_static_runtimes_F77 \
22316 old_archive_cmds_F77 \
22317 old_archive_from_new_cmds_F77 \
22318 predep_objects_F77 \
22319 postdep_objects_F77 \
22320 predeps_F77 \
22321 postdeps_F77 \
22322 compiler_lib_search_path_F77 \
22323 archive_cmds_F77 \
22324 archive_expsym_cmds_F77 \
22325 postinstall_cmds_F77 \
22326 postuninstall_cmds_F77 \
22327 old_archive_from_expsyms_cmds_F77 \
22328 allow_undefined_flag_F77 \
22329 no_undefined_flag_F77 \
22330 export_symbols_cmds_F77 \
22331 hardcode_libdir_flag_spec_F77 \
22332 hardcode_libdir_flag_spec_ld_F77 \
22333 hardcode_libdir_separator_F77 \
22334 hardcode_automatic_F77 \
22335 module_cmds_F77 \
22336 module_expsym_cmds_F77 \
22337 lt_cv_prog_compiler_c_o_F77 \
22338 exclude_expsyms_F77 \
22339 include_expsyms_F77; do
22340
22341 case $var in
22342 old_archive_cmds_F77 | \
22343 old_archive_from_new_cmds_F77 | \
22344 archive_cmds_F77 | \
22345 archive_expsym_cmds_F77 | \
22346 module_cmds_F77 | \
22347 module_expsym_cmds_F77 | \
22348 old_archive_from_expsyms_cmds_F77 | \
22349 export_symbols_cmds_F77 | \
22350 extract_expsyms_cmds | reload_cmds | finish_cmds | \
22351 postinstall_cmds | postuninstall_cmds | \
22352 old_postinstall_cmds | old_postuninstall_cmds | \
22353 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
22354 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022355 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 +000022356 ;;
22357 *)
22358 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
22359 ;;
22360 esac
22361 done
22362
22363 case $lt_echo in
22364 *'\$0 --fallback-echo"')
22365 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
22366 ;;
22367 esac
22368
22369cfgfile="$ofile"
22370
22371 cat <<__EOF__ >> "$cfgfile"
22372# ### BEGIN LIBTOOL TAG CONFIG: $tagname
22373
22374# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22375
22376# Shell to use when invoking shell scripts.
22377SHELL=$lt_SHELL
22378
22379# Whether or not to build shared libraries.
22380build_libtool_libs=$enable_shared
22381
22382# Whether or not to build static libraries.
22383build_old_libs=$enable_static
22384
22385# Whether or not to add -lc for building shared libraries.
22386build_libtool_need_lc=$archive_cmds_need_lc_F77
22387
22388# Whether or not to disallow shared libs when runtime libs are static
22389allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
22390
22391# Whether or not to optimize for fast installation.
22392fast_install=$enable_fast_install
22393
22394# The host system.
22395host_alias=$host_alias
22396host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000022397host_os=$host_os
22398
22399# The build system.
22400build_alias=$build_alias
22401build=$build
22402build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000022403
22404# An echo program that does not interpret backslashes.
22405echo=$lt_echo
22406
22407# The archiver.
22408AR=$lt_AR
22409AR_FLAGS=$lt_AR_FLAGS
22410
22411# A C compiler.
22412LTCC=$lt_LTCC
22413
Reid Spencera773bd52006-08-04 18:18:08 +000022414# LTCC compiler flags.
22415LTCFLAGS=$lt_LTCFLAGS
22416
John Criswell47fdd832003-07-14 16:52:07 +000022417# A language-specific compiler.
22418CC=$lt_compiler_F77
22419
22420# Is the compiler the GNU C compiler?
22421with_gcc=$GCC_F77
22422
22423# An ERE matcher.
22424EGREP=$lt_EGREP
22425
22426# The linker used to build libraries.
22427LD=$lt_LD_F77
22428
22429# Whether we need hard or soft links.
22430LN_S=$lt_LN_S
22431
22432# A BSD-compatible nm program.
22433NM=$lt_NM
22434
22435# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000022436STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000022437
22438# Used to examine libraries when file_magic_cmd begins "file"
22439MAGIC_CMD=$MAGIC_CMD
22440
22441# Used on cygwin: DLL creation program.
22442DLLTOOL="$DLLTOOL"
22443
22444# Used on cygwin: object dumper.
22445OBJDUMP="$OBJDUMP"
22446
22447# Used on cygwin: assembler.
22448AS="$AS"
22449
22450# The name of the directory that contains temporary libtool files.
22451objdir=$objdir
22452
22453# How to create reloadable object files.
22454reload_flag=$lt_reload_flag
22455reload_cmds=$lt_reload_cmds
22456
22457# How to pass a linker flag through the compiler.
22458wl=$lt_lt_prog_compiler_wl_F77
22459
22460# Object file suffix (normally "o").
22461objext="$ac_objext"
22462
22463# Old archive suffix (normally "a").
22464libext="$libext"
22465
22466# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000022467shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000022468
22469# Executable file suffix (normally "").
22470exeext="$exeext"
22471
22472# Additional compiler flags for building library objects.
22473pic_flag=$lt_lt_prog_compiler_pic_F77
22474pic_mode=$pic_mode
22475
22476# What is the maximum length of a command?
22477max_cmd_len=$lt_cv_sys_max_cmd_len
22478
22479# Does compiler simultaneously support -c and -o options?
22480compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
22481
Reid Spencera773bd52006-08-04 18:18:08 +000022482# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000022483need_locks=$lt_need_locks
22484
22485# Do we need the lib prefix for modules?
22486need_lib_prefix=$need_lib_prefix
22487
22488# Do we need a version for libraries?
22489need_version=$need_version
22490
22491# Whether dlopen is supported.
22492dlopen_support=$enable_dlopen
22493
22494# Whether dlopen of programs is supported.
22495dlopen_self=$enable_dlopen_self
22496
22497# Whether dlopen of statically linked programs is supported.
22498dlopen_self_static=$enable_dlopen_self_static
22499
22500# Compiler flag to prevent dynamic linking.
22501link_static_flag=$lt_lt_prog_compiler_static_F77
22502
22503# Compiler flag to turn off builtin functions.
22504no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
22505
22506# Compiler flag to allow reflexive dlopens.
22507export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
22508
22509# Compiler flag to generate shared objects directly from archives.
22510whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
22511
22512# Compiler flag to generate thread-safe objects.
22513thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
22514
22515# Library versioning type.
22516version_type=$version_type
22517
22518# Format of library name prefix.
22519libname_spec=$lt_libname_spec
22520
22521# List of archive names. First name is the real one, the rest are links.
22522# The last name is the one that the linker finds with -lNAME.
22523library_names_spec=$lt_library_names_spec
22524
22525# The coded name of the library, if different from the real name.
22526soname_spec=$lt_soname_spec
22527
22528# Commands used to build and install an old-style archive.
22529RANLIB=$lt_RANLIB
22530old_archive_cmds=$lt_old_archive_cmds_F77
22531old_postinstall_cmds=$lt_old_postinstall_cmds
22532old_postuninstall_cmds=$lt_old_postuninstall_cmds
22533
22534# Create an old-style archive from a shared archive.
22535old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
22536
22537# Create a temporary old-style archive to link instead of a shared archive.
22538old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
22539
22540# Commands used to build and install a shared archive.
22541archive_cmds=$lt_archive_cmds_F77
22542archive_expsym_cmds=$lt_archive_expsym_cmds_F77
22543postinstall_cmds=$lt_postinstall_cmds
22544postuninstall_cmds=$lt_postuninstall_cmds
22545
22546# Commands used to build a loadable module (assumed same as above if empty)
22547module_cmds=$lt_module_cmds_F77
22548module_expsym_cmds=$lt_module_expsym_cmds_F77
22549
22550# Commands to strip libraries.
22551old_striplib=$lt_old_striplib
22552striplib=$lt_striplib
22553
22554# Dependencies to place before the objects being linked to create a
22555# shared library.
22556predep_objects=$lt_predep_objects_F77
22557
22558# Dependencies to place after the objects being linked to create a
22559# shared library.
22560postdep_objects=$lt_postdep_objects_F77
22561
22562# Dependencies to place before the objects being linked to create a
22563# shared library.
22564predeps=$lt_predeps_F77
22565
22566# Dependencies to place after the objects being linked to create a
22567# shared library.
22568postdeps=$lt_postdeps_F77
22569
22570# The library search path used internally by the compiler when linking
22571# a shared library.
22572compiler_lib_search_path=$lt_compiler_lib_search_path_F77
22573
22574# Method to check whether dependent libraries are shared objects.
22575deplibs_check_method=$lt_deplibs_check_method
22576
22577# Command to use when deplibs_check_method == file_magic.
22578file_magic_cmd=$lt_file_magic_cmd
22579
22580# Flag that allows shared libraries with undefined symbols to be built.
22581allow_undefined_flag=$lt_allow_undefined_flag_F77
22582
22583# Flag that forces no undefined symbols.
22584no_undefined_flag=$lt_no_undefined_flag_F77
22585
22586# Commands used to finish a libtool library installation in a directory.
22587finish_cmds=$lt_finish_cmds
22588
22589# Same as above, but a single script fragment to be evaled but not shown.
22590finish_eval=$lt_finish_eval
22591
22592# Take the output of nm and produce a listing of raw symbols and C names.
22593global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22594
22595# Transform the output of nm in a proper C declaration
22596global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22597
22598# Transform the output of nm in a C name address pair
22599global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22600
22601# This is the shared library runtime path variable.
22602runpath_var=$runpath_var
22603
22604# This is the shared library path variable.
22605shlibpath_var=$shlibpath_var
22606
22607# Is shlibpath searched before the hard-coded library search path?
22608shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22609
22610# How to hardcode a shared library path into an executable.
22611hardcode_action=$hardcode_action_F77
22612
22613# Whether we should hardcode library paths into libraries.
22614hardcode_into_libs=$hardcode_into_libs
22615
22616# Flag to hardcode \$libdir into a binary during linking.
22617# This must work even if \$libdir does not exist.
22618hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
22619
22620# If ld is used when linking, flag to hardcode \$libdir into
22621# a binary during linking. This must work even if \$libdir does
22622# not exist.
22623hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
22624
22625# Whether we need a single -rpath flag with a separated argument.
22626hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
22627
22628# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
22629# resulting binary.
22630hardcode_direct=$hardcode_direct_F77
22631
22632# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
22633# resulting binary.
22634hardcode_minus_L=$hardcode_minus_L_F77
22635
22636# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
22637# the resulting binary.
22638hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
22639
22640# Set to yes if building a shared library automatically hardcodes DIR into the library
22641# and all subsequent libraries and executables linked against it.
22642hardcode_automatic=$hardcode_automatic_F77
22643
22644# Variables whose values should be saved in libtool wrapper scripts and
22645# restored at relink time.
22646variables_saved_for_relink="$variables_saved_for_relink"
22647
22648# Whether libtool must link a program against all its dependency libraries.
22649link_all_deplibs=$link_all_deplibs_F77
22650
22651# Compile-time system search path for libraries
22652sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22653
22654# Run-time system search path for libraries
22655sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
22656
22657# Fix the shell variable \$srcfile for the compiler.
22658fix_srcfile_path="$fix_srcfile_path_F77"
22659
22660# Set to yes if exported symbols are required.
22661always_export_symbols=$always_export_symbols_F77
22662
22663# The commands to list exported symbols.
22664export_symbols_cmds=$lt_export_symbols_cmds_F77
22665
22666# The commands to extract the exported symbol list from a shared archive.
22667extract_expsyms_cmds=$lt_extract_expsyms_cmds
22668
22669# Symbols that should not be listed in the preloaded symbols.
22670exclude_expsyms=$lt_exclude_expsyms_F77
22671
22672# Symbols that must always be exported.
22673include_expsyms=$lt_include_expsyms_F77
22674
22675# ### END LIBTOOL TAG CONFIG: $tagname
22676
22677__EOF__
22678
22679
22680else
22681 # If there is no Makefile yet, we rely on a make rule to execute
22682 # `config.status --recheck' to rerun these tests and create the
22683 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022684 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
22685 if test -f "$ltmain_in"; then
22686 test -f Makefile && make "$ltmain"
22687 fi
John Criswell47fdd832003-07-14 16:52:07 +000022688fi
22689
22690
22691ac_ext=c
22692ac_cpp='$CPP $CPPFLAGS'
22693ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22694ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22695ac_compiler_gnu=$ac_cv_c_compiler_gnu
22696
22697CC="$lt_save_CC"
22698
22699 else
22700 tagname=""
22701 fi
22702 ;;
22703
22704 GCJ)
22705 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000022706 ac_ext=c
22707ac_cpp='$CPP $CPPFLAGS'
22708ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22709ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22710ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000022711
22712
22713# Source file extension for Java test sources.
22714ac_ext=java
22715
22716# Object file extension for compiled Java test sources.
22717objext=o
22718objext_GCJ=$objext
22719
22720# Code to be used in simple compile tests
22721lt_simple_compile_test_code="class foo {}\n"
22722
22723# Code to be used in simple link tests
Reid Spencera773bd52006-08-04 18:18:08 +000022724lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
John Criswell47fdd832003-07-14 16:52:07 +000022725
22726# ltmain only uses $CC for tagged configurations so make sure $CC is set.
22727
22728# If no C compiler was specified, use CC.
22729LTCC=${LTCC-"$CC"}
22730
Reid Spencera773bd52006-08-04 18:18:08 +000022731# If no C compiler flags were specified, use CFLAGS.
22732LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
22733
John Criswell47fdd832003-07-14 16:52:07 +000022734# Allow CC to be a program name with arguments.
22735compiler=$CC
22736
22737
Reid Spencera773bd52006-08-04 18:18:08 +000022738# save warnings/boilerplate of simple test code
22739ac_outfile=conftest.$ac_objext
22740printf "$lt_simple_compile_test_code" >conftest.$ac_ext
22741eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
22742_lt_compiler_boilerplate=`cat conftest.err`
22743$rm conftest*
22744
22745ac_outfile=conftest.$ac_objext
22746printf "$lt_simple_link_test_code" >conftest.$ac_ext
22747eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
22748_lt_linker_boilerplate=`cat conftest.err`
22749$rm conftest*
22750
22751
John Criswell47fdd832003-07-14 16:52:07 +000022752# Allow CC to be a program name with arguments.
22753lt_save_CC="$CC"
22754CC=${GCJ-"gcj"}
22755compiler=$CC
22756compiler_GCJ=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000022757for cc_temp in $compiler""; do
22758 case $cc_temp in
22759 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
22760 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
22761 \-*) ;;
22762 *) break;;
22763 esac
22764done
22765cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
22766
John Criswell47fdd832003-07-14 16:52:07 +000022767
22768# GCJ did not exist at the time GCC didn't implicitly link libc in.
22769archive_cmds_need_lc_GCJ=no
22770
Reid Spencera773bd52006-08-04 18:18:08 +000022771old_archive_cmds_GCJ=$old_archive_cmds
22772
Torok Edwincc499a42008-10-22 09:56:27 +000022773## CAVEAT EMPTOR:
22774## There is no encapsulation within the following macros, do not change
22775## the running order or otherwise move them around unless you know exactly
22776## what you are doing...
John Criswell47fdd832003-07-14 16:52:07 +000022777
22778lt_prog_compiler_no_builtin_flag_GCJ=
22779
22780if test "$GCC" = yes; then
22781 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
22782
Reid Spencer2706f8c2004-09-19 23:53:36 +000022783
Reid Spencera773bd52006-08-04 18:18:08 +000022784{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
22785echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022786if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
22787 echo $ECHO_N "(cached) $ECHO_C" >&6
22788else
22789 lt_cv_prog_compiler_rtti_exceptions=no
22790 ac_outfile=conftest.$ac_objext
22791 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22792 lt_compiler_flag="-fno-rtti -fno-exceptions"
22793 # Insert the option either (1) after the last *FLAGS variable, or
22794 # (2) before a word containing "conftest.", or (3) at the end.
22795 # Note that $ac_compile itself does not contain backslashes and begins
22796 # with a dollar sign (not a hyphen), so the echo should work correctly.
22797 # The option is referenced via a variable to avoid confusing sed.
22798 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000022799 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000022800 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22801 -e 's:$: $lt_compiler_flag:'`
Torok Edwincc499a42008-10-22 09:56:27 +000022802 (eval echo "\"\$as_me:22802: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000022803 (eval "$lt_compile" 2>conftest.err)
22804 ac_status=$?
22805 cat conftest.err >&5
Torok Edwincc499a42008-10-22 09:56:27 +000022806 echo "$as_me:22806: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000022807 if (exit $ac_status) && test -s "$ac_outfile"; then
22808 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000022809 # So say no if there are warnings other than the usual output.
22810 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
22811 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
22812 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000022813 lt_cv_prog_compiler_rtti_exceptions=yes
22814 fi
22815 fi
22816 $rm conftest*
22817
22818fi
Reid Spencera773bd52006-08-04 18:18:08 +000022819{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
22820echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022821
22822if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
22823 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
22824else
22825 :
22826fi
22827
22828fi
22829
22830lt_prog_compiler_wl_GCJ=
22831lt_prog_compiler_pic_GCJ=
22832lt_prog_compiler_static_GCJ=
22833
Reid Spencera773bd52006-08-04 18:18:08 +000022834{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
22835echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022836
22837 if test "$GCC" = yes; then
22838 lt_prog_compiler_wl_GCJ='-Wl,'
22839 lt_prog_compiler_static_GCJ='-static'
22840
22841 case $host_os in
22842 aix*)
22843 # All AIX code is PIC.
22844 if test "$host_cpu" = ia64; then
22845 # AIX 5 now supports IA64 processor
22846 lt_prog_compiler_static_GCJ='-Bstatic'
22847 fi
22848 ;;
22849
22850 amigaos*)
22851 # FIXME: we need at least 68020 code to build shared libraries, but
22852 # adding the `-m68020' flag to GCC prevents building anything better,
22853 # like `-m68040'.
22854 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
22855 ;;
22856
22857 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
22858 # PIC is the default for these OSes.
22859 ;;
22860
22861 mingw* | pw32* | os2*)
22862 # This hack is so that the source file can tell whether it is being
22863 # built for inclusion in a dll (and should export symbols for example).
22864 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
22865 ;;
22866
22867 darwin* | rhapsody*)
22868 # PIC is the default on this platform
22869 # Common symbols not allowed in MH_DYLIB files
22870 lt_prog_compiler_pic_GCJ='-fno-common'
22871 ;;
22872
Reid Spencera773bd52006-08-04 18:18:08 +000022873 interix3*)
22874 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
22875 # Instead, we relocate shared libraries at runtime.
22876 ;;
22877
John Criswell47fdd832003-07-14 16:52:07 +000022878 msdosdjgpp*)
22879 # Just because we use GCC doesn't mean we suddenly get shared libraries
22880 # on systems that don't support them.
22881 lt_prog_compiler_can_build_shared_GCJ=no
22882 enable_shared=no
22883 ;;
22884
22885 sysv4*MP*)
22886 if test -d /usr/nec; then
22887 lt_prog_compiler_pic_GCJ=-Kconform_pic
22888 fi
22889 ;;
22890
22891 hpux*)
22892 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
22893 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000022894 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000022895 hppa*64*|ia64*)
22896 # +Z the default
22897 ;;
22898 *)
22899 lt_prog_compiler_pic_GCJ='-fPIC'
22900 ;;
22901 esac
22902 ;;
22903
22904 *)
22905 lt_prog_compiler_pic_GCJ='-fPIC'
22906 ;;
22907 esac
22908 else
22909 # PORTME Check for flag to pass linker flags through the system compiler.
22910 case $host_os in
22911 aix*)
22912 lt_prog_compiler_wl_GCJ='-Wl,'
22913 if test "$host_cpu" = ia64; then
22914 # AIX 5 now supports IA64 processor
22915 lt_prog_compiler_static_GCJ='-Bstatic'
22916 else
22917 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
22918 fi
22919 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000022920 darwin*)
22921 # PIC is the default on this platform
22922 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000022923 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022924 xlc*)
22925 lt_prog_compiler_pic_GCJ='-qnocommon'
22926 lt_prog_compiler_wl_GCJ='-Wl,'
22927 ;;
22928 esac
22929 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022930
22931 mingw* | pw32* | os2*)
22932 # This hack is so that the source file can tell whether it is being
22933 # built for inclusion in a dll (and should export symbols for example).
22934 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
22935 ;;
22936
22937 hpux9* | hpux10* | hpux11*)
22938 lt_prog_compiler_wl_GCJ='-Wl,'
22939 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
22940 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000022941 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000022942 hppa*64*|ia64*)
22943 # +Z the default
22944 ;;
22945 *)
22946 lt_prog_compiler_pic_GCJ='+Z'
22947 ;;
22948 esac
22949 # Is there a better lt_prog_compiler_static that works with the bundled CC?
22950 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
22951 ;;
22952
22953 irix5* | irix6* | nonstopux*)
22954 lt_prog_compiler_wl_GCJ='-Wl,'
22955 # PIC (with -KPIC) is the default.
22956 lt_prog_compiler_static_GCJ='-non_shared'
22957 ;;
22958
22959 newsos6)
22960 lt_prog_compiler_pic_GCJ='-KPIC'
22961 lt_prog_compiler_static_GCJ='-Bstatic'
22962 ;;
22963
22964 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000022965 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022966 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000022967 lt_prog_compiler_wl_GCJ='-Wl,'
22968 lt_prog_compiler_pic_GCJ='-KPIC'
22969 lt_prog_compiler_static_GCJ='-static'
22970 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022971 pgcc* | pgf77* | pgf90* | pgf95*)
22972 # Portland Group compilers (*not* the Pentium gcc compiler,
22973 # which looks to be a dead project)
22974 lt_prog_compiler_wl_GCJ='-Wl,'
22975 lt_prog_compiler_pic_GCJ='-fpic'
22976 lt_prog_compiler_static_GCJ='-Bstatic'
22977 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000022978 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000022979 lt_prog_compiler_wl_GCJ='-Wl,'
22980 # All Alpha code is PIC.
22981 lt_prog_compiler_static_GCJ='-non_shared'
22982 ;;
22983 esac
22984 ;;
22985
22986 osf3* | osf4* | osf5*)
22987 lt_prog_compiler_wl_GCJ='-Wl,'
22988 # All OSF/1 code is PIC.
22989 lt_prog_compiler_static_GCJ='-non_shared'
22990 ;;
22991
John Criswell47fdd832003-07-14 16:52:07 +000022992 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000022993 lt_prog_compiler_pic_GCJ='-KPIC'
22994 lt_prog_compiler_static_GCJ='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000022995 case $cc_basename in
22996 f77* | f90* | f95*)
22997 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
22998 *)
22999 lt_prog_compiler_wl_GCJ='-Wl,';;
23000 esac
John Criswell47fdd832003-07-14 16:52:07 +000023001 ;;
23002
23003 sunos4*)
23004 lt_prog_compiler_wl_GCJ='-Qoption ld '
23005 lt_prog_compiler_pic_GCJ='-PIC'
23006 lt_prog_compiler_static_GCJ='-Bstatic'
23007 ;;
23008
Reid Spencera773bd52006-08-04 18:18:08 +000023009 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000023010 lt_prog_compiler_wl_GCJ='-Wl,'
23011 lt_prog_compiler_pic_GCJ='-KPIC'
23012 lt_prog_compiler_static_GCJ='-Bstatic'
23013 ;;
23014
23015 sysv4*MP*)
23016 if test -d /usr/nec ;then
23017 lt_prog_compiler_pic_GCJ='-Kconform_pic'
23018 lt_prog_compiler_static_GCJ='-Bstatic'
23019 fi
23020 ;;
23021
Reid Spencera773bd52006-08-04 18:18:08 +000023022 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
23023 lt_prog_compiler_wl_GCJ='-Wl,'
23024 lt_prog_compiler_pic_GCJ='-KPIC'
23025 lt_prog_compiler_static_GCJ='-Bstatic'
23026 ;;
23027
23028 unicos*)
23029 lt_prog_compiler_wl_GCJ='-Wl,'
23030 lt_prog_compiler_can_build_shared_GCJ=no
23031 ;;
23032
John Criswell47fdd832003-07-14 16:52:07 +000023033 uts4*)
23034 lt_prog_compiler_pic_GCJ='-pic'
23035 lt_prog_compiler_static_GCJ='-Bstatic'
23036 ;;
23037
23038 *)
23039 lt_prog_compiler_can_build_shared_GCJ=no
23040 ;;
23041 esac
23042 fi
23043
Reid Spencera773bd52006-08-04 18:18:08 +000023044{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
23045echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023046
23047#
23048# Check to make sure the PIC flag actually works.
23049#
23050if test -n "$lt_prog_compiler_pic_GCJ"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000023051
Reid Spencera773bd52006-08-04 18:18:08 +000023052{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
23053echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023054if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
23055 echo $ECHO_N "(cached) $ECHO_C" >&6
23056else
23057 lt_prog_compiler_pic_works_GCJ=no
23058 ac_outfile=conftest.$ac_objext
23059 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23060 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
23061 # Insert the option either (1) after the last *FLAGS variable, or
23062 # (2) before a word containing "conftest.", or (3) at the end.
23063 # Note that $ac_compile itself does not contain backslashes and begins
23064 # with a dollar sign (not a hyphen), so the echo should work correctly.
23065 # The option is referenced via a variable to avoid confusing sed.
23066 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000023067 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000023068 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23069 -e 's:$: $lt_compiler_flag:'`
Torok Edwincc499a42008-10-22 09:56:27 +000023070 (eval echo "\"\$as_me:23070: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000023071 (eval "$lt_compile" 2>conftest.err)
23072 ac_status=$?
23073 cat conftest.err >&5
Torok Edwincc499a42008-10-22 09:56:27 +000023074 echo "$as_me:23074: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000023075 if (exit $ac_status) && test -s "$ac_outfile"; then
23076 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000023077 # So say no if there are warnings other than the usual output.
23078 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23079 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23080 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000023081 lt_prog_compiler_pic_works_GCJ=yes
23082 fi
23083 fi
23084 $rm conftest*
23085
23086fi
Reid Spencera773bd52006-08-04 18:18:08 +000023087{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
23088echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023089
23090if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
23091 case $lt_prog_compiler_pic_GCJ in
23092 "" | " "*) ;;
23093 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
23094 esac
23095else
23096 lt_prog_compiler_pic_GCJ=
23097 lt_prog_compiler_can_build_shared_GCJ=no
23098fi
23099
23100fi
Reid Spencera773bd52006-08-04 18:18:08 +000023101case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000023102 # For platforms which do not support PIC, -DPIC is meaningless:
23103 *djgpp*)
23104 lt_prog_compiler_pic_GCJ=
23105 ;;
23106 *)
23107 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
23108 ;;
23109esac
23110
Reid Spencera773bd52006-08-04 18:18:08 +000023111#
23112# Check to make sure the static flag actually works.
23113#
23114wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
23115{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
23116echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
23117if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
23118 echo $ECHO_N "(cached) $ECHO_C" >&6
23119else
23120 lt_prog_compiler_static_works_GCJ=no
23121 save_LDFLAGS="$LDFLAGS"
23122 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
23123 printf "$lt_simple_link_test_code" > conftest.$ac_ext
23124 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
23125 # The linker can only warn and ignore the option if not recognized
23126 # So say no if there are warnings
23127 if test -s conftest.err; then
23128 # Append any errors to the config.log.
23129 cat conftest.err 1>&5
23130 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
23131 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23132 if diff conftest.exp conftest.er2 >/dev/null; then
23133 lt_prog_compiler_static_works_GCJ=yes
23134 fi
23135 else
23136 lt_prog_compiler_static_works_GCJ=yes
23137 fi
23138 fi
23139 $rm conftest*
23140 LDFLAGS="$save_LDFLAGS"
23141
23142fi
23143{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
23144echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
23145
23146if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
23147 :
23148else
23149 lt_prog_compiler_static_GCJ=
23150fi
23151
23152
23153{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
23154echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023155if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
23156 echo $ECHO_N "(cached) $ECHO_C" >&6
23157else
23158 lt_cv_prog_compiler_c_o_GCJ=no
23159 $rm -r conftest 2>/dev/null
23160 mkdir conftest
23161 cd conftest
23162 mkdir out
23163 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23164
John Criswell47fdd832003-07-14 16:52:07 +000023165 lt_compiler_flag="-o out/conftest2.$ac_objext"
23166 # Insert the option either (1) after the last *FLAGS variable, or
23167 # (2) before a word containing "conftest.", or (3) at the end.
23168 # Note that $ac_compile itself does not contain backslashes and begins
23169 # with a dollar sign (not a hyphen), so the echo should work correctly.
23170 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000023171 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000023172 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23173 -e 's:$: $lt_compiler_flag:'`
Torok Edwincc499a42008-10-22 09:56:27 +000023174 (eval echo "\"\$as_me:23174: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000023175 (eval "$lt_compile" 2>out/conftest.err)
23176 ac_status=$?
23177 cat out/conftest.err >&5
Torok Edwincc499a42008-10-22 09:56:27 +000023178 echo "$as_me:23178: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000023179 if (exit $ac_status) && test -s out/conftest2.$ac_objext
23180 then
23181 # The compiler can only warn and ignore the option if not recognized
23182 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000023183 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
23184 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
23185 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000023186 lt_cv_prog_compiler_c_o_GCJ=yes
23187 fi
23188 fi
Reid Spencera773bd52006-08-04 18:18:08 +000023189 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023190 $rm conftest*
23191 # SGI C++ compiler will create directory out/ii_files/ for
23192 # template instantiation
23193 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
23194 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000023195 cd ..
23196 rmdir conftest
23197 $rm conftest*
23198
23199fi
Reid Spencera773bd52006-08-04 18:18:08 +000023200{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
23201echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023202
23203
23204hard_links="nottested"
23205if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
23206 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000023207 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
23208echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023209 hard_links=yes
23210 $rm conftest*
23211 ln conftest.a conftest.b 2>/dev/null && hard_links=no
23212 touch conftest.a
23213 ln conftest.a conftest.b 2>&5 || hard_links=no
23214 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000023215 { echo "$as_me:$LINENO: result: $hard_links" >&5
23216echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023217 if test "$hard_links" = no; then
23218 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
23219echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
23220 need_locks=warn
23221 fi
23222else
23223 need_locks=no
23224fi
23225
Reid Spencera773bd52006-08-04 18:18:08 +000023226{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
23227echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023228
23229 runpath_var=
23230 allow_undefined_flag_GCJ=
23231 enable_shared_with_static_runtimes_GCJ=no
23232 archive_cmds_GCJ=
23233 archive_expsym_cmds_GCJ=
23234 old_archive_From_new_cmds_GCJ=
23235 old_archive_from_expsyms_cmds_GCJ=
23236 export_dynamic_flag_spec_GCJ=
23237 whole_archive_flag_spec_GCJ=
23238 thread_safe_flag_spec_GCJ=
23239 hardcode_libdir_flag_spec_GCJ=
23240 hardcode_libdir_flag_spec_ld_GCJ=
23241 hardcode_libdir_separator_GCJ=
23242 hardcode_direct_GCJ=no
23243 hardcode_minus_L_GCJ=no
23244 hardcode_shlibpath_var_GCJ=unsupported
23245 link_all_deplibs_GCJ=unknown
23246 hardcode_automatic_GCJ=no
23247 module_cmds_GCJ=
23248 module_expsym_cmds_GCJ=
23249 always_export_symbols_GCJ=no
23250 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
23251 # include_expsyms should be a list of space-separated symbols to be *always*
23252 # included in the symbol list
23253 include_expsyms_GCJ=
23254 # exclude_expsyms can be an extended regexp of symbols to exclude
23255 # it will be wrapped by ` (' and `)$', so one must not match beginning or
23256 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
23257 # as well as any symbol that contains `d'.
23258 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
23259 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
23260 # platforms (ab)use it in PIC code, but their linkers get confused if
23261 # the symbol is explicitly referenced. Since portable code cannot
23262 # rely on this symbol name, it's probably fine to never include it in
23263 # preloaded symbol tables.
23264 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000023265 # Just being paranoid about ensuring that cc_basename is set.
23266 for cc_temp in $compiler""; do
23267 case $cc_temp in
23268 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23269 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23270 \-*) ;;
23271 *) break;;
23272 esac
23273done
23274cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000023275
23276 case $host_os in
23277 cygwin* | mingw* | pw32*)
23278 # FIXME: the MSVC++ port hasn't been tested in a loooong time
23279 # When not using gcc, we currently assume that we are using
23280 # Microsoft Visual C++.
23281 if test "$GCC" != yes; then
23282 with_gnu_ld=no
23283 fi
23284 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023285 interix*)
23286 # we just hope/assume this is gcc and not c89 (= MSVC++)
23287 with_gnu_ld=yes
23288 ;;
John Criswell47fdd832003-07-14 16:52:07 +000023289 openbsd*)
23290 with_gnu_ld=no
23291 ;;
23292 esac
23293
23294 ld_shlibs_GCJ=yes
23295 if test "$with_gnu_ld" = yes; then
23296 # If archive_cmds runs LD, not CC, wlarc should be empty
23297 wlarc='${wl}'
23298
Reid Spencera773bd52006-08-04 18:18:08 +000023299 # Set some defaults for GNU ld with shared library support. These
23300 # are reset later if shared libraries are not supported. Putting them
23301 # here allows them to be overridden if necessary.
23302 runpath_var=LD_RUN_PATH
23303 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
23304 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
23305 # ancient GNU ld didn't support --whole-archive et. al.
23306 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
23307 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
23308 else
23309 whole_archive_flag_spec_GCJ=
23310 fi
23311 supports_anon_versioning=no
23312 case `$LD -v 2>/dev/null` in
23313 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
23314 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
23315 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
23316 *\ 2.11.*) ;; # other 2.11 versions
23317 *) supports_anon_versioning=yes ;;
23318 esac
23319
John Criswell47fdd832003-07-14 16:52:07 +000023320 # See if GNU ld supports shared libraries.
23321 case $host_os in
23322 aix3* | aix4* | aix5*)
23323 # On AIX/PPC, the GNU linker is very broken
23324 if test "$host_cpu" != ia64; then
23325 ld_shlibs_GCJ=no
23326 cat <<EOF 1>&2
23327
23328*** Warning: the GNU linker, at least up to release 2.9.1, is reported
23329*** to be unable to reliably create shared libraries on AIX.
23330*** Therefore, libtool is disabling shared libraries support. If you
23331*** really care for shared libraries, you may want to modify your PATH
23332*** so that a non-GNU linker is found, and then restart.
23333
23334EOF
23335 fi
23336 ;;
23337
23338 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000023339 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 +000023340 hardcode_libdir_flag_spec_GCJ='-L$libdir'
23341 hardcode_minus_L_GCJ=yes
23342
23343 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
23344 # that the semantics of dynamic libraries on AmigaOS, at least up
23345 # to version 4, is to share data among multiple programs linked
23346 # with the same dynamic library. Since this doesn't match the
23347 # behavior of shared libraries on other platforms, we can't use
23348 # them.
23349 ld_shlibs_GCJ=no
23350 ;;
23351
23352 beos*)
23353 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
23354 allow_undefined_flag_GCJ=unsupported
23355 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
23356 # support --undefined. This deserves some investigation. FIXME
23357 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
23358 else
23359 ld_shlibs_GCJ=no
23360 fi
23361 ;;
23362
23363 cygwin* | mingw* | pw32*)
23364 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
23365 # as there is no search path for DLLs.
23366 hardcode_libdir_flag_spec_GCJ='-L$libdir'
23367 allow_undefined_flag_GCJ=unsupported
23368 always_export_symbols_GCJ=no
23369 enable_shared_with_static_runtimes_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000023370 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 +000023371
23372 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000023373 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 +000023374 # If the export-symbols file already is a .def file (1st line
23375 # is EXPORTS), use it as is; otherwise, prepend...
23376 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
23377 cp $export_symbols $output_objdir/$soname.def;
23378 else
23379 echo EXPORTS > $output_objdir/$soname.def;
23380 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000023381 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000023382 $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 +000023383 else
Reid Spencera773bd52006-08-04 18:18:08 +000023384 ld_shlibs_GCJ=no
23385 fi
23386 ;;
23387
23388 interix3*)
23389 hardcode_direct_GCJ=no
23390 hardcode_shlibpath_var_GCJ=no
23391 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
23392 export_dynamic_flag_spec_GCJ='${wl}-E'
23393 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
23394 # Instead, shared libraries are loaded at an image base (0x10000000 by
23395 # default) and relocated if they conflict, which is a slow very memory
23396 # consuming and fragmenting process. To avoid this, we pick a random,
23397 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
23398 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
23399 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'
23400 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'
23401 ;;
23402
23403 linux*)
23404 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
23405 tmp_addflag=
23406 case $cc_basename,$host_cpu in
23407 pgcc*) # Portland Group C compiler
23408 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'
23409 tmp_addflag=' $pic_flag'
23410 ;;
23411 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
23412 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'
23413 tmp_addflag=' $pic_flag -Mnomain' ;;
23414 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
23415 tmp_addflag=' -i_dynamic' ;;
23416 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
23417 tmp_addflag=' -i_dynamic -nofor_main' ;;
23418 ifc* | ifort*) # Intel Fortran compiler
23419 tmp_addflag=' -nofor_main' ;;
23420 esac
23421 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
23422
23423 if test $supports_anon_versioning = yes; then
23424 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
23425 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
23426 $echo "local: *; };" >> $output_objdir/$libname.ver~
23427 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
23428 fi
23429 else
23430 ld_shlibs_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000023431 fi
23432 ;;
23433
23434 netbsd*)
23435 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23436 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
23437 wlarc=
23438 else
23439 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
23440 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
23441 fi
23442 ;;
23443
Reid Spencera773bd52006-08-04 18:18:08 +000023444 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000023445 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
23446 ld_shlibs_GCJ=no
23447 cat <<EOF 1>&2
23448
23449*** Warning: The releases 2.8.* of the GNU linker cannot reliably
23450*** create shared libraries on Solaris systems. Therefore, libtool
23451*** is disabling shared libraries support. We urge you to upgrade GNU
23452*** binutils to release 2.9.1 or newer. Another option is to modify
23453*** your PATH or compiler configuration so that the native linker is
23454*** used, and then restart.
23455
23456EOF
23457 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
23458 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
23459 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
23460 else
23461 ld_shlibs_GCJ=no
23462 fi
23463 ;;
23464
Reid Spencera773bd52006-08-04 18:18:08 +000023465 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
23466 case `$LD -v 2>&1` in
23467 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
23468 ld_shlibs_GCJ=no
23469 cat <<_LT_EOF 1>&2
23470
23471*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
23472*** reliably create shared libraries on SCO systems. Therefore, libtool
23473*** is disabling shared libraries support. We urge you to upgrade GNU
23474*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
23475*** your PATH or compiler configuration so that the native linker is
23476*** used, and then restart.
23477
23478_LT_EOF
23479 ;;
23480 *)
23481 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
23482 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
23483 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
23484 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
23485 else
23486 ld_shlibs_GCJ=no
23487 fi
23488 ;;
23489 esac
23490 ;;
23491
John Criswell47fdd832003-07-14 16:52:07 +000023492 sunos4*)
23493 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
23494 wlarc=
23495 hardcode_direct_GCJ=yes
23496 hardcode_shlibpath_var_GCJ=no
23497 ;;
23498
23499 *)
23500 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
23501 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
23502 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
23503 else
23504 ld_shlibs_GCJ=no
23505 fi
23506 ;;
23507 esac
23508
Reid Spencera773bd52006-08-04 18:18:08 +000023509 if test "$ld_shlibs_GCJ" = no; then
23510 runpath_var=
23511 hardcode_libdir_flag_spec_GCJ=
23512 export_dynamic_flag_spec_GCJ=
23513 whole_archive_flag_spec_GCJ=
John Criswell47fdd832003-07-14 16:52:07 +000023514 fi
23515 else
23516 # PORTME fill in a description of your system's linker (not GNU ld)
23517 case $host_os in
23518 aix3*)
23519 allow_undefined_flag_GCJ=unsupported
23520 always_export_symbols_GCJ=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000023521 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 +000023522 # Note: this linker hardcodes the directories in LIBPATH if there
23523 # are no directories specified by -L.
23524 hardcode_minus_L_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000023525 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000023526 # Neither direct hardcoding nor static linking is supported with a
23527 # broken collect2.
23528 hardcode_direct_GCJ=unsupported
23529 fi
23530 ;;
23531
23532 aix4* | aix5*)
23533 if test "$host_cpu" = ia64; then
23534 # On IA64, the linker does run time linking by default, so we don't
23535 # have to do anything special.
23536 aix_use_runtimelinking=no
23537 exp_sym_flag='-Bexport'
23538 no_entry_flag=""
23539 else
23540 # If we're using GNU nm, then we don't want the "-C" option.
23541 # -C means demangle to AIX nm, but means don't demangle with GNU nm
23542 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
23543 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'
23544 else
23545 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'
23546 fi
23547 aix_use_runtimelinking=no
23548
23549 # Test if we are trying to use run time linking or normal
23550 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
23551 # need to do runtime linking.
23552 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
23553 for ld_flag in $LDFLAGS; do
23554 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
23555 aix_use_runtimelinking=yes
23556 break
23557 fi
23558 done
Reid Spencera773bd52006-08-04 18:18:08 +000023559 ;;
John Criswell47fdd832003-07-14 16:52:07 +000023560 esac
23561
23562 exp_sym_flag='-bexport'
23563 no_entry_flag='-bnoentry'
23564 fi
23565
23566 # When large executables or shared objects are built, AIX ld can
23567 # have problems creating the table of contents. If linking a library
23568 # or program results in "error TOC overflow" add -mminimal-toc to
23569 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
23570 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
23571
23572 archive_cmds_GCJ=''
23573 hardcode_direct_GCJ=yes
23574 hardcode_libdir_separator_GCJ=':'
23575 link_all_deplibs_GCJ=yes
23576
23577 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000023578 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000023579 # We only want to do this on AIX 4.2 and lower, the check
23580 # below for broken collect2 doesn't work under 4.3+
23581 collect2name=`${CC} -print-prog-name=collect2`
23582 if test -f "$collect2name" && \
23583 strings "$collect2name" | grep resolve_lib_name >/dev/null
23584 then
23585 # We have reworked collect2
23586 hardcode_direct_GCJ=yes
23587 else
23588 # We have old collect2
23589 hardcode_direct_GCJ=unsupported
23590 # It fails to find uninstalled libraries when the uninstalled
23591 # path is not listed in the libpath. Setting hardcode_minus_L
23592 # to unsupported forces relinking
23593 hardcode_minus_L_GCJ=yes
23594 hardcode_libdir_flag_spec_GCJ='-L$libdir'
23595 hardcode_libdir_separator_GCJ=
23596 fi
Reid Spencera773bd52006-08-04 18:18:08 +000023597 ;;
John Criswell47fdd832003-07-14 16:52:07 +000023598 esac
23599 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000023600 if test "$aix_use_runtimelinking" = yes; then
23601 shared_flag="$shared_flag "'${wl}-G'
23602 fi
John Criswell47fdd832003-07-14 16:52:07 +000023603 else
23604 # not using gcc
23605 if test "$host_cpu" = ia64; then
23606 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
23607 # chokes on -Wl,-G. The following line is correct:
23608 shared_flag='-G'
23609 else
Reid Spencera773bd52006-08-04 18:18:08 +000023610 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000023611 shared_flag='${wl}-G'
23612 else
23613 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000023614 fi
John Criswell47fdd832003-07-14 16:52:07 +000023615 fi
23616 fi
23617
23618 # It seems that -bexpall does not export symbols beginning with
23619 # underscore (_), so it is better to generate a list of symbols to export.
23620 always_export_symbols_GCJ=yes
23621 if test "$aix_use_runtimelinking" = yes; then
23622 # Warning - without using the other runtime loading flags (-brtl),
23623 # -berok will link without error, but may produce a broken library.
23624 allow_undefined_flag_GCJ='-berok'
23625 # Determine the default libpath from the value encoded in an empty executable.
23626 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023627/* confdefs.h. */
23628_ACEOF
23629cat confdefs.h >>conftest.$ac_ext
23630cat >>conftest.$ac_ext <<_ACEOF
23631/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000023632
John Criswell47fdd832003-07-14 16:52:07 +000023633int
23634main ()
23635{
23636
23637 ;
23638 return 0;
23639}
23640_ACEOF
23641rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000023642if { (ac_try="$ac_link"
23643case "(($ac_try" in
23644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23645 *) ac_try_echo=$ac_try;;
23646esac
23647eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23648 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023649 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023650 grep -v '^ *+' conftest.er1 >conftest.err
23651 rm -f conftest.er1
23652 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Torok Edwincc499a42008-10-22 09:56:27 +000023654 (exit $ac_status); } && {
23655 test -z "$ac_c_werror_flag" ||
23656 test ! -s conftest.err
23657 } && test -s conftest$ac_exeext &&
23658 $as_test_x conftest$ac_exeext; then
John Criswell47fdd832003-07-14 16:52:07 +000023659
23660aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
23661}'`
23662# Check for a 64-bit object if we didn't find anything.
23663if 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; }
23664}'`; fi
23665else
23666 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023667sed 's/^/| /' conftest.$ac_ext >&5
23668
Reid Spencera773bd52006-08-04 18:18:08 +000023669
John Criswell47fdd832003-07-14 16:52:07 +000023670fi
Reid Spencera773bd52006-08-04 18:18:08 +000023671
Torok Edwincc499a42008-10-22 09:56:27 +000023672rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer2706f8c2004-09-19 23:53:36 +000023673 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023674if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
23675
23676 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000023677 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 +000023678 else
23679 if test "$host_cpu" = ia64; then
23680 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
23681 allow_undefined_flag_GCJ="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000023682 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 +000023683 else
23684 # Determine the default libpath from the value encoded in an empty executable.
23685 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023686/* confdefs.h. */
23687_ACEOF
23688cat confdefs.h >>conftest.$ac_ext
23689cat >>conftest.$ac_ext <<_ACEOF
23690/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000023691
John Criswell47fdd832003-07-14 16:52:07 +000023692int
23693main ()
23694{
23695
23696 ;
23697 return 0;
23698}
23699_ACEOF
23700rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000023701if { (ac_try="$ac_link"
23702case "(($ac_try" in
23703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23704 *) ac_try_echo=$ac_try;;
23705esac
23706eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23707 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023708 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023709 grep -v '^ *+' conftest.er1 >conftest.err
23710 rm -f conftest.er1
23711 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Torok Edwincc499a42008-10-22 09:56:27 +000023713 (exit $ac_status); } && {
23714 test -z "$ac_c_werror_flag" ||
23715 test ! -s conftest.err
23716 } && test -s conftest$ac_exeext &&
23717 $as_test_x conftest$ac_exeext; then
John Criswell47fdd832003-07-14 16:52:07 +000023718
23719aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
23720}'`
23721# Check for a 64-bit object if we didn't find anything.
23722if 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; }
23723}'`; fi
23724else
23725 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023726sed 's/^/| /' conftest.$ac_ext >&5
23727
Reid Spencera773bd52006-08-04 18:18:08 +000023728
John Criswell47fdd832003-07-14 16:52:07 +000023729fi
Reid Spencera773bd52006-08-04 18:18:08 +000023730
Torok Edwincc499a42008-10-22 09:56:27 +000023731rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer2706f8c2004-09-19 23:53:36 +000023732 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023733if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
23734
23735 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
23736 # Warning - without using the other run time loading flags,
23737 # -berok will link without error, but may produce a broken library.
23738 no_undefined_flag_GCJ=' ${wl}-bernotok'
23739 allow_undefined_flag_GCJ=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000023740 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000023741 whole_archive_flag_spec_GCJ='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000023742 archive_cmds_need_lc_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000023743 # This is similar to how AIX traditionally builds its shared libraries.
23744 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 +000023745 fi
23746 fi
23747 ;;
23748
23749 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000023750 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 +000023751 hardcode_libdir_flag_spec_GCJ='-L$libdir'
23752 hardcode_minus_L_GCJ=yes
23753 # see comment about different semantics on the GNU ld section
23754 ld_shlibs_GCJ=no
23755 ;;
23756
Reid Spencer2706f8c2004-09-19 23:53:36 +000023757 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000023758 export_dynamic_flag_spec_GCJ=-rdynamic
23759 ;;
23760
23761 cygwin* | mingw* | pw32*)
23762 # When not using gcc, we currently assume that we are using
23763 # Microsoft Visual C++.
23764 # hardcode_libdir_flag_spec is actually meaningless, as there is
23765 # no search path for DLLs.
23766 hardcode_libdir_flag_spec_GCJ=' '
23767 allow_undefined_flag_GCJ=unsupported
23768 # Tell ltmain to make .lib files, not .a files.
23769 libext=lib
23770 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023771 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000023772 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000023773 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 +000023774 # The linker will automatically build a .lib file if we build a DLL.
23775 old_archive_From_new_cmds_GCJ='true'
23776 # FIXME: Should let the user specify the lib program.
23777 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
Reid Spencera773bd52006-08-04 18:18:08 +000023778 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
John Criswell47fdd832003-07-14 16:52:07 +000023779 enable_shared_with_static_runtimes_GCJ=yes
23780 ;;
23781
23782 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000023783 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000023784 rhapsody* | darwin1.[012])
23785 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
23786 ;;
23787 *) # Darwin 1.3 on
23788 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
23789 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
23790 else
23791 case ${MACOSX_DEPLOYMENT_TARGET} in
23792 10.[012])
23793 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
23794 ;;
23795 10.*)
23796 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
23797 ;;
23798 esac
23799 fi
23800 ;;
John Criswell47fdd832003-07-14 16:52:07 +000023801 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000023802 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000023803 hardcode_direct_GCJ=no
23804 hardcode_automatic_GCJ=yes
23805 hardcode_shlibpath_var_GCJ=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000023806 whole_archive_flag_spec_GCJ=''
John Criswell47fdd832003-07-14 16:52:07 +000023807 link_all_deplibs_GCJ=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000023808 if test "$GCC" = yes ; then
23809 output_verbose_link_cmd='echo'
23810 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
23811 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000023812 # 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 +000023813 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}'
23814 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 +000023815 else
Reid Spencera773bd52006-08-04 18:18:08 +000023816 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000023817 xlc*)
23818 output_verbose_link_cmd='echo'
23819 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
23820 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000023821 # 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 +000023822 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}'
23823 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 +000023824 ;;
23825 *)
23826 ld_shlibs_GCJ=no
23827 ;;
23828 esac
John Criswell47fdd832003-07-14 16:52:07 +000023829 fi
23830 ;;
23831
23832 dgux*)
23833 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23834 hardcode_libdir_flag_spec_GCJ='-L$libdir'
23835 hardcode_shlibpath_var_GCJ=no
23836 ;;
23837
23838 freebsd1*)
23839 ld_shlibs_GCJ=no
23840 ;;
23841
23842 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
23843 # support. Future versions do this automatically, but an explicit c++rt0.o
23844 # does not break anything, and helps significantly (at the cost of a little
23845 # extra space).
23846 freebsd2.2*)
23847 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
23848 hardcode_libdir_flag_spec_GCJ='-R$libdir'
23849 hardcode_direct_GCJ=yes
23850 hardcode_shlibpath_var_GCJ=no
23851 ;;
23852
23853 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
23854 freebsd2*)
23855 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
23856 hardcode_direct_GCJ=yes
23857 hardcode_minus_L_GCJ=yes
23858 hardcode_shlibpath_var_GCJ=no
23859 ;;
23860
23861 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000023862 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000023863 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
23864 hardcode_libdir_flag_spec_GCJ='-R$libdir'
23865 hardcode_direct_GCJ=yes
23866 hardcode_shlibpath_var_GCJ=no
23867 ;;
23868
23869 hpux9*)
23870 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000023871 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 +000023872 else
Reid Spencer177dbe22004-10-13 01:01:03 +000023873 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 +000023874 fi
23875 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
23876 hardcode_libdir_separator_GCJ=:
23877 hardcode_direct_GCJ=yes
23878
23879 # hardcode_minus_L: Not really in the search PATH,
23880 # but as the default location of the library.
23881 hardcode_minus_L_GCJ=yes
23882 export_dynamic_flag_spec_GCJ='${wl}-E'
23883 ;;
23884
Reid Spencera773bd52006-08-04 18:18:08 +000023885 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000023886 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000023887 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
23888 else
23889 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
23890 fi
23891 if test "$with_gnu_ld" = no; then
23892 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
23893 hardcode_libdir_separator_GCJ=:
23894
23895 hardcode_direct_GCJ=yes
23896 export_dynamic_flag_spec_GCJ='${wl}-E'
23897
23898 # hardcode_minus_L: Not really in the search PATH,
23899 # but as the default location of the library.
23900 hardcode_minus_L_GCJ=yes
23901 fi
23902 ;;
23903
23904 hpux11*)
23905 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
23906 case $host_cpu in
23907 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000023908 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
23909 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023910 ia64*)
23911 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
23912 ;;
John Criswell47fdd832003-07-14 16:52:07 +000023913 *)
23914 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
23915 ;;
23916 esac
23917 else
Reid Spencera773bd52006-08-04 18:18:08 +000023918 case $host_cpu in
23919 hppa*64*)
23920 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
23921 ;;
23922 ia64*)
23923 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000023924 ;;
23925 *)
Reid Spencera773bd52006-08-04 18:18:08 +000023926 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 +000023927 ;;
23928 esac
23929 fi
23930 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000023931 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
23932 hardcode_libdir_separator_GCJ=:
John Criswell47fdd832003-07-14 16:52:07 +000023933
Reid Spencera773bd52006-08-04 18:18:08 +000023934 case $host_cpu in
23935 hppa*64*|ia64*)
23936 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
23937 hardcode_direct_GCJ=no
23938 hardcode_shlibpath_var_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000023939 ;;
23940 *)
John Criswell47fdd832003-07-14 16:52:07 +000023941 hardcode_direct_GCJ=yes
23942 export_dynamic_flag_spec_GCJ='${wl}-E'
23943
23944 # hardcode_minus_L: Not really in the search PATH,
23945 # but as the default location of the library.
23946 hardcode_minus_L_GCJ=yes
23947 ;;
23948 esac
23949 fi
23950 ;;
23951
23952 irix5* | irix6* | nonstopux*)
23953 if test "$GCC" = yes; then
23954 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'
23955 else
23956 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'
23957 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
23958 fi
23959 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
23960 hardcode_libdir_separator_GCJ=:
23961 link_all_deplibs_GCJ=yes
23962 ;;
23963
23964 netbsd*)
23965 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23966 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
23967 else
23968 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
23969 fi
23970 hardcode_libdir_flag_spec_GCJ='-R$libdir'
23971 hardcode_direct_GCJ=yes
23972 hardcode_shlibpath_var_GCJ=no
23973 ;;
23974
23975 newsos6)
23976 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23977 hardcode_direct_GCJ=yes
23978 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
23979 hardcode_libdir_separator_GCJ=:
23980 hardcode_shlibpath_var_GCJ=no
23981 ;;
23982
23983 openbsd*)
23984 hardcode_direct_GCJ=yes
23985 hardcode_shlibpath_var_GCJ=no
23986 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23987 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000023988 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 +000023989 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
23990 export_dynamic_flag_spec_GCJ='${wl}-E'
23991 else
23992 case $host_os in
23993 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
23994 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
23995 hardcode_libdir_flag_spec_GCJ='-R$libdir'
23996 ;;
23997 *)
23998 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
23999 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24000 ;;
24001 esac
24002 fi
24003 ;;
24004
24005 os2*)
24006 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24007 hardcode_minus_L_GCJ=yes
24008 allow_undefined_flag_GCJ=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000024009 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 +000024010 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
24011 ;;
24012
24013 osf3*)
24014 if test "$GCC" = yes; then
24015 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
24016 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'
24017 else
24018 allow_undefined_flag_GCJ=' -expect_unresolved \*'
24019 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'
24020 fi
24021 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24022 hardcode_libdir_separator_GCJ=:
24023 ;;
24024
24025 osf4* | osf5*) # as osf3* with the addition of -msym flag
24026 if test "$GCC" = yes; then
24027 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
24028 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'
24029 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24030 else
24031 allow_undefined_flag_GCJ=' -expect_unresolved \*'
24032 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 +000024033 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 +000024034 $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 +000024035
John Criswell47fdd832003-07-14 16:52:07 +000024036 # Both c and cxx compiler support -rpath directly
24037 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
24038 fi
24039 hardcode_libdir_separator_GCJ=:
24040 ;;
24041
John Criswell47fdd832003-07-14 16:52:07 +000024042 solaris*)
24043 no_undefined_flag_GCJ=' -z text'
24044 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000024045 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000024046 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000024047 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
24048 $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 +000024049 else
Reid Spencera773bd52006-08-04 18:18:08 +000024050 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000024051 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000024052 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
24053 $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 +000024054 fi
24055 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24056 hardcode_shlibpath_var_GCJ=no
24057 case $host_os in
24058 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024059 *)
24060 # The compiler driver will combine linker options so we
24061 # cannot just pass the convience library names through
24062 # without $wl, iff we do not link with $LD.
24063 # Luckily, gcc supports the same syntax we need for Sun Studio.
24064 # Supported since Solaris 2.6 (maybe 2.5.1?)
24065 case $wlarc in
24066 '')
24067 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
24068 *)
24069 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' ;;
24070 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000024071 esac
24072 link_all_deplibs_GCJ=yes
24073 ;;
24074
24075 sunos4*)
24076 if test "x$host_vendor" = xsequent; then
24077 # Use $CC to link under sequent, because it throws in some extra .o
24078 # files that make .init and .fini sections work.
24079 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
24080 else
24081 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
24082 fi
24083 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24084 hardcode_direct_GCJ=yes
24085 hardcode_minus_L_GCJ=yes
24086 hardcode_shlibpath_var_GCJ=no
24087 ;;
24088
24089 sysv4)
24090 case $host_vendor in
24091 sni)
24092 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24093 hardcode_direct_GCJ=yes # is this really true???
24094 ;;
24095 siemens)
24096 ## LD is ld it makes a PLAMLIB
24097 ## CC just makes a GrossModule.
24098 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
24099 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
24100 hardcode_direct_GCJ=no
24101 ;;
24102 motorola)
24103 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24104 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
24105 ;;
24106 esac
24107 runpath_var='LD_RUN_PATH'
24108 hardcode_shlibpath_var_GCJ=no
24109 ;;
24110
24111 sysv4.3*)
24112 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24113 hardcode_shlibpath_var_GCJ=no
24114 export_dynamic_flag_spec_GCJ='-Bexport'
24115 ;;
24116
24117 sysv4*MP*)
24118 if test -d /usr/nec; then
24119 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24120 hardcode_shlibpath_var_GCJ=no
24121 runpath_var=LD_RUN_PATH
24122 hardcode_runpath_var=yes
24123 ld_shlibs_GCJ=yes
24124 fi
24125 ;;
24126
Reid Spencera773bd52006-08-04 18:18:08 +000024127 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
24128 no_undefined_flag_GCJ='${wl}-z,text'
24129 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000024130 hardcode_shlibpath_var_GCJ=no
Reid Spencera773bd52006-08-04 18:18:08 +000024131 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000024132
John Criswell47fdd832003-07-14 16:52:07 +000024133 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000024134 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24135 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 +000024136 else
Reid Spencera773bd52006-08-04 18:18:08 +000024137 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24138 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 +000024139 fi
John Criswell47fdd832003-07-14 16:52:07 +000024140 ;;
24141
Reid Spencera773bd52006-08-04 18:18:08 +000024142 sysv5* | sco3.2v5* | sco5v6*)
24143 # Note: We can NOT use -z defs as we might desire, because we do not
24144 # link with -lc, and that would cause any symbols used from libc to
24145 # always be unresolved, which means just about no library would
24146 # ever link correctly. If we're not using GNU ld we use -z text
24147 # though, which does catch some bad symbols but isn't as heavy-handed
24148 # as -z defs.
24149 no_undefined_flag_GCJ='${wl}-z,text'
24150 allow_undefined_flag_GCJ='${wl}-z,nodefs'
24151 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000024152 hardcode_shlibpath_var_GCJ=no
Reid Spencera773bd52006-08-04 18:18:08 +000024153 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
24154 hardcode_libdir_separator_GCJ=':'
24155 link_all_deplibs_GCJ=yes
24156 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000024157 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000024158
24159 if test "$GCC" = yes; then
24160 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24161 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24162 else
24163 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24164 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24165 fi
John Criswell47fdd832003-07-14 16:52:07 +000024166 ;;
24167
24168 uts4*)
24169 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24170 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24171 hardcode_shlibpath_var_GCJ=no
24172 ;;
24173
24174 *)
24175 ld_shlibs_GCJ=no
24176 ;;
24177 esac
24178 fi
24179
Reid Spencera773bd52006-08-04 18:18:08 +000024180{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
24181echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024182test "$ld_shlibs_GCJ" = no && can_build_shared=no
24183
John Criswell47fdd832003-07-14 16:52:07 +000024184#
24185# Do we need to explicitly link libc?
24186#
24187case "x$archive_cmds_need_lc_GCJ" in
24188x|xyes)
24189 # Assume -lc should be added
24190 archive_cmds_need_lc_GCJ=yes
24191
24192 if test "$enable_shared" = yes && test "$GCC" = yes; then
24193 case $archive_cmds_GCJ in
Reid Spencer2706f8c2004-09-19 23:53:36 +000024194 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000024195 # FIXME: we may have to deal with multi-command sequences.
24196 ;;
24197 '$CC '*)
24198 # Test whether the compiler implicitly links with -lc since on some
24199 # systems, -lgcc has to come before -lc. If gcc already passes -lc
24200 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000024201 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
24202echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024203 $rm conftest*
24204 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24205
24206 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24207 (eval $ac_compile) 2>&5
24208 ac_status=$?
24209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24210 (exit $ac_status); } 2>conftest.err; then
24211 soname=conftest
24212 lib=conftest
24213 libobjs=conftest.$ac_objext
24214 deplibs=
24215 wl=$lt_prog_compiler_wl_GCJ
Reid Spencera773bd52006-08-04 18:18:08 +000024216 pic_flag=$lt_prog_compiler_pic_GCJ
John Criswell47fdd832003-07-14 16:52:07 +000024217 compiler_flags=-v
24218 linker_flags=-v
24219 verstring=
24220 output_objdir=.
24221 libname=conftest
24222 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
24223 allow_undefined_flag_GCJ=
24224 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
24225 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
24226 ac_status=$?
24227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24228 (exit $ac_status); }
24229 then
24230 archive_cmds_need_lc_GCJ=no
24231 else
24232 archive_cmds_need_lc_GCJ=yes
24233 fi
24234 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
24235 else
24236 cat conftest.err 1>&5
24237 fi
24238 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000024239 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
24240echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024241 ;;
24242 esac
24243 fi
24244 ;;
24245esac
24246
Reid Spencera773bd52006-08-04 18:18:08 +000024247{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
24248echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024249library_names_spec=
24250libname_spec='lib$name'
24251soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000024252shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000024253postinstall_cmds=
24254postuninstall_cmds=
24255finish_cmds=
24256finish_eval=
24257shlibpath_var=
24258shlibpath_overrides_runpath=unknown
24259version_type=none
24260dynamic_linker="$host_os ld.so"
24261sys_lib_dlsearch_path_spec="/lib /usr/lib"
24262if test "$GCC" = yes; then
24263 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
24264 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
24265 # if the path contains ";" then we assume it to be the separator
24266 # otherwise default to the standard path separator (i.e. ":") - it is
24267 # assumed that no part of a normal pathname contains ";" but that should
24268 # okay in the real world where ";" in dirpaths is itself problematic.
24269 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
24270 else
24271 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
24272 fi
24273else
24274 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
24275fi
24276need_lib_prefix=unknown
24277hardcode_into_libs=no
24278
24279# when you set need_version to no, make sure it does not cause -set_version
24280# flags to be left without arguments
24281need_version=unknown
24282
24283case $host_os in
24284aix3*)
24285 version_type=linux
24286 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
24287 shlibpath_var=LIBPATH
24288
24289 # AIX 3 has no versioning support, so we append a major version to the name.
24290 soname_spec='${libname}${release}${shared_ext}$major'
24291 ;;
24292
24293aix4* | aix5*)
24294 version_type=linux
24295 need_lib_prefix=no
24296 need_version=no
24297 hardcode_into_libs=yes
24298 if test "$host_cpu" = ia64; then
24299 # AIX 5 supports IA64
24300 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
24301 shlibpath_var=LD_LIBRARY_PATH
24302 else
24303 # With GCC up to 2.95.x, collect2 would create an import file
24304 # for dependence libraries. The import file would start with
24305 # the line `#! .'. This would cause the generated library to
24306 # depend on `.', always an invalid library. This was fixed in
24307 # development snapshots of GCC prior to 3.0.
24308 case $host_os in
24309 aix4 | aix4.[01] | aix4.[01].*)
24310 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
24311 echo ' yes '
24312 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
24313 :
24314 else
24315 can_build_shared=no
24316 fi
24317 ;;
24318 esac
24319 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
24320 # soname into executable. Probably we can add versioning support to
24321 # collect2, so additional links can be useful in future.
24322 if test "$aix_use_runtimelinking" = yes; then
24323 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
24324 # instead of lib<name>.a to let people know that these are not
24325 # typical AIX shared libraries.
24326 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24327 else
24328 # We preserve .a as extension for shared libraries through AIX4.2
24329 # and later when we are not doing run time linking.
24330 library_names_spec='${libname}${release}.a $libname.a'
24331 soname_spec='${libname}${release}${shared_ext}$major'
24332 fi
24333 shlibpath_var=LIBPATH
24334 fi
24335 ;;
24336
24337amigaos*)
24338 library_names_spec='$libname.ixlibrary $libname.a'
24339 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024340 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 +000024341 ;;
24342
24343beos*)
24344 library_names_spec='${libname}${shared_ext}'
24345 dynamic_linker="$host_os ld.so"
24346 shlibpath_var=LIBRARY_PATH
24347 ;;
24348
Reid Spencer2706f8c2004-09-19 23:53:36 +000024349bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000024350 version_type=linux
24351 need_version=no
24352 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24353 soname_spec='${libname}${release}${shared_ext}$major'
24354 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
24355 shlibpath_var=LD_LIBRARY_PATH
24356 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
24357 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
24358 # the default ld.so.conf also contains /usr/contrib/lib and
24359 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
24360 # libtool to hard-code these into programs
24361 ;;
24362
24363cygwin* | mingw* | pw32*)
24364 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000024365 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000024366 need_version=no
24367 need_lib_prefix=no
24368
24369 case $GCC,$host_os in
24370 yes,cygwin* | yes,mingw* | yes,pw32*)
24371 library_names_spec='$libname.dll.a'
24372 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000024373 postinstall_cmds='base_file=`basename \${file}`~
24374 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
24375 dldir=$destdir/`dirname \$dlpath`~
24376 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000024377 $install_prog $dir/$dlname \$dldir/$dlname~
24378 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000024379 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
24380 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000024381 $rm \$dlpath'
24382 shlibpath_overrides_runpath=yes
24383
24384 case $host_os in
24385 cygwin*)
24386 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
24387 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 +000024388 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000024389 ;;
24390 mingw*)
24391 # MinGW DLLs use traditional 'lib' prefix
24392 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
24393 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
24394 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
24395 # It is most probably a Windows format PATH printed by
24396 # mingw gcc, but we are running on Cygwin. Gcc prints its search
24397 # path with ; separators, and with drive letters. We can handle the
24398 # drive letters (cygwin fileutils understands them), so leave them,
24399 # especially as we might pass files found there to a mingw objdump,
24400 # which wouldn't understand a cygwinified path. Ahh.
24401 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
24402 else
24403 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
24404 fi
24405 ;;
24406 pw32*)
24407 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000024408 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 +000024409 ;;
24410 esac
24411 ;;
24412
24413 *)
24414 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
24415 ;;
24416 esac
24417 dynamic_linker='Win32 ld.exe'
24418 # FIXME: first we should search . and the directory the executable is in
24419 shlibpath_var=PATH
24420 ;;
24421
24422darwin* | rhapsody*)
24423 dynamic_linker="$host_os dyld"
24424 version_type=darwin
24425 need_lib_prefix=no
24426 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000024427 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000024428 soname_spec='${libname}${release}${major}$shared_ext'
24429 shlibpath_overrides_runpath=yes
24430 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000024431 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000024432 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024433 if test "$GCC" = yes; then
24434 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"`
24435 else
24436 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000024437 fi
24438 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
24439 ;;
24440
24441dgux*)
24442 version_type=linux
24443 need_lib_prefix=no
24444 need_version=no
24445 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
24446 soname_spec='${libname}${release}${shared_ext}$major'
24447 shlibpath_var=LD_LIBRARY_PATH
24448 ;;
24449
24450freebsd1*)
24451 dynamic_linker=no
24452 ;;
24453
Reid Spencer2706f8c2004-09-19 23:53:36 +000024454kfreebsd*-gnu)
24455 version_type=linux
24456 need_lib_prefix=no
24457 need_version=no
24458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
24459 soname_spec='${libname}${release}${shared_ext}$major'
24460 shlibpath_var=LD_LIBRARY_PATH
24461 shlibpath_overrides_runpath=no
24462 hardcode_into_libs=yes
24463 dynamic_linker='GNU ld.so'
24464 ;;
24465
Reid Spencera773bd52006-08-04 18:18:08 +000024466freebsd* | dragonfly*)
24467 # DragonFly does not have aout. When/if they implement a new
24468 # versioning mechanism, adjust this.
24469 if test -x /usr/bin/objformat; then
24470 objformat=`/usr/bin/objformat`
24471 else
24472 case $host_os in
24473 freebsd[123]*) objformat=aout ;;
24474 *) objformat=elf ;;
24475 esac
24476 fi
John Criswell47fdd832003-07-14 16:52:07 +000024477 version_type=freebsd-$objformat
24478 case $version_type in
24479 freebsd-elf*)
24480 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
24481 need_version=no
24482 need_lib_prefix=no
24483 ;;
24484 freebsd-*)
24485 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
24486 need_version=yes
24487 ;;
24488 esac
24489 shlibpath_var=LD_LIBRARY_PATH
24490 case $host_os in
24491 freebsd2*)
24492 shlibpath_overrides_runpath=yes
24493 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024494 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000024495 shlibpath_overrides_runpath=yes
24496 hardcode_into_libs=yes
24497 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024498 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
24499 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000024500 shlibpath_overrides_runpath=no
24501 hardcode_into_libs=yes
24502 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024503 freebsd*) # from 4.6 on
24504 shlibpath_overrides_runpath=yes
24505 hardcode_into_libs=yes
24506 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024507 esac
24508 ;;
24509
24510gnu*)
24511 version_type=linux
24512 need_lib_prefix=no
24513 need_version=no
24514 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
24515 soname_spec='${libname}${release}${shared_ext}$major'
24516 shlibpath_var=LD_LIBRARY_PATH
24517 hardcode_into_libs=yes
24518 ;;
24519
24520hpux9* | hpux10* | hpux11*)
24521 # Give a soname corresponding to the major version so that dld.sl refuses to
24522 # link against other versions.
24523 version_type=sunos
24524 need_lib_prefix=no
24525 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000024526 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000024527 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000024528 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000024529 hardcode_into_libs=yes
24530 dynamic_linker="$host_os dld.so"
24531 shlibpath_var=LD_LIBRARY_PATH
24532 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
24533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24534 soname_spec='${libname}${release}${shared_ext}$major'
24535 if test "X$HPUX_IA64_MODE" = X32; then
24536 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
24537 else
24538 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
24539 fi
24540 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
24541 ;;
24542 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000024543 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000024544 hardcode_into_libs=yes
24545 dynamic_linker="$host_os dld.sl"
24546 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
24547 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
24548 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24549 soname_spec='${libname}${release}${shared_ext}$major'
24550 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
24551 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
24552 ;;
24553 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000024554 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000024555 dynamic_linker="$host_os dld.sl"
24556 shlibpath_var=SHLIB_PATH
24557 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
24558 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24559 soname_spec='${libname}${release}${shared_ext}$major'
24560 ;;
24561 esac
24562 # HP-UX runs *really* slowly unless shared libraries are mode 555.
24563 postinstall_cmds='chmod 555 $lib'
24564 ;;
24565
Reid Spencera773bd52006-08-04 18:18:08 +000024566interix3*)
24567 version_type=linux
24568 need_lib_prefix=no
24569 need_version=no
24570 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
24571 soname_spec='${libname}${release}${shared_ext}$major'
24572 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
24573 shlibpath_var=LD_LIBRARY_PATH
24574 shlibpath_overrides_runpath=no
24575 hardcode_into_libs=yes
24576 ;;
24577
John Criswell47fdd832003-07-14 16:52:07 +000024578irix5* | irix6* | nonstopux*)
24579 case $host_os in
24580 nonstopux*) version_type=nonstopux ;;
24581 *)
24582 if test "$lt_cv_prog_gnu_ld" = yes; then
24583 version_type=linux
24584 else
24585 version_type=irix
24586 fi ;;
24587 esac
24588 need_lib_prefix=no
24589 need_version=no
24590 soname_spec='${libname}${release}${shared_ext}$major'
24591 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
24592 case $host_os in
24593 irix5* | nonstopux*)
24594 libsuff= shlibsuff=
24595 ;;
24596 *)
24597 case $LD in # libtool.m4 will add one of these switches to LD
24598 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
24599 libsuff= shlibsuff= libmagic=32-bit;;
24600 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
24601 libsuff=32 shlibsuff=N32 libmagic=N32;;
24602 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
24603 libsuff=64 shlibsuff=64 libmagic=64-bit;;
24604 *) libsuff= shlibsuff= libmagic=never-match;;
24605 esac
24606 ;;
24607 esac
24608 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
24609 shlibpath_overrides_runpath=no
24610 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
24611 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
24612 hardcode_into_libs=yes
24613 ;;
24614
24615# No shared lib support for Linux oldld, aout, or coff.
24616linux*oldld* | linux*aout* | linux*coff*)
24617 dynamic_linker=no
24618 ;;
24619
24620# This must be Linux ELF.
24621linux*)
24622 version_type=linux
24623 need_lib_prefix=no
24624 need_version=no
24625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24626 soname_spec='${libname}${release}${shared_ext}$major'
24627 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
24628 shlibpath_var=LD_LIBRARY_PATH
24629 shlibpath_overrides_runpath=no
24630 # This implies no fast_install, which is unacceptable.
24631 # Some rework will be needed to allow for fast_install
24632 # before this can be enabled.
24633 hardcode_into_libs=yes
24634
Reid Spencer2706f8c2004-09-19 23:53:36 +000024635 # Append ld.so.conf contents to the search path
24636 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000024637 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 +000024638 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
24639 fi
24640
John Criswell47fdd832003-07-14 16:52:07 +000024641 # We used to test for /lib/ld.so.1 and disable shared libraries on
24642 # powerpc, because MkLinux only supported shared libraries with the
24643 # GNU dynamic linker. Since this was broken with cross compilers,
24644 # most powerpc-linux boxes support dynamic linking these days and
24645 # people can always --disable-shared, the test was removed, and we
24646 # assume the GNU/Linux dynamic linker is in use.
24647 dynamic_linker='GNU/Linux ld.so'
24648 ;;
24649
Reid Spencer2706f8c2004-09-19 23:53:36 +000024650knetbsd*-gnu)
24651 version_type=linux
24652 need_lib_prefix=no
24653 need_version=no
24654 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
24655 soname_spec='${libname}${release}${shared_ext}$major'
24656 shlibpath_var=LD_LIBRARY_PATH
24657 shlibpath_overrides_runpath=no
24658 hardcode_into_libs=yes
24659 dynamic_linker='GNU ld.so'
24660 ;;
24661
John Criswell47fdd832003-07-14 16:52:07 +000024662netbsd*)
24663 version_type=sunos
24664 need_lib_prefix=no
24665 need_version=no
24666 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24667 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
24668 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
24669 dynamic_linker='NetBSD (a.out) ld.so'
24670 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000024671 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000024672 soname_spec='${libname}${release}${shared_ext}$major'
24673 dynamic_linker='NetBSD ld.elf_so'
24674 fi
24675 shlibpath_var=LD_LIBRARY_PATH
24676 shlibpath_overrides_runpath=yes
24677 hardcode_into_libs=yes
24678 ;;
24679
24680newsos6)
24681 version_type=linux
24682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24683 shlibpath_var=LD_LIBRARY_PATH
24684 shlibpath_overrides_runpath=yes
24685 ;;
24686
Reid Spencer2706f8c2004-09-19 23:53:36 +000024687nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000024688 version_type=linux
24689 need_lib_prefix=no
24690 need_version=no
24691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24692 soname_spec='${libname}${release}${shared_ext}$major'
24693 shlibpath_var=LD_LIBRARY_PATH
24694 shlibpath_overrides_runpath=yes
24695 ;;
24696
24697openbsd*)
24698 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000024699 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000024700 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000024701 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
24702 case $host_os in
24703 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
24704 *) need_version=no ;;
24705 esac
John Criswell47fdd832003-07-14 16:52:07 +000024706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
24707 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
24708 shlibpath_var=LD_LIBRARY_PATH
24709 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
24710 case $host_os in
24711 openbsd2.[89] | openbsd2.[89].*)
24712 shlibpath_overrides_runpath=no
24713 ;;
24714 *)
24715 shlibpath_overrides_runpath=yes
24716 ;;
24717 esac
24718 else
24719 shlibpath_overrides_runpath=yes
24720 fi
24721 ;;
24722
24723os2*)
24724 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000024725 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000024726 need_lib_prefix=no
24727 library_names_spec='$libname${shared_ext} $libname.a'
24728 dynamic_linker='OS/2 ld.exe'
24729 shlibpath_var=LIBPATH
24730 ;;
24731
24732osf3* | osf4* | osf5*)
24733 version_type=osf
24734 need_lib_prefix=no
24735 need_version=no
24736 soname_spec='${libname}${release}${shared_ext}$major'
24737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24738 shlibpath_var=LD_LIBRARY_PATH
24739 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
24740 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
24741 ;;
24742
John Criswell47fdd832003-07-14 16:52:07 +000024743solaris*)
24744 version_type=linux
24745 need_lib_prefix=no
24746 need_version=no
24747 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24748 soname_spec='${libname}${release}${shared_ext}$major'
24749 shlibpath_var=LD_LIBRARY_PATH
24750 shlibpath_overrides_runpath=yes
24751 hardcode_into_libs=yes
24752 # ldd complains unless libraries are executable
24753 postinstall_cmds='chmod +x $lib'
24754 ;;
24755
24756sunos4*)
24757 version_type=sunos
24758 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
24759 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
24760 shlibpath_var=LD_LIBRARY_PATH
24761 shlibpath_overrides_runpath=yes
24762 if test "$with_gnu_ld" = yes; then
24763 need_lib_prefix=no
24764 fi
24765 need_version=yes
24766 ;;
24767
Reid Spencera773bd52006-08-04 18:18:08 +000024768sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000024769 version_type=linux
24770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24771 soname_spec='${libname}${release}${shared_ext}$major'
24772 shlibpath_var=LD_LIBRARY_PATH
24773 case $host_vendor in
24774 sni)
24775 shlibpath_overrides_runpath=no
24776 need_lib_prefix=no
24777 export_dynamic_flag_spec='${wl}-Blargedynsym'
24778 runpath_var=LD_RUN_PATH
24779 ;;
24780 siemens)
24781 need_lib_prefix=no
24782 ;;
24783 motorola)
24784 need_lib_prefix=no
24785 need_version=no
24786 shlibpath_overrides_runpath=no
24787 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
24788 ;;
24789 esac
24790 ;;
24791
24792sysv4*MP*)
24793 if test -d /usr/nec ;then
24794 version_type=linux
24795 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
24796 soname_spec='$libname${shared_ext}.$major'
24797 shlibpath_var=LD_LIBRARY_PATH
24798 fi
24799 ;;
24800
Reid Spencera773bd52006-08-04 18:18:08 +000024801sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
24802 version_type=freebsd-elf
24803 need_lib_prefix=no
24804 need_version=no
24805 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
24806 soname_spec='${libname}${release}${shared_ext}$major'
24807 shlibpath_var=LD_LIBRARY_PATH
24808 hardcode_into_libs=yes
24809 if test "$with_gnu_ld" = yes; then
24810 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
24811 shlibpath_overrides_runpath=no
24812 else
24813 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
24814 shlibpath_overrides_runpath=yes
24815 case $host_os in
24816 sco3.2v5*)
24817 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
24818 ;;
24819 esac
24820 fi
24821 sys_lib_dlsearch_path_spec='/usr/lib'
24822 ;;
24823
John Criswell47fdd832003-07-14 16:52:07 +000024824uts4*)
24825 version_type=linux
24826 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24827 soname_spec='${libname}${release}${shared_ext}$major'
24828 shlibpath_var=LD_LIBRARY_PATH
24829 ;;
24830
24831*)
24832 dynamic_linker=no
24833 ;;
24834esac
Reid Spencera773bd52006-08-04 18:18:08 +000024835{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
24836echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024837test "$dynamic_linker" = no && can_build_shared=no
24838
Reid Spencera773bd52006-08-04 18:18:08 +000024839variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
24840if test "$GCC" = yes; then
24841 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
24842fi
24843
24844{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
24845echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000024846hardcode_action_GCJ=
24847if test -n "$hardcode_libdir_flag_spec_GCJ" || \
24848 test -n "$runpath_var_GCJ" || \
24849 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
24850
24851 # We can hardcode non-existant directories.
24852 if test "$hardcode_direct_GCJ" != no &&
24853 # If the only mechanism to avoid hardcoding is shlibpath_var, we
24854 # have to relink, otherwise we might link with an installed library
24855 # when we should be linking with a yet-to-be-installed one
24856 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
24857 test "$hardcode_minus_L_GCJ" != no; then
24858 # Linking always hardcodes the temporary library directory.
24859 hardcode_action_GCJ=relink
24860 else
24861 # We can link without hardcoding, and we can hardcode nonexisting dirs.
24862 hardcode_action_GCJ=immediate
24863 fi
24864else
24865 # We cannot hardcode anything, or else we can only hardcode existing
24866 # directories.
24867 hardcode_action_GCJ=unsupported
24868fi
Reid Spencera773bd52006-08-04 18:18:08 +000024869{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
24870echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000024871
24872if test "$hardcode_action_GCJ" = relink; then
24873 # Fast installation is not supported
24874 enable_fast_install=no
24875elif test "$shlibpath_overrides_runpath" = yes ||
24876 test "$enable_shared" = no; then
24877 # Fast installation is not necessary
24878 enable_fast_install=needless
24879fi
24880
John Criswell47fdd832003-07-14 16:52:07 +000024881
24882# The else clause should only fire when bootstrapping the
24883# libtool distribution, otherwise you forgot to ship ltmain.sh
24884# with your package, and you will get complaints that there are
24885# no rules to generate ltmain.sh.
24886if test -f "$ltmain"; then
24887 # See if we are running on zsh, and set the options which allow our commands through
24888 # without removal of \ escapes.
24889 if test -n "${ZSH_VERSION+set}" ; then
24890 setopt NO_GLOB_SUBST
24891 fi
24892 # Now quote all the things that may contain metacharacters while being
24893 # careful not to overquote the AC_SUBSTed values. We take copies of the
24894 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000024895 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 +000024896 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000024897 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
24898 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
24899 deplibs_check_method reload_flag reload_cmds need_locks \
24900 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
24901 lt_cv_sys_global_symbol_to_c_name_address \
24902 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
24903 old_postinstall_cmds old_postuninstall_cmds \
24904 compiler_GCJ \
24905 CC_GCJ \
24906 LD_GCJ \
24907 lt_prog_compiler_wl_GCJ \
24908 lt_prog_compiler_pic_GCJ \
24909 lt_prog_compiler_static_GCJ \
24910 lt_prog_compiler_no_builtin_flag_GCJ \
24911 export_dynamic_flag_spec_GCJ \
24912 thread_safe_flag_spec_GCJ \
24913 whole_archive_flag_spec_GCJ \
24914 enable_shared_with_static_runtimes_GCJ \
24915 old_archive_cmds_GCJ \
24916 old_archive_from_new_cmds_GCJ \
24917 predep_objects_GCJ \
24918 postdep_objects_GCJ \
24919 predeps_GCJ \
24920 postdeps_GCJ \
24921 compiler_lib_search_path_GCJ \
24922 archive_cmds_GCJ \
24923 archive_expsym_cmds_GCJ \
24924 postinstall_cmds_GCJ \
24925 postuninstall_cmds_GCJ \
24926 old_archive_from_expsyms_cmds_GCJ \
24927 allow_undefined_flag_GCJ \
24928 no_undefined_flag_GCJ \
24929 export_symbols_cmds_GCJ \
24930 hardcode_libdir_flag_spec_GCJ \
24931 hardcode_libdir_flag_spec_ld_GCJ \
24932 hardcode_libdir_separator_GCJ \
24933 hardcode_automatic_GCJ \
24934 module_cmds_GCJ \
24935 module_expsym_cmds_GCJ \
24936 lt_cv_prog_compiler_c_o_GCJ \
24937 exclude_expsyms_GCJ \
24938 include_expsyms_GCJ; do
24939
24940 case $var in
24941 old_archive_cmds_GCJ | \
24942 old_archive_from_new_cmds_GCJ | \
24943 archive_cmds_GCJ | \
24944 archive_expsym_cmds_GCJ | \
24945 module_cmds_GCJ | \
24946 module_expsym_cmds_GCJ | \
24947 old_archive_from_expsyms_cmds_GCJ | \
24948 export_symbols_cmds_GCJ | \
24949 extract_expsyms_cmds | reload_cmds | finish_cmds | \
24950 postinstall_cmds | postuninstall_cmds | \
24951 old_postinstall_cmds | old_postuninstall_cmds | \
24952 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
24953 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024954 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 +000024955 ;;
24956 *)
24957 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
24958 ;;
24959 esac
24960 done
24961
24962 case $lt_echo in
24963 *'\$0 --fallback-echo"')
24964 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
24965 ;;
24966 esac
24967
24968cfgfile="$ofile"
24969
24970 cat <<__EOF__ >> "$cfgfile"
24971# ### BEGIN LIBTOOL TAG CONFIG: $tagname
24972
24973# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24974
24975# Shell to use when invoking shell scripts.
24976SHELL=$lt_SHELL
24977
24978# Whether or not to build shared libraries.
24979build_libtool_libs=$enable_shared
24980
24981# Whether or not to build static libraries.
24982build_old_libs=$enable_static
24983
24984# Whether or not to add -lc for building shared libraries.
24985build_libtool_need_lc=$archive_cmds_need_lc_GCJ
24986
24987# Whether or not to disallow shared libs when runtime libs are static
24988allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
24989
24990# Whether or not to optimize for fast installation.
24991fast_install=$enable_fast_install
24992
24993# The host system.
24994host_alias=$host_alias
24995host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000024996host_os=$host_os
24997
24998# The build system.
24999build_alias=$build_alias
25000build=$build
25001build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000025002
25003# An echo program that does not interpret backslashes.
25004echo=$lt_echo
25005
25006# The archiver.
25007AR=$lt_AR
25008AR_FLAGS=$lt_AR_FLAGS
25009
25010# A C compiler.
25011LTCC=$lt_LTCC
25012
Reid Spencera773bd52006-08-04 18:18:08 +000025013# LTCC compiler flags.
25014LTCFLAGS=$lt_LTCFLAGS
25015
John Criswell47fdd832003-07-14 16:52:07 +000025016# A language-specific compiler.
25017CC=$lt_compiler_GCJ
25018
25019# Is the compiler the GNU C compiler?
25020with_gcc=$GCC_GCJ
25021
25022# An ERE matcher.
25023EGREP=$lt_EGREP
25024
25025# The linker used to build libraries.
25026LD=$lt_LD_GCJ
25027
25028# Whether we need hard or soft links.
25029LN_S=$lt_LN_S
25030
25031# A BSD-compatible nm program.
25032NM=$lt_NM
25033
25034# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000025035STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000025036
25037# Used to examine libraries when file_magic_cmd begins "file"
25038MAGIC_CMD=$MAGIC_CMD
25039
25040# Used on cygwin: DLL creation program.
25041DLLTOOL="$DLLTOOL"
25042
25043# Used on cygwin: object dumper.
25044OBJDUMP="$OBJDUMP"
25045
25046# Used on cygwin: assembler.
25047AS="$AS"
25048
25049# The name of the directory that contains temporary libtool files.
25050objdir=$objdir
25051
25052# How to create reloadable object files.
25053reload_flag=$lt_reload_flag
25054reload_cmds=$lt_reload_cmds
25055
25056# How to pass a linker flag through the compiler.
25057wl=$lt_lt_prog_compiler_wl_GCJ
25058
25059# Object file suffix (normally "o").
25060objext="$ac_objext"
25061
25062# Old archive suffix (normally "a").
25063libext="$libext"
25064
25065# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000025066shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000025067
25068# Executable file suffix (normally "").
25069exeext="$exeext"
25070
25071# Additional compiler flags for building library objects.
25072pic_flag=$lt_lt_prog_compiler_pic_GCJ
25073pic_mode=$pic_mode
25074
25075# What is the maximum length of a command?
25076max_cmd_len=$lt_cv_sys_max_cmd_len
25077
25078# Does compiler simultaneously support -c and -o options?
25079compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
25080
Reid Spencera773bd52006-08-04 18:18:08 +000025081# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000025082need_locks=$lt_need_locks
25083
25084# Do we need the lib prefix for modules?
25085need_lib_prefix=$need_lib_prefix
25086
25087# Do we need a version for libraries?
25088need_version=$need_version
25089
25090# Whether dlopen is supported.
25091dlopen_support=$enable_dlopen
25092
25093# Whether dlopen of programs is supported.
25094dlopen_self=$enable_dlopen_self
25095
25096# Whether dlopen of statically linked programs is supported.
25097dlopen_self_static=$enable_dlopen_self_static
25098
25099# Compiler flag to prevent dynamic linking.
25100link_static_flag=$lt_lt_prog_compiler_static_GCJ
25101
25102# Compiler flag to turn off builtin functions.
25103no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
25104
25105# Compiler flag to allow reflexive dlopens.
25106export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
25107
25108# Compiler flag to generate shared objects directly from archives.
25109whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
25110
25111# Compiler flag to generate thread-safe objects.
25112thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
25113
25114# Library versioning type.
25115version_type=$version_type
25116
25117# Format of library name prefix.
25118libname_spec=$lt_libname_spec
25119
25120# List of archive names. First name is the real one, the rest are links.
25121# The last name is the one that the linker finds with -lNAME.
25122library_names_spec=$lt_library_names_spec
25123
25124# The coded name of the library, if different from the real name.
25125soname_spec=$lt_soname_spec
25126
25127# Commands used to build and install an old-style archive.
25128RANLIB=$lt_RANLIB
25129old_archive_cmds=$lt_old_archive_cmds_GCJ
25130old_postinstall_cmds=$lt_old_postinstall_cmds
25131old_postuninstall_cmds=$lt_old_postuninstall_cmds
25132
25133# Create an old-style archive from a shared archive.
25134old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
25135
25136# Create a temporary old-style archive to link instead of a shared archive.
25137old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
25138
25139# Commands used to build and install a shared archive.
25140archive_cmds=$lt_archive_cmds_GCJ
25141archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
25142postinstall_cmds=$lt_postinstall_cmds
25143postuninstall_cmds=$lt_postuninstall_cmds
25144
25145# Commands used to build a loadable module (assumed same as above if empty)
25146module_cmds=$lt_module_cmds_GCJ
25147module_expsym_cmds=$lt_module_expsym_cmds_GCJ
25148
25149# Commands to strip libraries.
25150old_striplib=$lt_old_striplib
25151striplib=$lt_striplib
25152
25153# Dependencies to place before the objects being linked to create a
25154# shared library.
25155predep_objects=$lt_predep_objects_GCJ
25156
25157# Dependencies to place after the objects being linked to create a
25158# shared library.
25159postdep_objects=$lt_postdep_objects_GCJ
25160
25161# Dependencies to place before the objects being linked to create a
25162# shared library.
25163predeps=$lt_predeps_GCJ
25164
25165# Dependencies to place after the objects being linked to create a
25166# shared library.
25167postdeps=$lt_postdeps_GCJ
25168
25169# The library search path used internally by the compiler when linking
25170# a shared library.
25171compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
25172
25173# Method to check whether dependent libraries are shared objects.
25174deplibs_check_method=$lt_deplibs_check_method
25175
25176# Command to use when deplibs_check_method == file_magic.
25177file_magic_cmd=$lt_file_magic_cmd
25178
25179# Flag that allows shared libraries with undefined symbols to be built.
25180allow_undefined_flag=$lt_allow_undefined_flag_GCJ
25181
25182# Flag that forces no undefined symbols.
25183no_undefined_flag=$lt_no_undefined_flag_GCJ
25184
25185# Commands used to finish a libtool library installation in a directory.
25186finish_cmds=$lt_finish_cmds
25187
25188# Same as above, but a single script fragment to be evaled but not shown.
25189finish_eval=$lt_finish_eval
25190
25191# Take the output of nm and produce a listing of raw symbols and C names.
25192global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
25193
25194# Transform the output of nm in a proper C declaration
25195global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
25196
25197# Transform the output of nm in a C name address pair
25198global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
25199
25200# This is the shared library runtime path variable.
25201runpath_var=$runpath_var
25202
25203# This is the shared library path variable.
25204shlibpath_var=$shlibpath_var
25205
25206# Is shlibpath searched before the hard-coded library search path?
25207shlibpath_overrides_runpath=$shlibpath_overrides_runpath
25208
25209# How to hardcode a shared library path into an executable.
25210hardcode_action=$hardcode_action_GCJ
25211
25212# Whether we should hardcode library paths into libraries.
25213hardcode_into_libs=$hardcode_into_libs
25214
25215# Flag to hardcode \$libdir into a binary during linking.
25216# This must work even if \$libdir does not exist.
25217hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
25218
25219# If ld is used when linking, flag to hardcode \$libdir into
25220# a binary during linking. This must work even if \$libdir does
25221# not exist.
25222hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
25223
25224# Whether we need a single -rpath flag with a separated argument.
25225hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
25226
25227# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
25228# resulting binary.
25229hardcode_direct=$hardcode_direct_GCJ
25230
25231# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
25232# resulting binary.
25233hardcode_minus_L=$hardcode_minus_L_GCJ
25234
25235# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
25236# the resulting binary.
25237hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
25238
25239# Set to yes if building a shared library automatically hardcodes DIR into the library
25240# and all subsequent libraries and executables linked against it.
25241hardcode_automatic=$hardcode_automatic_GCJ
25242
25243# Variables whose values should be saved in libtool wrapper scripts and
25244# restored at relink time.
25245variables_saved_for_relink="$variables_saved_for_relink"
25246
25247# Whether libtool must link a program against all its dependency libraries.
25248link_all_deplibs=$link_all_deplibs_GCJ
25249
25250# Compile-time system search path for libraries
25251sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
25252
25253# Run-time system search path for libraries
25254sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
25255
25256# Fix the shell variable \$srcfile for the compiler.
25257fix_srcfile_path="$fix_srcfile_path_GCJ"
25258
25259# Set to yes if exported symbols are required.
25260always_export_symbols=$always_export_symbols_GCJ
25261
25262# The commands to list exported symbols.
25263export_symbols_cmds=$lt_export_symbols_cmds_GCJ
25264
25265# The commands to extract the exported symbol list from a shared archive.
25266extract_expsyms_cmds=$lt_extract_expsyms_cmds
25267
25268# Symbols that should not be listed in the preloaded symbols.
25269exclude_expsyms=$lt_exclude_expsyms_GCJ
25270
25271# Symbols that must always be exported.
25272include_expsyms=$lt_include_expsyms_GCJ
25273
25274# ### END LIBTOOL TAG CONFIG: $tagname
25275
25276__EOF__
25277
25278
25279else
25280 # If there is no Makefile yet, we rely on a make rule to execute
25281 # `config.status --recheck' to rerun these tests and create the
25282 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025283 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
25284 if test -f "$ltmain_in"; then
25285 test -f Makefile && make "$ltmain"
25286 fi
John Criswell47fdd832003-07-14 16:52:07 +000025287fi
25288
25289
25290ac_ext=c
25291ac_cpp='$CPP $CPPFLAGS'
25292ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25293ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25294ac_compiler_gnu=$ac_cv_c_compiler_gnu
25295
25296CC="$lt_save_CC"
25297
25298 else
25299 tagname=""
25300 fi
25301 ;;
25302
25303 RC)
Reid Spencer2706f8c2004-09-19 23:53:36 +000025304 ac_ext=c
25305ac_cpp='$CPP $CPPFLAGS'
25306ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25307ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25308ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000025309
25310
25311# Source file extension for RC test sources.
25312ac_ext=rc
25313
25314# Object file extension for compiled RC test sources.
25315objext=o
25316objext_RC=$objext
25317
25318# Code to be used in simple compile tests
25319lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
25320
25321# Code to be used in simple link tests
25322lt_simple_link_test_code="$lt_simple_compile_test_code"
25323
25324# ltmain only uses $CC for tagged configurations so make sure $CC is set.
25325
25326# If no C compiler was specified, use CC.
25327LTCC=${LTCC-"$CC"}
25328
Reid Spencera773bd52006-08-04 18:18:08 +000025329# If no C compiler flags were specified, use CFLAGS.
25330LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
25331
John Criswell47fdd832003-07-14 16:52:07 +000025332# Allow CC to be a program name with arguments.
25333compiler=$CC
25334
25335
Reid Spencera773bd52006-08-04 18:18:08 +000025336# save warnings/boilerplate of simple test code
25337ac_outfile=conftest.$ac_objext
25338printf "$lt_simple_compile_test_code" >conftest.$ac_ext
25339eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
25340_lt_compiler_boilerplate=`cat conftest.err`
25341$rm conftest*
25342
25343ac_outfile=conftest.$ac_objext
25344printf "$lt_simple_link_test_code" >conftest.$ac_ext
25345eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
25346_lt_linker_boilerplate=`cat conftest.err`
25347$rm conftest*
25348
25349
John Criswell47fdd832003-07-14 16:52:07 +000025350# Allow CC to be a program name with arguments.
25351lt_save_CC="$CC"
25352CC=${RC-"windres"}
25353compiler=$CC
25354compiler_RC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000025355for cc_temp in $compiler""; do
25356 case $cc_temp in
25357 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
25358 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
25359 \-*) ;;
25360 *) break;;
25361 esac
25362done
25363cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
25364
John Criswell47fdd832003-07-14 16:52:07 +000025365lt_cv_prog_compiler_c_o_RC=yes
25366
25367# The else clause should only fire when bootstrapping the
25368# libtool distribution, otherwise you forgot to ship ltmain.sh
25369# with your package, and you will get complaints that there are
25370# no rules to generate ltmain.sh.
25371if test -f "$ltmain"; then
25372 # See if we are running on zsh, and set the options which allow our commands through
25373 # without removal of \ escapes.
25374 if test -n "${ZSH_VERSION+set}" ; then
25375 setopt NO_GLOB_SUBST
25376 fi
25377 # Now quote all the things that may contain metacharacters while being
25378 # careful not to overquote the AC_SUBSTed values. We take copies of the
25379 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000025380 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 +000025381 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000025382 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
25383 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
25384 deplibs_check_method reload_flag reload_cmds need_locks \
25385 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
25386 lt_cv_sys_global_symbol_to_c_name_address \
25387 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
25388 old_postinstall_cmds old_postuninstall_cmds \
25389 compiler_RC \
25390 CC_RC \
25391 LD_RC \
25392 lt_prog_compiler_wl_RC \
25393 lt_prog_compiler_pic_RC \
25394 lt_prog_compiler_static_RC \
25395 lt_prog_compiler_no_builtin_flag_RC \
25396 export_dynamic_flag_spec_RC \
25397 thread_safe_flag_spec_RC \
25398 whole_archive_flag_spec_RC \
25399 enable_shared_with_static_runtimes_RC \
25400 old_archive_cmds_RC \
25401 old_archive_from_new_cmds_RC \
25402 predep_objects_RC \
25403 postdep_objects_RC \
25404 predeps_RC \
25405 postdeps_RC \
25406 compiler_lib_search_path_RC \
25407 archive_cmds_RC \
25408 archive_expsym_cmds_RC \
25409 postinstall_cmds_RC \
25410 postuninstall_cmds_RC \
25411 old_archive_from_expsyms_cmds_RC \
25412 allow_undefined_flag_RC \
25413 no_undefined_flag_RC \
25414 export_symbols_cmds_RC \
25415 hardcode_libdir_flag_spec_RC \
25416 hardcode_libdir_flag_spec_ld_RC \
25417 hardcode_libdir_separator_RC \
25418 hardcode_automatic_RC \
25419 module_cmds_RC \
25420 module_expsym_cmds_RC \
25421 lt_cv_prog_compiler_c_o_RC \
25422 exclude_expsyms_RC \
25423 include_expsyms_RC; do
25424
25425 case $var in
25426 old_archive_cmds_RC | \
25427 old_archive_from_new_cmds_RC | \
25428 archive_cmds_RC | \
25429 archive_expsym_cmds_RC | \
25430 module_cmds_RC | \
25431 module_expsym_cmds_RC | \
25432 old_archive_from_expsyms_cmds_RC | \
25433 export_symbols_cmds_RC | \
25434 extract_expsyms_cmds | reload_cmds | finish_cmds | \
25435 postinstall_cmds | postuninstall_cmds | \
25436 old_postinstall_cmds | old_postuninstall_cmds | \
25437 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
25438 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025439 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 +000025440 ;;
25441 *)
25442 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
25443 ;;
25444 esac
25445 done
25446
25447 case $lt_echo in
25448 *'\$0 --fallback-echo"')
25449 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
25450 ;;
25451 esac
25452
25453cfgfile="$ofile"
25454
25455 cat <<__EOF__ >> "$cfgfile"
25456# ### BEGIN LIBTOOL TAG CONFIG: $tagname
25457
25458# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
25459
25460# Shell to use when invoking shell scripts.
25461SHELL=$lt_SHELL
25462
25463# Whether or not to build shared libraries.
25464build_libtool_libs=$enable_shared
25465
25466# Whether or not to build static libraries.
25467build_old_libs=$enable_static
25468
25469# Whether or not to add -lc for building shared libraries.
25470build_libtool_need_lc=$archive_cmds_need_lc_RC
25471
25472# Whether or not to disallow shared libs when runtime libs are static
25473allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
25474
25475# Whether or not to optimize for fast installation.
25476fast_install=$enable_fast_install
25477
25478# The host system.
25479host_alias=$host_alias
25480host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000025481host_os=$host_os
25482
25483# The build system.
25484build_alias=$build_alias
25485build=$build
25486build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000025487
25488# An echo program that does not interpret backslashes.
25489echo=$lt_echo
25490
25491# The archiver.
25492AR=$lt_AR
25493AR_FLAGS=$lt_AR_FLAGS
25494
25495# A C compiler.
25496LTCC=$lt_LTCC
25497
Reid Spencera773bd52006-08-04 18:18:08 +000025498# LTCC compiler flags.
25499LTCFLAGS=$lt_LTCFLAGS
25500
John Criswell47fdd832003-07-14 16:52:07 +000025501# A language-specific compiler.
25502CC=$lt_compiler_RC
25503
25504# Is the compiler the GNU C compiler?
25505with_gcc=$GCC_RC
25506
25507# An ERE matcher.
25508EGREP=$lt_EGREP
25509
25510# The linker used to build libraries.
25511LD=$lt_LD_RC
25512
25513# Whether we need hard or soft links.
25514LN_S=$lt_LN_S
25515
25516# A BSD-compatible nm program.
25517NM=$lt_NM
25518
25519# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000025520STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000025521
25522# Used to examine libraries when file_magic_cmd begins "file"
25523MAGIC_CMD=$MAGIC_CMD
25524
25525# Used on cygwin: DLL creation program.
25526DLLTOOL="$DLLTOOL"
25527
25528# Used on cygwin: object dumper.
25529OBJDUMP="$OBJDUMP"
25530
25531# Used on cygwin: assembler.
25532AS="$AS"
25533
25534# The name of the directory that contains temporary libtool files.
25535objdir=$objdir
25536
25537# How to create reloadable object files.
25538reload_flag=$lt_reload_flag
25539reload_cmds=$lt_reload_cmds
25540
25541# How to pass a linker flag through the compiler.
25542wl=$lt_lt_prog_compiler_wl_RC
25543
25544# Object file suffix (normally "o").
25545objext="$ac_objext"
25546
25547# Old archive suffix (normally "a").
25548libext="$libext"
25549
25550# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000025551shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000025552
25553# Executable file suffix (normally "").
25554exeext="$exeext"
25555
25556# Additional compiler flags for building library objects.
25557pic_flag=$lt_lt_prog_compiler_pic_RC
25558pic_mode=$pic_mode
25559
25560# What is the maximum length of a command?
25561max_cmd_len=$lt_cv_sys_max_cmd_len
25562
25563# Does compiler simultaneously support -c and -o options?
25564compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
25565
Reid Spencera773bd52006-08-04 18:18:08 +000025566# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000025567need_locks=$lt_need_locks
25568
25569# Do we need the lib prefix for modules?
25570need_lib_prefix=$need_lib_prefix
25571
25572# Do we need a version for libraries?
25573need_version=$need_version
25574
25575# Whether dlopen is supported.
25576dlopen_support=$enable_dlopen
25577
25578# Whether dlopen of programs is supported.
25579dlopen_self=$enable_dlopen_self
25580
25581# Whether dlopen of statically linked programs is supported.
25582dlopen_self_static=$enable_dlopen_self_static
25583
25584# Compiler flag to prevent dynamic linking.
25585link_static_flag=$lt_lt_prog_compiler_static_RC
25586
25587# Compiler flag to turn off builtin functions.
25588no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
25589
25590# Compiler flag to allow reflexive dlopens.
25591export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
25592
25593# Compiler flag to generate shared objects directly from archives.
25594whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
25595
25596# Compiler flag to generate thread-safe objects.
25597thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
25598
25599# Library versioning type.
25600version_type=$version_type
25601
25602# Format of library name prefix.
25603libname_spec=$lt_libname_spec
25604
25605# List of archive names. First name is the real one, the rest are links.
25606# The last name is the one that the linker finds with -lNAME.
25607library_names_spec=$lt_library_names_spec
25608
25609# The coded name of the library, if different from the real name.
25610soname_spec=$lt_soname_spec
25611
25612# Commands used to build and install an old-style archive.
25613RANLIB=$lt_RANLIB
25614old_archive_cmds=$lt_old_archive_cmds_RC
25615old_postinstall_cmds=$lt_old_postinstall_cmds
25616old_postuninstall_cmds=$lt_old_postuninstall_cmds
25617
25618# Create an old-style archive from a shared archive.
25619old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
25620
25621# Create a temporary old-style archive to link instead of a shared archive.
25622old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
25623
25624# Commands used to build and install a shared archive.
25625archive_cmds=$lt_archive_cmds_RC
25626archive_expsym_cmds=$lt_archive_expsym_cmds_RC
25627postinstall_cmds=$lt_postinstall_cmds
25628postuninstall_cmds=$lt_postuninstall_cmds
25629
25630# Commands used to build a loadable module (assumed same as above if empty)
25631module_cmds=$lt_module_cmds_RC
25632module_expsym_cmds=$lt_module_expsym_cmds_RC
25633
25634# Commands to strip libraries.
25635old_striplib=$lt_old_striplib
25636striplib=$lt_striplib
25637
25638# Dependencies to place before the objects being linked to create a
25639# shared library.
25640predep_objects=$lt_predep_objects_RC
25641
25642# Dependencies to place after the objects being linked to create a
25643# shared library.
25644postdep_objects=$lt_postdep_objects_RC
25645
25646# Dependencies to place before the objects being linked to create a
25647# shared library.
25648predeps=$lt_predeps_RC
25649
25650# Dependencies to place after the objects being linked to create a
25651# shared library.
25652postdeps=$lt_postdeps_RC
25653
25654# The library search path used internally by the compiler when linking
25655# a shared library.
25656compiler_lib_search_path=$lt_compiler_lib_search_path_RC
25657
25658# Method to check whether dependent libraries are shared objects.
25659deplibs_check_method=$lt_deplibs_check_method
25660
25661# Command to use when deplibs_check_method == file_magic.
25662file_magic_cmd=$lt_file_magic_cmd
25663
25664# Flag that allows shared libraries with undefined symbols to be built.
25665allow_undefined_flag=$lt_allow_undefined_flag_RC
25666
25667# Flag that forces no undefined symbols.
25668no_undefined_flag=$lt_no_undefined_flag_RC
25669
25670# Commands used to finish a libtool library installation in a directory.
25671finish_cmds=$lt_finish_cmds
25672
25673# Same as above, but a single script fragment to be evaled but not shown.
25674finish_eval=$lt_finish_eval
25675
25676# Take the output of nm and produce a listing of raw symbols and C names.
25677global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
25678
25679# Transform the output of nm in a proper C declaration
25680global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
25681
25682# Transform the output of nm in a C name address pair
25683global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
25684
25685# This is the shared library runtime path variable.
25686runpath_var=$runpath_var
25687
25688# This is the shared library path variable.
25689shlibpath_var=$shlibpath_var
25690
25691# Is shlibpath searched before the hard-coded library search path?
25692shlibpath_overrides_runpath=$shlibpath_overrides_runpath
25693
25694# How to hardcode a shared library path into an executable.
25695hardcode_action=$hardcode_action_RC
25696
25697# Whether we should hardcode library paths into libraries.
25698hardcode_into_libs=$hardcode_into_libs
25699
25700# Flag to hardcode \$libdir into a binary during linking.
25701# This must work even if \$libdir does not exist.
25702hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
25703
25704# If ld is used when linking, flag to hardcode \$libdir into
25705# a binary during linking. This must work even if \$libdir does
25706# not exist.
25707hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
25708
25709# Whether we need a single -rpath flag with a separated argument.
25710hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
25711
25712# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
25713# resulting binary.
25714hardcode_direct=$hardcode_direct_RC
25715
25716# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
25717# resulting binary.
25718hardcode_minus_L=$hardcode_minus_L_RC
25719
25720# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
25721# the resulting binary.
25722hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
25723
25724# Set to yes if building a shared library automatically hardcodes DIR into the library
25725# and all subsequent libraries and executables linked against it.
25726hardcode_automatic=$hardcode_automatic_RC
25727
25728# Variables whose values should be saved in libtool wrapper scripts and
25729# restored at relink time.
25730variables_saved_for_relink="$variables_saved_for_relink"
25731
25732# Whether libtool must link a program against all its dependency libraries.
25733link_all_deplibs=$link_all_deplibs_RC
25734
25735# Compile-time system search path for libraries
25736sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
25737
25738# Run-time system search path for libraries
25739sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
25740
25741# Fix the shell variable \$srcfile for the compiler.
25742fix_srcfile_path="$fix_srcfile_path_RC"
25743
25744# Set to yes if exported symbols are required.
25745always_export_symbols=$always_export_symbols_RC
25746
25747# The commands to list exported symbols.
25748export_symbols_cmds=$lt_export_symbols_cmds_RC
25749
25750# The commands to extract the exported symbol list from a shared archive.
25751extract_expsyms_cmds=$lt_extract_expsyms_cmds
25752
25753# Symbols that should not be listed in the preloaded symbols.
25754exclude_expsyms=$lt_exclude_expsyms_RC
25755
25756# Symbols that must always be exported.
25757include_expsyms=$lt_include_expsyms_RC
25758
25759# ### END LIBTOOL TAG CONFIG: $tagname
25760
25761__EOF__
25762
25763
25764else
25765 # If there is no Makefile yet, we rely on a make rule to execute
25766 # `config.status --recheck' to rerun these tests and create the
25767 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025768 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
25769 if test -f "$ltmain_in"; then
25770 test -f Makefile && make "$ltmain"
25771 fi
John Criswell47fdd832003-07-14 16:52:07 +000025772fi
25773
25774
25775ac_ext=c
25776ac_cpp='$CPP $CPPFLAGS'
25777ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25778ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25779ac_compiler_gnu=$ac_cv_c_compiler_gnu
25780
25781CC="$lt_save_CC"
25782
25783 ;;
25784
25785 *)
25786 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
25787echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
25788 { (exit 1); exit 1; }; }
25789 ;;
25790 esac
25791
25792 # Append the new tag name to the list of available tags.
25793 if test -n "$tagname" ; then
25794 available_tags="$available_tags $tagname"
25795 fi
25796 fi
25797 done
25798 IFS="$lt_save_ifs"
25799
25800 # Now substitute the updated list of available tags.
25801 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
25802 mv "${ofile}T" "$ofile"
25803 chmod +x "$ofile"
25804 else
25805 rm -f "${ofile}T"
25806 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
25807echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
25808 { (exit 1); exit 1; }; }
25809 fi
25810fi
John Criswell7a73b802003-06-30 21:59:07 +000025811
25812
25813
25814# This can be used to rebuild libtool when needed
25815LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
25816
25817# Always use our own libtool.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025818LIBTOOL='$(SHELL) $(top_builddir)/mklib'
John Criswell7a73b802003-06-30 21:59:07 +000025819
25820# Prevent multiple expansion
25821
25822
25823
John Criswell47fdd832003-07-14 16:52:07 +000025824
25825
25826
25827
25828
25829
25830
25831
25832
25833
25834
25835
25836
25837
25838
25839
25840
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025841
Reid Spencer582a23c2004-12-29 07:07:57 +000025842if test "$lt_cv_dlopen_self" = "yes" ; then
25843
25844cat >>confdefs.h <<\_ACEOF
25845#define CAN_DLOPEN_SELF 1
25846_ACEOF
25847
25848fi
25849
Reid Spencer7931a782004-12-27 06:15:02 +000025850if test "$WITH_LLVMGCCDIR" = "default" ; then
Reid Spencerc84492c2005-06-02 22:34:49 +000025851 LLVMGCC="llvm-gcc${EXEEXT}"
25852 LLVMGXX="llvm-g++${EXEEXT}"
25853 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
25854set dummy $LLVMGCC; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000025855{ echo "$as_me:$LINENO: checking for $ac_word" >&5
25856echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000025857if test "${ac_cv_path_LLVMGCC+set}" = set; then
25858 echo $ECHO_N "(cached) $ECHO_C" >&6
25859else
25860 case $LLVMGCC in
25861 [\\/]* | ?:[\\/]*)
25862 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
25863 ;;
25864 *)
25865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25866for as_dir in $PATH
25867do
25868 IFS=$as_save_IFS
25869 test -z "$as_dir" && as_dir=.
25870 for ac_exec_ext in '' $ac_executable_extensions; do
Torok Edwincc499a42008-10-22 09:56:27 +000025871 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 +000025872 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
25873 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25874 break 2
25875 fi
25876done
25877done
Reid Spencera773bd52006-08-04 18:18:08 +000025878IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000025879
Reid Spencer59473af2004-12-25 07:31:29 +000025880 ;;
25881esac
25882fi
25883LLVMGCC=$ac_cv_path_LLVMGCC
Reid Spencer59473af2004-12-25 07:31:29 +000025884if test -n "$LLVMGCC"; then
Reid Spencera773bd52006-08-04 18:18:08 +000025885 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
25886echo "${ECHO_T}$LLVMGCC" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000025887else
Reid Spencera773bd52006-08-04 18:18:08 +000025888 { echo "$as_me:$LINENO: result: no" >&5
25889echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000025890fi
25891
Reid Spencera773bd52006-08-04 18:18:08 +000025892
Reid Spencerc84492c2005-06-02 22:34:49 +000025893 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
25894set dummy $LLVMGXX; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000025895{ echo "$as_me:$LINENO: checking for $ac_word" >&5
25896echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000025897if test "${ac_cv_path_LLVMGXX+set}" = set; then
25898 echo $ECHO_N "(cached) $ECHO_C" >&6
25899else
25900 case $LLVMGXX in
25901 [\\/]* | ?:[\\/]*)
25902 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
25903 ;;
25904 *)
25905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25906for as_dir in $PATH
25907do
25908 IFS=$as_save_IFS
25909 test -z "$as_dir" && as_dir=.
25910 for ac_exec_ext in '' $ac_executable_extensions; do
Torok Edwincc499a42008-10-22 09:56:27 +000025911 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 +000025912 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
25913 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25914 break 2
25915 fi
25916done
25917done
Reid Spencera773bd52006-08-04 18:18:08 +000025918IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000025919
Reid Spencer59473af2004-12-25 07:31:29 +000025920 ;;
25921esac
25922fi
25923LLVMGXX=$ac_cv_path_LLVMGXX
Reid Spencer59473af2004-12-25 07:31:29 +000025924if test -n "$LLVMGXX"; then
Reid Spencera773bd52006-08-04 18:18:08 +000025925 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
25926echo "${ECHO_T}$LLVMGXX" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000025927else
Reid Spencera773bd52006-08-04 18:18:08 +000025928 { echo "$as_me:$LINENO: result: no" >&5
25929echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000025930fi
25931
Reid Spencera773bd52006-08-04 18:18:08 +000025932
Reid Spencer59473af2004-12-25 07:31:29 +000025933else
Devang Patel5d28b882007-12-04 22:54:47 +000025934 if test -z "$LLVMGCC"; then
25935 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
25936 fi
25937 if test -z "$LLVMGXX"; then
25938 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
25939 fi
Reid Spencer59473af2004-12-25 07:31:29 +000025940 LLVMGCC=$LLVMGCC
25941
25942 LLVMGXX=$LLVMGXX
25943
25944fi
25945
Reid Spencera773bd52006-08-04 18:18:08 +000025946{ echo "$as_me:$LINENO: checking tool compatibility" >&5
25947echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025948
Reid Spencer86901802004-12-08 23:07:27 +000025949ICC=no
25950IXX=no
25951case $CC in
25952 icc*|icpc*)
25953 ICC=yes
25954 IXX=yes
25955 ;;
25956 *)
25957 ;;
25958esac
25959
Duraid Madina937c60a2006-02-15 07:57:42 +000025960if test "$GCC" != "yes" && test "$ICC" != "yes"
25961then
25962 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
25963echo "$as_me: error: gcc|icc required but not found" >&2;}
25964 { (exit 1); exit 1; }; }
25965fi
25966
25967if test "$GXX" != "yes" && test "$IXX" != "yes"
25968then
25969 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
25970echo "$as_me: error: g++|icc required but not found" >&2;}
25971 { (exit 1); exit 1; }; }
25972fi
25973
Reid Spencer86901802004-12-08 23:07:27 +000025974if test "$GCC" = "yes"
25975then
Chris Lattner399c7c72008-02-05 19:43:53 +000025976 cat >conftest.$ac_ext <<_ACEOF
25977#if !defined(__GNUC__) || __GNUC__ < 3
25978#error Unsupported GCC version
25979#endif
25980
25981_ACEOF
25982rm -f conftest.$ac_objext
25983if { (ac_try="$ac_compile"
25984case "(($ac_try" in
25985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25986 *) ac_try_echo=$ac_try;;
25987esac
25988eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25989 (eval "$ac_compile") 2>conftest.er1
25990 ac_status=$?
25991 grep -v '^ *+' conftest.er1 >conftest.err
25992 rm -f conftest.er1
25993 cat conftest.err >&5
25994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Torok Edwincc499a42008-10-22 09:56:27 +000025995 (exit $ac_status); } && {
25996 test -z "$ac_c_werror_flag" ||
25997 test ! -s conftest.err
25998 } && test -s conftest.$ac_objext; then
Chris Lattner399c7c72008-02-05 19:43:53 +000025999 :
26000else
26001 echo "$as_me: failed program was:" >&5
26002sed 's/^/| /' conftest.$ac_ext >&5
26003
26004 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026005echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
26006 { (exit 1); exit 1; }; }
Chris Lattner399c7c72008-02-05 19:43:53 +000026007fi
26008
26009rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026010fi
26011
26012if test -z "$llvm_cv_gnu_make_command"
26013then
26014 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
26015echo "$as_me: error: GNU Make required but not found" >&2;}
26016 { (exit 1); exit 1; }; }
26017fi
26018
Reid Spencera773bd52006-08-04 18:18:08 +000026019{ echo "$as_me:$LINENO: result: ok" >&5
26020echo "${ECHO_T}ok" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026021
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026022
John Criswell7a73b802003-06-30 21:59:07 +000026023
Reid Spencera773bd52006-08-04 18:18:08 +000026024{ echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
26025echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000026026if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
26027 echo $ECHO_N "(cached) $ECHO_C" >&6
26028else
26029 ac_check_lib_save_LIBS=$LIBS
26030LIBS="-lelf $LIBS"
26031cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026032/* confdefs.h. */
26033_ACEOF
26034cat confdefs.h >>conftest.$ac_ext
26035cat >>conftest.$ac_ext <<_ACEOF
26036/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000026037
Reid Spencera773bd52006-08-04 18:18:08 +000026038/* Override any GCC internal prototype to avoid an error.
26039 Use char because int might match the return type of a GCC
26040 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000026041#ifdef __cplusplus
26042extern "C"
26043#endif
John Criswell7a73b802003-06-30 21:59:07 +000026044char elf_begin ();
John Criswell7a73b802003-06-30 21:59:07 +000026045int
26046main ()
26047{
Reid Spencera773bd52006-08-04 18:18:08 +000026048return elf_begin ();
John Criswell7a73b802003-06-30 21:59:07 +000026049 ;
26050 return 0;
26051}
26052_ACEOF
26053rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000026054if { (ac_try="$ac_link"
26055case "(($ac_try" in
26056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26057 *) ac_try_echo=$ac_try;;
26058esac
26059eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26060 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000026061 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026062 grep -v '^ *+' conftest.er1 >conftest.err
26063 rm -f conftest.er1
26064 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000026065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Torok Edwincc499a42008-10-22 09:56:27 +000026066 (exit $ac_status); } && {
26067 test -z "$ac_c_werror_flag" ||
26068 test ! -s conftest.err
26069 } && test -s conftest$ac_exeext &&
26070 $as_test_x conftest$ac_exeext; then
John Criswell7a73b802003-06-30 21:59:07 +000026071 ac_cv_lib_elf_elf_begin=yes
26072else
26073 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000026074sed 's/^/| /' conftest.$ac_ext >&5
26075
Reid Spencera773bd52006-08-04 18:18:08 +000026076 ac_cv_lib_elf_elf_begin=no
John Criswell7a73b802003-06-30 21:59:07 +000026077fi
Reid Spencera773bd52006-08-04 18:18:08 +000026078
Torok Edwincc499a42008-10-22 09:56:27 +000026079rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer2706f8c2004-09-19 23:53:36 +000026080 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000026081LIBS=$ac_check_lib_save_LIBS
26082fi
Reid Spencera773bd52006-08-04 18:18:08 +000026083{ echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
26084echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000026085if test $ac_cv_lib_elf_elf_begin = yes; then
26086 cat >>confdefs.h <<_ACEOF
26087#define HAVE_LIBELF 1
26088_ACEOF
26089
26090 LIBS="-lelf $LIBS"
26091
26092fi
26093
26094
Reid Spencera773bd52006-08-04 18:18:08 +000026095{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
26096echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
Reid Spencer3484a992006-01-19 08:31:08 +000026097if test "${ac_cv_lib_m_sin+set}" = set; then
26098 echo $ECHO_N "(cached) $ECHO_C" >&6
26099else
26100 ac_check_lib_save_LIBS=$LIBS
26101LIBS="-lm $LIBS"
26102cat >conftest.$ac_ext <<_ACEOF
26103/* confdefs.h. */
26104_ACEOF
26105cat confdefs.h >>conftest.$ac_ext
26106cat >>conftest.$ac_ext <<_ACEOF
26107/* end confdefs.h. */
26108
Reid Spencera773bd52006-08-04 18:18:08 +000026109/* Override any GCC internal prototype to avoid an error.
26110 Use char because int might match the return type of a GCC
26111 builtin and then its argument prototype would still apply. */
Reid Spencer3484a992006-01-19 08:31:08 +000026112#ifdef __cplusplus
26113extern "C"
26114#endif
Reid Spencer3484a992006-01-19 08:31:08 +000026115char sin ();
26116int
26117main ()
26118{
Reid Spencera773bd52006-08-04 18:18:08 +000026119return sin ();
Reid Spencer3484a992006-01-19 08:31:08 +000026120 ;
26121 return 0;
26122}
26123_ACEOF
26124rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000026125if { (ac_try="$ac_link"
26126case "(($ac_try" in
26127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26128 *) ac_try_echo=$ac_try;;
26129esac
26130eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26131 (eval "$ac_link") 2>conftest.er1
Reid Spencer3484a992006-01-19 08:31:08 +000026132 ac_status=$?
26133 grep -v '^ *+' conftest.er1 >conftest.err
26134 rm -f conftest.er1
26135 cat conftest.err >&5
26136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Torok Edwincc499a42008-10-22 09:56:27 +000026137 (exit $ac_status); } && {
26138 test -z "$ac_c_werror_flag" ||
26139 test ! -s conftest.err
26140 } && test -s conftest$ac_exeext &&
26141 $as_test_x conftest$ac_exeext; then
Reid Spencer3484a992006-01-19 08:31:08 +000026142 ac_cv_lib_m_sin=yes
26143else
26144 echo "$as_me: failed program was:" >&5
26145sed 's/^/| /' conftest.$ac_ext >&5
26146
Reid Spencera773bd52006-08-04 18:18:08 +000026147 ac_cv_lib_m_sin=no
Reid Spencer3484a992006-01-19 08:31:08 +000026148fi
Reid Spencera773bd52006-08-04 18:18:08 +000026149
Torok Edwincc499a42008-10-22 09:56:27 +000026150rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer3484a992006-01-19 08:31:08 +000026151 conftest$ac_exeext conftest.$ac_ext
26152LIBS=$ac_check_lib_save_LIBS
26153fi
Reid Spencera773bd52006-08-04 18:18:08 +000026154{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
26155echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
Reid Spencer3484a992006-01-19 08:31:08 +000026156if test $ac_cv_lib_m_sin = yes; then
26157 cat >>confdefs.h <<_ACEOF
26158#define HAVE_LIBM 1
26159_ACEOF
26160
26161 LIBS="-lm $LIBS"
26162
26163fi
26164
Jeff Cohen28783c32007-01-12 18:22:38 +000026165if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000026166
Reid Spencera773bd52006-08-04 18:18:08 +000026167{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
26168echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000026169if test "${ac_cv_lib_imagehlp_main+set}" = set; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000026170 echo $ECHO_N "(cached) $ECHO_C" >&6
26171else
26172 ac_check_lib_save_LIBS=$LIBS
26173LIBS="-limagehlp $LIBS"
26174cat >conftest.$ac_ext <<_ACEOF
26175/* confdefs.h. */
26176_ACEOF
26177cat confdefs.h >>conftest.$ac_ext
26178cat >>conftest.$ac_ext <<_ACEOF
26179/* end confdefs.h. */
26180
Reid Spencer48fdf912006-06-01 19:03:21 +000026181
Reid Spencer484fc8e2006-06-01 16:55:59 +000026182int
26183main ()
26184{
Reid Spencera773bd52006-08-04 18:18:08 +000026185return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000026186 ;
26187 return 0;
26188}
26189_ACEOF
26190rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000026191if { (ac_try="$ac_link"
26192case "(($ac_try" in
26193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26194 *) ac_try_echo=$ac_try;;
26195esac
26196eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26197 (eval "$ac_link") 2>conftest.er1
Reid Spencer484fc8e2006-06-01 16:55:59 +000026198 ac_status=$?
26199 grep -v '^ *+' conftest.er1 >conftest.err
26200 rm -f conftest.er1
26201 cat conftest.err >&5
26202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Torok Edwincc499a42008-10-22 09:56:27 +000026203 (exit $ac_status); } && {
26204 test -z "$ac_c_werror_flag" ||
26205 test ! -s conftest.err
26206 } && test -s conftest$ac_exeext &&
26207 $as_test_x conftest$ac_exeext; then
Reid Spencer48fdf912006-06-01 19:03:21 +000026208 ac_cv_lib_imagehlp_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000026209else
26210 echo "$as_me: failed program was:" >&5
26211sed 's/^/| /' conftest.$ac_ext >&5
26212
Reid Spencera773bd52006-08-04 18:18:08 +000026213 ac_cv_lib_imagehlp_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000026214fi
Reid Spencera773bd52006-08-04 18:18:08 +000026215
Torok Edwincc499a42008-10-22 09:56:27 +000026216rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer484fc8e2006-06-01 16:55:59 +000026217 conftest$ac_exeext conftest.$ac_ext
26218LIBS=$ac_check_lib_save_LIBS
26219fi
Reid Spencera773bd52006-08-04 18:18:08 +000026220{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
26221echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000026222if test $ac_cv_lib_imagehlp_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000026223 cat >>confdefs.h <<_ACEOF
26224#define HAVE_LIBIMAGEHLP 1
26225_ACEOF
26226
26227 LIBS="-limagehlp $LIBS"
26228
26229fi
26230
26231
Reid Spencera773bd52006-08-04 18:18:08 +000026232{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
26233echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000026234if test "${ac_cv_lib_psapi_main+set}" = set; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000026235 echo $ECHO_N "(cached) $ECHO_C" >&6
26236else
26237 ac_check_lib_save_LIBS=$LIBS
26238LIBS="-lpsapi $LIBS"
26239cat >conftest.$ac_ext <<_ACEOF
26240/* confdefs.h. */
26241_ACEOF
26242cat confdefs.h >>conftest.$ac_ext
26243cat >>conftest.$ac_ext <<_ACEOF
26244/* end confdefs.h. */
26245
Reid Spencer48fdf912006-06-01 19:03:21 +000026246
Reid Spencer484fc8e2006-06-01 16:55:59 +000026247int
26248main ()
26249{
Reid Spencera773bd52006-08-04 18:18:08 +000026250return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000026251 ;
26252 return 0;
26253}
26254_ACEOF
26255rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000026256if { (ac_try="$ac_link"
26257case "(($ac_try" in
26258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26259 *) ac_try_echo=$ac_try;;
26260esac
26261eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26262 (eval "$ac_link") 2>conftest.er1
Reid Spencer484fc8e2006-06-01 16:55:59 +000026263 ac_status=$?
26264 grep -v '^ *+' conftest.er1 >conftest.err
26265 rm -f conftest.er1
26266 cat conftest.err >&5
26267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Torok Edwincc499a42008-10-22 09:56:27 +000026268 (exit $ac_status); } && {
26269 test -z "$ac_c_werror_flag" ||
26270 test ! -s conftest.err
26271 } && test -s conftest$ac_exeext &&
26272 $as_test_x conftest$ac_exeext; then
Reid Spencer48fdf912006-06-01 19:03:21 +000026273 ac_cv_lib_psapi_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000026274else
26275 echo "$as_me: failed program was:" >&5
26276sed 's/^/| /' conftest.$ac_ext >&5
26277
Reid Spencera773bd52006-08-04 18:18:08 +000026278 ac_cv_lib_psapi_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000026279fi
Reid Spencera773bd52006-08-04 18:18:08 +000026280
Torok Edwincc499a42008-10-22 09:56:27 +000026281rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer484fc8e2006-06-01 16:55:59 +000026282 conftest$ac_exeext conftest.$ac_ext
26283LIBS=$ac_check_lib_save_LIBS
26284fi
Reid Spencera773bd52006-08-04 18:18:08 +000026285{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
26286echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000026287if test $ac_cv_lib_psapi_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000026288 cat >>confdefs.h <<_ACEOF
26289#define HAVE_LIBPSAPI 1
26290_ACEOF
26291
26292 LIBS="-lpsapi $LIBS"
26293
26294fi
26295
26296fi
Reid Spencer22177fe2005-07-12 15:24:20 +000026297
Reid Spencera773bd52006-08-04 18:18:08 +000026298{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
26299echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000026300if test "${ac_cv_search_dlopen+set}" = set; then
26301 echo $ECHO_N "(cached) $ECHO_C" >&6
26302else
26303 ac_func_search_save_LIBS=$LIBS
John Criswell7a73b802003-06-30 21:59:07 +000026304cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026305/* confdefs.h. */
26306_ACEOF
26307cat confdefs.h >>conftest.$ac_ext
26308cat >>conftest.$ac_ext <<_ACEOF
26309/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000026310
Reid Spencera773bd52006-08-04 18:18:08 +000026311/* Override any GCC internal prototype to avoid an error.
26312 Use char because int might match the return type of a GCC
26313 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000026314#ifdef __cplusplus
26315extern "C"
26316#endif
John Criswell7a73b802003-06-30 21:59:07 +000026317char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000026318int
26319main ()
26320{
Reid Spencera773bd52006-08-04 18:18:08 +000026321return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000026322 ;
26323 return 0;
26324}
26325_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000026326for ac_lib in '' dl; do
26327 if test -z "$ac_lib"; then
26328 ac_res="none required"
26329 else
26330 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000026331 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000026332 fi
26333 rm -f conftest.$ac_objext conftest$ac_exeext
26334if { (ac_try="$ac_link"
26335case "(($ac_try" in
26336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26337 *) ac_try_echo=$ac_try;;
26338esac
26339eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26340 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000026341 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026342 grep -v '^ *+' conftest.er1 >conftest.err
26343 rm -f conftest.er1
26344 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000026345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Torok Edwincc499a42008-10-22 09:56:27 +000026346 (exit $ac_status); } && {
26347 test -z "$ac_c_werror_flag" ||
26348 test ! -s conftest.err
26349 } && test -s conftest$ac_exeext &&
26350 $as_test_x conftest$ac_exeext; then
Reid Spencera773bd52006-08-04 18:18:08 +000026351 ac_cv_search_dlopen=$ac_res
John Criswell7a73b802003-06-30 21:59:07 +000026352else
26353 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000026354sed 's/^/| /' conftest.$ac_ext >&5
26355
Reid Spencera773bd52006-08-04 18:18:08 +000026356
John Criswell7a73b802003-06-30 21:59:07 +000026357fi
Reid Spencera773bd52006-08-04 18:18:08 +000026358
Torok Edwincc499a42008-10-22 09:56:27 +000026359rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencera773bd52006-08-04 18:18:08 +000026360 conftest$ac_exeext
26361 if test "${ac_cv_search_dlopen+set}" = set; then
26362 break
John Criswell7a73b802003-06-30 21:59:07 +000026363fi
Reid Spencera773bd52006-08-04 18:18:08 +000026364done
26365if test "${ac_cv_search_dlopen+set}" = set; then
26366 :
26367else
26368 ac_cv_search_dlopen=no
26369fi
26370rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000026371LIBS=$ac_func_search_save_LIBS
26372fi
Reid Spencera773bd52006-08-04 18:18:08 +000026373{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
26374echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
26375ac_res=$ac_cv_search_dlopen
26376if test "$ac_res" != no; then
26377 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000026378
26379cat >>confdefs.h <<\_ACEOF
Brian Gaekec45be042003-10-07 06:01:34 +000026380#define HAVE_DLOPEN 1
26381_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000026382
26383else
Brian Gaekec45be042003-10-07 06:01:34 +000026384 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
26385echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000026386fi
26387
26388
Reid Spencera773bd52006-08-04 18:18:08 +000026389{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
26390echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000026391if test "${ac_cv_search_mallinfo+set}" = set; then
26392 echo $ECHO_N "(cached) $ECHO_C" >&6
26393else
26394 ac_func_search_save_LIBS=$LIBS
John Criswell7a73b802003-06-30 21:59:07 +000026395cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026396/* confdefs.h. */
26397_ACEOF
26398cat confdefs.h >>conftest.$ac_ext
26399cat >>conftest.$ac_ext <<_ACEOF
26400/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000026401
Reid Spencera773bd52006-08-04 18:18:08 +000026402/* Override any GCC internal prototype to avoid an error.
26403 Use char because int might match the return type of a GCC
26404 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000026405#ifdef __cplusplus
26406extern "C"
26407#endif
John Criswell7a73b802003-06-30 21:59:07 +000026408char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000026409int
26410main ()
26411{
Reid Spencera773bd52006-08-04 18:18:08 +000026412return mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000026413 ;
26414 return 0;
26415}
26416_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000026417for ac_lib in '' malloc; do
26418 if test -z "$ac_lib"; then
26419 ac_res="none required"
26420 else
26421 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000026422 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000026423 fi
26424 rm -f conftest.$ac_objext conftest$ac_exeext
26425if { (ac_try="$ac_link"
26426case "(($ac_try" in
26427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26428 *) ac_try_echo=$ac_try;;
26429esac
26430eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26431 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000026432 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026433 grep -v '^ *+' conftest.er1 >conftest.err
26434 rm -f conftest.er1
26435 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000026436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Torok Edwincc499a42008-10-22 09:56:27 +000026437 (exit $ac_status); } && {
26438 test -z "$ac_c_werror_flag" ||
26439 test ! -s conftest.err
26440 } && test -s conftest$ac_exeext &&
26441 $as_test_x conftest$ac_exeext; then
Reid Spencera773bd52006-08-04 18:18:08 +000026442 ac_cv_search_mallinfo=$ac_res
John Criswell7a73b802003-06-30 21:59:07 +000026443else
26444 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000026445sed 's/^/| /' conftest.$ac_ext >&5
26446
Reid Spencera773bd52006-08-04 18:18:08 +000026447
John Criswell7a73b802003-06-30 21:59:07 +000026448fi
Reid Spencera773bd52006-08-04 18:18:08 +000026449
Torok Edwincc499a42008-10-22 09:56:27 +000026450rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencera773bd52006-08-04 18:18:08 +000026451 conftest$ac_exeext
26452 if test "${ac_cv_search_mallinfo+set}" = set; then
26453 break
John Criswell7a73b802003-06-30 21:59:07 +000026454fi
Reid Spencera773bd52006-08-04 18:18:08 +000026455done
26456if test "${ac_cv_search_mallinfo+set}" = set; then
26457 :
26458else
26459 ac_cv_search_mallinfo=no
26460fi
26461rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000026462LIBS=$ac_func_search_save_LIBS
26463fi
Reid Spencera773bd52006-08-04 18:18:08 +000026464{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
26465echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
26466ac_res=$ac_cv_search_mallinfo
26467if test "$ac_res" != no; then
26468 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000026469
26470cat >>confdefs.h <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000026471#define HAVE_MALLINFO 1
26472_ACEOF
26473
26474fi
26475
26476
Reid Spencer0a262ba2005-08-24 10:07:20 +000026477if test "$ENABLE_THREADS" -eq 1 ; then
Reid Spencer22177fe2005-07-12 15:24:20 +000026478
Reid Spencera773bd52006-08-04 18:18:08 +000026479{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
26480echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
Reid Spencer22177fe2005-07-12 15:24:20 +000026481if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
26482 echo $ECHO_N "(cached) $ECHO_C" >&6
26483else
26484 ac_check_lib_save_LIBS=$LIBS
26485LIBS="-lpthread $LIBS"
26486cat >conftest.$ac_ext <<_ACEOF
26487/* confdefs.h. */
26488_ACEOF
26489cat confdefs.h >>conftest.$ac_ext
26490cat >>conftest.$ac_ext <<_ACEOF
26491/* end confdefs.h. */
26492
Reid Spencera773bd52006-08-04 18:18:08 +000026493/* Override any GCC internal prototype to avoid an error.
26494 Use char because int might match the return type of a GCC
26495 builtin and then its argument prototype would still apply. */
Reid Spencer22177fe2005-07-12 15:24:20 +000026496#ifdef __cplusplus
26497extern "C"
26498#endif
Reid Spencer22177fe2005-07-12 15:24:20 +000026499char pthread_mutex_init ();
26500int
26501main ()
26502{
Reid Spencera773bd52006-08-04 18:18:08 +000026503return pthread_mutex_init ();
Reid Spencer22177fe2005-07-12 15:24:20 +000026504 ;
26505 return 0;
26506}
26507_ACEOF
26508rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000026509if { (ac_try="$ac_link"
26510case "(($ac_try" in
26511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26512 *) ac_try_echo=$ac_try;;
26513esac
26514eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26515 (eval "$ac_link") 2>conftest.er1
Reid Spencer22177fe2005-07-12 15:24:20 +000026516 ac_status=$?
26517 grep -v '^ *+' conftest.er1 >conftest.err
26518 rm -f conftest.er1
26519 cat conftest.err >&5
26520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Torok Edwincc499a42008-10-22 09:56:27 +000026521 (exit $ac_status); } && {
26522 test -z "$ac_c_werror_flag" ||
26523 test ! -s conftest.err
26524 } && test -s conftest$ac_exeext &&
26525 $as_test_x conftest$ac_exeext; then
Reid Spencer22177fe2005-07-12 15:24:20 +000026526 ac_cv_lib_pthread_pthread_mutex_init=yes
26527else
26528 echo "$as_me: failed program was:" >&5
26529sed 's/^/| /' conftest.$ac_ext >&5
26530
Reid Spencera773bd52006-08-04 18:18:08 +000026531 ac_cv_lib_pthread_pthread_mutex_init=no
Reid Spencer22177fe2005-07-12 15:24:20 +000026532fi
Reid Spencera773bd52006-08-04 18:18:08 +000026533
Torok Edwincc499a42008-10-22 09:56:27 +000026534rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer22177fe2005-07-12 15:24:20 +000026535 conftest$ac_exeext conftest.$ac_ext
26536LIBS=$ac_check_lib_save_LIBS
26537fi
Reid Spencera773bd52006-08-04 18:18:08 +000026538{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
26539echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
Reid Spencer22177fe2005-07-12 15:24:20 +000026540if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
26541 cat >>confdefs.h <<_ACEOF
26542#define HAVE_LIBPTHREAD 1
26543_ACEOF
26544
26545 LIBS="-lpthread $LIBS"
26546
26547fi
26548
Reid Spencera773bd52006-08-04 18:18:08 +000026549 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
26550echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
Brian Gaeke5f268f72003-12-05 19:29:01 +000026551if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
26552 echo $ECHO_N "(cached) $ECHO_C" >&6
26553else
26554 ac_func_search_save_LIBS=$LIBS
Brian Gaeke5f268f72003-12-05 19:29:01 +000026555cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000026556/* confdefs.h. */
26557_ACEOF
26558cat confdefs.h >>conftest.$ac_ext
26559cat >>conftest.$ac_ext <<_ACEOF
26560/* end confdefs.h. */
26561
Reid Spencera773bd52006-08-04 18:18:08 +000026562/* Override any GCC internal prototype to avoid an error.
26563 Use char because int might match the return type of a GCC
26564 builtin and then its argument prototype would still apply. */
Brian Gaeke5f268f72003-12-05 19:29:01 +000026565#ifdef __cplusplus
26566extern "C"
26567#endif
Brian Gaeke5f268f72003-12-05 19:29:01 +000026568char pthread_mutex_lock ();
26569int
26570main ()
26571{
Reid Spencera773bd52006-08-04 18:18:08 +000026572return pthread_mutex_lock ();
Brian Gaeke5f268f72003-12-05 19:29:01 +000026573 ;
26574 return 0;
26575}
26576_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000026577for ac_lib in '' pthread; do
26578 if test -z "$ac_lib"; then
26579 ac_res="none required"
26580 else
26581 ac_res=-l$ac_lib
Brian Gaeke5f268f72003-12-05 19:29:01 +000026582 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000026583 fi
26584 rm -f conftest.$ac_objext conftest$ac_exeext
26585if { (ac_try="$ac_link"
26586case "(($ac_try" in
26587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26588 *) ac_try_echo=$ac_try;;
26589esac
26590eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26591 (eval "$ac_link") 2>conftest.er1
Brian Gaeke5f268f72003-12-05 19:29:01 +000026592 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026593 grep -v '^ *+' conftest.er1 >conftest.err
26594 rm -f conftest.er1
26595 cat conftest.err >&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000026596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Torok Edwincc499a42008-10-22 09:56:27 +000026597 (exit $ac_status); } && {
26598 test -z "$ac_c_werror_flag" ||
26599 test ! -s conftest.err
26600 } && test -s conftest$ac_exeext &&
26601 $as_test_x conftest$ac_exeext; then
Reid Spencera773bd52006-08-04 18:18:08 +000026602 ac_cv_search_pthread_mutex_lock=$ac_res
Brian Gaeke5f268f72003-12-05 19:29:01 +000026603else
26604 echo "$as_me: failed program was:" >&5
26605sed 's/^/| /' conftest.$ac_ext >&5
26606
Reid Spencera773bd52006-08-04 18:18:08 +000026607
Brian Gaeke5f268f72003-12-05 19:29:01 +000026608fi
Reid Spencera773bd52006-08-04 18:18:08 +000026609
Torok Edwincc499a42008-10-22 09:56:27 +000026610rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencera773bd52006-08-04 18:18:08 +000026611 conftest$ac_exeext
26612 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
26613 break
Brian Gaeke5f268f72003-12-05 19:29:01 +000026614fi
Reid Spencera773bd52006-08-04 18:18:08 +000026615done
26616if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
26617 :
26618else
26619 ac_cv_search_pthread_mutex_lock=no
26620fi
26621rm conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000026622LIBS=$ac_func_search_save_LIBS
26623fi
Reid Spencera773bd52006-08-04 18:18:08 +000026624{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
26625echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
26626ac_res=$ac_cv_search_pthread_mutex_lock
26627if test "$ac_res" != no; then
26628 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Brian Gaeke5f268f72003-12-05 19:29:01 +000026629
John Criswell40468462004-09-24 21:19:06 +000026630cat >>confdefs.h <<\_ACEOF
26631#define HAVE_PTHREAD_MUTEX_LOCK 1
26632_ACEOF
26633
26634fi
Brian Gaeke5f268f72003-12-05 19:29:01 +000026635
Reid Spencer0a262ba2005-08-24 10:07:20 +000026636fi
Brian Gaekec9a410c2004-02-23 21:30:37 +000026637
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026638
Reid Spencerb6a7aa72007-01-19 17:41:47 +000026639# Check whether --with-udis86 was given.
26640if test "${with_udis86+set}" = set; then
26641 withval=$with_udis86;
26642 USE_UDIS86=1
26643
26644 case "$withval" in
Reid Spencer30fe5262007-01-20 07:48:49 +000026645 /usr/lib|yes) ;;
Reid Spencerb6a7aa72007-01-19 17:41:47 +000026646 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
26647 esac
26648
26649{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
26650echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
26651if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
26652 echo $ECHO_N "(cached) $ECHO_C" >&6
26653else
26654 ac_check_lib_save_LIBS=$LIBS
26655LIBS="-ludis86 $LIBS"
26656cat >conftest.$ac_ext <<_ACEOF
26657/* confdefs.h. */
26658_ACEOF
26659cat confdefs.h >>conftest.$ac_ext
26660cat >>conftest.$ac_ext <<_ACEOF
26661/* end confdefs.h. */
26662
26663/* Override any GCC internal prototype to avoid an error.
26664 Use char because int might match the return type of a GCC
26665 builtin and then its argument prototype would still apply. */
26666#ifdef __cplusplus
26667extern "C"
26668#endif
26669char ud_init ();
26670int
26671main ()
26672{
26673return ud_init ();
26674 ;
26675 return 0;
26676}
26677_ACEOF
26678rm -f conftest.$ac_objext conftest$ac_exeext
26679if { (ac_try="$ac_link"
26680case "(($ac_try" in
26681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26682 *) ac_try_echo=$ac_try;;
26683esac
26684eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26685 (eval "$ac_link") 2>conftest.er1
26686 ac_status=$?
26687 grep -v '^ *+' conftest.er1 >conftest.err
26688 rm -f conftest.er1
26689 cat conftest.err >&5
26690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Torok Edwincc499a42008-10-22 09:56:27 +000026691 (exit $ac_status); } && {
26692 test -z "$ac_c_werror_flag" ||
26693 test ! -s conftest.err
26694 } && test -s conftest$ac_exeext &&
26695 $as_test_x conftest$ac_exeext; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000026696 ac_cv_lib_udis86_ud_init=yes
26697else
26698 echo "$as_me: failed program was:" >&5
26699sed 's/^/| /' conftest.$ac_ext >&5
26700
26701 ac_cv_lib_udis86_ud_init=no
26702fi
26703
Torok Edwincc499a42008-10-22 09:56:27 +000026704rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencerb6a7aa72007-01-19 17:41:47 +000026705 conftest$ac_exeext conftest.$ac_ext
26706LIBS=$ac_check_lib_save_LIBS
26707fi
26708{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
26709echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
26710if test $ac_cv_lib_udis86_ud_init = yes; then
26711 cat >>confdefs.h <<_ACEOF
26712#define HAVE_LIBUDIS86 1
26713_ACEOF
26714
26715 LIBS="-ludis86 $LIBS"
26716
26717else
26718
26719 echo "Error! You need to have libudis86 around."
26720 exit -1
26721
26722fi
26723
26724
26725else
26726 USE_UDIS86=0
26727
26728fi
26729
26730
26731cat >>confdefs.h <<_ACEOF
26732#define USE_UDIS86 $USE_UDIS86
26733_ACEOF
26734
26735
26736
Reid Spencer59473af2004-12-25 07:31:29 +000026737
26738
26739
26740
26741
26742ac_header_dirent=no
26743for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
26744 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000026745{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
26746echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
26747if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000026748 echo $ECHO_N "(cached) $ECHO_C" >&6
26749else
26750 cat >conftest.$ac_ext <<_ACEOF
26751/* confdefs.h. */
26752_ACEOF
26753cat confdefs.h >>conftest.$ac_ext
26754cat >>conftest.$ac_ext <<_ACEOF
26755/* end confdefs.h. */
26756#include <sys/types.h>
26757#include <$ac_hdr>
26758
26759int
26760main ()
26761{
26762if ((DIR *) 0)
26763return 0;
26764 ;
26765 return 0;
26766}
26767_ACEOF
26768rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000026769if { (ac_try="$ac_compile"
26770case "(($ac_try" in
26771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26772 *) ac_try_echo=$ac_try;;
26773esac
26774eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26775 (eval "$ac_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000026776 ac_status=$?
26777 grep -v '^ *+' conftest.er1 >conftest.err
26778 rm -f conftest.er1
26779 cat conftest.err >&5
26780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Torok Edwincc499a42008-10-22 09:56:27 +000026781 (exit $ac_status); } && {
26782 test -z "$ac_c_werror_flag" ||
26783 test ! -s conftest.err
26784 } && test -s conftest.$ac_objext; then
Reid Spencer59473af2004-12-25 07:31:29 +000026785 eval "$as_ac_Header=yes"
26786else
26787 echo "$as_me: failed program was:" >&5
26788sed 's/^/| /' conftest.$ac_ext >&5
26789
Reid Spencera773bd52006-08-04 18:18:08 +000026790 eval "$as_ac_Header=no"
Reid Spencer59473af2004-12-25 07:31:29 +000026791fi
Reid Spencera773bd52006-08-04 18:18:08 +000026792
26793rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000026794fi
Reid Spencera773bd52006-08-04 18:18:08 +000026795ac_res=`eval echo '${'$as_ac_Header'}'`
26796 { echo "$as_me:$LINENO: result: $ac_res" >&5
26797echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026798if test `eval echo '${'$as_ac_Header'}'` = yes; then
26799 cat >>confdefs.h <<_ACEOF
26800#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
26801_ACEOF
26802
26803ac_header_dirent=$ac_hdr; break
26804fi
26805
26806done
26807# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
26808if test $ac_header_dirent = dirent.h; then
Reid Spencera773bd52006-08-04 18:18:08 +000026809 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
26810echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026811if test "${ac_cv_search_opendir+set}" = set; then
26812 echo $ECHO_N "(cached) $ECHO_C" >&6
26813else
26814 ac_func_search_save_LIBS=$LIBS
Reid Spencer59473af2004-12-25 07:31:29 +000026815cat >conftest.$ac_ext <<_ACEOF
26816/* confdefs.h. */
26817_ACEOF
26818cat confdefs.h >>conftest.$ac_ext
26819cat >>conftest.$ac_ext <<_ACEOF
26820/* end confdefs.h. */
26821
Reid Spencera773bd52006-08-04 18:18:08 +000026822/* Override any GCC internal prototype to avoid an error.
26823 Use char because int might match the return type of a GCC
26824 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000026825#ifdef __cplusplus
26826extern "C"
26827#endif
Reid Spencer59473af2004-12-25 07:31:29 +000026828char opendir ();
26829int
26830main ()
26831{
Reid Spencera773bd52006-08-04 18:18:08 +000026832return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000026833 ;
26834 return 0;
26835}
26836_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000026837for ac_lib in '' dir; do
26838 if test -z "$ac_lib"; then
26839 ac_res="none required"
26840 else
26841 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000026842 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000026843 fi
26844 rm -f conftest.$ac_objext conftest$ac_exeext
26845if { (ac_try="$ac_link"
26846case "(($ac_try" in
26847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26848 *) ac_try_echo=$ac_try;;
26849esac
26850eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26851 (eval "$ac_link") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000026852 ac_status=$?
26853 grep -v '^ *+' conftest.er1 >conftest.err
26854 rm -f conftest.er1
26855 cat conftest.err >&5
26856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Torok Edwincc499a42008-10-22 09:56:27 +000026857 (exit $ac_status); } && {
26858 test -z "$ac_c_werror_flag" ||
26859 test ! -s conftest.err
26860 } && test -s conftest$ac_exeext &&
26861 $as_test_x conftest$ac_exeext; then
Reid Spencera773bd52006-08-04 18:18:08 +000026862 ac_cv_search_opendir=$ac_res
Reid Spencer59473af2004-12-25 07:31:29 +000026863else
26864 echo "$as_me: failed program was:" >&5
26865sed 's/^/| /' conftest.$ac_ext >&5
26866
Reid Spencera773bd52006-08-04 18:18:08 +000026867
Reid Spencer59473af2004-12-25 07:31:29 +000026868fi
Reid Spencera773bd52006-08-04 18:18:08 +000026869
Torok Edwincc499a42008-10-22 09:56:27 +000026870rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencera773bd52006-08-04 18:18:08 +000026871 conftest$ac_exeext
26872 if test "${ac_cv_search_opendir+set}" = set; then
26873 break
Reid Spencer59473af2004-12-25 07:31:29 +000026874fi
Reid Spencera773bd52006-08-04 18:18:08 +000026875done
26876if test "${ac_cv_search_opendir+set}" = set; then
26877 :
26878else
26879 ac_cv_search_opendir=no
26880fi
26881rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000026882LIBS=$ac_func_search_save_LIBS
26883fi
Reid Spencera773bd52006-08-04 18:18:08 +000026884{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
26885echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
26886ac_res=$ac_cv_search_opendir
26887if test "$ac_res" != no; then
26888 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000026889
26890fi
26891
26892else
Reid Spencera773bd52006-08-04 18:18:08 +000026893 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
26894echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026895if test "${ac_cv_search_opendir+set}" = set; then
26896 echo $ECHO_N "(cached) $ECHO_C" >&6
26897else
26898 ac_func_search_save_LIBS=$LIBS
Reid Spencer59473af2004-12-25 07:31:29 +000026899cat >conftest.$ac_ext <<_ACEOF
26900/* confdefs.h. */
26901_ACEOF
26902cat confdefs.h >>conftest.$ac_ext
26903cat >>conftest.$ac_ext <<_ACEOF
26904/* end confdefs.h. */
26905
Reid Spencera773bd52006-08-04 18:18:08 +000026906/* Override any GCC internal prototype to avoid an error.
26907 Use char because int might match the return type of a GCC
26908 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000026909#ifdef __cplusplus
26910extern "C"
26911#endif
Reid Spencer59473af2004-12-25 07:31:29 +000026912char opendir ();
26913int
26914main ()
26915{
Reid Spencera773bd52006-08-04 18:18:08 +000026916return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000026917 ;
26918 return 0;
26919}
26920_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000026921for ac_lib in '' x; do
26922 if test -z "$ac_lib"; then
26923 ac_res="none required"
26924 else
26925 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000026926 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000026927 fi
26928 rm -f conftest.$ac_objext conftest$ac_exeext
26929if { (ac_try="$ac_link"
26930case "(($ac_try" in
26931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26932 *) ac_try_echo=$ac_try;;
26933esac
26934eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26935 (eval "$ac_link") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000026936 ac_status=$?
26937 grep -v '^ *+' conftest.er1 >conftest.err
26938 rm -f conftest.er1
26939 cat conftest.err >&5
26940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Torok Edwincc499a42008-10-22 09:56:27 +000026941 (exit $ac_status); } && {
26942 test -z "$ac_c_werror_flag" ||
26943 test ! -s conftest.err
26944 } && test -s conftest$ac_exeext &&
26945 $as_test_x conftest$ac_exeext; then
Reid Spencera773bd52006-08-04 18:18:08 +000026946 ac_cv_search_opendir=$ac_res
Reid Spencer59473af2004-12-25 07:31:29 +000026947else
26948 echo "$as_me: failed program was:" >&5
26949sed 's/^/| /' conftest.$ac_ext >&5
26950
Reid Spencera773bd52006-08-04 18:18:08 +000026951
Reid Spencer59473af2004-12-25 07:31:29 +000026952fi
Reid Spencera773bd52006-08-04 18:18:08 +000026953
Torok Edwincc499a42008-10-22 09:56:27 +000026954rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencera773bd52006-08-04 18:18:08 +000026955 conftest$ac_exeext
26956 if test "${ac_cv_search_opendir+set}" = set; then
26957 break
Reid Spencer59473af2004-12-25 07:31:29 +000026958fi
Reid Spencera773bd52006-08-04 18:18:08 +000026959done
26960if test "${ac_cv_search_opendir+set}" = set; then
26961 :
26962else
26963 ac_cv_search_opendir=no
26964fi
26965rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000026966LIBS=$ac_func_search_save_LIBS
26967fi
Reid Spencera773bd52006-08-04 18:18:08 +000026968{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
26969echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
26970ac_res=$ac_cv_search_opendir
26971if test "$ac_res" != no; then
26972 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000026973
26974fi
26975
26976fi
26977
Reid Spencera773bd52006-08-04 18:18:08 +000026978{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
26979echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026980if test "${ac_cv_header_mmap_anon+set}" = set; then
26981 echo $ECHO_N "(cached) $ECHO_C" >&6
26982else
26983 ac_ext=c
26984ac_cpp='$CPP $CPPFLAGS'
26985ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26986ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26987ac_compiler_gnu=$ac_cv_c_compiler_gnu
26988
26989 cat >conftest.$ac_ext <<_ACEOF
26990/* confdefs.h. */
26991_ACEOF
26992cat confdefs.h >>conftest.$ac_ext
26993cat >>conftest.$ac_ext <<_ACEOF
26994/* end confdefs.h. */
26995#include <sys/mman.h>
26996#include <unistd.h>
26997#include <fcntl.h>
26998int
26999main ()
27000{
27001mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
27002 ;
27003 return 0;
27004}
27005_ACEOF
27006rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000027007if { (ac_try="$ac_compile"
27008case "(($ac_try" in
27009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27010 *) ac_try_echo=$ac_try;;
27011esac
27012eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27013 (eval "$ac_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000027014 ac_status=$?
27015 grep -v '^ *+' conftest.er1 >conftest.err
27016 rm -f conftest.er1
27017 cat conftest.err >&5
27018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Torok Edwincc499a42008-10-22 09:56:27 +000027019 (exit $ac_status); } && {
27020 test -z "$ac_c_werror_flag" ||
27021 test ! -s conftest.err
27022 } && test -s conftest.$ac_objext; then
Reid Spencer59473af2004-12-25 07:31:29 +000027023 ac_cv_header_mmap_anon=yes
27024else
27025 echo "$as_me: failed program was:" >&5
27026sed 's/^/| /' conftest.$ac_ext >&5
27027
Reid Spencera773bd52006-08-04 18:18:08 +000027028 ac_cv_header_mmap_anon=no
Reid Spencer59473af2004-12-25 07:31:29 +000027029fi
Reid Spencera773bd52006-08-04 18:18:08 +000027030
27031rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000027032 ac_ext=c
27033ac_cpp='$CPP $CPPFLAGS'
27034ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27035ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27036ac_compiler_gnu=$ac_cv_c_compiler_gnu
27037
27038
27039fi
Reid Spencera773bd52006-08-04 18:18:08 +000027040{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
27041echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027042if test "$ac_cv_header_mmap_anon" = yes; then
27043
27044cat >>confdefs.h <<\_ACEOF
Reid Spencer7931a782004-12-27 06:15:02 +000027045#define HAVE_MMAP_ANONYMOUS 1
Reid Spencer59473af2004-12-25 07:31:29 +000027046_ACEOF
27047
27048fi
27049
Reid Spencera773bd52006-08-04 18:18:08 +000027050{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
27051echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027052if test "${ac_cv_header_stat_broken+set}" = set; then
27053 echo $ECHO_N "(cached) $ECHO_C" >&6
27054else
27055 cat >conftest.$ac_ext <<_ACEOF
27056/* confdefs.h. */
27057_ACEOF
27058cat confdefs.h >>conftest.$ac_ext
27059cat >>conftest.$ac_ext <<_ACEOF
27060/* end confdefs.h. */
27061#include <sys/types.h>
27062#include <sys/stat.h>
27063
Reid Spencera773bd52006-08-04 18:18:08 +000027064#if defined S_ISBLK && defined S_IFDIR
Torok Edwincc499a42008-10-22 09:56:27 +000027065extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
Reid Spencer59473af2004-12-25 07:31:29 +000027066#endif
27067
Reid Spencera773bd52006-08-04 18:18:08 +000027068#if defined S_ISBLK && defined S_IFCHR
Torok Edwincc499a42008-10-22 09:56:27 +000027069extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
Reid Spencer59473af2004-12-25 07:31:29 +000027070#endif
27071
Reid Spencera773bd52006-08-04 18:18:08 +000027072#if defined S_ISLNK && defined S_IFREG
Torok Edwincc499a42008-10-22 09:56:27 +000027073extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
Reid Spencer59473af2004-12-25 07:31:29 +000027074#endif
27075
Reid Spencera773bd52006-08-04 18:18:08 +000027076#if defined S_ISSOCK && defined S_IFREG
Torok Edwincc499a42008-10-22 09:56:27 +000027077extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
Reid Spencer59473af2004-12-25 07:31:29 +000027078#endif
27079
27080_ACEOF
Torok Edwincc499a42008-10-22 09:56:27 +000027081rm -f conftest.$ac_objext
27082if { (ac_try="$ac_compile"
27083case "(($ac_try" in
27084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27085 *) ac_try_echo=$ac_try;;
27086esac
27087eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27088 (eval "$ac_compile") 2>conftest.er1
27089 ac_status=$?
27090 grep -v '^ *+' conftest.er1 >conftest.err
27091 rm -f conftest.er1
27092 cat conftest.err >&5
27093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27094 (exit $ac_status); } && {
27095 test -z "$ac_c_werror_flag" ||
27096 test ! -s conftest.err
27097 } && test -s conftest.$ac_objext; then
Tanya Lattnercf067672008-01-17 05:57:22 +000027098 ac_cv_header_stat_broken=no
Torok Edwincc499a42008-10-22 09:56:27 +000027099else
27100 echo "$as_me: failed program was:" >&5
27101sed 's/^/| /' conftest.$ac_ext >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000027102
Torok Edwincc499a42008-10-22 09:56:27 +000027103 ac_cv_header_stat_broken=yes
27104fi
27105
27106rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000027107fi
Reid Spencera773bd52006-08-04 18:18:08 +000027108{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
27109echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027110if test $ac_cv_header_stat_broken = yes; then
27111
27112cat >>confdefs.h <<\_ACEOF
27113#define STAT_MACROS_BROKEN 1
27114_ACEOF
27115
27116fi
27117
Reid Spencera773bd52006-08-04 18:18:08 +000027118{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
27119echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000027120if test "${ac_cv_header_stdc+set}" = set; then
27121 echo $ECHO_N "(cached) $ECHO_C" >&6
27122else
27123 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027124/* confdefs.h. */
27125_ACEOF
27126cat confdefs.h >>conftest.$ac_ext
27127cat >>conftest.$ac_ext <<_ACEOF
27128/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027129#include <stdlib.h>
27130#include <stdarg.h>
27131#include <string.h>
27132#include <float.h>
27133
John Criswell0c38eaf2003-09-10 15:17:25 +000027134int
27135main ()
27136{
27137
27138 ;
27139 return 0;
27140}
John Criswell7a73b802003-06-30 21:59:07 +000027141_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027142rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000027143if { (ac_try="$ac_compile"
27144case "(($ac_try" in
27145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27146 *) ac_try_echo=$ac_try;;
27147esac
27148eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27149 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027150 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027151 grep -v '^ *+' conftest.er1 >conftest.err
27152 rm -f conftest.er1
27153 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Torok Edwincc499a42008-10-22 09:56:27 +000027155 (exit $ac_status); } && {
27156 test -z "$ac_c_werror_flag" ||
27157 test ! -s conftest.err
27158 } && test -s conftest.$ac_objext; then
John Criswell7a73b802003-06-30 21:59:07 +000027159 ac_cv_header_stdc=yes
27160else
27161 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027162sed 's/^/| /' conftest.$ac_ext >&5
27163
Reid Spencera773bd52006-08-04 18:18:08 +000027164 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000027165fi
Reid Spencera773bd52006-08-04 18:18:08 +000027166
27167rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027168
27169if test $ac_cv_header_stdc = yes; then
27170 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
27171 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027172/* confdefs.h. */
27173_ACEOF
27174cat confdefs.h >>conftest.$ac_ext
27175cat >>conftest.$ac_ext <<_ACEOF
27176/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027177#include <string.h>
27178
27179_ACEOF
27180if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000027181 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000027182 :
27183else
27184 ac_cv_header_stdc=no
27185fi
27186rm -f conftest*
27187
27188fi
27189
27190if test $ac_cv_header_stdc = yes; then
27191 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
27192 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027193/* confdefs.h. */
27194_ACEOF
27195cat confdefs.h >>conftest.$ac_ext
27196cat >>conftest.$ac_ext <<_ACEOF
27197/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027198#include <stdlib.h>
27199
27200_ACEOF
27201if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000027202 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000027203 :
27204else
27205 ac_cv_header_stdc=no
27206fi
27207rm -f conftest*
27208
27209fi
27210
27211if test $ac_cv_header_stdc = yes; then
27212 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
27213 if test "$cross_compiling" = yes; then
27214 :
27215else
27216 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027217/* confdefs.h. */
27218_ACEOF
27219cat confdefs.h >>conftest.$ac_ext
27220cat >>conftest.$ac_ext <<_ACEOF
27221/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027222#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +000027223#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +000027224#if ((' ' & 0x0FF) == 0x020)
27225# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
27226# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
27227#else
John Criswell0c38eaf2003-09-10 15:17:25 +000027228# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +000027229 (('a' <= (c) && (c) <= 'i') \
27230 || ('j' <= (c) && (c) <= 'r') \
27231 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +000027232# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
27233#endif
27234
27235#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
27236int
27237main ()
27238{
27239 int i;
27240 for (i = 0; i < 256; i++)
27241 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +000027242 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +000027243 return 2;
27244 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000027245}
27246_ACEOF
27247rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027248if { (ac_try="$ac_link"
27249case "(($ac_try" in
27250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27251 *) ac_try_echo=$ac_try;;
27252esac
27253eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27254 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000027255 ac_status=$?
27256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27257 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000027258 { (case "(($ac_try" in
27259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27260 *) ac_try_echo=$ac_try;;
27261esac
27262eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27263 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000027264 ac_status=$?
27265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27266 (exit $ac_status); }; }; then
27267 :
27268else
27269 echo "$as_me: program exited with status $ac_status" >&5
27270echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027271sed 's/^/| /' conftest.$ac_ext >&5
27272
John Criswell7a73b802003-06-30 21:59:07 +000027273( exit $ac_status )
27274ac_cv_header_stdc=no
27275fi
Reid Spencera773bd52006-08-04 18:18:08 +000027276rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27277fi
27278
27279
John Criswell7a73b802003-06-30 21:59:07 +000027280fi
27281fi
Reid Spencera773bd52006-08-04 18:18:08 +000027282{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
27283echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000027284if test $ac_cv_header_stdc = yes; then
27285
27286cat >>confdefs.h <<\_ACEOF
27287#define STDC_HEADERS 1
27288_ACEOF
27289
27290fi
27291
Reid Spencera773bd52006-08-04 18:18:08 +000027292{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
27293echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000027294if test "${ac_cv_header_sys_wait_h+set}" = set; then
27295 echo $ECHO_N "(cached) $ECHO_C" >&6
27296else
27297 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027298/* confdefs.h. */
27299_ACEOF
27300cat confdefs.h >>conftest.$ac_ext
27301cat >>conftest.$ac_ext <<_ACEOF
27302/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027303#include <sys/types.h>
27304#include <sys/wait.h>
27305#ifndef WEXITSTATUS
Reid Spencera773bd52006-08-04 18:18:08 +000027306# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
John Criswell7a73b802003-06-30 21:59:07 +000027307#endif
27308#ifndef WIFEXITED
27309# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
27310#endif
27311
John Criswell7a73b802003-06-30 21:59:07 +000027312int
27313main ()
27314{
27315 int s;
27316 wait (&s);
27317 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
27318 ;
27319 return 0;
27320}
27321_ACEOF
27322rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000027323if { (ac_try="$ac_compile"
27324case "(($ac_try" in
27325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27326 *) ac_try_echo=$ac_try;;
27327esac
27328eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27329 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027330 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027331 grep -v '^ *+' conftest.er1 >conftest.err
27332 rm -f conftest.er1
27333 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Torok Edwincc499a42008-10-22 09:56:27 +000027335 (exit $ac_status); } && {
27336 test -z "$ac_c_werror_flag" ||
27337 test ! -s conftest.err
27338 } && test -s conftest.$ac_objext; then
John Criswell7a73b802003-06-30 21:59:07 +000027339 ac_cv_header_sys_wait_h=yes
27340else
27341 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027342sed 's/^/| /' conftest.$ac_ext >&5
27343
Reid Spencera773bd52006-08-04 18:18:08 +000027344 ac_cv_header_sys_wait_h=no
John Criswell7a73b802003-06-30 21:59:07 +000027345fi
Reid Spencera773bd52006-08-04 18:18:08 +000027346
27347rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027348fi
Reid Spencera773bd52006-08-04 18:18:08 +000027349{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
27350echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000027351if test $ac_cv_header_sys_wait_h = yes; then
27352
27353cat >>confdefs.h <<\_ACEOF
27354#define HAVE_SYS_WAIT_H 1
27355_ACEOF
27356
27357fi
27358
Reid Spencera773bd52006-08-04 18:18:08 +000027359{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
27360echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027361if test "${ac_cv_header_time+set}" = set; then
27362 echo $ECHO_N "(cached) $ECHO_C" >&6
27363else
27364 cat >conftest.$ac_ext <<_ACEOF
27365/* confdefs.h. */
27366_ACEOF
27367cat confdefs.h >>conftest.$ac_ext
27368cat >>conftest.$ac_ext <<_ACEOF
27369/* end confdefs.h. */
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027370#include <sys/types.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027371#include <sys/time.h>
27372#include <time.h>
27373
27374int
27375main ()
27376{
27377if ((struct tm *) 0)
27378return 0;
27379 ;
27380 return 0;
27381}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027382_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027383rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000027384if { (ac_try="$ac_compile"
27385case "(($ac_try" in
27386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27387 *) ac_try_echo=$ac_try;;
27388esac
27389eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27390 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027391 ac_status=$?
27392 grep -v '^ *+' conftest.er1 >conftest.err
27393 rm -f conftest.er1
27394 cat conftest.err >&5
27395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Torok Edwincc499a42008-10-22 09:56:27 +000027396 (exit $ac_status); } && {
27397 test -z "$ac_c_werror_flag" ||
27398 test ! -s conftest.err
27399 } && test -s conftest.$ac_objext; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027400 ac_cv_header_time=yes
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027401else
27402 echo "$as_me: failed program was:" >&5
27403sed 's/^/| /' conftest.$ac_ext >&5
27404
Reid Spencera773bd52006-08-04 18:18:08 +000027405 ac_cv_header_time=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027406fi
Reid Spencera773bd52006-08-04 18:18:08 +000027407
27408rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027409fi
Reid Spencera773bd52006-08-04 18:18:08 +000027410{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
27411echo "${ECHO_T}$ac_cv_header_time" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027412if test $ac_cv_header_time = yes; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027413
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027414cat >>confdefs.h <<\_ACEOF
27415#define TIME_WITH_SYS_TIME 1
27416_ACEOF
27417
27418fi
27419
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027420
Reid Spencer59473af2004-12-25 07:31:29 +000027421
27422
27423
27424
27425
27426
27427for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
27428do
27429as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000027430if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27431 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27432echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27433if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000027434 echo $ECHO_N "(cached) $ECHO_C" >&6
27435fi
Reid Spencera773bd52006-08-04 18:18:08 +000027436ac_res=`eval echo '${'$as_ac_Header'}'`
27437 { echo "$as_me:$LINENO: result: $ac_res" >&5
27438echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027439else
27440 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000027441{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
27442echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027443cat >conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027444/* confdefs.h. */
27445_ACEOF
27446cat confdefs.h >>conftest.$ac_ext
27447cat >>conftest.$ac_ext <<_ACEOF
27448/* end confdefs.h. */
Reid Spencer59473af2004-12-25 07:31:29 +000027449$ac_includes_default
27450#include <$ac_header>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027451_ACEOF
27452rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000027453if { (ac_try="$ac_compile"
27454case "(($ac_try" in
27455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27456 *) ac_try_echo=$ac_try;;
27457esac
27458eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27459 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027460 ac_status=$?
27461 grep -v '^ *+' conftest.er1 >conftest.err
27462 rm -f conftest.er1
27463 cat conftest.err >&5
27464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Torok Edwincc499a42008-10-22 09:56:27 +000027465 (exit $ac_status); } && {
27466 test -z "$ac_c_werror_flag" ||
27467 test ! -s conftest.err
27468 } && test -s conftest.$ac_objext; then
Reid Spencer59473af2004-12-25 07:31:29 +000027469 ac_header_compiler=yes
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027470else
27471 echo "$as_me: failed program was:" >&5
27472sed 's/^/| /' conftest.$ac_ext >&5
27473
Reid Spencera773bd52006-08-04 18:18:08 +000027474 ac_header_compiler=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027475fi
Reid Spencera773bd52006-08-04 18:18:08 +000027476
27477rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27478{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27479echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027480
Reid Spencer59473af2004-12-25 07:31:29 +000027481# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000027482{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
27483echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027484cat >conftest.$ac_ext <<_ACEOF
27485/* confdefs.h. */
27486_ACEOF
27487cat confdefs.h >>conftest.$ac_ext
27488cat >>conftest.$ac_ext <<_ACEOF
27489/* end confdefs.h. */
27490#include <$ac_header>
27491_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027492if { (ac_try="$ac_cpp conftest.$ac_ext"
27493case "(($ac_try" in
27494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27495 *) ac_try_echo=$ac_try;;
27496esac
27497eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27498 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000027499 ac_status=$?
27500 grep -v '^ *+' conftest.er1 >conftest.err
27501 rm -f conftest.er1
27502 cat conftest.err >&5
27503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Torok Edwincc499a42008-10-22 09:56:27 +000027504 (exit $ac_status); } >/dev/null && {
27505 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27506 test ! -s conftest.err
27507 }; then
Reid Spencer59473af2004-12-25 07:31:29 +000027508 ac_header_preproc=yes
27509else
27510 echo "$as_me: failed program was:" >&5
27511sed 's/^/| /' conftest.$ac_ext >&5
27512
27513 ac_header_preproc=no
27514fi
Reid Spencera773bd52006-08-04 18:18:08 +000027515
Reid Spencer59473af2004-12-25 07:31:29 +000027516rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000027517{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27518echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027519
27520# So? What about this header?
27521case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27522 yes:no: )
27523 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27524echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27525 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27526echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27527 ac_header_preproc=yes
27528 ;;
27529 no:yes:* )
27530 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27531echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27532 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27533echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27534 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27535echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27536 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27537echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27538 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27539echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27540 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27541echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000027542 ( cat <<\_ASBOX
Reid Spencer59473af2004-12-25 07:31:29 +000027543## ----------------------------------- ##
27544## Report this to llvmbugs@cs.uiuc.edu ##
27545## ----------------------------------- ##
27546_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000027547 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer59473af2004-12-25 07:31:29 +000027548 ;;
27549esac
Reid Spencera773bd52006-08-04 18:18:08 +000027550{ echo "$as_me:$LINENO: checking for $ac_header" >&5
27551echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27552if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000027553 echo $ECHO_N "(cached) $ECHO_C" >&6
27554else
27555 eval "$as_ac_Header=\$ac_header_preproc"
27556fi
Reid Spencera773bd52006-08-04 18:18:08 +000027557ac_res=`eval echo '${'$as_ac_Header'}'`
27558 { echo "$as_me:$LINENO: result: $ac_res" >&5
27559echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027560
27561fi
Reid Spencer59473af2004-12-25 07:31:29 +000027562if test `eval echo '${'$as_ac_Header'}'` = yes; then
27563 cat >>confdefs.h <<_ACEOF
27564#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027565_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027566
27567fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027568
Reid Spencer59473af2004-12-25 07:31:29 +000027569done
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027570
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027571
27572
Reid Spencer59473af2004-12-25 07:31:29 +000027573
27574
27575
27576
Reid Spencercdb08a32006-06-05 16:11:07 +000027577for ac_header in malloc.h setjmp.h signal.h stdint.h unistd.h utime.h
Reid Spencer59473af2004-12-25 07:31:29 +000027578do
27579as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000027580if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27581 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27582echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27583if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000027584 echo $ECHO_N "(cached) $ECHO_C" >&6
27585fi
Reid Spencera773bd52006-08-04 18:18:08 +000027586ac_res=`eval echo '${'$as_ac_Header'}'`
27587 { echo "$as_me:$LINENO: result: $ac_res" >&5
27588echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027589else
27590 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000027591{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
27592echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027593cat >conftest.$ac_ext <<_ACEOF
27594/* confdefs.h. */
27595_ACEOF
27596cat confdefs.h >>conftest.$ac_ext
27597cat >>conftest.$ac_ext <<_ACEOF
27598/* end confdefs.h. */
27599$ac_includes_default
27600#include <$ac_header>
27601_ACEOF
27602rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000027603if { (ac_try="$ac_compile"
27604case "(($ac_try" in
27605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27606 *) ac_try_echo=$ac_try;;
27607esac
27608eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27609 (eval "$ac_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000027610 ac_status=$?
27611 grep -v '^ *+' conftest.er1 >conftest.err
27612 rm -f conftest.er1
27613 cat conftest.err >&5
27614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Torok Edwincc499a42008-10-22 09:56:27 +000027615 (exit $ac_status); } && {
27616 test -z "$ac_c_werror_flag" ||
27617 test ! -s conftest.err
27618 } && test -s conftest.$ac_objext; then
Reid Spencer59473af2004-12-25 07:31:29 +000027619 ac_header_compiler=yes
27620else
27621 echo "$as_me: failed program was:" >&5
27622sed 's/^/| /' conftest.$ac_ext >&5
27623
Reid Spencera773bd52006-08-04 18:18:08 +000027624 ac_header_compiler=no
Reid Spencer59473af2004-12-25 07:31:29 +000027625fi
Reid Spencera773bd52006-08-04 18:18:08 +000027626
27627rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27628{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27629echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027630
27631# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000027632{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
27633echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027634cat >conftest.$ac_ext <<_ACEOF
27635/* confdefs.h. */
27636_ACEOF
27637cat confdefs.h >>conftest.$ac_ext
27638cat >>conftest.$ac_ext <<_ACEOF
27639/* end confdefs.h. */
27640#include <$ac_header>
27641_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027642if { (ac_try="$ac_cpp conftest.$ac_ext"
27643case "(($ac_try" in
27644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27645 *) ac_try_echo=$ac_try;;
27646esac
27647eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27648 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000027649 ac_status=$?
27650 grep -v '^ *+' conftest.er1 >conftest.err
27651 rm -f conftest.er1
27652 cat conftest.err >&5
27653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Torok Edwincc499a42008-10-22 09:56:27 +000027654 (exit $ac_status); } >/dev/null && {
27655 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27656 test ! -s conftest.err
27657 }; then
Reid Spencer59473af2004-12-25 07:31:29 +000027658 ac_header_preproc=yes
27659else
27660 echo "$as_me: failed program was:" >&5
27661sed 's/^/| /' conftest.$ac_ext >&5
27662
27663 ac_header_preproc=no
27664fi
Reid Spencera773bd52006-08-04 18:18:08 +000027665
Reid Spencer59473af2004-12-25 07:31:29 +000027666rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000027667{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27668echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027669
27670# So? What about this header?
27671case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27672 yes:no: )
27673 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27674echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27675 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27676echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27677 ac_header_preproc=yes
27678 ;;
27679 no:yes:* )
27680 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27681echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27682 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27683echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27684 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27685echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27686 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27687echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27688 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27689echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27690 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27691echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000027692 ( cat <<\_ASBOX
Reid Spencer59473af2004-12-25 07:31:29 +000027693## ----------------------------------- ##
27694## Report this to llvmbugs@cs.uiuc.edu ##
27695## ----------------------------------- ##
27696_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000027697 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer59473af2004-12-25 07:31:29 +000027698 ;;
27699esac
Reid Spencera773bd52006-08-04 18:18:08 +000027700{ echo "$as_me:$LINENO: checking for $ac_header" >&5
27701echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27702if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000027703 echo $ECHO_N "(cached) $ECHO_C" >&6
27704else
27705 eval "$as_ac_Header=\$ac_header_preproc"
27706fi
Reid Spencera773bd52006-08-04 18:18:08 +000027707ac_res=`eval echo '${'$as_ac_Header'}'`
27708 { echo "$as_me:$LINENO: result: $ac_res" >&5
27709echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027710
27711fi
27712if test `eval echo '${'$as_ac_Header'}'` = yes; then
27713 cat >>confdefs.h <<_ACEOF
27714#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27715_ACEOF
27716
27717fi
27718
27719done
27720
27721
Reid Spencerbe3e4192007-08-17 05:45:26 +000027722for ac_header in windows.h
27723do
27724as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27725if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27726 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27727echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27728if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27729 echo $ECHO_N "(cached) $ECHO_C" >&6
27730fi
27731ac_res=`eval echo '${'$as_ac_Header'}'`
27732 { echo "$as_me:$LINENO: result: $ac_res" >&5
27733echo "${ECHO_T}$ac_res" >&6; }
27734else
27735 # Is the header compilable?
27736{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
27737echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27738cat >conftest.$ac_ext <<_ACEOF
27739/* confdefs.h. */
27740_ACEOF
27741cat confdefs.h >>conftest.$ac_ext
27742cat >>conftest.$ac_ext <<_ACEOF
27743/* end confdefs.h. */
27744$ac_includes_default
27745#include <$ac_header>
27746_ACEOF
27747rm -f conftest.$ac_objext
27748if { (ac_try="$ac_compile"
27749case "(($ac_try" in
27750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27751 *) ac_try_echo=$ac_try;;
27752esac
27753eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27754 (eval "$ac_compile") 2>conftest.er1
27755 ac_status=$?
27756 grep -v '^ *+' conftest.er1 >conftest.err
27757 rm -f conftest.er1
27758 cat conftest.err >&5
27759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Torok Edwincc499a42008-10-22 09:56:27 +000027760 (exit $ac_status); } && {
27761 test -z "$ac_c_werror_flag" ||
27762 test ! -s conftest.err
27763 } && test -s conftest.$ac_objext; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000027764 ac_header_compiler=yes
27765else
27766 echo "$as_me: failed program was:" >&5
27767sed 's/^/| /' conftest.$ac_ext >&5
27768
27769 ac_header_compiler=no
27770fi
27771
27772rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27773{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27774echo "${ECHO_T}$ac_header_compiler" >&6; }
27775
27776# Is the header present?
27777{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
27778echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27779cat >conftest.$ac_ext <<_ACEOF
27780/* confdefs.h. */
27781_ACEOF
27782cat confdefs.h >>conftest.$ac_ext
27783cat >>conftest.$ac_ext <<_ACEOF
27784/* end confdefs.h. */
27785#include <$ac_header>
27786_ACEOF
27787if { (ac_try="$ac_cpp conftest.$ac_ext"
27788case "(($ac_try" in
27789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27790 *) ac_try_echo=$ac_try;;
27791esac
27792eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27793 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27794 ac_status=$?
27795 grep -v '^ *+' conftest.er1 >conftest.err
27796 rm -f conftest.er1
27797 cat conftest.err >&5
27798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Torok Edwincc499a42008-10-22 09:56:27 +000027799 (exit $ac_status); } >/dev/null && {
27800 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27801 test ! -s conftest.err
27802 }; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000027803 ac_header_preproc=yes
27804else
27805 echo "$as_me: failed program was:" >&5
27806sed 's/^/| /' conftest.$ac_ext >&5
27807
27808 ac_header_preproc=no
27809fi
27810
27811rm -f conftest.err conftest.$ac_ext
27812{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27813echo "${ECHO_T}$ac_header_preproc" >&6; }
27814
27815# So? What about this header?
27816case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27817 yes:no: )
27818 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27819echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27820 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27821echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27822 ac_header_preproc=yes
27823 ;;
27824 no:yes:* )
27825 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27826echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27827 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27828echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27829 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27830echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27831 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27832echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27833 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27834echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27835 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27836echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27837 ( cat <<\_ASBOX
27838## ----------------------------------- ##
27839## Report this to llvmbugs@cs.uiuc.edu ##
27840## ----------------------------------- ##
27841_ASBOX
27842 ) | sed "s/^/$as_me: WARNING: /" >&2
27843 ;;
27844esac
27845{ echo "$as_me:$LINENO: checking for $ac_header" >&5
27846echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27847if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27848 echo $ECHO_N "(cached) $ECHO_C" >&6
27849else
27850 eval "$as_ac_Header=\$ac_header_preproc"
27851fi
27852ac_res=`eval echo '${'$as_ac_Header'}'`
27853 { echo "$as_me:$LINENO: result: $ac_res" >&5
27854echo "${ECHO_T}$ac_res" >&6; }
27855
27856fi
27857if test `eval echo '${'$as_ac_Header'}'` = yes; then
27858 cat >>confdefs.h <<_ACEOF
27859#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27860_ACEOF
27861
27862fi
27863
27864done
Reid Spencer59473af2004-12-25 07:31:29 +000027865
27866
27867
27868
Reid Spencerbe3e4192007-08-17 05:45:26 +000027869
27870for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027871do
27872as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000027873if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27874 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27875echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27876if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027877 echo $ECHO_N "(cached) $ECHO_C" >&6
27878fi
Reid Spencera773bd52006-08-04 18:18:08 +000027879ac_res=`eval echo '${'$as_ac_Header'}'`
27880 { echo "$as_me:$LINENO: result: $ac_res" >&5
27881echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027882else
27883 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000027884{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
27885echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027886cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027887/* confdefs.h. */
27888_ACEOF
27889cat confdefs.h >>conftest.$ac_ext
27890cat >>conftest.$ac_ext <<_ACEOF
27891/* end confdefs.h. */
27892$ac_includes_default
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027893#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027894_ACEOF
27895rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000027896if { (ac_try="$ac_compile"
27897case "(($ac_try" in
27898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27899 *) ac_try_echo=$ac_try;;
27900esac
27901eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27902 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027903 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027904 grep -v '^ *+' conftest.er1 >conftest.err
27905 rm -f conftest.er1
27906 cat conftest.err >&5
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Torok Edwincc499a42008-10-22 09:56:27 +000027908 (exit $ac_status); } && {
27909 test -z "$ac_c_werror_flag" ||
27910 test ! -s conftest.err
27911 } && test -s conftest.$ac_objext; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027912 ac_header_compiler=yes
27913else
27914 echo "$as_me: failed program was:" >&5
27915sed 's/^/| /' conftest.$ac_ext >&5
27916
Reid Spencera773bd52006-08-04 18:18:08 +000027917 ac_header_compiler=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027918fi
Reid Spencera773bd52006-08-04 18:18:08 +000027919
27920rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27921{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27922echo "${ECHO_T}$ac_header_compiler" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027923
27924# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000027925{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
27926echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027927cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027928/* confdefs.h. */
27929_ACEOF
27930cat confdefs.h >>conftest.$ac_ext
27931cat >>conftest.$ac_ext <<_ACEOF
27932/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027933#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027934_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027935if { (ac_try="$ac_cpp conftest.$ac_ext"
27936case "(($ac_try" in
27937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27938 *) ac_try_echo=$ac_try;;
27939esac
27940eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27941 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027942 ac_status=$?
27943 grep -v '^ *+' conftest.er1 >conftest.err
27944 rm -f conftest.er1
27945 cat conftest.err >&5
27946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Torok Edwincc499a42008-10-22 09:56:27 +000027947 (exit $ac_status); } >/dev/null && {
27948 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27949 test ! -s conftest.err
27950 }; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027951 ac_header_preproc=yes
27952else
27953 echo "$as_me: failed program was:" >&5
27954sed 's/^/| /' conftest.$ac_ext >&5
27955
27956 ac_header_preproc=no
27957fi
Reid Spencera773bd52006-08-04 18:18:08 +000027958
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027959rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000027960{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27961echo "${ECHO_T}$ac_header_preproc" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027962
27963# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027964case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27965 yes:no: )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027966 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27967echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27968 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27969echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000027970 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000027971 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000027972 no:yes:* )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027973 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27974echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27975 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27976echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27977 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27978echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27979 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27980echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27981 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27982echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27983 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27984echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000027985 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000027986## ----------------------------------- ##
27987## Report this to llvmbugs@cs.uiuc.edu ##
27988## ----------------------------------- ##
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027989_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000027990 ) | sed "s/^/$as_me: WARNING: /" >&2
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027991 ;;
27992esac
Reid Spencera773bd52006-08-04 18:18:08 +000027993{ echo "$as_me:$LINENO: checking for $ac_header" >&5
27994echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27995if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027996 echo $ECHO_N "(cached) $ECHO_C" >&6
27997else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027998 eval "$as_ac_Header=\$ac_header_preproc"
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027999fi
Reid Spencera773bd52006-08-04 18:18:08 +000028000ac_res=`eval echo '${'$as_ac_Header'}'`
28001 { echo "$as_me:$LINENO: result: $ac_res" >&5
28002echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028003
28004fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028005if test `eval echo '${'$as_ac_Header'}'` = yes; then
28006 cat >>confdefs.h <<_ACEOF
28007#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7ed43ad2004-07-19 16:12:29 +000028008_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000028009
28010fi
John Criswell7ed43ad2004-07-19 16:12:29 +000028011
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028012done
28013
John Criswell7ed43ad2004-07-19 16:12:29 +000028014
Reid Spencercdb08a32006-06-05 16:11:07 +000028015
Reid Spencera6d990a2006-09-14 06:17:21 +000028016
28017for ac_header in sys/types.h malloc/malloc.h mach/mach.h
Chris Lattner0b142592005-11-14 06:57:34 +000028018do
28019as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000028020if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28021 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28022echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28023if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Chris Lattner0b142592005-11-14 06:57:34 +000028024 echo $ECHO_N "(cached) $ECHO_C" >&6
28025fi
Reid Spencera773bd52006-08-04 18:18:08 +000028026ac_res=`eval echo '${'$as_ac_Header'}'`
28027 { echo "$as_me:$LINENO: result: $ac_res" >&5
28028echo "${ECHO_T}$ac_res" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000028029else
28030 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000028031{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
28032echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000028033cat >conftest.$ac_ext <<_ACEOF
28034/* confdefs.h. */
28035_ACEOF
28036cat confdefs.h >>conftest.$ac_ext
28037cat >>conftest.$ac_ext <<_ACEOF
28038/* end confdefs.h. */
28039$ac_includes_default
28040#include <$ac_header>
28041_ACEOF
28042rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028043if { (ac_try="$ac_compile"
28044case "(($ac_try" in
28045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28046 *) ac_try_echo=$ac_try;;
28047esac
28048eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28049 (eval "$ac_compile") 2>conftest.er1
Chris Lattner0b142592005-11-14 06:57:34 +000028050 ac_status=$?
28051 grep -v '^ *+' conftest.er1 >conftest.err
28052 rm -f conftest.er1
28053 cat conftest.err >&5
28054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Torok Edwincc499a42008-10-22 09:56:27 +000028055 (exit $ac_status); } && {
28056 test -z "$ac_c_werror_flag" ||
28057 test ! -s conftest.err
28058 } && test -s conftest.$ac_objext; then
Chris Lattner0b142592005-11-14 06:57:34 +000028059 ac_header_compiler=yes
28060else
28061 echo "$as_me: failed program was:" >&5
28062sed 's/^/| /' conftest.$ac_ext >&5
28063
Reid Spencera773bd52006-08-04 18:18:08 +000028064 ac_header_compiler=no
Chris Lattner0b142592005-11-14 06:57:34 +000028065fi
Reid Spencera773bd52006-08-04 18:18:08 +000028066
28067rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28068{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28069echo "${ECHO_T}$ac_header_compiler" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000028070
28071# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000028072{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
28073echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000028074cat >conftest.$ac_ext <<_ACEOF
28075/* confdefs.h. */
28076_ACEOF
28077cat confdefs.h >>conftest.$ac_ext
28078cat >>conftest.$ac_ext <<_ACEOF
28079/* end confdefs.h. */
28080#include <$ac_header>
28081_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000028082if { (ac_try="$ac_cpp conftest.$ac_ext"
28083case "(($ac_try" in
28084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28085 *) ac_try_echo=$ac_try;;
28086esac
28087eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28088 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Chris Lattner0b142592005-11-14 06:57:34 +000028089 ac_status=$?
28090 grep -v '^ *+' conftest.er1 >conftest.err
28091 rm -f conftest.er1
28092 cat conftest.err >&5
28093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Torok Edwincc499a42008-10-22 09:56:27 +000028094 (exit $ac_status); } >/dev/null && {
28095 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28096 test ! -s conftest.err
28097 }; then
Chris Lattner0b142592005-11-14 06:57:34 +000028098 ac_header_preproc=yes
28099else
28100 echo "$as_me: failed program was:" >&5
28101sed 's/^/| /' conftest.$ac_ext >&5
28102
28103 ac_header_preproc=no
28104fi
Reid Spencera773bd52006-08-04 18:18:08 +000028105
Chris Lattner0b142592005-11-14 06:57:34 +000028106rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000028107{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28108echo "${ECHO_T}$ac_header_preproc" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000028109
28110# So? What about this header?
28111case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28112 yes:no: )
28113 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28114echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28115 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28116echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28117 ac_header_preproc=yes
28118 ;;
28119 no:yes:* )
28120 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28121echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28122 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28123echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28124 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28125echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28126 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28127echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28128 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28129echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28130 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28131echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000028132 ( cat <<\_ASBOX
Chris Lattner0b142592005-11-14 06:57:34 +000028133## ----------------------------------- ##
28134## Report this to llvmbugs@cs.uiuc.edu ##
28135## ----------------------------------- ##
28136_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000028137 ) | sed "s/^/$as_me: WARNING: /" >&2
Chris Lattner0b142592005-11-14 06:57:34 +000028138 ;;
28139esac
Reid Spencera773bd52006-08-04 18:18:08 +000028140{ echo "$as_me:$LINENO: checking for $ac_header" >&5
28141echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28142if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Chris Lattner0b142592005-11-14 06:57:34 +000028143 echo $ECHO_N "(cached) $ECHO_C" >&6
28144else
28145 eval "$as_ac_Header=\$ac_header_preproc"
28146fi
Reid Spencera773bd52006-08-04 18:18:08 +000028147ac_res=`eval echo '${'$as_ac_Header'}'`
28148 { echo "$as_me:$LINENO: result: $ac_res" >&5
28149echo "${ECHO_T}$ac_res" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000028150
28151fi
28152if test `eval echo '${'$as_ac_Header'}'` = yes; then
28153 cat >>confdefs.h <<_ACEOF
28154#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28155_ACEOF
28156
28157fi
28158
28159done
28160
Reid Spencer0a262ba2005-08-24 10:07:20 +000028161if test "$ENABLE_THREADS" -eq 1 ; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000028162
28163for ac_header in pthread.h
28164do
28165as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28166if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28167 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28168echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28169if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000028170 echo $ECHO_N "(cached) $ECHO_C" >&6
28171fi
Reid Spencerbe3e4192007-08-17 05:45:26 +000028172ac_res=`eval echo '${'$as_ac_Header'}'`
28173 { echo "$as_me:$LINENO: result: $ac_res" >&5
28174echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000028175else
28176 # Is the header compilable?
Reid Spencerbe3e4192007-08-17 05:45:26 +000028177{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
28178echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000028179cat >conftest.$ac_ext <<_ACEOF
28180/* confdefs.h. */
28181_ACEOF
28182cat confdefs.h >>conftest.$ac_ext
28183cat >>conftest.$ac_ext <<_ACEOF
28184/* end confdefs.h. */
28185$ac_includes_default
Reid Spencerbe3e4192007-08-17 05:45:26 +000028186#include <$ac_header>
Reid Spencer0a262ba2005-08-24 10:07:20 +000028187_ACEOF
28188rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028189if { (ac_try="$ac_compile"
28190case "(($ac_try" in
28191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28192 *) ac_try_echo=$ac_try;;
28193esac
28194eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28195 (eval "$ac_compile") 2>conftest.er1
Reid Spencer0a262ba2005-08-24 10:07:20 +000028196 ac_status=$?
28197 grep -v '^ *+' conftest.er1 >conftest.err
28198 rm -f conftest.er1
28199 cat conftest.err >&5
28200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Torok Edwincc499a42008-10-22 09:56:27 +000028201 (exit $ac_status); } && {
28202 test -z "$ac_c_werror_flag" ||
28203 test ! -s conftest.err
28204 } && test -s conftest.$ac_objext; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000028205 ac_header_compiler=yes
28206else
28207 echo "$as_me: failed program was:" >&5
28208sed 's/^/| /' conftest.$ac_ext >&5
28209
Reid Spencera773bd52006-08-04 18:18:08 +000028210 ac_header_compiler=no
Reid Spencer0a262ba2005-08-24 10:07:20 +000028211fi
Reid Spencera773bd52006-08-04 18:18:08 +000028212
28213rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28214{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28215echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000028216
28217# Is the header present?
Reid Spencerbe3e4192007-08-17 05:45:26 +000028218{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
28219echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000028220cat >conftest.$ac_ext <<_ACEOF
28221/* confdefs.h. */
28222_ACEOF
28223cat confdefs.h >>conftest.$ac_ext
28224cat >>conftest.$ac_ext <<_ACEOF
28225/* end confdefs.h. */
Reid Spencerbe3e4192007-08-17 05:45:26 +000028226#include <$ac_header>
Reid Spencer0a262ba2005-08-24 10:07:20 +000028227_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000028228if { (ac_try="$ac_cpp conftest.$ac_ext"
28229case "(($ac_try" in
28230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28231 *) ac_try_echo=$ac_try;;
28232esac
28233eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28234 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer0a262ba2005-08-24 10:07:20 +000028235 ac_status=$?
28236 grep -v '^ *+' conftest.er1 >conftest.err
28237 rm -f conftest.er1
28238 cat conftest.err >&5
28239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Torok Edwincc499a42008-10-22 09:56:27 +000028240 (exit $ac_status); } >/dev/null && {
28241 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28242 test ! -s conftest.err
28243 }; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000028244 ac_header_preproc=yes
28245else
28246 echo "$as_me: failed program was:" >&5
28247sed 's/^/| /' conftest.$ac_ext >&5
28248
28249 ac_header_preproc=no
28250fi
Reid Spencera773bd52006-08-04 18:18:08 +000028251
Reid Spencer0a262ba2005-08-24 10:07:20 +000028252rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000028253{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28254echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000028255
28256# So? What about this header?
28257case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28258 yes:no: )
Reid Spencerbe3e4192007-08-17 05:45:26 +000028259 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28260echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28261 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28262echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Reid Spencer0a262ba2005-08-24 10:07:20 +000028263 ac_header_preproc=yes
28264 ;;
28265 no:yes:* )
Reid Spencerbe3e4192007-08-17 05:45:26 +000028266 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28267echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28268 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28269echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28270 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28271echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28272 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28273echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28274 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28275echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28276 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28277echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000028278 ( cat <<\_ASBOX
Reid Spencer0a262ba2005-08-24 10:07:20 +000028279## ----------------------------------- ##
28280## Report this to llvmbugs@cs.uiuc.edu ##
28281## ----------------------------------- ##
28282_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000028283 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer0a262ba2005-08-24 10:07:20 +000028284 ;;
28285esac
Reid Spencerbe3e4192007-08-17 05:45:26 +000028286{ echo "$as_me:$LINENO: checking for $ac_header" >&5
28287echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28288if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000028289 echo $ECHO_N "(cached) $ECHO_C" >&6
28290else
Reid Spencerbe3e4192007-08-17 05:45:26 +000028291 eval "$as_ac_Header=\$ac_header_preproc"
Reid Spencer0a262ba2005-08-24 10:07:20 +000028292fi
Reid Spencerbe3e4192007-08-17 05:45:26 +000028293ac_res=`eval echo '${'$as_ac_Header'}'`
28294 { echo "$as_me:$LINENO: result: $ac_res" >&5
28295echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000028296
28297fi
Reid Spencerbe3e4192007-08-17 05:45:26 +000028298if test `eval echo '${'$as_ac_Header'}'` = yes; then
28299 cat >>confdefs.h <<_ACEOF
28300#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28301_ACEOF
28302 HAVE_PTHREAD=1
Reid Spencer1000b732006-12-01 00:37:14 +000028303
28304else
28305 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000028306
28307fi
28308
Reid Spencerbe3e4192007-08-17 05:45:26 +000028309done
Reid Spencer1000b732006-12-01 00:37:14 +000028310
28311else
28312 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000028313
28314fi
Reid Spencer8085cff2005-01-16 02:58:39 +000028315
28316
Reid Spencerb2ed05262006-11-03 18:04:08 +000028317
28318 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
28319echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
28320if test "${ac_cv_huge_val_sanity+set}" = set; then
28321 echo $ECHO_N "(cached) $ECHO_C" >&6
28322else
28323
Reid Spencer6a7c0b72006-11-03 19:49:16 +000028324 ac_ext=cpp
28325ac_cpp='$CXXCPP $CPPFLAGS'
28326ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28327ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28328ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencerb2ed05262006-11-03 18:04:08 +000028329
Reid Spencer6a7c0b72006-11-03 19:49:16 +000028330 CXXFLAGS=-pedantic
Reid Spencerb2ed05262006-11-03 18:04:08 +000028331 if test "$cross_compiling" = yes; then
28332 ac_cv_huge_val_sanity=yes
28333else
28334 cat >conftest.$ac_ext <<_ACEOF
28335/* confdefs.h. */
28336_ACEOF
28337cat confdefs.h >>conftest.$ac_ext
28338cat >>conftest.$ac_ext <<_ACEOF
28339/* end confdefs.h. */
28340#include <math.h>
28341int
28342main ()
28343{
28344double x = HUGE_VAL; return x != x;
28345 ;
28346 return 0;
28347}
28348_ACEOF
28349rm -f conftest$ac_exeext
28350if { (ac_try="$ac_link"
28351case "(($ac_try" in
28352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28353 *) ac_try_echo=$ac_try;;
28354esac
28355eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28356 (eval "$ac_link") 2>&5
28357 ac_status=$?
28358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28359 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28360 { (case "(($ac_try" in
28361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28362 *) ac_try_echo=$ac_try;;
28363esac
28364eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28365 (eval "$ac_try") 2>&5
28366 ac_status=$?
28367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28368 (exit $ac_status); }; }; then
28369 ac_cv_huge_val_sanity=yes
28370else
28371 echo "$as_me: program exited with status $ac_status" >&5
28372echo "$as_me: failed program was:" >&5
28373sed 's/^/| /' conftest.$ac_ext >&5
28374
28375( exit $ac_status )
28376ac_cv_huge_val_sanity=no
28377fi
28378rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28379fi
28380
28381
28382 ac_ext=c
28383ac_cpp='$CPP $CPPFLAGS'
28384ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28385ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28386ac_compiler_gnu=$ac_cv_c_compiler_gnu
28387
28388
28389fi
28390{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
28391echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
28392 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
28393
28394
Reid Spencera773bd52006-08-04 18:18:08 +000028395{ echo "$as_me:$LINENO: checking for pid_t" >&5
28396echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028397if test "${ac_cv_type_pid_t+set}" = set; then
28398 echo $ECHO_N "(cached) $ECHO_C" >&6
28399else
28400 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028401/* confdefs.h. */
28402_ACEOF
28403cat confdefs.h >>conftest.$ac_ext
28404cat >>conftest.$ac_ext <<_ACEOF
28405/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028406$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000028407typedef pid_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000028408int
28409main ()
28410{
Reid Spencera773bd52006-08-04 18:18:08 +000028411if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000028412 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000028413if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000028414 return 0;
28415 ;
28416 return 0;
28417}
28418_ACEOF
28419rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028420if { (ac_try="$ac_compile"
28421case "(($ac_try" in
28422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28423 *) ac_try_echo=$ac_try;;
28424esac
28425eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28426 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028427 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028428 grep -v '^ *+' conftest.er1 >conftest.err
28429 rm -f conftest.er1
28430 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Torok Edwincc499a42008-10-22 09:56:27 +000028432 (exit $ac_status); } && {
28433 test -z "$ac_c_werror_flag" ||
28434 test ! -s conftest.err
28435 } && test -s conftest.$ac_objext; then
John Criswell7a73b802003-06-30 21:59:07 +000028436 ac_cv_type_pid_t=yes
28437else
28438 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028439sed 's/^/| /' conftest.$ac_ext >&5
28440
Reid Spencera773bd52006-08-04 18:18:08 +000028441 ac_cv_type_pid_t=no
John Criswell7a73b802003-06-30 21:59:07 +000028442fi
Reid Spencera773bd52006-08-04 18:18:08 +000028443
28444rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028445fi
Reid Spencera773bd52006-08-04 18:18:08 +000028446{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
28447echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028448if test $ac_cv_type_pid_t = yes; then
28449 :
28450else
28451
28452cat >>confdefs.h <<_ACEOF
28453#define pid_t int
28454_ACEOF
28455
28456fi
28457
Reid Spencera773bd52006-08-04 18:18:08 +000028458{ echo "$as_me:$LINENO: checking for size_t" >&5
28459echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028460if test "${ac_cv_type_size_t+set}" = set; then
28461 echo $ECHO_N "(cached) $ECHO_C" >&6
28462else
28463 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028464/* confdefs.h. */
28465_ACEOF
28466cat confdefs.h >>conftest.$ac_ext
28467cat >>conftest.$ac_ext <<_ACEOF
28468/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028469$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000028470typedef size_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000028471int
28472main ()
28473{
Reid Spencera773bd52006-08-04 18:18:08 +000028474if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000028475 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000028476if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000028477 return 0;
28478 ;
28479 return 0;
28480}
28481_ACEOF
28482rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028483if { (ac_try="$ac_compile"
28484case "(($ac_try" in
28485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28486 *) ac_try_echo=$ac_try;;
28487esac
28488eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28489 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028490 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028491 grep -v '^ *+' conftest.er1 >conftest.err
28492 rm -f conftest.er1
28493 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Torok Edwincc499a42008-10-22 09:56:27 +000028495 (exit $ac_status); } && {
28496 test -z "$ac_c_werror_flag" ||
28497 test ! -s conftest.err
28498 } && test -s conftest.$ac_objext; then
John Criswell7a73b802003-06-30 21:59:07 +000028499 ac_cv_type_size_t=yes
28500else
28501 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028502sed 's/^/| /' conftest.$ac_ext >&5
28503
Reid Spencera773bd52006-08-04 18:18:08 +000028504 ac_cv_type_size_t=no
John Criswell7a73b802003-06-30 21:59:07 +000028505fi
Reid Spencera773bd52006-08-04 18:18:08 +000028506
28507rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028508fi
Reid Spencera773bd52006-08-04 18:18:08 +000028509{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
28510echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028511if test $ac_cv_type_size_t = yes; then
28512 :
28513else
28514
28515cat >>confdefs.h <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000028516#define size_t unsigned int
John Criswell7a73b802003-06-30 21:59:07 +000028517_ACEOF
28518
28519fi
28520
Reid Spencera773bd52006-08-04 18:18:08 +000028521{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5
28522echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028523if test "${ac_cv_type_signal+set}" = set; then
28524 echo $ECHO_N "(cached) $ECHO_C" >&6
28525else
28526 cat >conftest.$ac_ext <<_ACEOF
28527/* confdefs.h. */
28528_ACEOF
28529cat confdefs.h >>conftest.$ac_ext
28530cat >>conftest.$ac_ext <<_ACEOF
28531/* end confdefs.h. */
28532#include <sys/types.h>
28533#include <signal.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028534
28535int
28536main ()
28537{
Reid Spencera773bd52006-08-04 18:18:08 +000028538return *(signal (0, 0)) (0) == 1;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028539 ;
28540 return 0;
28541}
28542_ACEOF
28543rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028544if { (ac_try="$ac_compile"
28545case "(($ac_try" in
28546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28547 *) ac_try_echo=$ac_try;;
28548esac
28549eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28550 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028551 ac_status=$?
28552 grep -v '^ *+' conftest.er1 >conftest.err
28553 rm -f conftest.er1
28554 cat conftest.err >&5
28555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Torok Edwincc499a42008-10-22 09:56:27 +000028556 (exit $ac_status); } && {
28557 test -z "$ac_c_werror_flag" ||
28558 test ! -s conftest.err
28559 } && test -s conftest.$ac_objext; then
Reid Spencera773bd52006-08-04 18:18:08 +000028560 ac_cv_type_signal=int
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028561else
28562 echo "$as_me: failed program was:" >&5
28563sed 's/^/| /' conftest.$ac_ext >&5
28564
Reid Spencera773bd52006-08-04 18:18:08 +000028565 ac_cv_type_signal=void
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028566fi
Reid Spencera773bd52006-08-04 18:18:08 +000028567
28568rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028569fi
Reid Spencera773bd52006-08-04 18:18:08 +000028570{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
28571echo "${ECHO_T}$ac_cv_type_signal" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028572
28573cat >>confdefs.h <<_ACEOF
28574#define RETSIGTYPE $ac_cv_type_signal
28575_ACEOF
28576
28577
Reid Spencera773bd52006-08-04 18:18:08 +000028578{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
28579echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028580if test "${ac_cv_struct_tm+set}" = set; then
28581 echo $ECHO_N "(cached) $ECHO_C" >&6
28582else
28583 cat >conftest.$ac_ext <<_ACEOF
28584/* confdefs.h. */
28585_ACEOF
28586cat confdefs.h >>conftest.$ac_ext
28587cat >>conftest.$ac_ext <<_ACEOF
28588/* end confdefs.h. */
28589#include <sys/types.h>
28590#include <time.h>
28591
28592int
28593main ()
28594{
Torok Edwincc499a42008-10-22 09:56:27 +000028595struct tm tm;
28596 int *p = &tm.tm_sec;
28597 return !p;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028598 ;
28599 return 0;
28600}
28601_ACEOF
28602rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028603if { (ac_try="$ac_compile"
28604case "(($ac_try" in
28605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28606 *) ac_try_echo=$ac_try;;
28607esac
28608eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28609 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028610 ac_status=$?
28611 grep -v '^ *+' conftest.er1 >conftest.err
28612 rm -f conftest.er1
28613 cat conftest.err >&5
28614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Torok Edwincc499a42008-10-22 09:56:27 +000028615 (exit $ac_status); } && {
28616 test -z "$ac_c_werror_flag" ||
28617 test ! -s conftest.err
28618 } && test -s conftest.$ac_objext; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028619 ac_cv_struct_tm=time.h
28620else
28621 echo "$as_me: failed program was:" >&5
28622sed 's/^/| /' conftest.$ac_ext >&5
28623
Reid Spencera773bd52006-08-04 18:18:08 +000028624 ac_cv_struct_tm=sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028625fi
Reid Spencera773bd52006-08-04 18:18:08 +000028626
28627rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028628fi
Reid Spencera773bd52006-08-04 18:18:08 +000028629{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
28630echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028631if test $ac_cv_struct_tm = sys/time.h; then
28632
28633cat >>confdefs.h <<\_ACEOF
28634#define TM_IN_SYS_TIME 1
28635_ACEOF
28636
28637fi
28638
Reid Spencera773bd52006-08-04 18:18:08 +000028639{ echo "$as_me:$LINENO: checking for int64_t" >&5
28640echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028641if test "${ac_cv_type_int64_t+set}" = set; then
28642 echo $ECHO_N "(cached) $ECHO_C" >&6
28643else
28644 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028645/* confdefs.h. */
28646_ACEOF
28647cat confdefs.h >>conftest.$ac_ext
28648cat >>conftest.$ac_ext <<_ACEOF
28649/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028650$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000028651typedef int64_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000028652int
28653main ()
28654{
Reid Spencera773bd52006-08-04 18:18:08 +000028655if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000028656 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000028657if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000028658 return 0;
28659 ;
28660 return 0;
28661}
28662_ACEOF
28663rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028664if { (ac_try="$ac_compile"
28665case "(($ac_try" in
28666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28667 *) ac_try_echo=$ac_try;;
28668esac
28669eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28670 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028671 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028672 grep -v '^ *+' conftest.er1 >conftest.err
28673 rm -f conftest.er1
28674 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Torok Edwincc499a42008-10-22 09:56:27 +000028676 (exit $ac_status); } && {
28677 test -z "$ac_c_werror_flag" ||
28678 test ! -s conftest.err
28679 } && test -s conftest.$ac_objext; then
John Criswell7a73b802003-06-30 21:59:07 +000028680 ac_cv_type_int64_t=yes
28681else
28682 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028683sed 's/^/| /' conftest.$ac_ext >&5
28684
Reid Spencera773bd52006-08-04 18:18:08 +000028685 ac_cv_type_int64_t=no
John Criswell7a73b802003-06-30 21:59:07 +000028686fi
Reid Spencera773bd52006-08-04 18:18:08 +000028687
28688rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028689fi
Reid Spencera773bd52006-08-04 18:18:08 +000028690{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
28691echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028692if test $ac_cv_type_int64_t = yes; then
28693
28694cat >>confdefs.h <<_ACEOF
28695#define HAVE_INT64_T 1
28696_ACEOF
28697
28698
28699else
28700 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
28701echo "$as_me: error: Type int64_t required but not found" >&2;}
28702 { (exit 1); exit 1; }; }
28703fi
28704
Reid Spencera773bd52006-08-04 18:18:08 +000028705{ echo "$as_me:$LINENO: checking for uint64_t" >&5
28706echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028707if test "${ac_cv_type_uint64_t+set}" = set; then
28708 echo $ECHO_N "(cached) $ECHO_C" >&6
28709else
28710 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028711/* confdefs.h. */
28712_ACEOF
28713cat confdefs.h >>conftest.$ac_ext
28714cat >>conftest.$ac_ext <<_ACEOF
28715/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028716$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000028717typedef uint64_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000028718int
28719main ()
28720{
Reid Spencera773bd52006-08-04 18:18:08 +000028721if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000028722 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000028723if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000028724 return 0;
28725 ;
28726 return 0;
28727}
28728_ACEOF
28729rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028730if { (ac_try="$ac_compile"
28731case "(($ac_try" in
28732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28733 *) ac_try_echo=$ac_try;;
28734esac
28735eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28736 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028737 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028738 grep -v '^ *+' conftest.er1 >conftest.err
28739 rm -f conftest.er1
28740 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Torok Edwincc499a42008-10-22 09:56:27 +000028742 (exit $ac_status); } && {
28743 test -z "$ac_c_werror_flag" ||
28744 test ! -s conftest.err
28745 } && test -s conftest.$ac_objext; then
John Criswell7a73b802003-06-30 21:59:07 +000028746 ac_cv_type_uint64_t=yes
28747else
28748 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028749sed 's/^/| /' conftest.$ac_ext >&5
28750
Reid Spencera773bd52006-08-04 18:18:08 +000028751 ac_cv_type_uint64_t=no
John Criswell7a73b802003-06-30 21:59:07 +000028752fi
Reid Spencera773bd52006-08-04 18:18:08 +000028753
28754rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028755fi
Reid Spencera773bd52006-08-04 18:18:08 +000028756{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
28757echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028758if test $ac_cv_type_uint64_t = yes; then
28759
28760cat >>confdefs.h <<_ACEOF
28761#define HAVE_UINT64_T 1
28762_ACEOF
28763
28764
28765else
Reid Spencera773bd52006-08-04 18:18:08 +000028766 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
28767echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
John Criswell679ff312004-09-02 18:44:44 +000028768if test "${ac_cv_type_u_int64_t+set}" = set; then
28769 echo $ECHO_N "(cached) $ECHO_C" >&6
28770else
28771 cat >conftest.$ac_ext <<_ACEOF
John Criswell679ff312004-09-02 18:44:44 +000028772/* confdefs.h. */
28773_ACEOF
28774cat confdefs.h >>conftest.$ac_ext
28775cat >>conftest.$ac_ext <<_ACEOF
28776/* end confdefs.h. */
28777$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000028778typedef u_int64_t ac__type_new_;
John Criswell679ff312004-09-02 18:44:44 +000028779int
28780main ()
28781{
Reid Spencera773bd52006-08-04 18:18:08 +000028782if ((ac__type_new_ *) 0)
John Criswell679ff312004-09-02 18:44:44 +000028783 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000028784if (sizeof (ac__type_new_))
John Criswell679ff312004-09-02 18:44:44 +000028785 return 0;
28786 ;
28787 return 0;
28788}
28789_ACEOF
28790rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028791if { (ac_try="$ac_compile"
28792case "(($ac_try" in
28793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28794 *) ac_try_echo=$ac_try;;
28795esac
28796eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28797 (eval "$ac_compile") 2>conftest.er1
John Criswell679ff312004-09-02 18:44:44 +000028798 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028799 grep -v '^ *+' conftest.er1 >conftest.err
28800 rm -f conftest.er1
28801 cat conftest.err >&5
John Criswell679ff312004-09-02 18:44:44 +000028802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Torok Edwincc499a42008-10-22 09:56:27 +000028803 (exit $ac_status); } && {
28804 test -z "$ac_c_werror_flag" ||
28805 test ! -s conftest.err
28806 } && test -s conftest.$ac_objext; then
John Criswell679ff312004-09-02 18:44:44 +000028807 ac_cv_type_u_int64_t=yes
28808else
28809 echo "$as_me: failed program was:" >&5
28810sed 's/^/| /' conftest.$ac_ext >&5
28811
Reid Spencera773bd52006-08-04 18:18:08 +000028812 ac_cv_type_u_int64_t=no
John Criswell679ff312004-09-02 18:44:44 +000028813fi
Reid Spencera773bd52006-08-04 18:18:08 +000028814
28815rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell679ff312004-09-02 18:44:44 +000028816fi
Reid Spencera773bd52006-08-04 18:18:08 +000028817{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
28818echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
John Criswell679ff312004-09-02 18:44:44 +000028819if test $ac_cv_type_u_int64_t = yes; then
28820
28821cat >>confdefs.h <<_ACEOF
28822#define HAVE_U_INT64_T 1
28823_ACEOF
28824
28825
Misha Brukmanceca9042004-09-02 23:02:30 +000028826else
28827 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
28828echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
28829 { (exit 1); exit 1; }; }
28830fi
28831
John Criswell679ff312004-09-02 18:44:44 +000028832fi
28833
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028834
28835
28836
28837
28838
28839
28840
Reid Spencerf4bb9b12006-01-19 08:22:40 +000028841
28842
Reid Spencerdf3be822006-01-23 08:15:53 +000028843for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028844do
28845as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000028846{ echo "$as_me:$LINENO: checking for $ac_func" >&5
28847echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28848if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000028849 echo $ECHO_N "(cached) $ECHO_C" >&6
28850else
28851 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028852/* confdefs.h. */
28853_ACEOF
28854cat confdefs.h >>conftest.$ac_ext
28855cat >>conftest.$ac_ext <<_ACEOF
28856/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028857/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28858 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28859#define $ac_func innocuous_$ac_func
28860
28861/* System header to define __stub macros and hopefully few prototypes,
28862 which can conflict with char $ac_func (); below.
28863 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28864 <limits.h> exists even on freestanding compilers. */
28865
28866#ifdef __STDC__
28867# include <limits.h>
28868#else
28869# include <assert.h>
28870#endif
28871
28872#undef $ac_func
28873
Reid Spencera773bd52006-08-04 18:18:08 +000028874/* Override any GCC internal prototype to avoid an error.
28875 Use char because int might match the return type of a GCC
28876 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028877#ifdef __cplusplus
28878extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028879#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028880char $ac_func ();
28881/* The GNU C library defines this for functions which it implements
28882 to always fail with ENOSYS. Some functions are actually named
28883 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000028884#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028885choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028886#endif
John Criswell7a73b802003-06-30 21:59:07 +000028887
John Criswell7a73b802003-06-30 21:59:07 +000028888int
28889main ()
28890{
Reid Spencera773bd52006-08-04 18:18:08 +000028891return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000028892 ;
28893 return 0;
28894}
28895_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028896rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000028897if { (ac_try="$ac_link"
28898case "(($ac_try" in
28899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28900 *) ac_try_echo=$ac_try;;
28901esac
28902eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28903 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028904 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028905 grep -v '^ *+' conftest.er1 >conftest.err
28906 rm -f conftest.er1
28907 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Torok Edwincc499a42008-10-22 09:56:27 +000028909 (exit $ac_status); } && {
28910 test -z "$ac_c_werror_flag" ||
28911 test ! -s conftest.err
28912 } && test -s conftest$ac_exeext &&
28913 $as_test_x conftest$ac_exeext; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028914 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000028915else
28916 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028917sed 's/^/| /' conftest.$ac_ext >&5
28918
Reid Spencera773bd52006-08-04 18:18:08 +000028919 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000028920fi
Reid Spencera773bd52006-08-04 18:18:08 +000028921
Torok Edwincc499a42008-10-22 09:56:27 +000028922rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028923 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028924fi
Reid Spencera773bd52006-08-04 18:18:08 +000028925ac_res=`eval echo '${'$as_ac_var'}'`
28926 { echo "$as_me:$LINENO: result: $ac_res" >&5
28927echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028928if test `eval echo '${'$as_ac_var'}'` = yes; then
28929 cat >>confdefs.h <<_ACEOF
28930#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000028931_ACEOF
28932
28933fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028934done
John Criswell7a73b802003-06-30 21:59:07 +000028935
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028936
28937
28938
Reid Spencer6af3d262004-12-15 04:01:48 +000028939
Reid Spencer96cf5872007-07-13 10:05:30 +000028940for ac_func in powf fmodf strtof round
28941do
28942as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28943{ echo "$as_me:$LINENO: checking for $ac_func" >&5
28944echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28945if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28946 echo $ECHO_N "(cached) $ECHO_C" >&6
28947else
28948 cat >conftest.$ac_ext <<_ACEOF
28949/* confdefs.h. */
28950_ACEOF
28951cat confdefs.h >>conftest.$ac_ext
28952cat >>conftest.$ac_ext <<_ACEOF
28953/* end confdefs.h. */
28954/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28955 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28956#define $ac_func innocuous_$ac_func
28957
28958/* System header to define __stub macros and hopefully few prototypes,
28959 which can conflict with char $ac_func (); below.
28960 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28961 <limits.h> exists even on freestanding compilers. */
28962
28963#ifdef __STDC__
28964# include <limits.h>
28965#else
28966# include <assert.h>
28967#endif
28968
28969#undef $ac_func
28970
28971/* Override any GCC internal prototype to avoid an error.
28972 Use char because int might match the return type of a GCC
28973 builtin and then its argument prototype would still apply. */
28974#ifdef __cplusplus
28975extern "C"
28976#endif
28977char $ac_func ();
28978/* The GNU C library defines this for functions which it implements
28979 to always fail with ENOSYS. Some functions are actually named
28980 something starting with __ and the normal name is an alias. */
28981#if defined __stub_$ac_func || defined __stub___$ac_func
28982choke me
28983#endif
28984
28985int
28986main ()
28987{
28988return $ac_func ();
28989 ;
28990 return 0;
28991}
28992_ACEOF
28993rm -f conftest.$ac_objext conftest$ac_exeext
28994if { (ac_try="$ac_link"
28995case "(($ac_try" in
28996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28997 *) ac_try_echo=$ac_try;;
28998esac
28999eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29000 (eval "$ac_link") 2>conftest.er1
29001 ac_status=$?
29002 grep -v '^ *+' conftest.er1 >conftest.err
29003 rm -f conftest.er1
29004 cat conftest.err >&5
29005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Torok Edwincc499a42008-10-22 09:56:27 +000029006 (exit $ac_status); } && {
29007 test -z "$ac_c_werror_flag" ||
29008 test ! -s conftest.err
29009 } && test -s conftest$ac_exeext &&
29010 $as_test_x conftest$ac_exeext; then
Reid Spencer96cf5872007-07-13 10:05:30 +000029011 eval "$as_ac_var=yes"
29012else
29013 echo "$as_me: failed program was:" >&5
29014sed 's/^/| /' conftest.$ac_ext >&5
29015
29016 eval "$as_ac_var=no"
29017fi
29018
Torok Edwincc499a42008-10-22 09:56:27 +000029019rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer96cf5872007-07-13 10:05:30 +000029020 conftest$ac_exeext conftest.$ac_ext
29021fi
29022ac_res=`eval echo '${'$as_ac_var'}'`
29023 { echo "$as_me:$LINENO: result: $ac_res" >&5
29024echo "${ECHO_T}$ac_res" >&6; }
29025if test `eval echo '${'$as_ac_var'}'` = yes; then
29026 cat >>confdefs.h <<_ACEOF
29027#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29028_ACEOF
29029
29030fi
29031done
29032
29033
29034
29035
29036
Reid Spencer6af3d262004-12-15 04:01:48 +000029037
Reid Spencerb90645c2007-02-16 19:17:20 +000029038for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
29039do
29040as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29041{ echo "$as_me:$LINENO: checking for $ac_func" >&5
29042echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29043if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29044 echo $ECHO_N "(cached) $ECHO_C" >&6
29045else
29046 cat >conftest.$ac_ext <<_ACEOF
29047/* confdefs.h. */
29048_ACEOF
29049cat confdefs.h >>conftest.$ac_ext
29050cat >>conftest.$ac_ext <<_ACEOF
29051/* end confdefs.h. */
29052/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29053 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29054#define $ac_func innocuous_$ac_func
Reid Spencer59473af2004-12-25 07:31:29 +000029055
Reid Spencerb90645c2007-02-16 19:17:20 +000029056/* System header to define __stub macros and hopefully few prototypes,
29057 which can conflict with char $ac_func (); below.
29058 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29059 <limits.h> exists even on freestanding compilers. */
29060
29061#ifdef __STDC__
29062# include <limits.h>
29063#else
29064# include <assert.h>
29065#endif
29066
29067#undef $ac_func
29068
29069/* Override any GCC internal prototype to avoid an error.
29070 Use char because int might match the return type of a GCC
29071 builtin and then its argument prototype would still apply. */
29072#ifdef __cplusplus
29073extern "C"
29074#endif
29075char $ac_func ();
29076/* The GNU C library defines this for functions which it implements
29077 to always fail with ENOSYS. Some functions are actually named
29078 something starting with __ and the normal name is an alias. */
29079#if defined __stub_$ac_func || defined __stub___$ac_func
29080choke me
29081#endif
29082
29083int
29084main ()
29085{
29086return $ac_func ();
29087 ;
29088 return 0;
29089}
29090_ACEOF
29091rm -f conftest.$ac_objext conftest$ac_exeext
29092if { (ac_try="$ac_link"
29093case "(($ac_try" in
29094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29095 *) ac_try_echo=$ac_try;;
29096esac
29097eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29098 (eval "$ac_link") 2>conftest.er1
29099 ac_status=$?
29100 grep -v '^ *+' conftest.er1 >conftest.err
29101 rm -f conftest.er1
29102 cat conftest.err >&5
29103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Torok Edwincc499a42008-10-22 09:56:27 +000029104 (exit $ac_status); } && {
29105 test -z "$ac_c_werror_flag" ||
29106 test ! -s conftest.err
29107 } && test -s conftest$ac_exeext &&
29108 $as_test_x conftest$ac_exeext; then
Reid Spencerb90645c2007-02-16 19:17:20 +000029109 eval "$as_ac_var=yes"
29110else
29111 echo "$as_me: failed program was:" >&5
29112sed 's/^/| /' conftest.$ac_ext >&5
29113
29114 eval "$as_ac_var=no"
29115fi
29116
Torok Edwincc499a42008-10-22 09:56:27 +000029117rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencerb90645c2007-02-16 19:17:20 +000029118 conftest$ac_exeext conftest.$ac_ext
29119fi
29120ac_res=`eval echo '${'$as_ac_var'}'`
29121 { echo "$as_me:$LINENO: result: $ac_res" >&5
29122echo "${ECHO_T}$ac_res" >&6; }
29123if test `eval echo '${'$as_ac_var'}'` = yes; then
29124 cat >>confdefs.h <<_ACEOF
29125#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29126_ACEOF
29127
29128fi
29129done
29130
29131
29132
29133
29134for ac_func in isatty mkdtemp mkstemp
Reid Spencerdf3be822006-01-23 08:15:53 +000029135do
29136as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000029137{ echo "$as_me:$LINENO: checking for $ac_func" >&5
29138echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29139if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencerdf3be822006-01-23 08:15:53 +000029140 echo $ECHO_N "(cached) $ECHO_C" >&6
29141else
29142 cat >conftest.$ac_ext <<_ACEOF
29143/* confdefs.h. */
29144_ACEOF
29145cat confdefs.h >>conftest.$ac_ext
29146cat >>conftest.$ac_ext <<_ACEOF
29147/* end confdefs.h. */
29148/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29149 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29150#define $ac_func innocuous_$ac_func
29151
29152/* System header to define __stub macros and hopefully few prototypes,
29153 which can conflict with char $ac_func (); below.
29154 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29155 <limits.h> exists even on freestanding compilers. */
29156
29157#ifdef __STDC__
29158# include <limits.h>
29159#else
29160# include <assert.h>
29161#endif
29162
29163#undef $ac_func
29164
Reid Spencera773bd52006-08-04 18:18:08 +000029165/* Override any GCC internal prototype to avoid an error.
29166 Use char because int might match the return type of a GCC
29167 builtin and then its argument prototype would still apply. */
Reid Spencerdf3be822006-01-23 08:15:53 +000029168#ifdef __cplusplus
29169extern "C"
Reid Spencerdf3be822006-01-23 08:15:53 +000029170#endif
Reid Spencerdf3be822006-01-23 08:15:53 +000029171char $ac_func ();
29172/* The GNU C library defines this for functions which it implements
29173 to always fail with ENOSYS. Some functions are actually named
29174 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000029175#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencerdf3be822006-01-23 08:15:53 +000029176choke me
Reid Spencerdf3be822006-01-23 08:15:53 +000029177#endif
29178
29179int
29180main ()
29181{
Reid Spencera773bd52006-08-04 18:18:08 +000029182return $ac_func ();
Reid Spencerdf3be822006-01-23 08:15:53 +000029183 ;
29184 return 0;
29185}
29186_ACEOF
29187rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000029188if { (ac_try="$ac_link"
29189case "(($ac_try" in
29190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29191 *) ac_try_echo=$ac_try;;
29192esac
29193eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29194 (eval "$ac_link") 2>conftest.er1
Reid Spencerdf3be822006-01-23 08:15:53 +000029195 ac_status=$?
29196 grep -v '^ *+' conftest.er1 >conftest.err
29197 rm -f conftest.er1
29198 cat conftest.err >&5
29199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Torok Edwincc499a42008-10-22 09:56:27 +000029200 (exit $ac_status); } && {
29201 test -z "$ac_c_werror_flag" ||
29202 test ! -s conftest.err
29203 } && test -s conftest$ac_exeext &&
29204 $as_test_x conftest$ac_exeext; then
Reid Spencerdf3be822006-01-23 08:15:53 +000029205 eval "$as_ac_var=yes"
29206else
29207 echo "$as_me: failed program was:" >&5
29208sed 's/^/| /' conftest.$ac_ext >&5
29209
Reid Spencera773bd52006-08-04 18:18:08 +000029210 eval "$as_ac_var=no"
Reid Spencerdf3be822006-01-23 08:15:53 +000029211fi
Reid Spencera773bd52006-08-04 18:18:08 +000029212
Torok Edwincc499a42008-10-22 09:56:27 +000029213rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencerdf3be822006-01-23 08:15:53 +000029214 conftest$ac_exeext conftest.$ac_ext
29215fi
Reid Spencera773bd52006-08-04 18:18:08 +000029216ac_res=`eval echo '${'$as_ac_var'}'`
29217 { echo "$as_me:$LINENO: result: $ac_res" >&5
29218echo "${ECHO_T}$ac_res" >&6; }
Reid Spencerdf3be822006-01-23 08:15:53 +000029219if test `eval echo '${'$as_ac_var'}'` = yes; then
29220 cat >>confdefs.h <<_ACEOF
29221#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29222_ACEOF
29223
29224fi
29225done
29226
29227
29228
29229
29230
29231
29232
29233
29234for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r
Reid Spencer7931a782004-12-27 06:15:02 +000029235do
29236as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000029237{ echo "$as_me:$LINENO: checking for $ac_func" >&5
29238echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29239if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer7931a782004-12-27 06:15:02 +000029240 echo $ECHO_N "(cached) $ECHO_C" >&6
29241else
29242 cat >conftest.$ac_ext <<_ACEOF
29243/* confdefs.h. */
29244_ACEOF
29245cat confdefs.h >>conftest.$ac_ext
29246cat >>conftest.$ac_ext <<_ACEOF
29247/* end confdefs.h. */
29248/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29249 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29250#define $ac_func innocuous_$ac_func
29251
29252/* System header to define __stub macros and hopefully few prototypes,
29253 which can conflict with char $ac_func (); below.
29254 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29255 <limits.h> exists even on freestanding compilers. */
29256
29257#ifdef __STDC__
29258# include <limits.h>
29259#else
29260# include <assert.h>
29261#endif
29262
29263#undef $ac_func
29264
Reid Spencera773bd52006-08-04 18:18:08 +000029265/* Override any GCC internal prototype to avoid an error.
29266 Use char because int might match the return type of a GCC
29267 builtin and then its argument prototype would still apply. */
Reid Spencer7931a782004-12-27 06:15:02 +000029268#ifdef __cplusplus
29269extern "C"
Reid Spencer7931a782004-12-27 06:15:02 +000029270#endif
Reid Spencer7931a782004-12-27 06:15:02 +000029271char $ac_func ();
29272/* The GNU C library defines this for functions which it implements
29273 to always fail with ENOSYS. Some functions are actually named
29274 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000029275#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer7931a782004-12-27 06:15:02 +000029276choke me
Reid Spencer7931a782004-12-27 06:15:02 +000029277#endif
29278
29279int
29280main ()
29281{
Reid Spencera773bd52006-08-04 18:18:08 +000029282return $ac_func ();
Reid Spencer7931a782004-12-27 06:15:02 +000029283 ;
29284 return 0;
29285}
29286_ACEOF
29287rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000029288if { (ac_try="$ac_link"
29289case "(($ac_try" in
29290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29291 *) ac_try_echo=$ac_try;;
29292esac
29293eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29294 (eval "$ac_link") 2>conftest.er1
Reid Spencer7931a782004-12-27 06:15:02 +000029295 ac_status=$?
29296 grep -v '^ *+' conftest.er1 >conftest.err
29297 rm -f conftest.er1
29298 cat conftest.err >&5
29299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Torok Edwincc499a42008-10-22 09:56:27 +000029300 (exit $ac_status); } && {
29301 test -z "$ac_c_werror_flag" ||
29302 test ! -s conftest.err
29303 } && test -s conftest$ac_exeext &&
29304 $as_test_x conftest$ac_exeext; then
Reid Spencer7931a782004-12-27 06:15:02 +000029305 eval "$as_ac_var=yes"
29306else
29307 echo "$as_me: failed program was:" >&5
29308sed 's/^/| /' conftest.$ac_ext >&5
29309
Reid Spencera773bd52006-08-04 18:18:08 +000029310 eval "$as_ac_var=no"
Reid Spencer7931a782004-12-27 06:15:02 +000029311fi
Reid Spencera773bd52006-08-04 18:18:08 +000029312
Torok Edwincc499a42008-10-22 09:56:27 +000029313rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer7931a782004-12-27 06:15:02 +000029314 conftest$ac_exeext conftest.$ac_ext
29315fi
Reid Spencera773bd52006-08-04 18:18:08 +000029316ac_res=`eval echo '${'$as_ac_var'}'`
29317 { echo "$as_me:$LINENO: result: $ac_res" >&5
29318echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000029319if test `eval echo '${'$as_ac_var'}'` = yes; then
29320 cat >>confdefs.h <<_ACEOF
29321#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29322_ACEOF
29323
29324fi
29325done
29326
29327
Reid Spencerba46ca32004-12-31 05:49:15 +000029328
29329
Chris Lattner0b142592005-11-14 06:57:34 +000029330
Chris Lattner511f11d2005-11-14 07:25:50 +000029331for ac_func in strtoll strtoq sysconf malloc_zone_statistics
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029332do
29333as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000029334{ echo "$as_me:$LINENO: checking for $ac_func" >&5
29335echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29336if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000029337 echo $ECHO_N "(cached) $ECHO_C" >&6
29338else
29339 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029340/* confdefs.h. */
29341_ACEOF
29342cat confdefs.h >>conftest.$ac_ext
29343cat >>conftest.$ac_ext <<_ACEOF
29344/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029345/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29346 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29347#define $ac_func innocuous_$ac_func
29348
29349/* System header to define __stub macros and hopefully few prototypes,
29350 which can conflict with char $ac_func (); below.
29351 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29352 <limits.h> exists even on freestanding compilers. */
29353
29354#ifdef __STDC__
29355# include <limits.h>
29356#else
29357# include <assert.h>
29358#endif
29359
29360#undef $ac_func
29361
Reid Spencera773bd52006-08-04 18:18:08 +000029362/* Override any GCC internal prototype to avoid an error.
29363 Use char because int might match the return type of a GCC
29364 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029365#ifdef __cplusplus
29366extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029367#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029368char $ac_func ();
29369/* The GNU C library defines this for functions which it implements
29370 to always fail with ENOSYS. Some functions are actually named
29371 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000029372#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029373choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029374#endif
John Criswell7a73b802003-06-30 21:59:07 +000029375
John Criswell7a73b802003-06-30 21:59:07 +000029376int
29377main ()
29378{
Reid Spencera773bd52006-08-04 18:18:08 +000029379return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000029380 ;
29381 return 0;
29382}
29383_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029384rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000029385if { (ac_try="$ac_link"
29386case "(($ac_try" in
29387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29388 *) ac_try_echo=$ac_try;;
29389esac
29390eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29391 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029392 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029393 grep -v '^ *+' conftest.er1 >conftest.err
29394 rm -f conftest.er1
29395 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Torok Edwincc499a42008-10-22 09:56:27 +000029397 (exit $ac_status); } && {
29398 test -z "$ac_c_werror_flag" ||
29399 test ! -s conftest.err
29400 } && test -s conftest$ac_exeext &&
29401 $as_test_x conftest$ac_exeext; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029402 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000029403else
29404 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029405sed 's/^/| /' conftest.$ac_ext >&5
29406
Reid Spencera773bd52006-08-04 18:18:08 +000029407 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000029408fi
Reid Spencera773bd52006-08-04 18:18:08 +000029409
Torok Edwincc499a42008-10-22 09:56:27 +000029410rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029411 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029412fi
Reid Spencera773bd52006-08-04 18:18:08 +000029413ac_res=`eval echo '${'$as_ac_var'}'`
29414 { echo "$as_me:$LINENO: result: $ac_res" >&5
29415echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029416if test `eval echo '${'$as_ac_var'}'` = yes; then
29417 cat >>confdefs.h <<_ACEOF
29418#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000029419_ACEOF
29420
29421fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029422done
John Criswell7a73b802003-06-30 21:59:07 +000029423
Reid Spencercdb08a32006-06-05 16:11:07 +000029424
29425
29426
29427
Reid Spencerafa22e22006-12-10 23:29:19 +000029428for ac_func in setjmp longjmp sigsetjmp siglongjmp
Reid Spencercdb08a32006-06-05 16:11:07 +000029429do
29430as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000029431{ echo "$as_me:$LINENO: checking for $ac_func" >&5
29432echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29433if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencercdb08a32006-06-05 16:11:07 +000029434 echo $ECHO_N "(cached) $ECHO_C" >&6
29435else
29436 cat >conftest.$ac_ext <<_ACEOF
29437/* confdefs.h. */
29438_ACEOF
29439cat confdefs.h >>conftest.$ac_ext
29440cat >>conftest.$ac_ext <<_ACEOF
29441/* end confdefs.h. */
29442/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29443 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29444#define $ac_func innocuous_$ac_func
29445
29446/* System header to define __stub macros and hopefully few prototypes,
29447 which can conflict with char $ac_func (); below.
29448 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29449 <limits.h> exists even on freestanding compilers. */
29450
29451#ifdef __STDC__
29452# include <limits.h>
29453#else
29454# include <assert.h>
29455#endif
29456
29457#undef $ac_func
29458
Reid Spencera773bd52006-08-04 18:18:08 +000029459/* Override any GCC internal prototype to avoid an error.
29460 Use char because int might match the return type of a GCC
29461 builtin and then its argument prototype would still apply. */
Reid Spencercdb08a32006-06-05 16:11:07 +000029462#ifdef __cplusplus
29463extern "C"
Reid Spencercdb08a32006-06-05 16:11:07 +000029464#endif
Reid Spencercdb08a32006-06-05 16:11:07 +000029465char $ac_func ();
29466/* The GNU C library defines this for functions which it implements
29467 to always fail with ENOSYS. Some functions are actually named
29468 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000029469#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencercdb08a32006-06-05 16:11:07 +000029470choke me
Reid Spencercdb08a32006-06-05 16:11:07 +000029471#endif
29472
29473int
29474main ()
29475{
Reid Spencera773bd52006-08-04 18:18:08 +000029476return $ac_func ();
Reid Spencercdb08a32006-06-05 16:11:07 +000029477 ;
29478 return 0;
29479}
29480_ACEOF
29481rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000029482if { (ac_try="$ac_link"
29483case "(($ac_try" in
29484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29485 *) ac_try_echo=$ac_try;;
29486esac
29487eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29488 (eval "$ac_link") 2>conftest.er1
Reid Spencercdb08a32006-06-05 16:11:07 +000029489 ac_status=$?
29490 grep -v '^ *+' conftest.er1 >conftest.err
29491 rm -f conftest.er1
29492 cat conftest.err >&5
29493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Torok Edwincc499a42008-10-22 09:56:27 +000029494 (exit $ac_status); } && {
29495 test -z "$ac_c_werror_flag" ||
29496 test ! -s conftest.err
29497 } && test -s conftest$ac_exeext &&
29498 $as_test_x conftest$ac_exeext; then
Reid Spencercdb08a32006-06-05 16:11:07 +000029499 eval "$as_ac_var=yes"
29500else
29501 echo "$as_me: failed program was:" >&5
29502sed 's/^/| /' conftest.$ac_ext >&5
29503
Reid Spencera773bd52006-08-04 18:18:08 +000029504 eval "$as_ac_var=no"
Reid Spencercdb08a32006-06-05 16:11:07 +000029505fi
Reid Spencera773bd52006-08-04 18:18:08 +000029506
Torok Edwincc499a42008-10-22 09:56:27 +000029507rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencercdb08a32006-06-05 16:11:07 +000029508 conftest$ac_exeext conftest.$ac_ext
29509fi
Reid Spencera773bd52006-08-04 18:18:08 +000029510ac_res=`eval echo '${'$as_ac_var'}'`
29511 { echo "$as_me:$LINENO: result: $ac_res" >&5
29512echo "${ECHO_T}$ac_res" >&6; }
Reid Spencercdb08a32006-06-05 16:11:07 +000029513if test `eval echo '${'$as_ac_var'}'` = yes; then
29514 cat >>confdefs.h <<_ACEOF
29515#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29516_ACEOF
29517
29518fi
29519done
29520
Reid Spencera773bd52006-08-04 18:18:08 +000029521{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
29522echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000029523if test "${llvm_cv_c_printf_a+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029524 echo $ECHO_N "(cached) $ECHO_C" >&6
29525else
Reid Spencer2706f8c2004-09-19 23:53:36 +000029526 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000029527ac_cpp='$CPP $CPPFLAGS'
29528ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29529ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29530ac_compiler_gnu=$ac_cv_c_compiler_gnu
29531
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029532 if test "$cross_compiling" = yes; then
Reid Spencer3be58f92004-11-27 22:01:43 +000029533 llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000029534else
29535 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000029536
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029537 /* confdefs.h. */
John Criswella0137d32003-10-13 16:22:01 +000029538_ACEOF
29539cat confdefs.h >>conftest.$ac_ext
29540cat >>conftest.$ac_ext <<_ACEOF
29541/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000029542
John Criswella0137d32003-10-13 16:22:01 +000029543#include <stdio.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000029544#include <stdlib.h>
29545
John Criswella0137d32003-10-13 16:22:01 +000029546int
29547main ()
29548{
29549
Reid Spencer2706f8c2004-09-19 23:53:36 +000029550volatile double A, B;
29551char Buffer[100];
29552A = 1;
29553A /= 10.0;
29554sprintf(Buffer, "%a", A);
29555B = atof(Buffer);
29556if (A != B)
29557 return (1);
29558if (A != 0x1.999999999999ap-4)
29559 return (1);
29560return (0);
John Criswella0137d32003-10-13 16:22:01 +000029561 ;
29562 return 0;
29563}
29564_ACEOF
29565rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000029566if { (ac_try="$ac_link"
29567case "(($ac_try" in
29568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29569 *) ac_try_echo=$ac_try;;
29570esac
29571eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29572 (eval "$ac_link") 2>&5
John Criswella0137d32003-10-13 16:22:01 +000029573 ac_status=$?
29574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29575 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000029576 { (case "(($ac_try" in
29577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29578 *) ac_try_echo=$ac_try;;
29579esac
29580eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29581 (eval "$ac_try") 2>&5
John Criswella0137d32003-10-13 16:22:01 +000029582 ac_status=$?
29583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29584 (exit $ac_status); }; }; then
Reid Spencer3be58f92004-11-27 22:01:43 +000029585 llvm_cv_c_printf_a=yes
John Criswella0137d32003-10-13 16:22:01 +000029586else
29587 echo "$as_me: program exited with status $ac_status" >&5
29588echo "$as_me: failed program was:" >&5
29589sed 's/^/| /' conftest.$ac_ext >&5
29590
29591( exit $ac_status )
Reid Spencer3be58f92004-11-27 22:01:43 +000029592llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000029593fi
Reid Spencera773bd52006-08-04 18:18:08 +000029594rm -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 +000029595fi
Reid Spencera773bd52006-08-04 18:18:08 +000029596
29597
Reid Spencer2706f8c2004-09-19 23:53:36 +000029598 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000029599ac_cpp='$CPP $CPPFLAGS'
29600ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29601ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29602ac_compiler_gnu=$ac_cv_c_compiler_gnu
29603
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029604fi
Reid Spencera773bd52006-08-04 18:18:08 +000029605{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
29606echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000029607 if test "$llvm_cv_c_printf_a" = "yes"; then
John Criswella0137d32003-10-13 16:22:01 +000029608
29609cat >>confdefs.h <<\_ACEOF
29610#define HAVE_PRINTF_A 1
29611_ACEOF
29612
Reid Spencer2706f8c2004-09-19 23:53:36 +000029613 fi
John Criswella0137d32003-10-13 16:22:01 +000029614
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029615# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
29616# for constant arguments. Useless!
Reid Spencera773bd52006-08-04 18:18:08 +000029617{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
29618echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029619if test "${ac_cv_working_alloca_h+set}" = set; then
John Criswell0021c312004-02-13 21:57:29 +000029620 echo $ECHO_N "(cached) $ECHO_C" >&6
29621else
John Criswell0021c312004-02-13 21:57:29 +000029622 cat >conftest.$ac_ext <<_ACEOF
John Criswell0021c312004-02-13 21:57:29 +000029623/* confdefs.h. */
29624_ACEOF
29625cat confdefs.h >>conftest.$ac_ext
29626cat >>conftest.$ac_ext <<_ACEOF
29627/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029628#include <alloca.h>
John Criswell0021c312004-02-13 21:57:29 +000029629int
29630main ()
29631{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029632char *p = (char *) alloca (2 * sizeof (int));
Reid Spencera773bd52006-08-04 18:18:08 +000029633 if (p) return 0;
John Criswell0021c312004-02-13 21:57:29 +000029634 ;
29635 return 0;
29636}
29637_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029638rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000029639if { (ac_try="$ac_link"
29640case "(($ac_try" in
29641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29642 *) ac_try_echo=$ac_try;;
29643esac
29644eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29645 (eval "$ac_link") 2>conftest.er1
John Criswell0021c312004-02-13 21:57:29 +000029646 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029647 grep -v '^ *+' conftest.er1 >conftest.err
29648 rm -f conftest.er1
29649 cat conftest.err >&5
John Criswell0021c312004-02-13 21:57:29 +000029650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Torok Edwincc499a42008-10-22 09:56:27 +000029651 (exit $ac_status); } && {
29652 test -z "$ac_c_werror_flag" ||
29653 test ! -s conftest.err
29654 } && test -s conftest$ac_exeext &&
29655 $as_test_x conftest$ac_exeext; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029656 ac_cv_working_alloca_h=yes
29657else
29658 echo "$as_me: failed program was:" >&5
29659sed 's/^/| /' conftest.$ac_ext >&5
29660
Reid Spencera773bd52006-08-04 18:18:08 +000029661 ac_cv_working_alloca_h=no
John Criswell0021c312004-02-13 21:57:29 +000029662fi
Reid Spencera773bd52006-08-04 18:18:08 +000029663
Torok Edwincc499a42008-10-22 09:56:27 +000029664rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029665 conftest$ac_exeext conftest.$ac_ext
29666fi
Reid Spencera773bd52006-08-04 18:18:08 +000029667{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
29668echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029669if test $ac_cv_working_alloca_h = yes; then
29670
29671cat >>confdefs.h <<\_ACEOF
29672#define HAVE_ALLOCA_H 1
29673_ACEOF
29674
29675fi
29676
Reid Spencera773bd52006-08-04 18:18:08 +000029677{ echo "$as_me:$LINENO: checking for alloca" >&5
29678echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029679if test "${ac_cv_func_alloca_works+set}" = set; then
29680 echo $ECHO_N "(cached) $ECHO_C" >&6
29681else
29682 cat >conftest.$ac_ext <<_ACEOF
29683/* confdefs.h. */
29684_ACEOF
29685cat confdefs.h >>conftest.$ac_ext
29686cat >>conftest.$ac_ext <<_ACEOF
29687/* end confdefs.h. */
29688#ifdef __GNUC__
29689# define alloca __builtin_alloca
29690#else
29691# ifdef _MSC_VER
29692# include <malloc.h>
29693# define alloca _alloca
29694# else
Torok Edwincc499a42008-10-22 09:56:27 +000029695# ifdef HAVE_ALLOCA_H
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029696# include <alloca.h>
29697# else
29698# ifdef _AIX
29699 #pragma alloca
29700# else
29701# ifndef alloca /* predefined by HP cc +Olibcalls */
29702char *alloca ();
29703# endif
29704# endif
29705# endif
29706# endif
29707#endif
29708
29709int
29710main ()
29711{
29712char *p = (char *) alloca (1);
Reid Spencera773bd52006-08-04 18:18:08 +000029713 if (p) return 0;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029714 ;
29715 return 0;
29716}
29717_ACEOF
29718rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000029719if { (ac_try="$ac_link"
29720case "(($ac_try" in
29721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29722 *) ac_try_echo=$ac_try;;
29723esac
29724eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29725 (eval "$ac_link") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029726 ac_status=$?
29727 grep -v '^ *+' conftest.er1 >conftest.err
29728 rm -f conftest.er1
29729 cat conftest.err >&5
29730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Torok Edwincc499a42008-10-22 09:56:27 +000029731 (exit $ac_status); } && {
29732 test -z "$ac_c_werror_flag" ||
29733 test ! -s conftest.err
29734 } && test -s conftest$ac_exeext &&
29735 $as_test_x conftest$ac_exeext; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029736 ac_cv_func_alloca_works=yes
29737else
29738 echo "$as_me: failed program was:" >&5
29739sed 's/^/| /' conftest.$ac_ext >&5
29740
Reid Spencera773bd52006-08-04 18:18:08 +000029741 ac_cv_func_alloca_works=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029742fi
Reid Spencera773bd52006-08-04 18:18:08 +000029743
Torok Edwincc499a42008-10-22 09:56:27 +000029744rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029745 conftest$ac_exeext conftest.$ac_ext
29746fi
Reid Spencera773bd52006-08-04 18:18:08 +000029747{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
29748echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029749
29750if test $ac_cv_func_alloca_works = yes; then
29751
29752cat >>confdefs.h <<\_ACEOF
29753#define HAVE_ALLOCA 1
29754_ACEOF
29755
29756else
29757 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
29758# that cause trouble. Some versions do not even contain alloca or
29759# contain a buggy version. If you still want to use their alloca,
29760# use ar to extract alloca.o from them instead of compiling alloca.c.
29761
Reid Spencera773bd52006-08-04 18:18:08 +000029762ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029763
29764cat >>confdefs.h <<\_ACEOF
29765#define C_ALLOCA 1
29766_ACEOF
29767
29768
Reid Spencera773bd52006-08-04 18:18:08 +000029769{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
29770echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029771if test "${ac_cv_os_cray+set}" = set; then
29772 echo $ECHO_N "(cached) $ECHO_C" >&6
29773else
29774 cat >conftest.$ac_ext <<_ACEOF
29775/* confdefs.h. */
29776_ACEOF
29777cat confdefs.h >>conftest.$ac_ext
29778cat >>conftest.$ac_ext <<_ACEOF
29779/* end confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +000029780#if defined CRAY && ! defined CRAY2
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029781webecray
29782#else
29783wenotbecray
29784#endif
29785
29786_ACEOF
29787if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29788 $EGREP "webecray" >/dev/null 2>&1; then
29789 ac_cv_os_cray=yes
29790else
29791 ac_cv_os_cray=no
29792fi
29793rm -f conftest*
29794
29795fi
Reid Spencera773bd52006-08-04 18:18:08 +000029796{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
29797echo "${ECHO_T}$ac_cv_os_cray" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029798if test $ac_cv_os_cray = yes; then
29799 for ac_func in _getb67 GETB67 getb67; do
29800 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000029801{ echo "$as_me:$LINENO: checking for $ac_func" >&5
29802echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29803if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029804 echo $ECHO_N "(cached) $ECHO_C" >&6
29805else
29806 cat >conftest.$ac_ext <<_ACEOF
29807/* confdefs.h. */
29808_ACEOF
29809cat confdefs.h >>conftest.$ac_ext
29810cat >>conftest.$ac_ext <<_ACEOF
29811/* end confdefs.h. */
29812/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29813 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29814#define $ac_func innocuous_$ac_func
29815
29816/* System header to define __stub macros and hopefully few prototypes,
29817 which can conflict with char $ac_func (); below.
29818 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29819 <limits.h> exists even on freestanding compilers. */
29820
29821#ifdef __STDC__
29822# include <limits.h>
29823#else
29824# include <assert.h>
29825#endif
29826
29827#undef $ac_func
29828
Reid Spencera773bd52006-08-04 18:18:08 +000029829/* Override any GCC internal prototype to avoid an error.
29830 Use char because int might match the return type of a GCC
29831 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029832#ifdef __cplusplus
29833extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029834#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029835char $ac_func ();
29836/* The GNU C library defines this for functions which it implements
29837 to always fail with ENOSYS. Some functions are actually named
29838 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000029839#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029840choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029841#endif
29842
29843int
29844main ()
29845{
Reid Spencera773bd52006-08-04 18:18:08 +000029846return $ac_func ();
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029847 ;
29848 return 0;
29849}
29850_ACEOF
29851rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000029852if { (ac_try="$ac_link"
29853case "(($ac_try" in
29854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29855 *) ac_try_echo=$ac_try;;
29856esac
29857eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29858 (eval "$ac_link") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029859 ac_status=$?
29860 grep -v '^ *+' conftest.er1 >conftest.err
29861 rm -f conftest.er1
29862 cat conftest.err >&5
29863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Torok Edwincc499a42008-10-22 09:56:27 +000029864 (exit $ac_status); } && {
29865 test -z "$ac_c_werror_flag" ||
29866 test ! -s conftest.err
29867 } && test -s conftest$ac_exeext &&
29868 $as_test_x conftest$ac_exeext; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029869 eval "$as_ac_var=yes"
29870else
29871 echo "$as_me: failed program was:" >&5
29872sed 's/^/| /' conftest.$ac_ext >&5
29873
Reid Spencera773bd52006-08-04 18:18:08 +000029874 eval "$as_ac_var=no"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029875fi
Reid Spencera773bd52006-08-04 18:18:08 +000029876
Torok Edwincc499a42008-10-22 09:56:27 +000029877rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029878 conftest$ac_exeext conftest.$ac_ext
29879fi
Reid Spencera773bd52006-08-04 18:18:08 +000029880ac_res=`eval echo '${'$as_ac_var'}'`
29881 { echo "$as_me:$LINENO: result: $ac_res" >&5
29882echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029883if test `eval echo '${'$as_ac_var'}'` = yes; then
29884
29885cat >>confdefs.h <<_ACEOF
29886#define CRAY_STACKSEG_END $ac_func
29887_ACEOF
29888
29889 break
29890fi
29891
29892 done
29893fi
29894
Reid Spencera773bd52006-08-04 18:18:08 +000029895{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
29896echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029897if test "${ac_cv_c_stack_direction+set}" = set; then
29898 echo $ECHO_N "(cached) $ECHO_C" >&6
29899else
29900 if test "$cross_compiling" = yes; then
29901 ac_cv_c_stack_direction=0
29902else
29903 cat >conftest.$ac_ext <<_ACEOF
29904/* confdefs.h. */
29905_ACEOF
29906cat confdefs.h >>conftest.$ac_ext
29907cat >>conftest.$ac_ext <<_ACEOF
29908/* end confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +000029909$ac_includes_default
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029910int
29911find_stack_direction ()
29912{
29913 static char *addr = 0;
29914 auto char dummy;
29915 if (addr == 0)
29916 {
29917 addr = &dummy;
29918 return find_stack_direction ();
29919 }
John Criswell0021c312004-02-13 21:57:29 +000029920 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029921 return (&dummy > addr) ? 1 : -1;
29922}
John Criswell0021c312004-02-13 21:57:29 +000029923
John Criswell0021c312004-02-13 21:57:29 +000029924int
29925main ()
29926{
Reid Spencera773bd52006-08-04 18:18:08 +000029927 return find_stack_direction () < 0;
John Criswell0021c312004-02-13 21:57:29 +000029928}
29929_ACEOF
29930rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000029931if { (ac_try="$ac_link"
29932case "(($ac_try" in
29933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29934 *) ac_try_echo=$ac_try;;
29935esac
29936eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29937 (eval "$ac_link") 2>&5
John Criswell0021c312004-02-13 21:57:29 +000029938 ac_status=$?
29939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29940 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000029941 { (case "(($ac_try" in
29942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29943 *) ac_try_echo=$ac_try;;
29944esac
29945eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29946 (eval "$ac_try") 2>&5
John Criswell0021c312004-02-13 21:57:29 +000029947 ac_status=$?
29948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29949 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029950 ac_cv_c_stack_direction=1
John Criswell0021c312004-02-13 21:57:29 +000029951else
29952 echo "$as_me: program exited with status $ac_status" >&5
29953echo "$as_me: failed program was:" >&5
29954sed 's/^/| /' conftest.$ac_ext >&5
29955
29956( exit $ac_status )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029957ac_cv_c_stack_direction=-1
John Criswell0021c312004-02-13 21:57:29 +000029958fi
Reid Spencera773bd52006-08-04 18:18:08 +000029959rm -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 +000029960fi
Reid Spencera773bd52006-08-04 18:18:08 +000029961
29962
John Criswell0021c312004-02-13 21:57:29 +000029963fi
Reid Spencera773bd52006-08-04 18:18:08 +000029964{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
29965echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029966
29967cat >>confdefs.h <<_ACEOF
29968#define STACK_DIRECTION $ac_cv_c_stack_direction
29969_ACEOF
29970
29971
John Criswell0021c312004-02-13 21:57:29 +000029972fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029973
29974
Reid Spencera773bd52006-08-04 18:18:08 +000029975{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
29976echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029977if test "${ac_cv_func_rand48+set}" = set; then
29978 echo $ECHO_N "(cached) $ECHO_C" >&6
29979else
Reid Spencera773bd52006-08-04 18:18:08 +000029980 ac_ext=cpp
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029981ac_cpp='$CXXCPP $CPPFLAGS'
29982ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29983ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29984ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29985
29986 cat >conftest.$ac_ext <<_ACEOF
29987/* confdefs.h. */
29988_ACEOF
29989cat confdefs.h >>conftest.$ac_ext
29990cat >>conftest.$ac_ext <<_ACEOF
29991/* end confdefs.h. */
29992#include <stdlib.h>
29993int
29994main ()
29995{
29996srand48(0);lrand48();drand48();
29997 ;
29998 return 0;
29999}
30000_ACEOF
30001rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030002if { (ac_try="$ac_compile"
30003case "(($ac_try" in
30004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30005 *) ac_try_echo=$ac_try;;
30006esac
30007eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30008 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030009 ac_status=$?
30010 grep -v '^ *+' conftest.er1 >conftest.err
30011 rm -f conftest.er1
30012 cat conftest.err >&5
30013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Torok Edwincc499a42008-10-22 09:56:27 +000030014 (exit $ac_status); } && {
30015 test -z "$ac_cxx_werror_flag" ||
30016 test ! -s conftest.err
30017 } && test -s conftest.$ac_objext; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030018 ac_cv_func_rand48=yes
30019else
30020 echo "$as_me: failed program was:" >&5
30021sed 's/^/| /' conftest.$ac_ext >&5
30022
Reid Spencera773bd52006-08-04 18:18:08 +000030023 ac_cv_func_rand48=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030024fi
Reid Spencera773bd52006-08-04 18:18:08 +000030025
30026rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030027 ac_ext=c
30028ac_cpp='$CPP $CPPFLAGS'
30029ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30030ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30031ac_compiler_gnu=$ac_cv_c_compiler_gnu
30032
30033fi
Reid Spencera773bd52006-08-04 18:18:08 +000030034{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
30035echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030036
30037if test "$ac_cv_func_rand48" = "yes" ; then
30038
30039cat >>confdefs.h <<\_ACEOF
30040#define HAVE_RAND48 1
30041_ACEOF
30042
30043fi
John Criswell0021c312004-02-13 21:57:29 +000030044
30045
Reid Spencera773bd52006-08-04 18:18:08 +000030046{ echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
30047echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030048if test "${ac_cv_cxx_namespaces+set}" = set; then
30049 echo $ECHO_N "(cached) $ECHO_C" >&6
30050else
Reid Spencera773bd52006-08-04 18:18:08 +000030051 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000030052ac_cpp='$CXXCPP $CPPFLAGS'
30053ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30054ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30055ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30056
30057 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030058/* confdefs.h. */
30059_ACEOF
30060cat confdefs.h >>conftest.$ac_ext
30061cat >>conftest.$ac_ext <<_ACEOF
30062/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000030063namespace Outer { namespace Inner { int i = 0; }}
John Criswell7a73b802003-06-30 21:59:07 +000030064int
30065main ()
30066{
30067using namespace Outer::Inner; return i;
30068 ;
30069 return 0;
30070}
30071_ACEOF
30072rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030073if { (ac_try="$ac_compile"
30074case "(($ac_try" in
30075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30076 *) ac_try_echo=$ac_try;;
30077esac
30078eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30079 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030080 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030081 grep -v '^ *+' conftest.er1 >conftest.err
30082 rm -f conftest.er1
30083 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Torok Edwincc499a42008-10-22 09:56:27 +000030085 (exit $ac_status); } && {
30086 test -z "$ac_cxx_werror_flag" ||
30087 test ! -s conftest.err
30088 } && test -s conftest.$ac_objext; then
John Criswell7a73b802003-06-30 21:59:07 +000030089 ac_cv_cxx_namespaces=yes
30090else
30091 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030092sed 's/^/| /' conftest.$ac_ext >&5
30093
Reid Spencera773bd52006-08-04 18:18:08 +000030094 ac_cv_cxx_namespaces=no
John Criswell7a73b802003-06-30 21:59:07 +000030095fi
Reid Spencera773bd52006-08-04 18:18:08 +000030096
30097rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030098 ac_ext=c
30099ac_cpp='$CPP $CPPFLAGS'
30100ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30101ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30102ac_compiler_gnu=$ac_cv_c_compiler_gnu
30103
30104
30105fi
Reid Spencera773bd52006-08-04 18:18:08 +000030106{ echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
30107echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030108if test "$ac_cv_cxx_namespaces" = yes; then
30109
30110cat >>confdefs.h <<\_ACEOF
30111#define HAVE_NAMESPACES
30112_ACEOF
30113
30114fi
30115
Reid Spencera773bd52006-08-04 18:18:08 +000030116{ echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
30117echo $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 +000030118if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000030119 echo $ECHO_N "(cached) $ECHO_C" >&6
30120else
30121
Reid Spencera773bd52006-08-04 18:18:08 +000030122 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000030123ac_cpp='$CXXCPP $CPPFLAGS'
30124ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30125ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30126ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30127
30128 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030129/* confdefs.h. */
30130_ACEOF
30131cat confdefs.h >>conftest.$ac_ext
30132cat >>conftest.$ac_ext <<_ACEOF
30133/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000030134#include <ext/hash_map>
30135#ifdef HAVE_NAMESPACES
30136using namespace std;
30137#endif
John Criswell7a73b802003-06-30 21:59:07 +000030138int
30139main ()
30140{
Brian Gaeke90583492003-11-10 03:06:28 +000030141hash_map<int, int> t;
John Criswell7a73b802003-06-30 21:59:07 +000030142 ;
30143 return 0;
30144}
30145_ACEOF
30146rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030147if { (ac_try="$ac_compile"
30148case "(($ac_try" in
30149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30150 *) ac_try_echo=$ac_try;;
30151esac
30152eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30153 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030154 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030155 grep -v '^ *+' conftest.er1 >conftest.err
30156 rm -f conftest.er1
30157 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Torok Edwincc499a42008-10-22 09:56:27 +000030159 (exit $ac_status); } && {
30160 test -z "$ac_cxx_werror_flag" ||
30161 test ! -s conftest.err
30162 } && test -s conftest.$ac_objext; then
Brian Gaeke90583492003-11-10 03:06:28 +000030163 ac_cv_cxx_have_std_ext_hash_map=yes
John Criswell7a73b802003-06-30 21:59:07 +000030164else
30165 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030166sed 's/^/| /' conftest.$ac_ext >&5
30167
Reid Spencera773bd52006-08-04 18:18:08 +000030168 ac_cv_cxx_have_std_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000030169fi
Reid Spencera773bd52006-08-04 18:18:08 +000030170
30171rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030172 ac_ext=c
30173ac_cpp='$CPP $CPPFLAGS'
30174ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30175ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30176ac_compiler_gnu=$ac_cv_c_compiler_gnu
30177
John Criswell7a73b802003-06-30 21:59:07 +000030178fi
Reid Spencera773bd52006-08-04 18:18:08 +000030179{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
30180echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000030181 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
30182 then
John Criswell9f011862004-09-24 18:28:00 +000030183
30184cat >>confdefs.h <<\_ACEOF
30185#define HAVE_STD_EXT_HASH_MAP 1
30186_ACEOF
30187
30188 else
30189
30190cat >>confdefs.h <<\_ACEOF
30191#define HAVE_STD_EXT_HASH_MAP 0
30192_ACEOF
30193
Brian Gaeke90583492003-11-10 03:06:28 +000030194 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000030195
Reid Spencera773bd52006-08-04 18:18:08 +000030196 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
30197echo $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 +000030198if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
30199 echo $ECHO_N "(cached) $ECHO_C" >&6
30200else
30201
Reid Spencera773bd52006-08-04 18:18:08 +000030202 ac_ext=cpp
Brian Gaeke90583492003-11-10 03:06:28 +000030203ac_cpp='$CXXCPP $CPPFLAGS'
30204ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30205ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30206ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30207
30208 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000030209/* confdefs.h. */
30210_ACEOF
30211cat confdefs.h >>conftest.$ac_ext
30212cat >>conftest.$ac_ext <<_ACEOF
30213/* end confdefs.h. */
30214#include <ext/hash_map>
30215#ifdef HAVE_NAMESPACES
30216using namespace __gnu_cxx;
30217#endif
30218int
30219main ()
30220{
30221hash_map<int,int> t;
30222 ;
30223 return 0;
30224}
30225_ACEOF
30226rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030227if { (ac_try="$ac_compile"
30228case "(($ac_try" in
30229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30230 *) ac_try_echo=$ac_try;;
30231esac
30232eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30233 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000030234 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030235 grep -v '^ *+' conftest.er1 >conftest.err
30236 rm -f conftest.er1
30237 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000030238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Torok Edwincc499a42008-10-22 09:56:27 +000030239 (exit $ac_status); } && {
30240 test -z "$ac_cxx_werror_flag" ||
30241 test ! -s conftest.err
30242 } && test -s conftest.$ac_objext; then
Brian Gaeke90583492003-11-10 03:06:28 +000030243 ac_cv_cxx_have_gnu_ext_hash_map=yes
30244else
30245 echo "$as_me: failed program was:" >&5
30246sed 's/^/| /' conftest.$ac_ext >&5
30247
Reid Spencera773bd52006-08-04 18:18:08 +000030248 ac_cv_cxx_have_gnu_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000030249fi
Reid Spencera773bd52006-08-04 18:18:08 +000030250
30251rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000030252 ac_ext=c
30253ac_cpp='$CPP $CPPFLAGS'
30254ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30255ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30256ac_compiler_gnu=$ac_cv_c_compiler_gnu
30257
30258fi
Reid Spencera773bd52006-08-04 18:18:08 +000030259{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
30260echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000030261 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
30262 then
John Criswell9f011862004-09-24 18:28:00 +000030263
30264cat >>confdefs.h <<\_ACEOF
30265#define HAVE_GNU_EXT_HASH_MAP 1
30266_ACEOF
30267
30268 else
30269
30270cat >>confdefs.h <<\_ACEOF
30271#define HAVE_GNU_EXT_HASH_MAP 0
30272_ACEOF
30273
Brian Gaeke90583492003-11-10 03:06:28 +000030274 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000030275
Reid Spencera773bd52006-08-04 18:18:08 +000030276 { echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
30277echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6; }
Brian Gaeke90583492003-11-10 03:06:28 +000030278if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
30279 echo $ECHO_N "(cached) $ECHO_C" >&6
30280else
John Criswell7a73b802003-06-30 21:59:07 +000030281
Reid Spencera773bd52006-08-04 18:18:08 +000030282 ac_ext=cpp
Brian Gaeke90583492003-11-10 03:06:28 +000030283ac_cpp='$CXXCPP $CPPFLAGS'
30284ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30285ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30286ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30287
30288 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000030289/* confdefs.h. */
30290_ACEOF
30291cat confdefs.h >>conftest.$ac_ext
30292cat >>conftest.$ac_ext <<_ACEOF
30293/* end confdefs.h. */
30294#include <hash_map>
30295int
30296main ()
30297{
30298hash_map<int,int> t;
30299 ;
30300 return 0;
30301}
30302_ACEOF
30303rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030304if { (ac_try="$ac_compile"
30305case "(($ac_try" in
30306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30307 *) ac_try_echo=$ac_try;;
30308esac
30309eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30310 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000030311 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030312 grep -v '^ *+' conftest.er1 >conftest.err
30313 rm -f conftest.er1
30314 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000030315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Torok Edwincc499a42008-10-22 09:56:27 +000030316 (exit $ac_status); } && {
30317 test -z "$ac_cxx_werror_flag" ||
30318 test ! -s conftest.err
30319 } && test -s conftest.$ac_objext; then
Brian Gaeke90583492003-11-10 03:06:28 +000030320 ac_cv_cxx_have_global_hash_map=yes
30321else
30322 echo "$as_me: failed program was:" >&5
30323sed 's/^/| /' conftest.$ac_ext >&5
30324
Reid Spencera773bd52006-08-04 18:18:08 +000030325 ac_cv_cxx_have_global_hash_map=no
Brian Gaeke90583492003-11-10 03:06:28 +000030326fi
Reid Spencera773bd52006-08-04 18:18:08 +000030327
30328rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000030329 ac_ext=c
30330ac_cpp='$CPP $CPPFLAGS'
30331ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30332ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30333ac_compiler_gnu=$ac_cv_c_compiler_gnu
30334
30335fi
Reid Spencera773bd52006-08-04 18:18:08 +000030336{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
30337echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000030338 if test "$ac_cv_cxx_have_global_hash_map" = yes
30339 then
John Criswell9f011862004-09-24 18:28:00 +000030340
30341cat >>confdefs.h <<\_ACEOF
30342#define HAVE_GLOBAL_HASH_MAP 1
30343_ACEOF
30344
30345 else
30346
30347cat >>confdefs.h <<\_ACEOF
30348#define HAVE_GLOBAL_HASH_MAP 0
30349_ACEOF
30350
Brian Gaeke90583492003-11-10 03:06:28 +000030351 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000030352
Reid Spencera773bd52006-08-04 18:18:08 +000030353{ echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
30354echo $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 +000030355if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000030356 echo $ECHO_N "(cached) $ECHO_C" >&6
30357else
30358
Reid Spencera773bd52006-08-04 18:18:08 +000030359 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000030360ac_cpp='$CXXCPP $CPPFLAGS'
30361ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30362ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30363ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30364
30365 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030366/* confdefs.h. */
30367_ACEOF
30368cat confdefs.h >>conftest.$ac_ext
30369cat >>conftest.$ac_ext <<_ACEOF
30370/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000030371#include <ext/hash_set>
30372#ifdef HAVE_NAMESPACES
30373using namespace std;
30374#endif
John Criswell7a73b802003-06-30 21:59:07 +000030375int
30376main ()
30377{
Brian Gaeke90583492003-11-10 03:06:28 +000030378hash_set<int> t;
John Criswell7a73b802003-06-30 21:59:07 +000030379 ;
30380 return 0;
30381}
30382_ACEOF
30383rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030384if { (ac_try="$ac_compile"
30385case "(($ac_try" in
30386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30387 *) ac_try_echo=$ac_try;;
30388esac
30389eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30390 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030391 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030392 grep -v '^ *+' conftest.er1 >conftest.err
30393 rm -f conftest.er1
30394 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Torok Edwincc499a42008-10-22 09:56:27 +000030396 (exit $ac_status); } && {
30397 test -z "$ac_cxx_werror_flag" ||
30398 test ! -s conftest.err
30399 } && test -s conftest.$ac_objext; then
Brian Gaeke90583492003-11-10 03:06:28 +000030400 ac_cv_cxx_have_std_ext_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000030401else
30402 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030403sed 's/^/| /' conftest.$ac_ext >&5
30404
Reid Spencera773bd52006-08-04 18:18:08 +000030405 ac_cv_cxx_have_std_ext_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000030406fi
Reid Spencera773bd52006-08-04 18:18:08 +000030407
30408rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000030409 ac_ext=c
30410ac_cpp='$CPP $CPPFLAGS'
30411ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30412ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30413ac_compiler_gnu=$ac_cv_c_compiler_gnu
30414
30415fi
Reid Spencera773bd52006-08-04 18:18:08 +000030416{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
30417echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000030418 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
30419 then
John Criswell9f011862004-09-24 18:28:00 +000030420
30421cat >>confdefs.h <<\_ACEOF
30422#define HAVE_STD_EXT_HASH_SET 1
30423_ACEOF
30424
30425 else
30426
30427cat >>confdefs.h <<\_ACEOF
30428#define HAVE_STD_EXT_HASH_SET 0
30429_ACEOF
30430
Brian Gaeke90583492003-11-10 03:06:28 +000030431 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000030432
Reid Spencera773bd52006-08-04 18:18:08 +000030433 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
30434echo $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 +000030435if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
30436 echo $ECHO_N "(cached) $ECHO_C" >&6
30437else
30438
Reid Spencera773bd52006-08-04 18:18:08 +000030439 ac_ext=cpp
Brian Gaeke90583492003-11-10 03:06:28 +000030440ac_cpp='$CXXCPP $CPPFLAGS'
30441ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30442ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30443ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30444
John Criswell7a73b802003-06-30 21:59:07 +000030445 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030446/* confdefs.h. */
30447_ACEOF
30448cat confdefs.h >>conftest.$ac_ext
30449cat >>conftest.$ac_ext <<_ACEOF
30450/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000030451#include <ext/hash_set>
30452#ifdef HAVE_NAMESPACES
30453using namespace __gnu_cxx;
30454#endif
John Criswell7a73b802003-06-30 21:59:07 +000030455int
30456main ()
30457{
Brian Gaeke90583492003-11-10 03:06:28 +000030458hash_set<int> t;
30459 ;
30460 return 0;
30461}
30462_ACEOF
30463rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030464if { (ac_try="$ac_compile"
30465case "(($ac_try" in
30466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30467 *) ac_try_echo=$ac_try;;
30468esac
30469eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30470 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000030471 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030472 grep -v '^ *+' conftest.er1 >conftest.err
30473 rm -f conftest.er1
30474 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000030475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Torok Edwincc499a42008-10-22 09:56:27 +000030476 (exit $ac_status); } && {
30477 test -z "$ac_cxx_werror_flag" ||
30478 test ! -s conftest.err
30479 } && test -s conftest.$ac_objext; then
Brian Gaeke90583492003-11-10 03:06:28 +000030480 ac_cv_cxx_have_gnu_ext_hash_set=yes
30481else
30482 echo "$as_me: failed program was:" >&5
30483sed 's/^/| /' conftest.$ac_ext >&5
30484
Reid Spencera773bd52006-08-04 18:18:08 +000030485 ac_cv_cxx_have_gnu_ext_hash_set=no
Brian Gaeke90583492003-11-10 03:06:28 +000030486fi
Reid Spencera773bd52006-08-04 18:18:08 +000030487
30488rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000030489 ac_ext=c
30490ac_cpp='$CPP $CPPFLAGS'
30491ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30492ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30493ac_compiler_gnu=$ac_cv_c_compiler_gnu
30494
30495fi
Reid Spencera773bd52006-08-04 18:18:08 +000030496{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
30497echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000030498 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
30499 then
John Criswell9f011862004-09-24 18:28:00 +000030500
30501cat >>confdefs.h <<\_ACEOF
30502#define HAVE_GNU_EXT_HASH_SET 1
30503_ACEOF
30504
30505 else
30506
30507cat >>confdefs.h <<\_ACEOF
30508#define HAVE_GNU_EXT_HASH_SET 0
30509_ACEOF
30510
Brian Gaeke90583492003-11-10 03:06:28 +000030511 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000030512
Reid Spencera773bd52006-08-04 18:18:08 +000030513 { echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
30514echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6; }
Brian Gaeke90583492003-11-10 03:06:28 +000030515if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
30516 echo $ECHO_N "(cached) $ECHO_C" >&6
30517else
30518
Reid Spencera773bd52006-08-04 18:18:08 +000030519 ac_ext=cpp
Brian Gaeke90583492003-11-10 03:06:28 +000030520ac_cpp='$CXXCPP $CPPFLAGS'
30521ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30522ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30523ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30524
30525 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000030526/* confdefs.h. */
30527_ACEOF
30528cat confdefs.h >>conftest.$ac_ext
30529cat >>conftest.$ac_ext <<_ACEOF
30530/* end confdefs.h. */
30531#include <hash_set>
30532int
30533main ()
30534{
John Criswell7a73b802003-06-30 21:59:07 +000030535hash_set<int> t; return 0;
30536 ;
30537 return 0;
30538}
30539_ACEOF
30540rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030541if { (ac_try="$ac_compile"
30542case "(($ac_try" in
30543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30544 *) ac_try_echo=$ac_try;;
30545esac
30546eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30547 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030548 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030549 grep -v '^ *+' conftest.er1 >conftest.err
30550 rm -f conftest.er1
30551 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Torok Edwincc499a42008-10-22 09:56:27 +000030553 (exit $ac_status); } && {
30554 test -z "$ac_cxx_werror_flag" ||
30555 test ! -s conftest.err
30556 } && test -s conftest.$ac_objext; then
Brian Gaeke90583492003-11-10 03:06:28 +000030557 ac_cv_cxx_have_global_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000030558else
30559 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030560sed 's/^/| /' conftest.$ac_ext >&5
30561
Reid Spencera773bd52006-08-04 18:18:08 +000030562 ac_cv_cxx_have_global_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000030563fi
Reid Spencera773bd52006-08-04 18:18:08 +000030564
30565rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030566 ac_ext=c
30567ac_cpp='$CPP $CPPFLAGS'
30568ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30569ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30570ac_compiler_gnu=$ac_cv_c_compiler_gnu
30571
John Criswell7a73b802003-06-30 21:59:07 +000030572fi
Reid Spencera773bd52006-08-04 18:18:08 +000030573{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
30574echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000030575 if test "$ac_cv_cxx_have_global_hash_set" = yes
30576 then
John Criswell9f011862004-09-24 18:28:00 +000030577
30578cat >>confdefs.h <<\_ACEOF
30579#define HAVE_GLOBAL_HASH_SET 1
30580_ACEOF
30581
30582 else
30583
30584cat >>confdefs.h <<\_ACEOF
30585#define HAVE_GLOBAL_HASH_SET 0
30586_ACEOF
30587
Brian Gaeke90583492003-11-10 03:06:28 +000030588 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000030589
Reid Spencera773bd52006-08-04 18:18:08 +000030590{ echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
30591echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030592if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
30593 echo $ECHO_N "(cached) $ECHO_C" >&6
30594else
30595
Reid Spencera773bd52006-08-04 18:18:08 +000030596 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000030597ac_cpp='$CXXCPP $CPPFLAGS'
30598ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30599ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30600ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30601
30602 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030603/* confdefs.h. */
30604_ACEOF
30605cat confdefs.h >>conftest.$ac_ext
30606cat >>conftest.$ac_ext <<_ACEOF
30607/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000030608#include <iterator>
30609#ifdef HAVE_NAMESPACES
30610using namespace std;
30611#endif
John Criswell7a73b802003-06-30 21:59:07 +000030612int
30613main ()
30614{
30615iterator<int,int,int> t; return 0;
30616 ;
30617 return 0;
30618}
30619_ACEOF
30620rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030621if { (ac_try="$ac_compile"
30622case "(($ac_try" in
30623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30624 *) ac_try_echo=$ac_try;;
30625esac
30626eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30627 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030628 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030629 grep -v '^ *+' conftest.er1 >conftest.err
30630 rm -f conftest.er1
30631 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Torok Edwincc499a42008-10-22 09:56:27 +000030633 (exit $ac_status); } && {
30634 test -z "$ac_cxx_werror_flag" ||
30635 test ! -s conftest.err
30636 } && test -s conftest.$ac_objext; then
John Criswell7a73b802003-06-30 21:59:07 +000030637 ac_cv_cxx_have_std_iterator=yes
30638else
30639 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030640sed 's/^/| /' conftest.$ac_ext >&5
30641
Reid Spencera773bd52006-08-04 18:18:08 +000030642 ac_cv_cxx_have_std_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000030643fi
Reid Spencera773bd52006-08-04 18:18:08 +000030644
30645rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030646 ac_ext=c
30647ac_cpp='$CPP $CPPFLAGS'
30648ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30649ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30650ac_compiler_gnu=$ac_cv_c_compiler_gnu
30651
30652
30653fi
Reid Spencera773bd52006-08-04 18:18:08 +000030654{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
30655echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000030656if test "$ac_cv_cxx_have_std_iterator" = yes
30657then
John Criswell40468462004-09-24 21:19:06 +000030658
30659cat >>confdefs.h <<\_ACEOF
30660#define HAVE_STD_ITERATOR 1
30661_ACEOF
30662
30663else
30664
30665cat >>confdefs.h <<\_ACEOF
30666#define HAVE_STD_ITERATOR 0
30667_ACEOF
30668
John Criswell7a73b802003-06-30 21:59:07 +000030669fi
30670
Reid Spencera773bd52006-08-04 18:18:08 +000030671{ echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
30672echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030673if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
30674 echo $ECHO_N "(cached) $ECHO_C" >&6
30675else
30676
Reid Spencera773bd52006-08-04 18:18:08 +000030677 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000030678ac_cpp='$CXXCPP $CPPFLAGS'
30679ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30680ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30681ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30682
30683 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030684/* confdefs.h. */
30685_ACEOF
30686cat confdefs.h >>conftest.$ac_ext
30687cat >>conftest.$ac_ext <<_ACEOF
30688/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000030689#include <iterator>
30690#ifdef HAVE_NAMESPACES
30691using namespace std;
30692#endif
John Criswell7a73b802003-06-30 21:59:07 +000030693int
30694main ()
30695{
John Criswellc78022e2003-07-29 19:11:58 +000030696bidirectional_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000030697 ;
30698 return 0;
30699}
30700_ACEOF
30701rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030702if { (ac_try="$ac_compile"
30703case "(($ac_try" in
30704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30705 *) ac_try_echo=$ac_try;;
30706esac
30707eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30708 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030709 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030710 grep -v '^ *+' conftest.er1 >conftest.err
30711 rm -f conftest.er1
30712 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Torok Edwincc499a42008-10-22 09:56:27 +000030714 (exit $ac_status); } && {
30715 test -z "$ac_cxx_werror_flag" ||
30716 test ! -s conftest.err
30717 } && test -s conftest.$ac_objext; then
John Criswell7a73b802003-06-30 21:59:07 +000030718 ac_cv_cxx_have_bi_iterator=yes
30719else
30720 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030721sed 's/^/| /' conftest.$ac_ext >&5
30722
Reid Spencera773bd52006-08-04 18:18:08 +000030723 ac_cv_cxx_have_bi_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000030724fi
Reid Spencera773bd52006-08-04 18:18:08 +000030725
30726rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030727 ac_ext=c
30728ac_cpp='$CPP $CPPFLAGS'
30729ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30730ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30731ac_compiler_gnu=$ac_cv_c_compiler_gnu
30732
30733
30734fi
Reid Spencera773bd52006-08-04 18:18:08 +000030735{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
30736echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000030737if test "$ac_cv_cxx_have_bi_iterator" = yes
30738then
John Criswell40468462004-09-24 21:19:06 +000030739
30740cat >>confdefs.h <<\_ACEOF
30741#define HAVE_BI_ITERATOR 1
30742_ACEOF
30743
30744else
30745
30746cat >>confdefs.h <<\_ACEOF
30747#define HAVE_BI_ITERATOR 0
30748_ACEOF
30749
John Criswell7a73b802003-06-30 21:59:07 +000030750fi
30751
Reid Spencera773bd52006-08-04 18:18:08 +000030752{ echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
30753echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030754if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
30755 echo $ECHO_N "(cached) $ECHO_C" >&6
30756else
30757
Reid Spencera773bd52006-08-04 18:18:08 +000030758 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000030759ac_cpp='$CXXCPP $CPPFLAGS'
30760ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30761ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30762ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30763
30764 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030765/* confdefs.h. */
30766_ACEOF
30767cat confdefs.h >>conftest.$ac_ext
30768cat >>conftest.$ac_ext <<_ACEOF
30769/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000030770#include <iterator>
30771#ifdef HAVE_NAMESPACES
30772using namespace std;
30773#endif
John Criswell7a73b802003-06-30 21:59:07 +000030774int
30775main ()
30776{
John Criswellc78022e2003-07-29 19:11:58 +000030777forward_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000030778 ;
30779 return 0;
30780}
30781_ACEOF
30782rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030783if { (ac_try="$ac_compile"
30784case "(($ac_try" in
30785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30786 *) ac_try_echo=$ac_try;;
30787esac
30788eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30789 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030790 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030791 grep -v '^ *+' conftest.er1 >conftest.err
30792 rm -f conftest.er1
30793 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Torok Edwincc499a42008-10-22 09:56:27 +000030795 (exit $ac_status); } && {
30796 test -z "$ac_cxx_werror_flag" ||
30797 test ! -s conftest.err
30798 } && test -s conftest.$ac_objext; then
John Criswell7a73b802003-06-30 21:59:07 +000030799 ac_cv_cxx_have_fwd_iterator=yes
30800else
30801 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030802sed 's/^/| /' conftest.$ac_ext >&5
30803
Reid Spencera773bd52006-08-04 18:18:08 +000030804 ac_cv_cxx_have_fwd_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000030805fi
Reid Spencera773bd52006-08-04 18:18:08 +000030806
30807rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030808 ac_ext=c
30809ac_cpp='$CPP $CPPFLAGS'
30810ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30811ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30812ac_compiler_gnu=$ac_cv_c_compiler_gnu
30813
30814
30815fi
Reid Spencera773bd52006-08-04 18:18:08 +000030816{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
30817echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000030818if test "$ac_cv_cxx_have_fwd_iterator" = yes
30819then
John Criswell40468462004-09-24 21:19:06 +000030820
30821cat >>confdefs.h <<\_ACEOF
30822#define HAVE_FWD_ITERATOR 1
30823_ACEOF
30824
30825else
30826
30827cat >>confdefs.h <<\_ACEOF
30828#define HAVE_FWD_ITERATOR 0
30829_ACEOF
30830
John Criswell7a73b802003-06-30 21:59:07 +000030831fi
30832
30833
Reid Spencera773bd52006-08-04 18:18:08 +000030834{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
30835echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030836if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
30837 echo $ECHO_N "(cached) $ECHO_C" >&6
30838else
Reid Spencera773bd52006-08-04 18:18:08 +000030839 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030840ac_cpp='$CXXCPP $CPPFLAGS'
30841ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30842ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30843ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30844
Reid Spencerabec8f92004-10-27 23:03:44 +000030845 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030846/* confdefs.h. */
30847_ACEOF
30848cat confdefs.h >>conftest.$ac_ext
30849cat >>conftest.$ac_ext <<_ACEOF
30850/* end confdefs.h. */
30851#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000030852int
30853main ()
30854{
30855float f; isnan(f);
30856 ;
30857 return 0;
30858}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030859_ACEOF
30860rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030861if { (ac_try="$ac_compile"
30862case "(($ac_try" in
30863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30864 *) ac_try_echo=$ac_try;;
30865esac
30866eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30867 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030868 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030869 grep -v '^ *+' conftest.er1 >conftest.err
30870 rm -f conftest.er1
30871 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Torok Edwincc499a42008-10-22 09:56:27 +000030873 (exit $ac_status); } && {
30874 test -z "$ac_cxx_werror_flag" ||
30875 test ! -s conftest.err
30876 } && test -s conftest.$ac_objext; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030877 ac_cv_func_isnan_in_math_h=yes
30878else
30879 echo "$as_me: failed program was:" >&5
30880sed 's/^/| /' conftest.$ac_ext >&5
30881
Reid Spencera773bd52006-08-04 18:18:08 +000030882 ac_cv_func_isnan_in_math_h=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030883fi
Reid Spencera773bd52006-08-04 18:18:08 +000030884
30885rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000030886 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030887ac_cpp='$CPP $CPPFLAGS'
30888ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30889ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30890ac_compiler_gnu=$ac_cv_c_compiler_gnu
30891
30892fi
Reid Spencera773bd52006-08-04 18:18:08 +000030893{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
30894echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000030895
30896
30897if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030898
30899cat >>confdefs.h <<\_ACEOF
30900#define HAVE_ISNAN_IN_MATH_H 1
30901_ACEOF
30902
Reid Spencerabec8f92004-10-27 23:03:44 +000030903fi
30904
Reid Spencera773bd52006-08-04 18:18:08 +000030905{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
30906echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030907if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
30908 echo $ECHO_N "(cached) $ECHO_C" >&6
30909else
Reid Spencera773bd52006-08-04 18:18:08 +000030910 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030911ac_cpp='$CXXCPP $CPPFLAGS'
30912ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30913ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30914ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30915
Reid Spencerabec8f92004-10-27 23:03:44 +000030916 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030917/* confdefs.h. */
30918_ACEOF
30919cat confdefs.h >>conftest.$ac_ext
30920cat >>conftest.$ac_ext <<_ACEOF
30921/* end confdefs.h. */
30922#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000030923int
30924main ()
30925{
30926float f; isnan(f);
30927 ;
30928 return 0;
30929}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030930_ACEOF
30931rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030932if { (ac_try="$ac_compile"
30933case "(($ac_try" in
30934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30935 *) ac_try_echo=$ac_try;;
30936esac
30937eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30938 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030939 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030940 grep -v '^ *+' conftest.er1 >conftest.err
30941 rm -f conftest.er1
30942 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Torok Edwincc499a42008-10-22 09:56:27 +000030944 (exit $ac_status); } && {
30945 test -z "$ac_cxx_werror_flag" ||
30946 test ! -s conftest.err
30947 } && test -s conftest.$ac_objext; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030948 ac_cv_func_isnan_in_cmath=yes
30949else
30950 echo "$as_me: failed program was:" >&5
30951sed 's/^/| /' conftest.$ac_ext >&5
30952
Reid Spencera773bd52006-08-04 18:18:08 +000030953 ac_cv_func_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030954fi
Reid Spencera773bd52006-08-04 18:18:08 +000030955
30956rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000030957 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030958ac_cpp='$CPP $CPPFLAGS'
30959ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30960ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30961ac_compiler_gnu=$ac_cv_c_compiler_gnu
30962
30963fi
Reid Spencera773bd52006-08-04 18:18:08 +000030964{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
30965echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000030966
30967if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030968
30969cat >>confdefs.h <<\_ACEOF
30970#define HAVE_ISNAN_IN_CMATH 1
30971_ACEOF
30972
Reid Spencerabec8f92004-10-27 23:03:44 +000030973fi
30974
Reid Spencera773bd52006-08-04 18:18:08 +000030975{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
30976echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030977if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
30978 echo $ECHO_N "(cached) $ECHO_C" >&6
30979else
Reid Spencera773bd52006-08-04 18:18:08 +000030980 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030981ac_cpp='$CXXCPP $CPPFLAGS'
30982ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30983ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30984ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30985
Reid Spencerabec8f92004-10-27 23:03:44 +000030986 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030987/* confdefs.h. */
30988_ACEOF
30989cat confdefs.h >>conftest.$ac_ext
30990cat >>conftest.$ac_ext <<_ACEOF
30991/* end confdefs.h. */
30992#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000030993int
30994main ()
30995{
30996float f; std::isnan(f);
30997 ;
30998 return 0;
30999}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000031000_ACEOF
31001rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031002if { (ac_try="$ac_compile"
31003case "(($ac_try" in
31004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31005 *) ac_try_echo=$ac_try;;
31006esac
31007eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31008 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000031009 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031010 grep -v '^ *+' conftest.er1 >conftest.err
31011 rm -f conftest.er1
31012 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000031013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Torok Edwincc499a42008-10-22 09:56:27 +000031014 (exit $ac_status); } && {
31015 test -z "$ac_cxx_werror_flag" ||
31016 test ! -s conftest.err
31017 } && test -s conftest.$ac_objext; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000031018 ac_cv_func_std_isnan_in_cmath=yes
31019else
31020 echo "$as_me: failed program was:" >&5
31021sed 's/^/| /' conftest.$ac_ext >&5
31022
Reid Spencera773bd52006-08-04 18:18:08 +000031023 ac_cv_func_std_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000031024fi
Reid Spencera773bd52006-08-04 18:18:08 +000031025
31026rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000031027 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000031028ac_cpp='$CPP $CPPFLAGS'
31029ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31030ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31031ac_compiler_gnu=$ac_cv_c_compiler_gnu
31032
31033fi
Reid Spencera773bd52006-08-04 18:18:08 +000031034{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
31035echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000031036
31037if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000031038
31039cat >>confdefs.h <<\_ACEOF
31040#define HAVE_STD_ISNAN_IN_CMATH 1
31041_ACEOF
31042
Reid Spencerabec8f92004-10-27 23:03:44 +000031043fi
Brian Gaeke6f5b6212004-06-22 23:47:13 +000031044
31045
Reid Spencera773bd52006-08-04 18:18:08 +000031046{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
31047echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000031048if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
31049 echo $ECHO_N "(cached) $ECHO_C" >&6
31050else
Reid Spencera773bd52006-08-04 18:18:08 +000031051 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000031052ac_cpp='$CXXCPP $CPPFLAGS'
31053ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31054ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31055ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31056
Reid Spencerabec8f92004-10-27 23:03:44 +000031057 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000031058/* confdefs.h. */
31059_ACEOF
31060cat confdefs.h >>conftest.$ac_ext
31061cat >>conftest.$ac_ext <<_ACEOF
31062/* end confdefs.h. */
31063#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000031064int
31065main ()
31066{
31067float f; isinf(f);
31068 ;
31069 return 0;
31070}
Brian Gaeke52a551d2004-07-21 03:14:12 +000031071_ACEOF
31072rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031073if { (ac_try="$ac_compile"
31074case "(($ac_try" in
31075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31076 *) ac_try_echo=$ac_try;;
31077esac
31078eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31079 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000031080 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031081 grep -v '^ *+' conftest.er1 >conftest.err
31082 rm -f conftest.er1
31083 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000031084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Torok Edwincc499a42008-10-22 09:56:27 +000031085 (exit $ac_status); } && {
31086 test -z "$ac_cxx_werror_flag" ||
31087 test ! -s conftest.err
31088 } && test -s conftest.$ac_objext; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000031089 ac_cv_func_isinf_in_math_h=yes
31090else
31091 echo "$as_me: failed program was:" >&5
31092sed 's/^/| /' conftest.$ac_ext >&5
31093
Reid Spencera773bd52006-08-04 18:18:08 +000031094 ac_cv_func_isinf_in_math_h=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000031095fi
Reid Spencera773bd52006-08-04 18:18:08 +000031096
31097rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000031098 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000031099ac_cpp='$CPP $CPPFLAGS'
31100ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31101ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31102ac_compiler_gnu=$ac_cv_c_compiler_gnu
31103
31104fi
Reid Spencera773bd52006-08-04 18:18:08 +000031105{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
31106echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000031107
31108if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000031109
31110cat >>confdefs.h <<\_ACEOF
31111#define HAVE_ISINF_IN_MATH_H 1
31112_ACEOF
31113
Reid Spencerabec8f92004-10-27 23:03:44 +000031114fi
31115
Reid Spencera773bd52006-08-04 18:18:08 +000031116{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
31117echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000031118if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
31119 echo $ECHO_N "(cached) $ECHO_C" >&6
31120else
Reid Spencera773bd52006-08-04 18:18:08 +000031121 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000031122ac_cpp='$CXXCPP $CPPFLAGS'
31123ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31124ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31125ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31126
Reid Spencerabec8f92004-10-27 23:03:44 +000031127 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000031128/* confdefs.h. */
31129_ACEOF
31130cat confdefs.h >>conftest.$ac_ext
31131cat >>conftest.$ac_ext <<_ACEOF
31132/* end confdefs.h. */
31133#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000031134int
31135main ()
31136{
31137float f; isinf(f);
31138 ;
31139 return 0;
31140}
Brian Gaeke52a551d2004-07-21 03:14:12 +000031141_ACEOF
31142rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031143if { (ac_try="$ac_compile"
31144case "(($ac_try" in
31145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31146 *) ac_try_echo=$ac_try;;
31147esac
31148eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31149 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000031150 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031151 grep -v '^ *+' conftest.er1 >conftest.err
31152 rm -f conftest.er1
31153 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000031154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Torok Edwincc499a42008-10-22 09:56:27 +000031155 (exit $ac_status); } && {
31156 test -z "$ac_cxx_werror_flag" ||
31157 test ! -s conftest.err
31158 } && test -s conftest.$ac_objext; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000031159 ac_cv_func_isinf_in_cmath=yes
31160else
31161 echo "$as_me: failed program was:" >&5
31162sed 's/^/| /' conftest.$ac_ext >&5
31163
Reid Spencera773bd52006-08-04 18:18:08 +000031164 ac_cv_func_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000031165fi
Reid Spencera773bd52006-08-04 18:18:08 +000031166
31167rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000031168 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000031169ac_cpp='$CPP $CPPFLAGS'
31170ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31171ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31172ac_compiler_gnu=$ac_cv_c_compiler_gnu
31173
31174fi
Reid Spencera773bd52006-08-04 18:18:08 +000031175{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
31176echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000031177
31178if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000031179
31180cat >>confdefs.h <<\_ACEOF
31181#define HAVE_ISINF_IN_CMATH 1
31182_ACEOF
31183
Reid Spencerabec8f92004-10-27 23:03:44 +000031184fi
31185
Reid Spencera773bd52006-08-04 18:18:08 +000031186{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
31187echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000031188if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
31189 echo $ECHO_N "(cached) $ECHO_C" >&6
31190else
Reid Spencera773bd52006-08-04 18:18:08 +000031191 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000031192ac_cpp='$CXXCPP $CPPFLAGS'
31193ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31194ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31195ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31196
Reid Spencerabec8f92004-10-27 23:03:44 +000031197 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000031198/* confdefs.h. */
31199_ACEOF
31200cat confdefs.h >>conftest.$ac_ext
31201cat >>conftest.$ac_ext <<_ACEOF
31202/* end confdefs.h. */
31203#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000031204int
31205main ()
31206{
31207float f; std::isinf(f)}
31208 ;
31209 return 0;
31210}
Brian Gaeke52a551d2004-07-21 03:14:12 +000031211_ACEOF
31212rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031213if { (ac_try="$ac_compile"
31214case "(($ac_try" in
31215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31216 *) ac_try_echo=$ac_try;;
31217esac
31218eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31219 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000031220 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031221 grep -v '^ *+' conftest.er1 >conftest.err
31222 rm -f conftest.er1
31223 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000031224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Torok Edwincc499a42008-10-22 09:56:27 +000031225 (exit $ac_status); } && {
31226 test -z "$ac_cxx_werror_flag" ||
31227 test ! -s conftest.err
31228 } && test -s conftest.$ac_objext; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000031229 ac_cv_func_std_isinf_in_cmath=yes
31230else
31231 echo "$as_me: failed program was:" >&5
31232sed 's/^/| /' conftest.$ac_ext >&5
31233
Reid Spencera773bd52006-08-04 18:18:08 +000031234 ac_cv_func_std_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000031235fi
Reid Spencera773bd52006-08-04 18:18:08 +000031236
31237rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000031238 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000031239ac_cpp='$CPP $CPPFLAGS'
31240ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31241ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31242ac_compiler_gnu=$ac_cv_c_compiler_gnu
31243
31244fi
Reid Spencera773bd52006-08-04 18:18:08 +000031245{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
31246echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000031247
31248if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000031249
31250cat >>confdefs.h <<\_ACEOF
31251#define HAVE_STD_ISINF_IN_CMATH 1
31252_ACEOF
31253
Reid Spencerabec8f92004-10-27 23:03:44 +000031254fi
31255
Reid Spencera773bd52006-08-04 18:18:08 +000031256{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
31257echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
Brian Gaeked59a6472004-07-21 03:33:58 +000031258if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
31259 echo $ECHO_N "(cached) $ECHO_C" >&6
31260else
Reid Spencera773bd52006-08-04 18:18:08 +000031261 ac_ext=cpp
Brian Gaeked59a6472004-07-21 03:33:58 +000031262ac_cpp='$CXXCPP $CPPFLAGS'
31263ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31264ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31265ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31266
Reid Spencerabec8f92004-10-27 23:03:44 +000031267 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000031268/* confdefs.h. */
31269_ACEOF
31270cat confdefs.h >>conftest.$ac_ext
31271cat >>conftest.$ac_ext <<_ACEOF
31272/* end confdefs.h. */
31273#include <ieeefp.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000031274int
31275main ()
31276{
31277float f; finite(f);
31278 ;
31279 return 0;
31280}
Brian Gaeked59a6472004-07-21 03:33:58 +000031281_ACEOF
31282rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031283if { (ac_try="$ac_compile"
31284case "(($ac_try" in
31285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31286 *) ac_try_echo=$ac_try;;
31287esac
31288eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31289 (eval "$ac_compile") 2>conftest.er1
Brian Gaeked59a6472004-07-21 03:33:58 +000031290 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031291 grep -v '^ *+' conftest.er1 >conftest.err
31292 rm -f conftest.er1
31293 cat conftest.err >&5
Brian Gaeked59a6472004-07-21 03:33:58 +000031294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Torok Edwincc499a42008-10-22 09:56:27 +000031295 (exit $ac_status); } && {
31296 test -z "$ac_cxx_werror_flag" ||
31297 test ! -s conftest.err
31298 } && test -s conftest.$ac_objext; then
Brian Gaeked59a6472004-07-21 03:33:58 +000031299 ac_cv_func_finite_in_ieeefp_h=yes
31300else
31301 echo "$as_me: failed program was:" >&5
31302sed 's/^/| /' conftest.$ac_ext >&5
31303
Reid Spencera773bd52006-08-04 18:18:08 +000031304 ac_cv_func_finite_in_ieeefp_h=no
Brian Gaeked59a6472004-07-21 03:33:58 +000031305fi
Reid Spencera773bd52006-08-04 18:18:08 +000031306
31307rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000031308 ac_ext=c
Brian Gaeked59a6472004-07-21 03:33:58 +000031309ac_cpp='$CPP $CPPFLAGS'
31310ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31311ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31312ac_compiler_gnu=$ac_cv_c_compiler_gnu
31313
31314fi
Reid Spencera773bd52006-08-04 18:18:08 +000031315{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
31316echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000031317
Brian Gaeke6802b552004-10-28 05:06:45 +000031318if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
Brian Gaeked59a6472004-07-21 03:33:58 +000031319
31320cat >>confdefs.h <<\_ACEOF
Brian Gaeke6802b552004-10-28 05:06:45 +000031321#define HAVE_FINITE_IN_IEEEFP_H 1
Brian Gaeked59a6472004-07-21 03:33:58 +000031322_ACEOF
31323
Reid Spencerabec8f92004-10-27 23:03:44 +000031324fi
31325
31326
31327
Reid Spencer30fe5262007-01-20 07:48:49 +000031328if test "$llvm_cv_platform_type" = "Unix" ; then
John Criswell7a73b802003-06-30 21:59:07 +000031329
31330
31331for ac_header in stdlib.h unistd.h
31332do
31333as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000031334if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31335 { echo "$as_me:$LINENO: checking for $ac_header" >&5
31336echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
31337if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000031338 echo $ECHO_N "(cached) $ECHO_C" >&6
31339fi
Reid Spencera773bd52006-08-04 18:18:08 +000031340ac_res=`eval echo '${'$as_ac_Header'}'`
31341 { echo "$as_me:$LINENO: result: $ac_res" >&5
31342echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031343else
31344 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000031345{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
31346echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031347cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031348/* confdefs.h. */
31349_ACEOF
31350cat confdefs.h >>conftest.$ac_ext
31351cat >>conftest.$ac_ext <<_ACEOF
31352/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031353$ac_includes_default
31354#include <$ac_header>
31355_ACEOF
31356rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031357if { (ac_try="$ac_compile"
31358case "(($ac_try" in
31359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31360 *) ac_try_echo=$ac_try;;
31361esac
31362eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31363 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031364 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031365 grep -v '^ *+' conftest.er1 >conftest.err
31366 rm -f conftest.er1
31367 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Torok Edwincc499a42008-10-22 09:56:27 +000031369 (exit $ac_status); } && {
31370 test -z "$ac_c_werror_flag" ||
31371 test ! -s conftest.err
31372 } && test -s conftest.$ac_objext; then
John Criswell7a73b802003-06-30 21:59:07 +000031373 ac_header_compiler=yes
31374else
31375 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031376sed 's/^/| /' conftest.$ac_ext >&5
31377
Reid Spencera773bd52006-08-04 18:18:08 +000031378 ac_header_compiler=no
John Criswell7a73b802003-06-30 21:59:07 +000031379fi
Reid Spencera773bd52006-08-04 18:18:08 +000031380
31381rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31382{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31383echo "${ECHO_T}$ac_header_compiler" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031384
31385# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000031386{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
31387echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031388cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031389/* confdefs.h. */
31390_ACEOF
31391cat confdefs.h >>conftest.$ac_ext
31392cat >>conftest.$ac_ext <<_ACEOF
31393/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031394#include <$ac_header>
31395_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000031396if { (ac_try="$ac_cpp conftest.$ac_ext"
31397case "(($ac_try" in
31398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31399 *) ac_try_echo=$ac_try;;
31400esac
31401eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31402 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031403 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000031404 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000031405 rm -f conftest.er1
31406 cat conftest.err >&5
31407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Torok Edwincc499a42008-10-22 09:56:27 +000031408 (exit $ac_status); } >/dev/null && {
31409 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31410 test ! -s conftest.err
31411 }; then
John Criswell7a73b802003-06-30 21:59:07 +000031412 ac_header_preproc=yes
31413else
31414 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031415sed 's/^/| /' conftest.$ac_ext >&5
31416
John Criswell7a73b802003-06-30 21:59:07 +000031417 ac_header_preproc=no
31418fi
Reid Spencera773bd52006-08-04 18:18:08 +000031419
John Criswell7a73b802003-06-30 21:59:07 +000031420rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000031421{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31422echo "${ECHO_T}$ac_header_preproc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031423
31424# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031425case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31426 yes:no: )
John Criswell7a73b802003-06-30 21:59:07 +000031427 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31428echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000031429 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31430echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31431 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000031432 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000031433 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +000031434 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31435echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000031436 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31437echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31438 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31439echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31440 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
31441echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000031442 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31443echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000031444 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31445echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000031446 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000031447## ----------------------------------- ##
31448## Report this to llvmbugs@cs.uiuc.edu ##
31449## ----------------------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +000031450_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000031451 ) | sed "s/^/$as_me: WARNING: /" >&2
John Criswell0c38eaf2003-09-10 15:17:25 +000031452 ;;
John Criswell7a73b802003-06-30 21:59:07 +000031453esac
Reid Spencera773bd52006-08-04 18:18:08 +000031454{ echo "$as_me:$LINENO: checking for $ac_header" >&5
31455echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
31456if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000031457 echo $ECHO_N "(cached) $ECHO_C" >&6
31458else
Reid Spencer2706f8c2004-09-19 23:53:36 +000031459 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +000031460fi
Reid Spencera773bd52006-08-04 18:18:08 +000031461ac_res=`eval echo '${'$as_ac_Header'}'`
31462 { echo "$as_me:$LINENO: result: $ac_res" >&5
31463echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031464
31465fi
31466if test `eval echo '${'$as_ac_Header'}'` = yes; then
31467 cat >>confdefs.h <<_ACEOF
31468#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31469_ACEOF
31470
31471fi
31472
31473done
31474
31475
31476for ac_func in getpagesize
31477do
31478as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000031479{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31480echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31481if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000031482 echo $ECHO_N "(cached) $ECHO_C" >&6
31483else
31484 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031485/* confdefs.h. */
31486_ACEOF
31487cat confdefs.h >>conftest.$ac_ext
31488cat >>conftest.$ac_ext <<_ACEOF
31489/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000031490/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31491 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31492#define $ac_func innocuous_$ac_func
31493
John Criswell7a73b802003-06-30 21:59:07 +000031494/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000031495 which can conflict with char $ac_func (); below.
31496 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31497 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000031498
John Criswell0c38eaf2003-09-10 15:17:25 +000031499#ifdef __STDC__
31500# include <limits.h>
31501#else
31502# include <assert.h>
31503#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000031504
31505#undef $ac_func
31506
Reid Spencera773bd52006-08-04 18:18:08 +000031507/* Override any GCC internal prototype to avoid an error.
31508 Use char because int might match the return type of a GCC
31509 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000031510#ifdef __cplusplus
31511extern "C"
31512#endif
John Criswell7a73b802003-06-30 21:59:07 +000031513char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000031514/* The GNU C library defines this for functions which it implements
31515 to always fail with ENOSYS. Some functions are actually named
31516 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000031517#if defined __stub_$ac_func || defined __stub___$ac_func
John Criswell7a73b802003-06-30 21:59:07 +000031518choke me
John Criswell7a73b802003-06-30 21:59:07 +000031519#endif
31520
John Criswell0c38eaf2003-09-10 15:17:25 +000031521int
31522main ()
31523{
Reid Spencera773bd52006-08-04 18:18:08 +000031524return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000031525 ;
31526 return 0;
31527}
31528_ACEOF
31529rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031530if { (ac_try="$ac_link"
31531case "(($ac_try" in
31532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31533 *) ac_try_echo=$ac_try;;
31534esac
31535eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31536 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031537 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031538 grep -v '^ *+' conftest.er1 >conftest.err
31539 rm -f conftest.er1
31540 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Torok Edwincc499a42008-10-22 09:56:27 +000031542 (exit $ac_status); } && {
31543 test -z "$ac_c_werror_flag" ||
31544 test ! -s conftest.err
31545 } && test -s conftest$ac_exeext &&
31546 $as_test_x conftest$ac_exeext; then
John Criswell7a73b802003-06-30 21:59:07 +000031547 eval "$as_ac_var=yes"
31548else
31549 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031550sed 's/^/| /' conftest.$ac_ext >&5
31551
Reid Spencera773bd52006-08-04 18:18:08 +000031552 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000031553fi
Reid Spencera773bd52006-08-04 18:18:08 +000031554
Torok Edwincc499a42008-10-22 09:56:27 +000031555rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer2706f8c2004-09-19 23:53:36 +000031556 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031557fi
Reid Spencera773bd52006-08-04 18:18:08 +000031558ac_res=`eval echo '${'$as_ac_var'}'`
31559 { echo "$as_me:$LINENO: result: $ac_res" >&5
31560echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031561if test `eval echo '${'$as_ac_var'}'` = yes; then
31562 cat >>confdefs.h <<_ACEOF
31563#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31564_ACEOF
31565
31566fi
31567done
31568
Reid Spencera773bd52006-08-04 18:18:08 +000031569{ echo "$as_me:$LINENO: checking for working mmap" >&5
31570echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031571if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
31572 echo $ECHO_N "(cached) $ECHO_C" >&6
31573else
31574 if test "$cross_compiling" = yes; then
31575 ac_cv_func_mmap_fixed_mapped=no
31576else
31577 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031578/* confdefs.h. */
31579_ACEOF
31580cat confdefs.h >>conftest.$ac_ext
31581cat >>conftest.$ac_ext <<_ACEOF
31582/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031583$ac_includes_default
31584/* malloc might have been renamed as rpl_malloc. */
31585#undef malloc
31586
31587/* Thanks to Mike Haertel and Jim Avera for this test.
31588 Here is a matrix of mmap possibilities:
31589 mmap private not fixed
31590 mmap private fixed at somewhere currently unmapped
31591 mmap private fixed at somewhere already mapped
31592 mmap shared not fixed
31593 mmap shared fixed at somewhere currently unmapped
31594 mmap shared fixed at somewhere already mapped
31595 For private mappings, we should verify that changes cannot be read()
31596 back from the file, nor mmap's back from the file at a different
31597 address. (There have been systems where private was not correctly
31598 implemented like the infamous i386 svr4.0, and systems where the
31599 VM page cache was not coherent with the file system buffer cache
31600 like early versions of FreeBSD and possibly contemporary NetBSD.)
31601 For shared mappings, we should conversely verify that changes get
31602 propagated back to all the places they're supposed to be.
31603
31604 Grep wants private fixed already mapped.
31605 The main things grep needs to know about mmap are:
31606 * does it exist and is it safe to write into the mmap'd area
31607 * how to use it (BSD variants) */
31608
31609#include <fcntl.h>
31610#include <sys/mman.h>
31611
Torok Edwincc499a42008-10-22 09:56:27 +000031612#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
John Criswell7a73b802003-06-30 21:59:07 +000031613char *malloc ();
31614#endif
31615
31616/* This mess was copied from the GNU getpagesize.h. */
Torok Edwincc499a42008-10-22 09:56:27 +000031617#ifndef HAVE_GETPAGESIZE
John Criswell7a73b802003-06-30 21:59:07 +000031618/* Assume that all systems that can run configure have sys/param.h. */
Torok Edwincc499a42008-10-22 09:56:27 +000031619# ifndef HAVE_SYS_PARAM_H
John Criswell7a73b802003-06-30 21:59:07 +000031620# define HAVE_SYS_PARAM_H 1
31621# endif
31622
31623# ifdef _SC_PAGESIZE
31624# define getpagesize() sysconf(_SC_PAGESIZE)
31625# else /* no _SC_PAGESIZE */
Torok Edwincc499a42008-10-22 09:56:27 +000031626# ifdef HAVE_SYS_PARAM_H
John Criswell7a73b802003-06-30 21:59:07 +000031627# include <sys/param.h>
31628# ifdef EXEC_PAGESIZE
31629# define getpagesize() EXEC_PAGESIZE
31630# else /* no EXEC_PAGESIZE */
31631# ifdef NBPG
31632# define getpagesize() NBPG * CLSIZE
31633# ifndef CLSIZE
31634# define CLSIZE 1
31635# endif /* no CLSIZE */
31636# else /* no NBPG */
31637# ifdef NBPC
31638# define getpagesize() NBPC
31639# else /* no NBPC */
31640# ifdef PAGESIZE
31641# define getpagesize() PAGESIZE
31642# endif /* PAGESIZE */
31643# endif /* no NBPC */
31644# endif /* no NBPG */
31645# endif /* no EXEC_PAGESIZE */
31646# else /* no HAVE_SYS_PARAM_H */
31647# define getpagesize() 8192 /* punt totally */
31648# endif /* no HAVE_SYS_PARAM_H */
31649# endif /* no _SC_PAGESIZE */
31650
31651#endif /* no HAVE_GETPAGESIZE */
31652
31653int
31654main ()
31655{
31656 char *data, *data2, *data3;
31657 int i, pagesize;
31658 int fd;
31659
31660 pagesize = getpagesize ();
31661
31662 /* First, make a file with some known garbage in it. */
31663 data = (char *) malloc (pagesize);
31664 if (!data)
Reid Spencera773bd52006-08-04 18:18:08 +000031665 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000031666 for (i = 0; i < pagesize; ++i)
31667 *(data + i) = rand ();
31668 umask (0);
31669 fd = creat ("conftest.mmap", 0600);
31670 if (fd < 0)
Reid Spencera773bd52006-08-04 18:18:08 +000031671 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000031672 if (write (fd, data, pagesize) != pagesize)
Reid Spencera773bd52006-08-04 18:18:08 +000031673 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000031674 close (fd);
31675
31676 /* Next, try to mmap the file at a fixed address which already has
31677 something else allocated at it. If we can, also make sure that
31678 we see the same garbage. */
31679 fd = open ("conftest.mmap", O_RDWR);
31680 if (fd < 0)
Reid Spencera773bd52006-08-04 18:18:08 +000031681 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000031682 data2 = (char *) malloc (2 * pagesize);
31683 if (!data2)
Reid Spencera773bd52006-08-04 18:18:08 +000031684 return 1;
31685 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000031686 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2706f8c2004-09-19 23:53:36 +000031687 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Reid Spencera773bd52006-08-04 18:18:08 +000031688 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000031689 for (i = 0; i < pagesize; ++i)
31690 if (*(data + i) != *(data2 + i))
Reid Spencera773bd52006-08-04 18:18:08 +000031691 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000031692
31693 /* Finally, make sure that changes to the mapped area do not
31694 percolate back to the file as seen by read(). (This is a bug on
31695 some variants of i386 svr4.0.) */
31696 for (i = 0; i < pagesize; ++i)
31697 *(data2 + i) = *(data2 + i) + 1;
31698 data3 = (char *) malloc (pagesize);
31699 if (!data3)
Reid Spencera773bd52006-08-04 18:18:08 +000031700 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000031701 if (read (fd, data3, pagesize) != pagesize)
Reid Spencera773bd52006-08-04 18:18:08 +000031702 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000031703 for (i = 0; i < pagesize; ++i)
31704 if (*(data + i) != *(data3 + i))
Reid Spencera773bd52006-08-04 18:18:08 +000031705 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000031706 close (fd);
Reid Spencera773bd52006-08-04 18:18:08 +000031707 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000031708}
31709_ACEOF
31710rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031711if { (ac_try="$ac_link"
31712case "(($ac_try" in
31713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31714 *) ac_try_echo=$ac_try;;
31715esac
31716eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31717 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000031718 ac_status=$?
31719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31720 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000031721 { (case "(($ac_try" in
31722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31723 *) ac_try_echo=$ac_try;;
31724esac
31725eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31726 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000031727 ac_status=$?
31728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31729 (exit $ac_status); }; }; then
31730 ac_cv_func_mmap_fixed_mapped=yes
31731else
31732 echo "$as_me: program exited with status $ac_status" >&5
31733echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031734sed 's/^/| /' conftest.$ac_ext >&5
31735
John Criswell7a73b802003-06-30 21:59:07 +000031736( exit $ac_status )
31737ac_cv_func_mmap_fixed_mapped=no
31738fi
Reid Spencera773bd52006-08-04 18:18:08 +000031739rm -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 +000031740fi
Reid Spencera773bd52006-08-04 18:18:08 +000031741
31742
John Criswell7a73b802003-06-30 21:59:07 +000031743fi
Reid Spencera773bd52006-08-04 18:18:08 +000031744{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
31745echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031746if test $ac_cv_func_mmap_fixed_mapped = yes; then
31747
31748cat >>confdefs.h <<\_ACEOF
31749#define HAVE_MMAP 1
31750_ACEOF
31751
31752fi
31753rm -f conftest.mmap
31754
Reid Spencer30fe5262007-01-20 07:48:49 +000031755 { echo "$as_me:$LINENO: checking for mmap of files" >&5
Reid Spencera773bd52006-08-04 18:18:08 +000031756echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031757if test "${ac_cv_func_mmap_file+set}" = set; then
31758 echo $ECHO_N "(cached) $ECHO_C" >&6
31759else
Reid Spencer2706f8c2004-09-19 23:53:36 +000031760 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000031761ac_cpp='$CPP $CPPFLAGS'
31762ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31763ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31764ac_compiler_gnu=$ac_cv_c_compiler_gnu
31765
31766 if test "$cross_compiling" = yes; then
Reid Spencer8b93e7a2004-09-21 17:14:44 +000031767 ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000031768else
31769 cat >conftest.$ac_ext <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000031770
Reid Spencer777ce172004-09-20 04:09:56 +000031771 /* confdefs.h. */
31772_ACEOF
31773cat confdefs.h >>conftest.$ac_ext
31774cat >>conftest.$ac_ext <<_ACEOF
31775/* end confdefs.h. */
31776
John Criswell7a73b802003-06-30 21:59:07 +000031777#include <sys/types.h>
John Criswell5ab73462003-10-09 15:44:28 +000031778#include <sys/mman.h>
John Criswell7a73b802003-06-30 21:59:07 +000031779#include <fcntl.h>
Reid Spencer777ce172004-09-20 04:09:56 +000031780
31781int
31782main ()
31783{
John Criswell7a73b802003-06-30 21:59:07 +000031784
31785 int fd;
Reid Spencer777ce172004-09-20 04:09:56 +000031786 fd = creat ("foo",0777);
31787 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
31788 unlink ("foo");
Reid Spencer8b93e7a2004-09-21 17:14:44 +000031789 return (fd != (int) MAP_FAILED);
Reid Spencer777ce172004-09-20 04:09:56 +000031790 ;
31791 return 0;
31792}
John Criswell7a73b802003-06-30 21:59:07 +000031793_ACEOF
31794rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031795if { (ac_try="$ac_link"
31796case "(($ac_try" in
31797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31798 *) ac_try_echo=$ac_try;;
31799esac
31800eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31801 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000031802 ac_status=$?
31803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31804 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000031805 { (case "(($ac_try" in
31806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31807 *) ac_try_echo=$ac_try;;
31808esac
31809eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31810 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000031811 ac_status=$?
31812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31813 (exit $ac_status); }; }; then
31814 ac_cv_func_mmap_file=yes
31815else
31816 echo "$as_me: program exited with status $ac_status" >&5
31817echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031818sed 's/^/| /' conftest.$ac_ext >&5
31819
John Criswell7a73b802003-06-30 21:59:07 +000031820( exit $ac_status )
31821ac_cv_func_mmap_file=no
31822fi
Reid Spencera773bd52006-08-04 18:18:08 +000031823rm -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 +000031824fi
Reid Spencera773bd52006-08-04 18:18:08 +000031825
31826
John Criswell7a73b802003-06-30 21:59:07 +000031827 ac_ext=c
31828ac_cpp='$CPP $CPPFLAGS'
31829ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31830ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31831ac_compiler_gnu=$ac_cv_c_compiler_gnu
31832
31833
31834fi
Reid Spencera773bd52006-08-04 18:18:08 +000031835{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
31836echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031837if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000031838
31839cat >>confdefs.h <<\_ACEOF
31840#define HAVE_MMAP_FILE
John Criswell7a73b802003-06-30 21:59:07 +000031841_ACEOF
31842
31843 MMAP_FILE=yes
31844
31845fi
31846
Reid Spencer30fe5262007-01-20 07:48:49 +000031847 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
Reid Spencera773bd52006-08-04 18:18:08 +000031848echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000031849if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
31850 echo $ECHO_N "(cached) $ECHO_C" >&6
31851else
Reid Spencer582a23c2004-12-29 07:07:57 +000031852 if test "$llvm_cv_os_type" = "Interix" ; then
Reid Spencer7931a782004-12-27 06:15:02 +000031853 ac_cv_need_dev_zero_for_mmap=yes
31854 else
31855 ac_cv_need_dev_zero_for_mmap=no
31856 fi
31857
31858fi
Reid Spencera773bd52006-08-04 18:18:08 +000031859{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
31860echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000031861if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
31862
31863cat >>confdefs.h <<\_ACEOF
31864#define NEED_DEV_ZERO_FOR_MMAP 1
31865_ACEOF
31866
31867fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000031868
Reid Spencer30fe5262007-01-20 07:48:49 +000031869 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
31870 then
31871 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
Reid Spencer582a23c2004-12-29 07:07:57 +000031872echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000031873 fi
31874 if test "$ac_cv_func_mmap_file" = "no"
31875 then
31876 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031877echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000031878 fi
John Criswellb13092b2003-07-22 21:00:24 +000031879fi
John Criswell7a73b802003-06-30 21:59:07 +000031880
31881
Reid Spencer9372f152007-07-30 20:13:24 +000031882
31883for ac_func in __dso_handle
31884do
31885as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31886{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31887echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31888if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31889 echo $ECHO_N "(cached) $ECHO_C" >&6
31890else
31891 cat >conftest.$ac_ext <<_ACEOF
31892/* confdefs.h. */
31893_ACEOF
31894cat confdefs.h >>conftest.$ac_ext
31895cat >>conftest.$ac_ext <<_ACEOF
31896/* end confdefs.h. */
31897/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31898 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31899#define $ac_func innocuous_$ac_func
31900
31901/* System header to define __stub macros and hopefully few prototypes,
31902 which can conflict with char $ac_func (); below.
31903 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31904 <limits.h> exists even on freestanding compilers. */
31905
31906#ifdef __STDC__
31907# include <limits.h>
31908#else
31909# include <assert.h>
31910#endif
31911
31912#undef $ac_func
31913
31914/* Override any GCC internal prototype to avoid an error.
31915 Use char because int might match the return type of a GCC
31916 builtin and then its argument prototype would still apply. */
31917#ifdef __cplusplus
31918extern "C"
31919#endif
31920char $ac_func ();
31921/* The GNU C library defines this for functions which it implements
31922 to always fail with ENOSYS. Some functions are actually named
31923 something starting with __ and the normal name is an alias. */
31924#if defined __stub_$ac_func || defined __stub___$ac_func
31925choke me
31926#endif
31927
31928int
31929main ()
31930{
31931return $ac_func ();
31932 ;
31933 return 0;
31934}
31935_ACEOF
31936rm -f conftest.$ac_objext conftest$ac_exeext
31937if { (ac_try="$ac_link"
31938case "(($ac_try" in
31939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31940 *) ac_try_echo=$ac_try;;
31941esac
31942eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31943 (eval "$ac_link") 2>conftest.er1
31944 ac_status=$?
31945 grep -v '^ *+' conftest.er1 >conftest.err
31946 rm -f conftest.er1
31947 cat conftest.err >&5
31948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Torok Edwincc499a42008-10-22 09:56:27 +000031949 (exit $ac_status); } && {
31950 test -z "$ac_c_werror_flag" ||
31951 test ! -s conftest.err
31952 } && test -s conftest$ac_exeext &&
31953 $as_test_x conftest$ac_exeext; then
Reid Spencer9372f152007-07-30 20:13:24 +000031954 eval "$as_ac_var=yes"
31955else
31956 echo "$as_me: failed program was:" >&5
31957sed 's/^/| /' conftest.$ac_ext >&5
31958
31959 eval "$as_ac_var=no"
31960fi
31961
Torok Edwincc499a42008-10-22 09:56:27 +000031962rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer9372f152007-07-30 20:13:24 +000031963 conftest$ac_exeext conftest.$ac_ext
31964fi
31965ac_res=`eval echo '${'$as_ac_var'}'`
31966 { echo "$as_me:$LINENO: result: $ac_res" >&5
31967echo "${ECHO_T}$ac_res" >&6; }
31968if test `eval echo '${'$as_ac_var'}'` = yes; then
31969 cat >>confdefs.h <<_ACEOF
31970#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31971_ACEOF
31972
31973fi
31974done
31975
31976
Reid Spencera773bd52006-08-04 18:18:08 +000031977{ echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
31978echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031979if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
31980 echo $ECHO_N "(cached) $ECHO_C" >&6
31981else
31982 llvm_cv_llvmgcc_sanity="no"
Reid Spencer502935f2004-12-22 05:56:56 +000031983if test -x "$LLVMGCC" ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031984 cp /dev/null conftest.c
Reid Spencer585e0882007-03-29 15:38:33 +000031985 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
31986 grep 'target datalayout =' > /dev/null 2>&1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031987 if test $? -eq 0 ; then
31988 llvm_cv_llvmgcc_sanity="yes"
31989 fi
31990 rm conftest.c
Brian Gaekef3b24102003-11-16 18:38:14 +000031991fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031992fi
Reid Spencera773bd52006-08-04 18:18:08 +000031993{ echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
31994echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031995
31996if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
Reid Spencer0d238182007-04-21 21:28:52 +000031997 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
31998echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
Reid Spencer502935f2004-12-22 05:56:56 +000031999 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032000 LLVMCC1=$llvmcc1path
32001
Reid Spencer502935f2004-12-22 05:56:56 +000032002 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032003 LLVMCC1PLUS=$llvmcc1pluspath
32004
Reid Spencer502935f2004-12-22 05:56:56 +000032005 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
32006 LLVMGCCDIR=$llvmgccdir
32007
Reid Spencer282d8c12006-12-21 22:55:41 +000032008 llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
32009 LLVMGCCLIBEXEC=$llvmgcclibexec
32010
Reid Spencerb5d75b82006-05-09 00:31:01 +000032011 llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
Reid Spencer7917d3a2006-04-06 22:00:36 +000032012 llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
32013 LLVMGCC_VERSION=$llvmgccversion
32014
32015 LLVMGCC_MAJVERS=$llvmgccmajvers
32016
Tanya Lattnerf85e74c2008-10-07 22:21:03 +000032017 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
Reid Spencer0d238182007-04-21 21:28:52 +000032018 LLVMGCC_LANGS=$llvmgcclangs
32019
32020 { echo "$as_me:$LINENO: result: ok" >&5
32021echo "${ECHO_T}ok" >&6; }
Brian Gaekef3b24102003-11-16 18:38:14 +000032022fi
32023
Reid Spencer2bc7bd52004-11-29 12:29:58 +000032024SHLIBEXT=$libltdl_cv_shlibext
Brian Gaeke554831c2004-01-21 19:39:29 +000032025
32026
Reid Spencere9de0912004-08-20 09:03:57 +000032027# Translate the various configuration directories and other basic
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032028# information into substitutions that will end up in Makefile.config.in
32029# that these configured values can be used by the makefiles
Jeff Cohen28783c32007-01-12 18:22:38 +000032030if test "${prefix}" = "NONE" ; then
Reid Spencer05828872006-05-16 08:53:32 +000032031 prefix="/usr/local"
32032fi
Reid Spencere9de0912004-08-20 09:03:57 +000032033eval LLVM_PREFIX="${prefix}";
32034eval LLVM_BINDIR="${prefix}/bin";
32035eval LLVM_LIBDIR="${prefix}/lib";
Reid Spencer1f319422004-11-29 04:56:35 +000032036eval LLVM_DATADIR="${prefix}/share/llvm";
32037eval LLVM_DOCSDIR="${prefix}/docs/llvm";
32038eval LLVM_ETCDIR="${prefix}/etc/llvm";
Reid Spencere9de0912004-08-20 09:03:57 +000032039eval LLVM_INCLUDEDIR="${prefix}/include";
32040eval LLVM_INFODIR="${prefix}/info";
32041eval LLVM_MANDIR="${prefix}/man";
32042LLVM_CONFIGTIME=`date`
32043
32044
32045
32046
32047
32048
32049
32050
32051
32052
32053
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032054# Place the various directores into the config.h file as #defines so that we
32055# can know about the installation paths within LLVM.
32056
Reid Spencere9de0912004-08-20 09:03:57 +000032057cat >>confdefs.h <<_ACEOF
32058#define LLVM_PREFIX "$LLVM_PREFIX"
32059_ACEOF
32060
32061
32062cat >>confdefs.h <<_ACEOF
32063#define LLVM_BINDIR "$LLVM_BINDIR"
32064_ACEOF
32065
32066
32067cat >>confdefs.h <<_ACEOF
32068#define LLVM_LIBDIR "$LLVM_LIBDIR"
32069_ACEOF
32070
32071
32072cat >>confdefs.h <<_ACEOF
32073#define LLVM_DATADIR "$LLVM_DATADIR"
32074_ACEOF
32075
32076
32077cat >>confdefs.h <<_ACEOF
Gordon Henriksen0abe1162007-10-03 12:07:14 +000032078#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000032079_ACEOF
32080
32081
32082cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000032083#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000032084_ACEOF
32085
32086
32087cat >>confdefs.h <<_ACEOF
32088#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
32089_ACEOF
32090
32091
32092cat >>confdefs.h <<_ACEOF
32093#define LLVM_INFODIR "$LLVM_INFODIR"
32094_ACEOF
32095
32096
32097cat >>confdefs.h <<_ACEOF
32098#define LLVM_MANDIR "$LLVM_MANDIR"
32099_ACEOF
32100
32101
32102cat >>confdefs.h <<_ACEOF
32103#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
32104_ACEOF
32105
32106
Eric Christopher790e11c2007-12-01 00:34:39 +000032107cat >>confdefs.h <<_ACEOF
32108#define LLVM_HOSTTRIPLE "$host"
32109_ACEOF
32110
32111
Gordon Henriksenc0efff82007-10-02 09:50:32 +000032112# Determine which bindings to build.
32113if test "$BINDINGS_TO_BUILD" = auto ; then
32114 BINDINGS_TO_BUILD=""
32115 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
32116 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
32117 fi
32118fi
32119BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
32120
32121
32122# This isn't really configurey, but it avoids having to repeat the list in
32123# other files.
32124ALL_BINDINGS=ocaml
32125
32126
Gordon Henriksenf0915682007-10-02 16:42:22 +000032127# Do any work necessary to ensure that bindings have what they need.
32128binding_prereqs_failed=0
32129for a_binding in $BINDINGS_TO_BUILD ; do
32130 case "$a_binding" in
32131 ocaml)
32132 if test "x$OCAMLC" = x ; then
32133 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
32134echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
32135 binding_prereqs_failed=1
32136 fi
32137 if test "x$OCAMLDEP" = x ; then
32138 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
32139echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
32140 binding_prereqs_failed=1
32141 fi
32142 if test "x$OCAMLOPT" = x ; then
32143 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
32144echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
32145 fi
32146 if test "x$with_ocaml_libdir" != xauto ; then
32147 OCAML_LIBDIR=$with_ocaml_libdir
32148
32149 else
32150 ocaml_stdlib="`"$OCAMLC" -where`"
32151 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
32152 then
32153 # ocaml stdlib is beneath our prefix; use stdlib
32154 OCAML_LIBDIR=$ocaml_stdlib
32155
32156 else
32157 # ocaml stdlib is outside our prefix; use libdir/ocaml
32158 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
32159
32160 fi
32161 fi
32162 ;;
32163 esac
32164done
32165if test "$binding_prereqs_failed" = 1 ; then
32166 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
32167echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
32168 { (exit 1); exit 1; }; }
32169fi
32170
Daniel Dunbardcf114e2008-08-30 01:16:19 +000032171{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
32172echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
32173if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
32174 echo $ECHO_N "(cached) $ECHO_C" >&6
32175else
32176 ac_ext=cpp
32177ac_cpp='$CXXCPP $CPPFLAGS'
32178ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32179ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32180ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32181
32182 oldcxxflags="$CXXFLAGS"
32183 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
32184 cat >conftest.$ac_ext <<_ACEOF
32185/* confdefs.h. */
32186_ACEOF
32187cat confdefs.h >>conftest.$ac_ext
32188cat >>conftest.$ac_ext <<_ACEOF
32189/* end confdefs.h. */
32190
32191int
32192main ()
32193{
32194
32195 ;
32196 return 0;
32197}
32198_ACEOF
32199rm -f conftest.$ac_objext
32200if { (ac_try="$ac_compile"
32201case "(($ac_try" in
32202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32203 *) ac_try_echo=$ac_try;;
32204esac
32205eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32206 (eval "$ac_compile") 2>conftest.er1
32207 ac_status=$?
32208 grep -v '^ *+' conftest.er1 >conftest.err
32209 rm -f conftest.er1
32210 cat conftest.err >&5
32211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Torok Edwincc499a42008-10-22 09:56:27 +000032212 (exit $ac_status); } && {
32213 test -z "$ac_cxx_werror_flag" ||
32214 test ! -s conftest.err
32215 } && test -s conftest.$ac_objext; then
Daniel Dunbardcf114e2008-08-30 01:16:19 +000032216 llvm_cv_cxx_visibility_inlines_hidden=yes
32217else
32218 echo "$as_me: failed program was:" >&5
32219sed 's/^/| /' conftest.$ac_ext >&5
32220
32221 llvm_cv_cxx_visibility_inlines_hidden=no
32222fi
32223
32224rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32225 CXXFLAGS="$oldcxxflags"
32226 ac_ext=c
32227ac_cpp='$CPP $CPPFLAGS'
32228ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32229ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32230ac_compiler_gnu=$ac_cv_c_compiler_gnu
32231
32232
32233fi
32234{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
32235echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
32236if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
32237 ENABLE_VISIBILITY_INLINES_HIDDEN=1
32238
32239else
32240 ENABLE_VISIBILITY_INLINES_HIDDEN=0
32241
32242fi
32243
Gordon Henriksenf0915682007-10-02 16:42:22 +000032244
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032245
Reid Spencera773bd52006-08-04 18:18:08 +000032246ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032247
Reid Spencera773bd52006-08-04 18:18:08 +000032248ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032249
Anton Korobeynikovd3df7eb2008-05-29 17:41:34 +000032250ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032251
Anton Korobeynikovd3df7eb2008-05-29 17:41:34 +000032252ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032253
Anton Korobeynikovd3df7eb2008-05-29 17:41:34 +000032254ac_config_headers="$ac_config_headers include/llvm/ADT/iterator.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032255
32256
Reid Spencera773bd52006-08-04 18:18:08 +000032257ac_config_files="$ac_config_files Makefile.config"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032258
32259
Reid Spencerea949cf2006-08-16 00:45:38 +000032260ac_config_files="$ac_config_files llvm.spec"
32261
32262
Reid Spencera773bd52006-08-04 18:18:08 +000032263ac_config_files="$ac_config_files docs/doxygen.cfg"
Reid Spencer1f319422004-11-29 04:56:35 +000032264
32265
Reid Spencera773bd52006-08-04 18:18:08 +000032266ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
Reid Spencerf2722ca2006-03-22 15:59:55 +000032267
32268
Reid Spencera773bd52006-08-04 18:18:08 +000032269ac_config_commands="$ac_config_commands setup"
Reid Spencerc0682832005-02-24 19:05:19 +000032270
Reid Spencera773bd52006-08-04 18:18:08 +000032271ac_config_commands="$ac_config_commands Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032272
32273
Reid Spencera773bd52006-08-04 18:18:08 +000032274ac_config_commands="$ac_config_commands Makefile.common"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032275
32276
Reid Spencera773bd52006-08-04 18:18:08 +000032277ac_config_commands="$ac_config_commands examples/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032278
32279
Reid Spencera773bd52006-08-04 18:18:08 +000032280ac_config_commands="$ac_config_commands lib/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032281
32282
Reid Spencer8b2e1412006-11-17 03:32:33 +000032283ac_config_commands="$ac_config_commands runtime/Makefile"
32284
32285
Reid Spencera773bd52006-08-04 18:18:08 +000032286ac_config_commands="$ac_config_commands test/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032287
32288
Reid Spencera773bd52006-08-04 18:18:08 +000032289ac_config_commands="$ac_config_commands test/Makefile.tests"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032290
32291
Reid Spencera773bd52006-08-04 18:18:08 +000032292ac_config_commands="$ac_config_commands tools/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032293
32294
Reid Spencera773bd52006-08-04 18:18:08 +000032295ac_config_commands="$ac_config_commands utils/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032296
32297
Reid Spencera773bd52006-08-04 18:18:08 +000032298ac_config_commands="$ac_config_commands projects/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032299
32300
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000032301ac_config_commands="$ac_config_commands bindings/Makefile"
32302
32303
32304ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
32305
32306
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032307
John Criswell7a73b802003-06-30 21:59:07 +000032308cat >confcache <<\_ACEOF
32309# This file is a shell script that caches the results of configure
32310# tests run on this system so they can be shared between configure
32311# scripts and configure runs, see configure's option --config-cache.
32312# It is not useful on other systems. If it contains results you don't
32313# want to keep, you may remove or edit it.
32314#
32315# config.status only pays attention to the cache file if you give it
32316# the --recheck option to rerun configure.
32317#
John Criswell0c38eaf2003-09-10 15:17:25 +000032318# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000032319# loading this file, other *unset* `ac_cv_foo' will be assigned the
32320# following values.
32321
32322_ACEOF
32323
32324# The following way of writing the cache mishandles newlines in values,
32325# but we know of no workaround that is simple, portable, and efficient.
Reid Spencera773bd52006-08-04 18:18:08 +000032326# So, we kill variables containing newlines.
John Criswell7a73b802003-06-30 21:59:07 +000032327# Ultrix sh set writes to stderr and can't be redirected directly,
32328# and sets the high bit in the cache file unless we assign to the vars.
Reid Spencera773bd52006-08-04 18:18:08 +000032329(
32330 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
32331 eval ac_val=\$$ac_var
32332 case $ac_val in #(
32333 *${as_nl}*)
32334 case $ac_var in #(
32335 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
32336echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
32337 esac
32338 case $ac_var in #(
32339 _ | IFS | as_nl) ;; #(
32340 *) $as_unset $ac_var ;;
32341 esac ;;
32342 esac
32343 done
32344
John Criswell7a73b802003-06-30 21:59:07 +000032345 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +000032346 case $as_nl`(ac_space=' '; set) 2>&1` in #(
32347 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +000032348 # `set' does not quote correctly, so add quotes (double-quote
32349 # substitution turns \\\\ into \\, and sed turns \\ into \).
32350 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000032351 "s/'/'\\\\''/g;
32352 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Reid Spencera773bd52006-08-04 18:18:08 +000032353 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +000032354 *)
32355 # `set' quotes correctly as required by POSIX, so do not add quotes.
Reid Spencera773bd52006-08-04 18:18:08 +000032356 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +000032357 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000032358 esac |
32359 sort
32360) |
John Criswell7a73b802003-06-30 21:59:07 +000032361 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000032362 /^ac_cv_env_/b end
John Criswell7a73b802003-06-30 21:59:07 +000032363 t clear
Reid Spencera773bd52006-08-04 18:18:08 +000032364 :clear
John Criswell7a73b802003-06-30 21:59:07 +000032365 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
32366 t end
Reid Spencera773bd52006-08-04 18:18:08 +000032367 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
32368 :end' >>confcache
32369if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
32370 if test -w "$cache_file"; then
32371 test "x$cache_file" != "x/dev/null" &&
32372 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
32373echo "$as_me: updating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000032374 cat confcache >$cache_file
32375 else
Reid Spencera773bd52006-08-04 18:18:08 +000032376 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
32377echo "$as_me: not updating unwritable cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000032378 fi
32379fi
32380rm -f confcache
32381
32382test "x$prefix" = xNONE && prefix=$ac_default_prefix
32383# Let make expand exec_prefix.
32384test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
32385
John Criswell7a73b802003-06-30 21:59:07 +000032386DEFS=-DHAVE_CONFIG_H
32387
John Criswell0c38eaf2003-09-10 15:17:25 +000032388ac_libobjs=
32389ac_ltlibobjs=
32390for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
32391 # 1. Remove the extension, and $U if already installed.
Reid Spencera773bd52006-08-04 18:18:08 +000032392 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
32393 ac_i=`echo "$ac_i" | sed "$ac_script"`
32394 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
32395 # will be set to the directory where LIBOBJS objects are built.
32396 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
32397 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
John Criswell0c38eaf2003-09-10 15:17:25 +000032398done
32399LIBOBJS=$ac_libobjs
32400
32401LTLIBOBJS=$ac_ltlibobjs
32402
32403
Reid Spencer2bc7bd52004-11-29 12:29:58 +000032404if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
32405 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
32406Usually this means the macro was only invoked conditionally." >&5
32407echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
32408Usually this means the macro was only invoked conditionally." >&2;}
32409 { (exit 1); exit 1; }; }
32410fi
32411if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
32412 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
32413Usually this means the macro was only invoked conditionally." >&5
32414echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
32415Usually this means the macro was only invoked conditionally." >&2;}
32416 { (exit 1); exit 1; }; }
32417fi
John Criswell7a73b802003-06-30 21:59:07 +000032418
32419: ${CONFIG_STATUS=./config.status}
32420ac_clean_files_save=$ac_clean_files
32421ac_clean_files="$ac_clean_files $CONFIG_STATUS"
32422{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
32423echo "$as_me: creating $CONFIG_STATUS" >&6;}
32424cat >$CONFIG_STATUS <<_ACEOF
32425#! $SHELL
32426# Generated by $as_me.
32427# Run this file to recreate the current configuration.
32428# Compiler output produced by configure, useful for debugging
32429# configure, is in config.log if it exists.
32430
32431debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000032432ac_cs_recheck=false
32433ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000032434SHELL=\${CONFIG_SHELL-$SHELL}
32435_ACEOF
32436
32437cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000032438## --------------------- ##
32439## M4sh Initialization. ##
32440## --------------------- ##
32441
Torok Edwincc499a42008-10-22 09:56:27 +000032442# Be more Bourne compatible
32443DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000032444if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
32445 emulate sh
32446 NULLCMD=:
John Criswell0c38eaf2003-09-10 15:17:25 +000032447 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
32448 # is contrary to our usage. Disable this feature.
32449 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000032450 setopt NO_GLOB_SUBST
32451else
Torok Edwincc499a42008-10-22 09:56:27 +000032452 case `(set -o) 2>/dev/null` in
32453 *posix*) set -o posix ;;
32454esac
32455
John Criswell7a73b802003-06-30 21:59:07 +000032456fi
Torok Edwincc499a42008-10-22 09:56:27 +000032457
32458
John Criswell7a73b802003-06-30 21:59:07 +000032459
John Criswell7a73b802003-06-30 21:59:07 +000032460
Reid Spencera773bd52006-08-04 18:18:08 +000032461# PATH needs CR
John Criswell7a73b802003-06-30 21:59:07 +000032462# Avoid depending upon Character Ranges.
32463as_cr_letters='abcdefghijklmnopqrstuvwxyz'
32464as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
32465as_cr_Letters=$as_cr_letters$as_cr_LETTERS
32466as_cr_digits='0123456789'
32467as_cr_alnum=$as_cr_Letters$as_cr_digits
32468
32469# The user is always right.
32470if test "${PATH_SEPARATOR+set}" != set; then
John Criswell0c38eaf2003-09-10 15:17:25 +000032471 echo "#! /bin/sh" >conf$$.sh
32472 echo "exit 0" >>conf$$.sh
32473 chmod +x conf$$.sh
32474 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000032475 PATH_SEPARATOR=';'
32476 else
32477 PATH_SEPARATOR=:
32478 fi
John Criswell0c38eaf2003-09-10 15:17:25 +000032479 rm -f conf$$.sh
John Criswell7a73b802003-06-30 21:59:07 +000032480fi
32481
Reid Spencera773bd52006-08-04 18:18:08 +000032482# Support unset when possible.
32483if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
32484 as_unset=unset
32485else
32486 as_unset=false
32487fi
John Criswell7a73b802003-06-30 21:59:07 +000032488
Reid Spencera773bd52006-08-04 18:18:08 +000032489
32490# IFS
32491# We need space, tab and new line, in precisely that order. Quoting is
32492# there to prevent editors from complaining about space-tab.
32493# (If _AS_PATH_WALK were called with IFS unset, it would disable word
32494# splitting by setting IFS to empty value.)
32495as_nl='
32496'
32497IFS=" "" $as_nl"
32498
32499# Find who we are. Look in the path if we contain no directory separator.
32500case $0 in
32501 *[\\/]* ) as_myself=$0 ;;
32502 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +000032503for as_dir in $PATH
32504do
32505 IFS=$as_save_IFS
32506 test -z "$as_dir" && as_dir=.
32507 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
32508done
Reid Spencera773bd52006-08-04 18:18:08 +000032509IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000032510
Reid Spencera773bd52006-08-04 18:18:08 +000032511 ;;
32512esac
32513# We did not find ourselves, most probably we were run as `sh COMMAND'
32514# in which case we are not to be found in the path.
32515if test "x$as_myself" = x; then
32516 as_myself=$0
32517fi
32518if test ! -f "$as_myself"; then
32519 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
32520 { (exit 1); exit 1; }
32521fi
32522
32523# Work around bugs in pre-3.0 UWIN ksh.
32524for as_var in ENV MAIL MAILPATH
32525do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
32526done
32527PS1='$ '
32528PS2='> '
32529PS4='+ '
32530
32531# NLS nuisances.
32532for as_var in \
32533 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
32534 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
32535 LC_TELEPHONE LC_TIME
John Criswell7a73b802003-06-30 21:59:07 +000032536do
Reid Spencera773bd52006-08-04 18:18:08 +000032537 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
32538 eval $as_var=C; export $as_var
32539 else
32540 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
32541 fi
32542done
32543
32544# Required to use basename.
32545if expr a : '\(a\)' >/dev/null 2>&1 &&
32546 test "X`expr 00001 : '.*\(...\)'`" = X001; then
32547 as_expr=expr
32548else
32549 as_expr=false
32550fi
32551
32552if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
32553 as_basename=basename
32554else
32555 as_basename=false
32556fi
32557
32558
32559# Name of the executable.
32560as_me=`$as_basename -- "$0" ||
32561$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
32562 X"$0" : 'X\(//\)$' \| \
32563 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
32564echo X/"$0" |
32565 sed '/^.*\/\([^/][^/]*\)\/*$/{
32566 s//\1/
32567 q
32568 }
32569 /^X\/\(\/\/\)$/{
32570 s//\1/
32571 q
32572 }
32573 /^X\/\(\/\).*/{
32574 s//\1/
32575 q
32576 }
32577 s/.*/./; q'`
32578
32579# CDPATH.
32580$as_unset CDPATH
32581
32582
32583
John Criswell7a73b802003-06-30 21:59:07 +000032584 as_lineno_1=$LINENO
32585 as_lineno_2=$LINENO
John Criswell7a73b802003-06-30 21:59:07 +000032586 test "x$as_lineno_1" != "x$as_lineno_2" &&
Reid Spencera773bd52006-08-04 18:18:08 +000032587 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
John Criswell7a73b802003-06-30 21:59:07 +000032588
32589 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
32590 # uniformly replaced by the line number. The first 'sed' inserts a
Reid Spencera773bd52006-08-04 18:18:08 +000032591 # line-number line after each line using $LINENO; the second 'sed'
32592 # does the real work. The second script uses 'N' to pair each
32593 # line-number line with the line containing $LINENO, and appends
32594 # trailing '-' during substitution so that $LINENO is not a special
32595 # case at line end.
John Criswell7a73b802003-06-30 21:59:07 +000032596 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Reid Spencera773bd52006-08-04 18:18:08 +000032597 # scripts with optimization help from Paolo Bonzini. Blame Lee
32598 # E. McMahon (1931-1989) for sed's syntax. :-)
32599 sed -n '
32600 p
32601 /[$]LINENO/=
32602 ' <$as_myself |
John Criswell7a73b802003-06-30 21:59:07 +000032603 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000032604 s/[$]LINENO.*/&-/
32605 t lineno
32606 b
32607 :lineno
John Criswell7a73b802003-06-30 21:59:07 +000032608 N
Reid Spencera773bd52006-08-04 18:18:08 +000032609 :loop
32610 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
John Criswell7a73b802003-06-30 21:59:07 +000032611 t loop
Reid Spencera773bd52006-08-04 18:18:08 +000032612 s/-\n.*//
John Criswell7a73b802003-06-30 21:59:07 +000032613 ' >$as_me.lineno &&
Reid Spencera773bd52006-08-04 18:18:08 +000032614 chmod +x "$as_me.lineno" ||
32615 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
John Criswell7a73b802003-06-30 21:59:07 +000032616 { (exit 1); exit 1; }; }
32617
32618 # Don't try to exec as it changes $[0], causing all sort of problems
32619 # (the dirname of $[0] is not the place where we might find the
Reid Spencera773bd52006-08-04 18:18:08 +000032620 # original and so on. Autoconf is especially sensitive to this).
32621 . "./$as_me.lineno"
John Criswell7a73b802003-06-30 21:59:07 +000032622 # Exit status is that of the last command.
32623 exit
32624}
32625
32626
Reid Spencera773bd52006-08-04 18:18:08 +000032627if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
32628 as_dirname=dirname
32629else
32630 as_dirname=false
32631fi
32632
32633ECHO_C= ECHO_N= ECHO_T=
32634case `echo -n x` in
32635-n*)
32636 case `echo 'x\c'` in
32637 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
32638 *) ECHO_C='\c';;
32639 esac;;
32640*)
32641 ECHO_N='-n';;
John Criswell7a73b802003-06-30 21:59:07 +000032642esac
32643
Reid Spencera773bd52006-08-04 18:18:08 +000032644if expr a : '\(a\)' >/dev/null 2>&1 &&
32645 test "X`expr 00001 : '.*\(...\)'`" = X001; then
John Criswell7a73b802003-06-30 21:59:07 +000032646 as_expr=expr
32647else
32648 as_expr=false
32649fi
32650
32651rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +000032652if test -d conf$$.dir; then
32653 rm -f conf$$.dir/conf$$.file
32654else
32655 rm -f conf$$.dir
32656 mkdir conf$$.dir
32657fi
John Criswell7a73b802003-06-30 21:59:07 +000032658echo >conf$$.file
32659if ln -s conf$$.file conf$$ 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000032660 as_ln_s='ln -s'
32661 # ... but there are two gotchas:
32662 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
32663 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
32664 # In both cases, we have to default to `cp -p'.
32665 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell7a73b802003-06-30 21:59:07 +000032666 as_ln_s='cp -p'
John Criswell7a73b802003-06-30 21:59:07 +000032667elif ln conf$$.file conf$$ 2>/dev/null; then
32668 as_ln_s=ln
32669else
32670 as_ln_s='cp -p'
32671fi
Reid Spencera773bd52006-08-04 18:18:08 +000032672rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
32673rmdir conf$$.dir 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000032674
John Criswell0c38eaf2003-09-10 15:17:25 +000032675if mkdir -p . 2>/dev/null; then
32676 as_mkdir_p=:
32677else
Reid Spencer2706f8c2004-09-19 23:53:36 +000032678 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000032679 as_mkdir_p=false
32680fi
32681
Torok Edwincc499a42008-10-22 09:56:27 +000032682if test -x / >/dev/null 2>&1; then
32683 as_test_x='test -x'
Reid Spencera773bd52006-08-04 18:18:08 +000032684else
Torok Edwincc499a42008-10-22 09:56:27 +000032685 if ls -dL / >/dev/null 2>&1; then
32686 as_ls_L_option=L
32687 else
32688 as_ls_L_option=
32689 fi
32690 as_test_x='
32691 eval sh -c '\''
32692 if test -d "$1"; then
32693 test -d "$1/.";
32694 else
32695 case $1 in
32696 -*)set "./$1";;
32697 esac;
32698 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
32699 ???[sx]*):;;*)false;;esac;fi
32700 '\'' sh
32701 '
Reid Spencera773bd52006-08-04 18:18:08 +000032702fi
Torok Edwincc499a42008-10-22 09:56:27 +000032703as_executable_p=$as_test_x
John Criswell7a73b802003-06-30 21:59:07 +000032704
32705# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000032706as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000032707
32708# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000032709as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000032710
32711
John Criswell7a73b802003-06-30 21:59:07 +000032712exec 6>&1
32713
Reid Spencera773bd52006-08-04 18:18:08 +000032714# Save the log message, to keep $[0] and so on meaningful, and to
John Criswell7a73b802003-06-30 21:59:07 +000032715# report actual input values of CONFIG_FILES etc. instead of their
Reid Spencera773bd52006-08-04 18:18:08 +000032716# values after options handling.
32717ac_log="
Tanya Lattnerd53b4d32008-10-07 04:35:08 +000032718This file was extended by llvm $as_me 2.5svn, which was
Torok Edwincc499a42008-10-22 09:56:27 +000032719generated by GNU Autoconf 2.61. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000032720
32721 CONFIG_FILES = $CONFIG_FILES
32722 CONFIG_HEADERS = $CONFIG_HEADERS
32723 CONFIG_LINKS = $CONFIG_LINKS
32724 CONFIG_COMMANDS = $CONFIG_COMMANDS
32725 $ $0 $@
32726
Reid Spencera773bd52006-08-04 18:18:08 +000032727on `(hostname || uname -n) 2>/dev/null | sed 1q`
32728"
32729
John Criswell7a73b802003-06-30 21:59:07 +000032730_ACEOF
32731
Reid Spencera773bd52006-08-04 18:18:08 +000032732cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000032733# Files that config.status was made for.
Reid Spencera773bd52006-08-04 18:18:08 +000032734config_files="$ac_config_files"
32735config_headers="$ac_config_headers"
32736config_commands="$ac_config_commands"
John Criswell7a73b802003-06-30 21:59:07 +000032737
Reid Spencera773bd52006-08-04 18:18:08 +000032738_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000032739
32740cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000032741ac_cs_usage="\
32742\`$as_me' instantiates files from templates according to the
32743current configuration.
32744
32745Usage: $0 [OPTIONS] [FILE]...
32746
32747 -h, --help print this help, then exit
Torok Edwincc499a42008-10-22 09:56:27 +000032748 -V, --version print version number and configuration settings, then exit
John Criswell0c38eaf2003-09-10 15:17:25 +000032749 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000032750 -d, --debug don't remove temporary files
32751 --recheck update $as_me by reconfiguring in the same conditions
32752 --file=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000032753 instantiate the configuration file FILE
John Criswell7a73b802003-06-30 21:59:07 +000032754 --header=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000032755 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000032756
32757Configuration files:
32758$config_files
32759
32760Configuration headers:
32761$config_headers
32762
John Criswellc764fbc2003-09-06 15:17:13 +000032763Configuration commands:
32764$config_commands
32765
John Criswell7a73b802003-06-30 21:59:07 +000032766Report bugs to <bug-autoconf@gnu.org>."
John Criswell7a73b802003-06-30 21:59:07 +000032767
Reid Spencera773bd52006-08-04 18:18:08 +000032768_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000032769cat >>$CONFIG_STATUS <<_ACEOF
32770ac_cs_version="\\
Tanya Lattnerd53b4d32008-10-07 04:35:08 +000032771llvm config.status 2.5svn
Torok Edwincc499a42008-10-22 09:56:27 +000032772configured by $0, generated by GNU Autoconf 2.61,
Reid Spencera773bd52006-08-04 18:18:08 +000032773 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
John Criswell7a73b802003-06-30 21:59:07 +000032774
Reid Spencera773bd52006-08-04 18:18:08 +000032775Copyright (C) 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000032776This config.status script is free software; the Free Software Foundation
32777gives unlimited permission to copy, distribute and modify it."
Reid Spencera773bd52006-08-04 18:18:08 +000032778
32779ac_pwd='$ac_pwd'
32780srcdir='$srcdir'
32781INSTALL='$INSTALL'
John Criswell7a73b802003-06-30 21:59:07 +000032782_ACEOF
32783
32784cat >>$CONFIG_STATUS <<\_ACEOF
32785# If no file are specified by the user, then we need to provide default
32786# value. By we need to know if files were specified by the user.
32787ac_need_defaults=:
32788while test $# != 0
32789do
32790 case $1 in
32791 --*=*)
Reid Spencera773bd52006-08-04 18:18:08 +000032792 ac_option=`expr "X$1" : 'X\([^=]*\)='`
32793 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000032794 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000032795 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000032796 *)
John Criswell0c38eaf2003-09-10 15:17:25 +000032797 ac_option=$1
32798 ac_optarg=$2
32799 ac_shift=shift
32800 ;;
John Criswell7a73b802003-06-30 21:59:07 +000032801 esac
32802
John Criswell0c38eaf2003-09-10 15:17:25 +000032803 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000032804 # Handling of the options.
John Criswell0c38eaf2003-09-10 15:17:25 +000032805 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
32806 ac_cs_recheck=: ;;
Reid Spencera773bd52006-08-04 18:18:08 +000032807 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
32808 echo "$ac_cs_version"; exit ;;
32809 --debug | --debu | --deb | --de | --d | -d )
John Criswell7a73b802003-06-30 21:59:07 +000032810 debug=: ;;
32811 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000032812 $ac_shift
32813 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000032814 ac_need_defaults=false;;
32815 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000032816 $ac_shift
32817 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000032818 ac_need_defaults=false;;
Reid Spencera773bd52006-08-04 18:18:08 +000032819 --he | --h)
32820 # Conflict between --help and --header
32821 { echo "$as_me: error: ambiguous option: $1
32822Try \`$0 --help' for more information." >&2
32823 { (exit 1); exit 1; }; };;
32824 --help | --hel | -h )
32825 echo "$ac_cs_usage"; exit ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000032826 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
32827 | -silent | --silent | --silen | --sile | --sil | --si | --s)
32828 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000032829
32830 # This is an error.
Reid Spencera773bd52006-08-04 18:18:08 +000032831 -*) { echo "$as_me: error: unrecognized option: $1
32832Try \`$0 --help' for more information." >&2
John Criswell7a73b802003-06-30 21:59:07 +000032833 { (exit 1); exit 1; }; } ;;
32834
Reid Spencera773bd52006-08-04 18:18:08 +000032835 *) ac_config_targets="$ac_config_targets $1"
32836 ac_need_defaults=false ;;
John Criswell7a73b802003-06-30 21:59:07 +000032837
32838 esac
32839 shift
32840done
32841
John Criswell0c38eaf2003-09-10 15:17:25 +000032842ac_configure_extra_args=
32843
32844if $ac_cs_silent; then
32845 exec 6>/dev/null
32846 ac_configure_extra_args="$ac_configure_extra_args --silent"
32847fi
32848
32849_ACEOF
32850cat >>$CONFIG_STATUS <<_ACEOF
32851if \$ac_cs_recheck; then
Reid Spencera773bd52006-08-04 18:18:08 +000032852 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
32853 CONFIG_SHELL=$SHELL
32854 export CONFIG_SHELL
32855 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
John Criswell0c38eaf2003-09-10 15:17:25 +000032856fi
32857
John Criswell7a73b802003-06-30 21:59:07 +000032858_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000032859cat >>$CONFIG_STATUS <<\_ACEOF
32860exec 5>>config.log
32861{
32862 echo
32863 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
32864## Running $as_me. ##
32865_ASBOX
32866 echo "$ac_log"
32867} >&5
John Criswell7a73b802003-06-30 21:59:07 +000032868
Reid Spencera773bd52006-08-04 18:18:08 +000032869_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000032870cat >>$CONFIG_STATUS <<_ACEOF
32871#
Reid Spencera773bd52006-08-04 18:18:08 +000032872# INIT-COMMANDS
John Criswellc764fbc2003-09-06 15:17:13 +000032873#
Reid Spencerc0682832005-02-24 19:05:19 +000032874llvm_src="${srcdir}"
John Criswellc764fbc2003-09-06 15:17:13 +000032875
32876_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000032877
John Criswell7a73b802003-06-30 21:59:07 +000032878cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000032879
32880# Handling of arguments.
John Criswell7a73b802003-06-30 21:59:07 +000032881for ac_config_target in $ac_config_targets
32882do
Reid Spencera773bd52006-08-04 18:18:08 +000032883 case $ac_config_target in
32884 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
32885 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
Anton Korobeynikovd3df7eb2008-05-29 17:41:34 +000032886 "include/llvm/ADT/hash_map.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map.h" ;;
32887 "include/llvm/ADT/hash_set.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set.h" ;;
32888 "include/llvm/ADT/iterator.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator.h" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000032889 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencerea949cf2006-08-16 00:45:38 +000032890 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000032891 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
32892 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
32893 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
32894 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
32895 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
32896 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
32897 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000032898 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000032899 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
32900 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
32901 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
32902 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
32903 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000032904 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
32905 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000032906
John Criswell7a73b802003-06-30 21:59:07 +000032907 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
32908echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
32909 { (exit 1); exit 1; }; };;
32910 esac
32911done
32912
Reid Spencera773bd52006-08-04 18:18:08 +000032913
John Criswell7a73b802003-06-30 21:59:07 +000032914# If the user did not use the arguments to specify the items to instantiate,
32915# then the envvar interface is used. Set only those that are not.
32916# We use the long form for the default assignment because of an extremely
32917# bizarre bug on SunOS 4.1.3.
32918if $ac_need_defaults; then
32919 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
32920 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000032921 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000032922fi
32923
John Criswell0c38eaf2003-09-10 15:17:25 +000032924# Have a temporary directory for convenience. Make it in the build tree
Reid Spencera773bd52006-08-04 18:18:08 +000032925# simply because there is no reason against having it here, and in addition,
John Criswell0c38eaf2003-09-10 15:17:25 +000032926# creating and moving files from /tmp can sometimes cause problems.
Reid Spencera773bd52006-08-04 18:18:08 +000032927# Hook for its removal unless debugging.
32928# Note that there is a small window in which the directory will not be cleaned:
32929# after its creation but before its name has been assigned to `$tmp'.
John Criswell7a73b802003-06-30 21:59:07 +000032930$debug ||
32931{
Reid Spencera773bd52006-08-04 18:18:08 +000032932 tmp=
32933 trap 'exit_status=$?
32934 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
32935' 0
John Criswell7a73b802003-06-30 21:59:07 +000032936 trap '{ (exit 1); exit 1; }' 1 2 13 15
32937}
John Criswell7a73b802003-06-30 21:59:07 +000032938# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000032939
John Criswell7a73b802003-06-30 21:59:07 +000032940{
Reid Spencera773bd52006-08-04 18:18:08 +000032941 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000032942 test -n "$tmp" && test -d "$tmp"
32943} ||
32944{
Reid Spencera773bd52006-08-04 18:18:08 +000032945 tmp=./conf$$-$RANDOM
32946 (umask 077 && mkdir "$tmp")
John Criswell7a73b802003-06-30 21:59:07 +000032947} ||
32948{
John Criswell0c38eaf2003-09-10 15:17:25 +000032949 echo "$me: cannot create a temporary directory in ." >&2
John Criswell7a73b802003-06-30 21:59:07 +000032950 { (exit 1); exit 1; }
32951}
32952
John Criswell7a73b802003-06-30 21:59:07 +000032953#
Reid Spencera773bd52006-08-04 18:18:08 +000032954# Set up the sed scripts for CONFIG_FILES section.
John Criswell7a73b802003-06-30 21:59:07 +000032955#
32956
32957# No need to generate the scripts if there are no CONFIG_FILES.
32958# This happens for instance when ./config.status config.h
Reid Spencera773bd52006-08-04 18:18:08 +000032959if test -n "$CONFIG_FILES"; then
John Criswell7a73b802003-06-30 21:59:07 +000032960
32961_ACEOF
32962
Reid Spencera773bd52006-08-04 18:18:08 +000032963
32964
32965ac_delim='%!_!# '
32966for ac_last_try in false false false false false :; do
32967 cat >conf$$subs.sed <<_ACEOF
32968SHELL!$SHELL$ac_delim
32969PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
32970PACKAGE_NAME!$PACKAGE_NAME$ac_delim
32971PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
32972PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
32973PACKAGE_STRING!$PACKAGE_STRING$ac_delim
32974PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
32975exec_prefix!$exec_prefix$ac_delim
32976prefix!$prefix$ac_delim
32977program_transform_name!$program_transform_name$ac_delim
32978bindir!$bindir$ac_delim
32979sbindir!$sbindir$ac_delim
32980libexecdir!$libexecdir$ac_delim
32981datarootdir!$datarootdir$ac_delim
32982datadir!$datadir$ac_delim
32983sysconfdir!$sysconfdir$ac_delim
32984sharedstatedir!$sharedstatedir$ac_delim
32985localstatedir!$localstatedir$ac_delim
32986includedir!$includedir$ac_delim
32987oldincludedir!$oldincludedir$ac_delim
32988docdir!$docdir$ac_delim
32989infodir!$infodir$ac_delim
32990htmldir!$htmldir$ac_delim
32991dvidir!$dvidir$ac_delim
32992pdfdir!$pdfdir$ac_delim
32993psdir!$psdir$ac_delim
32994libdir!$libdir$ac_delim
32995localedir!$localedir$ac_delim
32996mandir!$mandir$ac_delim
32997DEFS!$DEFS$ac_delim
32998ECHO_C!$ECHO_C$ac_delim
32999ECHO_N!$ECHO_N$ac_delim
33000ECHO_T!$ECHO_T$ac_delim
33001LIBS!$LIBS$ac_delim
33002build_alias!$build_alias$ac_delim
33003host_alias!$host_alias$ac_delim
33004target_alias!$target_alias$ac_delim
33005LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
33006subdirs!$subdirs$ac_delim
33007build!$build$ac_delim
33008build_cpu!$build_cpu$ac_delim
33009build_vendor!$build_vendor$ac_delim
33010build_os!$build_os$ac_delim
33011host!$host$ac_delim
33012host_cpu!$host_cpu$ac_delim
33013host_vendor!$host_vendor$ac_delim
33014host_os!$host_os$ac_delim
33015target!$target$ac_delim
33016target_cpu!$target_cpu$ac_delim
33017target_vendor!$target_vendor$ac_delim
33018target_os!$target_os$ac_delim
33019OS!$OS$ac_delim
33020LINKALL!$LINKALL$ac_delim
33021NOLINKALL!$NOLINKALL$ac_delim
33022LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
33023LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
33024ARCH!$ARCH$ac_delim
Duncan Sands67f1c492007-12-12 23:03:45 +000033025ENDIAN!$ENDIAN$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000033026CC!$CC$ac_delim
33027CFLAGS!$CFLAGS$ac_delim
33028LDFLAGS!$LDFLAGS$ac_delim
33029CPPFLAGS!$CPPFLAGS$ac_delim
33030ac_ct_CC!$ac_ct_CC$ac_delim
33031EXEEXT!$EXEEXT$ac_delim
33032OBJEXT!$OBJEXT$ac_delim
33033CPP!$CPP$ac_delim
33034GREP!$GREP$ac_delim
33035EGREP!$EGREP$ac_delim
33036LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
33037BUILD_CC!$BUILD_CC$ac_delim
33038BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
Jim Grosbach673612e2008-10-02 22:56:44 +000033039BUILD_CXX!$BUILD_CXX$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000033040CVSBUILD!$CVSBUILD$ac_delim
33041ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
33042DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
David Greenea696d242007-06-28 19:36:08 +000033043ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
33044EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
Reid Spencer8b2e1412006-11-17 03:32:33 +000033045DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000033046JIT!$JIT$ac_delim
33047TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
33048ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
33049ENABLE_THREADS!$ENABLE_THREADS$ac_delim
Reid Spencer89b0d992006-12-16 22:07:52 +000033050ENABLE_PIC!$ENABLE_PIC$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000033051TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
Reid Spencer65c5d752006-11-05 17:08:18 +000033052ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000033053EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
33054CXX!$CXX$ac_delim
33055CXXFLAGS!$CXXFLAGS$ac_delim
33056ac_ct_CXX!$ac_ct_CXX$ac_delim
33057LEX!$LEX$ac_delim
Tanya Lattnercf067672008-01-17 05:57:22 +000033058LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
Torok Edwincc499a42008-10-22 09:56:27 +000033059LEXLIB!$LEXLIB$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000033060FLEX!$FLEX$ac_delim
33061YACC!$YACC$ac_delim
33062YFLAGS!$YFLAGS$ac_delim
33063BISON!$BISON$ac_delim
33064NM!$NM$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000033065_ACEOF
33066
33067 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
33068 break
33069 elif $ac_last_try; then
33070 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
33071echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
33072 { (exit 1); exit 1; }; }
33073 else
33074 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
John Criswell7a73b802003-06-30 21:59:07 +000033075 fi
Reid Spencera773bd52006-08-04 18:18:08 +000033076done
33077
33078ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
33079if test -n "$ac_eof"; then
33080 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
33081 ac_eof=`expr $ac_eof + 1`
33082fi
33083
33084cat >>$CONFIG_STATUS <<_ACEOF
33085cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
33086/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
33087_ACEOF
33088sed '
33089s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
33090s/^/s,@/; s/!/@,|#_!!_#|/
33091:n
33092t n
33093s/'"$ac_delim"'$/,g/; t
33094s/$/\\/; p
33095N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
33096' >>$CONFIG_STATUS <conf$$subs.sed
33097rm -f conf$$subs.sed
33098cat >>$CONFIG_STATUS <<_ACEOF
33099CEOF$ac_eof
33100_ACEOF
33101
33102
33103ac_delim='%!_!# '
33104for ac_last_try in false false false false false :; do
33105 cat >conf$$subs.sed <<_ACEOF
Jim Grosbach673612e2008-10-02 22:56:44 +000033106ifGNUmake!$ifGNUmake$ac_delim
David Greenea696d242007-06-28 19:36:08 +000033107LN_S!$LN_S$ac_delim
33108CMP!$CMP$ac_delim
Reid Spencer89b0d992006-12-16 22:07:52 +000033109CP!$CP$ac_delim
Reid Spencer8b2e1412006-11-17 03:32:33 +000033110DATE!$DATE$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000033111FIND!$FIND$ac_delim
33112MKDIR!$MKDIR$ac_delim
33113MV!$MV$ac_delim
33114RANLIB!$RANLIB$ac_delim
33115RM!$RM$ac_delim
33116SED!$SED$ac_delim
33117TAR!$TAR$ac_delim
33118BINPWD!$BINPWD$ac_delim
33119GRAPHVIZ!$GRAPHVIZ$ac_delim
33120DOT!$DOT$ac_delim
33121GV!$GV$ac_delim
33122DOTTY!$DOTTY$ac_delim
33123PERL!$PERL$ac_delim
33124HAVE_PERL!$HAVE_PERL$ac_delim
33125INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
33126INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
33127INSTALL_DATA!$INSTALL_DATA$ac_delim
33128BZIP2!$BZIP2$ac_delim
33129DOXYGEN!$DOXYGEN$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000033130GROFF!$GROFF$ac_delim
33131GZIP!$GZIP$ac_delim
33132POD2HTML!$POD2HTML$ac_delim
33133POD2MAN!$POD2MAN$ac_delim
33134RUNTEST!$RUNTEST$ac_delim
33135TCLSH!$TCLSH$ac_delim
33136ZIP!$ZIP$ac_delim
Gordon Henriksen54c7e122007-09-18 12:27:13 +000033137OCAMLC!$OCAMLC$ac_delim
33138OCAMLOPT!$OCAMLOPT$ac_delim
Gordon Henriksenc20f5b02007-09-20 16:48:18 +000033139OCAMLDEP!$OCAMLDEP$ac_delim
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +000033140OCAMLDOC!$OCAMLDOC$ac_delim
Torok Edwincc499a42008-10-22 09:56:27 +000033141GAS!$GAS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000033142INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
33143INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
33144CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
33145CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
33146LIBADD_DL!$LIBADD_DL$ac_delim
33147ECHO!$ECHO$ac_delim
33148AR!$AR$ac_delim
33149STRIP!$STRIP$ac_delim
33150CXXCPP!$CXXCPP$ac_delim
33151F77!$F77$ac_delim
33152FFLAGS!$FFLAGS$ac_delim
33153ac_ct_F77!$ac_ct_F77$ac_delim
33154LIBTOOL!$LIBTOOL$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000033155LLVMGCC!$LLVMGCC$ac_delim
33156LLVMGXX!$LLVMGXX$ac_delim
Reid Spencerb6a7aa72007-01-19 17:41:47 +000033157USE_UDIS86!$USE_UDIS86$ac_delim
Reid Spencer1000b732006-12-01 00:37:14 +000033158HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
Reid Spencerb2ed05262006-11-03 18:04:08 +000033159HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000033160ALLOCA!$ALLOCA$ac_delim
33161MMAP_FILE!$MMAP_FILE$ac_delim
33162LLVMCC1!$LLVMCC1$ac_delim
33163LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
33164LLVMGCCDIR!$LLVMGCCDIR$ac_delim
Reid Spencer282d8c12006-12-21 22:55:41 +000033165LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000033166LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
33167LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
Reid Spencer0d238182007-04-21 21:28:52 +000033168LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000033169SHLIBEXT!$SHLIBEXT$ac_delim
33170LLVM_PREFIX!$LLVM_PREFIX$ac_delim
33171LLVM_BINDIR!$LLVM_BINDIR$ac_delim
33172LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
33173LLVM_DATADIR!$LLVM_DATADIR$ac_delim
33174LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
33175LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
33176LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
33177LLVM_INFODIR!$LLVM_INFODIR$ac_delim
33178LLVM_MANDIR!$LLVM_MANDIR$ac_delim
33179LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
Gordon Henriksenc0efff82007-10-02 09:50:32 +000033180BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
33181ALL_BINDINGS!$ALL_BINDINGS$ac_delim
Gordon Henriksenf0915682007-10-02 16:42:22 +000033182OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
Daniel Dunbardcf114e2008-08-30 01:16:19 +000033183ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000033184LIBOBJS!$LIBOBJS$ac_delim
33185LTLIBOBJS!$LTLIBOBJS$ac_delim
33186_ACEOF
33187
Torok Edwincc499a42008-10-22 09:56:27 +000033188 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 80; then
Reid Spencera773bd52006-08-04 18:18:08 +000033189 break
33190 elif $ac_last_try; then
33191 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
33192echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
33193 { (exit 1); exit 1; }; }
33194 else
33195 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
33196 fi
33197done
33198
33199ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
33200if test -n "$ac_eof"; then
33201 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
33202 ac_eof=`expr $ac_eof + 1`
33203fi
33204
33205cat >>$CONFIG_STATUS <<_ACEOF
33206cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
33207/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
33208_ACEOF
33209sed '
33210s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
33211s/^/s,@/; s/!/@,|#_!!_#|/
33212:n
33213t n
33214s/'"$ac_delim"'$/,g/; t
33215s/$/\\/; p
33216N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
33217' >>$CONFIG_STATUS <conf$$subs.sed
33218rm -f conf$$subs.sed
33219cat >>$CONFIG_STATUS <<_ACEOF
33220:end
33221s/|#_!!_#|//g
33222CEOF$ac_eof
33223_ACEOF
33224
33225
33226# VPATH may cause trouble with some makes, so we remove $(srcdir),
33227# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
33228# trailing colons and then remove the whole line if VPATH becomes empty
33229# (actually we leave an empty line to preserve line numbers).
33230if test "x$srcdir" = x.; then
33231 ac_vpsub='/^[ ]*VPATH[ ]*=/{
33232s/:*\$(srcdir):*/:/
33233s/:*\${srcdir}:*/:/
33234s/:*@srcdir@:*/:/
33235s/^\([^=]*=[ ]*\):*/\1/
33236s/:*$//
33237s/^[^=]*=[ ]*$//
33238}'
33239fi
33240
33241cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000033242fi # test -n "$CONFIG_FILES"
33243
Reid Spencera773bd52006-08-04 18:18:08 +000033244
33245for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
33246do
33247 case $ac_tag in
33248 :[FHLC]) ac_mode=$ac_tag; continue;;
33249 esac
33250 case $ac_mode$ac_tag in
33251 :[FHL]*:*);;
33252 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
33253echo "$as_me: error: Invalid tag $ac_tag." >&2;}
33254 { (exit 1); exit 1; }; };;
33255 :[FH]-) ac_tag=-:-;;
33256 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
33257 esac
33258 ac_save_IFS=$IFS
33259 IFS=:
33260 set x $ac_tag
33261 IFS=$ac_save_IFS
33262 shift
33263 ac_file=$1
33264 shift
33265
33266 case $ac_mode in
33267 :L) ac_source=$1;;
33268 :[FH])
33269 ac_file_inputs=
33270 for ac_f
33271 do
33272 case $ac_f in
33273 -) ac_f="$tmp/stdin";;
33274 *) # Look for the file first in the build tree, then in the source tree
33275 # (if the path is not absolute). The absolute path cannot be DOS-style,
33276 # because $ac_f cannot contain `:'.
33277 test -f "$ac_f" ||
33278 case $ac_f in
33279 [\\/$]*) false;;
33280 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
33281 esac ||
33282 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
33283echo "$as_me: error: cannot find input file: $ac_f" >&2;}
33284 { (exit 1); exit 1; }; };;
33285 esac
33286 ac_file_inputs="$ac_file_inputs $ac_f"
33287 done
33288
33289 # Let's still pretend it is `configure' which instantiates (i.e., don't
33290 # use $as_me), people would be surprised to read:
33291 # /* config.h. Generated by config.status. */
33292 configure_input="Generated from "`IFS=:
33293 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
33294 if test x"$ac_file" != x-; then
33295 configure_input="$ac_file. $configure_input"
33296 { echo "$as_me:$LINENO: creating $ac_file" >&5
33297echo "$as_me: creating $ac_file" >&6;}
33298 fi
33299
33300 case $ac_tag in
33301 *:-:* | *:-) cat >"$tmp/stdin";;
33302 esac
33303 ;;
John Criswell7a73b802003-06-30 21:59:07 +000033304 esac
33305
Reid Spencera773bd52006-08-04 18:18:08 +000033306 ac_dir=`$as_dirname -- "$ac_file" ||
John Criswell7a73b802003-06-30 21:59:07 +000033307$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000033308 X"$ac_file" : 'X\(//\)[^/]' \| \
33309 X"$ac_file" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000033310 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +000033311echo X"$ac_file" |
Reid Spencera773bd52006-08-04 18:18:08 +000033312 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33313 s//\1/
33314 q
33315 }
33316 /^X\(\/\/\)[^/].*/{
33317 s//\1/
33318 q
33319 }
33320 /^X\(\/\/\)$/{
33321 s//\1/
33322 q
33323 }
33324 /^X\(\/\).*/{
33325 s//\1/
33326 q
33327 }
33328 s/.*/./; q'`
33329 { as_dir="$ac_dir"
33330 case $as_dir in #(
33331 -*) as_dir=./$as_dir;;
33332 esac
33333 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
John Criswell0c38eaf2003-09-10 15:17:25 +000033334 as_dirs=
Reid Spencera773bd52006-08-04 18:18:08 +000033335 while :; do
33336 case $as_dir in #(
33337 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
33338 *) as_qdir=$as_dir;;
33339 esac
33340 as_dirs="'$as_qdir' $as_dirs"
33341 as_dir=`$as_dirname -- "$as_dir" ||
John Criswell0c38eaf2003-09-10 15:17:25 +000033342$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000033343 X"$as_dir" : 'X\(//\)[^/]' \| \
33344 X"$as_dir" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000033345 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell0c38eaf2003-09-10 15:17:25 +000033346echo X"$as_dir" |
Reid Spencera773bd52006-08-04 18:18:08 +000033347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33348 s//\1/
33349 q
33350 }
33351 /^X\(\/\/\)[^/].*/{
33352 s//\1/
33353 q
33354 }
33355 /^X\(\/\/\)$/{
33356 s//\1/
33357 q
33358 }
33359 /^X\(\/\).*/{
33360 s//\1/
33361 q
33362 }
33363 s/.*/./; q'`
33364 test -d "$as_dir" && break
John Criswell0c38eaf2003-09-10 15:17:25 +000033365 done
Reid Spencera773bd52006-08-04 18:18:08 +000033366 test -z "$as_dirs" || eval "mkdir $as_dirs"
33367 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
33368echo "$as_me: error: cannot create directory $as_dir" >&2;}
John Criswell0c38eaf2003-09-10 15:17:25 +000033369 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000033370 ac_builddir=.
33371
Reid Spencera773bd52006-08-04 18:18:08 +000033372case "$ac_dir" in
33373.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
33374*)
John Criswell7a73b802003-06-30 21:59:07 +000033375 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000033376 # A ".." for each directory in $ac_dir_suffix.
33377 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
33378 case $ac_top_builddir_sub in
33379 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
33380 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
33381 esac ;;
33382esac
33383ac_abs_top_builddir=$ac_pwd
33384ac_abs_builddir=$ac_pwd$ac_dir_suffix
33385# for backward compatibility:
33386ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +000033387
33388case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000033389 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +000033390 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000033391 ac_top_srcdir=$ac_top_builddir_sub
33392 ac_abs_top_srcdir=$ac_pwd ;;
33393 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +000033394 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000033395 ac_top_srcdir=$srcdir
33396 ac_abs_top_srcdir=$srcdir ;;
33397 *) # Relative name.
33398 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
33399 ac_top_srcdir=$ac_top_build_prefix$srcdir
33400 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +000033401esac
Reid Spencera773bd52006-08-04 18:18:08 +000033402ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +000033403
John Criswell7a73b802003-06-30 21:59:07 +000033404
Reid Spencera773bd52006-08-04 18:18:08 +000033405 case $ac_mode in
33406 :F)
33407 #
33408 # CONFIG_FILE
33409 #
John Criswell7a73b802003-06-30 21:59:07 +000033410
33411 case $INSTALL in
33412 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Reid Spencera773bd52006-08-04 18:18:08 +000033413 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
John Criswell7a73b802003-06-30 21:59:07 +000033414 esac
John Criswell7a73b802003-06-30 21:59:07 +000033415_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000033416
33417cat >>$CONFIG_STATUS <<\_ACEOF
33418# If the template does not know about datarootdir, expand it.
33419# FIXME: This hack should be removed a few years after 2.60.
33420ac_datarootdir_hack=; ac_datarootdir_seen=
33421
33422case `sed -n '/datarootdir/ {
33423 p
33424 q
33425}
33426/@datadir@/p
33427/@docdir@/p
33428/@infodir@/p
33429/@localedir@/p
33430/@mandir@/p
33431' $ac_file_inputs` in
33432*datarootdir*) ac_datarootdir_seen=yes;;
33433*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
33434 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
33435echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
33436_ACEOF
33437cat >>$CONFIG_STATUS <<_ACEOF
33438 ac_datarootdir_hack='
33439 s&@datadir@&$datadir&g
33440 s&@docdir@&$docdir&g
33441 s&@infodir@&$infodir&g
33442 s&@localedir@&$localedir&g
33443 s&@mandir@&$mandir&g
33444 s&\\\${datarootdir}&$datarootdir&g' ;;
33445esac
33446_ACEOF
33447
33448# Neutralize VPATH when `$srcdir' = `.'.
33449# Shell code in configure.ac might set extrasub.
33450# FIXME: do we really want to maintain this feature?
John Criswell7a73b802003-06-30 21:59:07 +000033451cat >>$CONFIG_STATUS <<_ACEOF
33452 sed "$ac_vpsub
33453$extrasub
33454_ACEOF
33455cat >>$CONFIG_STATUS <<\_ACEOF
33456:t
33457/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Reid Spencera773bd52006-08-04 18:18:08 +000033458s&@configure_input@&$configure_input&;t t
33459s&@top_builddir@&$ac_top_builddir_sub&;t t
33460s&@srcdir@&$ac_srcdir&;t t
33461s&@abs_srcdir@&$ac_abs_srcdir&;t t
33462s&@top_srcdir@&$ac_top_srcdir&;t t
33463s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
33464s&@builddir@&$ac_builddir&;t t
33465s&@abs_builddir@&$ac_abs_builddir&;t t
33466s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
33467s&@INSTALL@&$ac_INSTALL&;t t
33468$ac_datarootdir_hack
33469" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
John Criswell7a73b802003-06-30 21:59:07 +000033470
Reid Spencera773bd52006-08-04 18:18:08 +000033471test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
33472 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
33473 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
33474 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
33475which seems to be undefined. Please make sure it is defined." >&5
33476echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
33477which seems to be undefined. Please make sure it is defined." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000033478
Reid Spencera773bd52006-08-04 18:18:08 +000033479 rm -f "$tmp/stdin"
John Criswell7a73b802003-06-30 21:59:07 +000033480 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +000033481 -) cat "$tmp/out"; rm -f "$tmp/out";;
33482 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
John Criswell7a73b802003-06-30 21:59:07 +000033483 esac
Reid Spencera773bd52006-08-04 18:18:08 +000033484 ;;
33485 :H)
33486 #
33487 # CONFIG_HEADER
33488 #
John Criswell7a73b802003-06-30 21:59:07 +000033489_ACEOF
33490
Reid Spencera773bd52006-08-04 18:18:08 +000033491# Transform confdefs.h into a sed script `conftest.defines', that
33492# substitutes the proper values into config.h.in to produce config.h.
33493rm -f conftest.defines conftest.tail
33494# First, append a space to every undef/define line, to ease matching.
33495echo 's/$/ /' >conftest.defines
33496# Then, protect against being on the right side of a sed subst, or in
33497# an unquoted here document, in config.status. If some macros were
33498# called several times there might be several #defines for the same
33499# symbol, which is useless. But do not sort them, since the last
33500# AC_DEFINE must be honored.
33501ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
33502# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
33503# NAME is the cpp macro being defined, VALUE is the value it is being given.
33504# PARAMS is the parameter list in the macro definition--in most cases, it's
33505# just an empty string.
33506ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
33507ac_dB='\\)[ (].*,\\1define\\2'
33508ac_dC=' '
33509ac_dD=' ,'
John Criswell7a73b802003-06-30 21:59:07 +000033510
Reid Spencera773bd52006-08-04 18:18:08 +000033511uniq confdefs.h |
33512 sed -n '
33513 t rset
33514 :rset
33515 s/^[ ]*#[ ]*define[ ][ ]*//
33516 t ok
33517 d
33518 :ok
33519 s/[\\&,]/\\&/g
33520 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
33521 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
33522 ' >>conftest.defines
33523
33524# Remove the space that was appended to ease matching.
33525# Then replace #undef with comments. This is necessary, for
John Criswell7a73b802003-06-30 21:59:07 +000033526# example, in the case of _POSIX_SOURCE, which is predefined and required
33527# on some systems where configure will not decide to define it.
Reid Spencera773bd52006-08-04 18:18:08 +000033528# (The regexp can be short, since the line contains either #define or #undef.)
33529echo 's/ $//
33530s,^[ #]*u.*,/* & */,' >>conftest.defines
John Criswell7a73b802003-06-30 21:59:07 +000033531
Reid Spencera773bd52006-08-04 18:18:08 +000033532# Break up conftest.defines:
33533ac_max_sed_lines=50
33534
33535# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
33536# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
33537# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
33538# et cetera.
33539ac_in='$ac_file_inputs'
33540ac_out='"$tmp/out1"'
33541ac_nxt='"$tmp/out2"'
33542
33543while :
John Criswell7a73b802003-06-30 21:59:07 +000033544do
Reid Spencera773bd52006-08-04 18:18:08 +000033545 # Write a here document:
33546 cat >>$CONFIG_STATUS <<_ACEOF
33547 # First, check the format of the line:
33548 cat >"\$tmp/defines.sed" <<\\CEOF
33549/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
33550/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
33551b
33552:def
33553_ACEOF
33554 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000033555 echo 'CEOF
Reid Spencera773bd52006-08-04 18:18:08 +000033556 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
33557 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
33558 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
33559 grep . conftest.tail >/dev/null || break
John Criswell7a73b802003-06-30 21:59:07 +000033560 rm -f conftest.defines
33561 mv conftest.tail conftest.defines
33562done
Reid Spencera773bd52006-08-04 18:18:08 +000033563rm -f conftest.defines conftest.tail
John Criswell7a73b802003-06-30 21:59:07 +000033564
Reid Spencera773bd52006-08-04 18:18:08 +000033565echo "ac_result=$ac_in" >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000033566cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000033567 if test x"$ac_file" != x-; then
Reid Spencera773bd52006-08-04 18:18:08 +000033568 echo "/* $configure_input */" >"$tmp/config.h"
33569 cat "$ac_result" >>"$tmp/config.h"
33570 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000033571 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
33572echo "$as_me: $ac_file is unchanged" >&6;}
33573 else
John Criswell7a73b802003-06-30 21:59:07 +000033574 rm -f $ac_file
Reid Spencera773bd52006-08-04 18:18:08 +000033575 mv "$tmp/config.h" $ac_file
John Criswell7a73b802003-06-30 21:59:07 +000033576 fi
33577 else
Reid Spencera773bd52006-08-04 18:18:08 +000033578 echo "/* $configure_input */"
33579 cat "$ac_result"
John Criswell7a73b802003-06-30 21:59:07 +000033580 fi
Reid Spencera773bd52006-08-04 18:18:08 +000033581 rm -f "$tmp/out12"
33582 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000033583
Reid Spencera773bd52006-08-04 18:18:08 +000033584 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
33585echo "$as_me: executing $ac_file commands" >&6;}
33586 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000033587 esac
John Criswell7a73b802003-06-30 21:59:07 +000033588
Reid Spencera773bd52006-08-04 18:18:08 +000033589
33590 case $ac_file$ac_mode in
33591 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
33592 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
33593 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
33594 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
33595 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
33596 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
33597 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
33598 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000033599 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
33600 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000033601 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
33602 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
33603 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
33604 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
33605 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
33606 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
33607 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
33608 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
33609 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
33610 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000033611 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
33612 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
33613 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
33614 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
Reid Spencera773bd52006-08-04 18:18:08 +000033615
33616 esac
33617done # for ac_tag
33618
John Criswell7a73b802003-06-30 21:59:07 +000033619
33620{ (exit 0); exit 0; }
33621_ACEOF
33622chmod +x $CONFIG_STATUS
33623ac_clean_files=$ac_clean_files_save
33624
33625
33626# configure is writing to config.log, and then calls config.status.
33627# config.status does its own redirection, appending to config.log.
33628# Unfortunately, on DOS this fails, as config.log is still kept open
33629# by configure, so config.status won't be able to write to it; its
33630# output is simply discarded. So we exec the FD to /dev/null,
33631# effectively closing config.log, so it can be properly (re)opened and
33632# appended to by config.status. When coming back to configure, we
33633# need to make the FD available again.
33634if test "$no_create" != yes; then
33635 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000033636 ac_config_status_args=
33637 test "$silent" = yes &&
33638 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000033639 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000033640 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000033641 exec 5>>config.log
33642 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
33643 # would make configure fail if this is the last instruction.
33644 $ac_cs_success || { (exit 1); exit 1; }
33645fi
33646
John Criswell12399a12003-09-30 15:55:44 +000033647#
33648# CONFIG_SUBDIRS section.
33649#
33650if test "$no_recursion" != yes; then
33651
33652 # Remove --cache-file and --srcdir arguments so they do not pile up.
33653 ac_sub_configure_args=
33654 ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +000033655 eval "set x $ac_configure_args"
33656 shift
33657 for ac_arg
33658 do
John Criswell12399a12003-09-30 15:55:44 +000033659 if test -n "$ac_prev"; then
33660 ac_prev=
33661 continue
33662 fi
33663 case $ac_arg in
33664 -cache-file | --cache-file | --cache-fil | --cache-fi \
33665 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
33666 ac_prev=cache_file ;;
33667 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
33668 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
33669 | --c=*)
33670 ;;
33671 --config-cache | -C)
33672 ;;
33673 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
33674 ac_prev=srcdir ;;
33675 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
33676 ;;
33677 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
33678 ac_prev=prefix ;;
33679 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
33680 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000033681 *)
33682 case $ac_arg in
33683 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
33684 esac
33685 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
John Criswell12399a12003-09-30 15:55:44 +000033686 esac
33687 done
33688
33689 # Always prepend --prefix to ensure using the same prefix
33690 # in subdir configurations.
Reid Spencera773bd52006-08-04 18:18:08 +000033691 ac_arg="--prefix=$prefix"
33692 case $ac_arg in
33693 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
33694 esac
Torok Edwincc499a42008-10-22 09:56:27 +000033695 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
33696
33697 # Pass --silent
33698 if test "$silent" = yes; then
33699 ac_sub_configure_args="--silent $ac_sub_configure_args"
33700 fi
John Criswell12399a12003-09-30 15:55:44 +000033701
33702 ac_popdir=`pwd`
33703 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
33704
33705 # Do not complain, so a configure script can configure whichever
33706 # parts of a large source tree are present.
Reid Spencera773bd52006-08-04 18:18:08 +000033707 test -d "$srcdir/$ac_dir" || continue
John Criswell12399a12003-09-30 15:55:44 +000033708
Reid Spencera773bd52006-08-04 18:18:08 +000033709 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
33710 echo "$as_me:$LINENO: $ac_msg" >&5
33711 echo "$ac_msg" >&6
33712 { as_dir="$ac_dir"
33713 case $as_dir in #(
33714 -*) as_dir=./$as_dir;;
33715 esac
33716 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
John Criswell12399a12003-09-30 15:55:44 +000033717 as_dirs=
Reid Spencera773bd52006-08-04 18:18:08 +000033718 while :; do
33719 case $as_dir in #(
33720 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
33721 *) as_qdir=$as_dir;;
33722 esac
33723 as_dirs="'$as_qdir' $as_dirs"
33724 as_dir=`$as_dirname -- "$as_dir" ||
John Criswell12399a12003-09-30 15:55:44 +000033725$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000033726 X"$as_dir" : 'X\(//\)[^/]' \| \
33727 X"$as_dir" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000033728 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell12399a12003-09-30 15:55:44 +000033729echo X"$as_dir" |
Reid Spencera773bd52006-08-04 18:18:08 +000033730 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33731 s//\1/
33732 q
33733 }
33734 /^X\(\/\/\)[^/].*/{
33735 s//\1/
33736 q
33737 }
33738 /^X\(\/\/\)$/{
33739 s//\1/
33740 q
33741 }
33742 /^X\(\/\).*/{
33743 s//\1/
33744 q
33745 }
33746 s/.*/./; q'`
33747 test -d "$as_dir" && break
John Criswell12399a12003-09-30 15:55:44 +000033748 done
Reid Spencera773bd52006-08-04 18:18:08 +000033749 test -z "$as_dirs" || eval "mkdir $as_dirs"
33750 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
33751echo "$as_me: error: cannot create directory $as_dir" >&2;}
John Criswell12399a12003-09-30 15:55:44 +000033752 { (exit 1); exit 1; }; }; }
John Criswell12399a12003-09-30 15:55:44 +000033753 ac_builddir=.
33754
Reid Spencera773bd52006-08-04 18:18:08 +000033755case "$ac_dir" in
33756.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
33757*)
John Criswell12399a12003-09-30 15:55:44 +000033758 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000033759 # A ".." for each directory in $ac_dir_suffix.
33760 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
33761 case $ac_top_builddir_sub in
33762 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
33763 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
33764 esac ;;
33765esac
33766ac_abs_top_builddir=$ac_pwd
33767ac_abs_builddir=$ac_pwd$ac_dir_suffix
33768# for backward compatibility:
33769ac_top_builddir=$ac_top_build_prefix
John Criswell12399a12003-09-30 15:55:44 +000033770
33771case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000033772 .) # We are building in place.
John Criswell12399a12003-09-30 15:55:44 +000033773 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000033774 ac_top_srcdir=$ac_top_builddir_sub
33775 ac_abs_top_srcdir=$ac_pwd ;;
33776 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell12399a12003-09-30 15:55:44 +000033777 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000033778 ac_top_srcdir=$srcdir
33779 ac_abs_top_srcdir=$srcdir ;;
33780 *) # Relative name.
33781 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
33782 ac_top_srcdir=$ac_top_build_prefix$srcdir
33783 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell12399a12003-09-30 15:55:44 +000033784esac
Reid Spencera773bd52006-08-04 18:18:08 +000033785ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
John Criswell12399a12003-09-30 15:55:44 +000033786
33787
Reid Spencera773bd52006-08-04 18:18:08 +000033788 cd "$ac_dir"
John Criswell12399a12003-09-30 15:55:44 +000033789
33790 # Check for guested configure; otherwise get Cygnus style configure.
Reid Spencera773bd52006-08-04 18:18:08 +000033791 if test -f "$ac_srcdir/configure.gnu"; then
33792 ac_sub_configure=$ac_srcdir/configure.gnu
33793 elif test -f "$ac_srcdir/configure"; then
33794 ac_sub_configure=$ac_srcdir/configure
33795 elif test -f "$ac_srcdir/configure.in"; then
33796 # This should be Cygnus configure.
33797 ac_sub_configure=$ac_aux_dir/configure
John Criswell12399a12003-09-30 15:55:44 +000033798 else
33799 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
33800echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
33801 ac_sub_configure=
33802 fi
33803
33804 # The recursion is here.
33805 if test -n "$ac_sub_configure"; then
33806 # Make the cache file name correct relative to the subdirectory.
33807 case $cache_file in
33808 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
Reid Spencera773bd52006-08-04 18:18:08 +000033809 *) # Relative name.
33810 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000033811 esac
33812
Reid Spencera773bd52006-08-04 18:18:08 +000033813 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
33814echo "$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 +000033815 # The eval makes quoting arguments work.
Reid Spencera773bd52006-08-04 18:18:08 +000033816 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
33817 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
Reid Spencer2706f8c2004-09-19 23:53:36 +000033818 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
John Criswell12399a12003-09-30 15:55:44 +000033819echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
33820 { (exit 1); exit 1; }; }
33821 fi
33822
Reid Spencera773bd52006-08-04 18:18:08 +000033823 cd "$ac_popdir"
John Criswell12399a12003-09-30 15:55:44 +000033824 done
33825fi
33826