blob: 8f42c0cf95a9326302fded98c1f29ce3f68575af [file] [log] [blame]
John Criswell7a73b802003-06-30 21:59:07 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Torok Edwin871384f2010-01-26 08:50:50 +00003# Generated by GNU Autoconf 2.65 for llvm 2.7svn.
John Criswell7a73b802003-06-30 21:59:07 +00004#
5# Report bugs to <llvmbugs@cs.uiuc.edu>.
6#
Torok Edwin871384f2010-01-26 08:50:50 +00007#
Reid Spencera773bd52006-08-04 18:18:08 +00008# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
Torok Edwin871384f2010-01-26 08:50:50 +00009# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
10# Inc.
11#
12#
John Criswell7a73b802003-06-30 21:59:07 +000013# This configure script is free software; the Free Software Foundation
14# gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015#
Tanya Lattnerc2264592009-08-22 21:01:26 +000016# Copyright (c) 2003-2009 University of Illinois at Urbana-Champaign.
Torok Edwin871384f2010-01-26 08:50:50 +000017## -------------------- ##
18## M4sh Initialization. ##
19## -------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +000020
Torok Edwin871384f2010-01-26 08:50:50 +000021# Be more Bourne compatible
22DUALCASE=1; export DUALCASE # for MKS sh
23if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
John Criswell0c38eaf2003-09-10 15:17:25 +000024 emulate sh
25 NULLCMD=:
Torok Edwin871384f2010-01-26 08:50:50 +000026 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
John Criswell0c38eaf2003-09-10 15:17:25 +000027 # is contrary to our usage. Disable this feature.
28 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000029 setopt NO_GLOB_SUBST
30else
Torok Edwin871384f2010-01-26 08:50:50 +000031 case `(set -o) 2>/dev/null` in #(
32 *posix*) :
33 set -o posix ;; #(
34 *) :
35 ;;
36esac
John Criswell0c38eaf2003-09-10 15:17:25 +000037fi
38
John Criswell0c38eaf2003-09-10 15:17:25 +000039
Torok Edwin871384f2010-01-26 08:50:50 +000040as_nl='
41'
42export as_nl
43# Printing a long string crashes Solaris 7 /usr/bin/printf.
44as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47# Prefer a ksh shell builtin over an external printf program on Solaris,
48# but without wasting forks for bash or zsh.
49if test -z "$BASH_VERSION$ZSH_VERSION" \
50 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
51 as_echo='print -r --'
52 as_echo_n='print -rn --'
53elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
54 as_echo='printf %s\n'
55 as_echo_n='printf %s'
56else
57 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
58 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
59 as_echo_n='/usr/ucb/echo -n'
60 else
61 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 as_echo_n_body='eval
63 arg=$1;
64 case $arg in #(
65 *"$as_nl"*)
66 expr "X$arg" : "X\\(.*\\)$as_nl";
67 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
68 esac;
69 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
70 '
71 export as_echo_n_body
72 as_echo_n='sh -c $as_echo_n_body as_echo'
73 fi
74 export as_echo_body
75 as_echo='sh -c $as_echo_body as_echo'
76fi
John Criswell0c38eaf2003-09-10 15:17:25 +000077
78# The user is always right.
79if test "${PATH_SEPARATOR+set}" != set; then
Torok Edwin871384f2010-01-26 08:50:50 +000080 PATH_SEPARATOR=:
81 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
82 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 PATH_SEPARATOR=';'
84 }
Reid Spencera773bd52006-08-04 18:18:08 +000085fi
John Criswell0c38eaf2003-09-10 15:17:25 +000086
Reid Spencera773bd52006-08-04 18:18:08 +000087
88# IFS
89# We need space, tab and new line, in precisely that order. Quoting is
90# there to prevent editors from complaining about space-tab.
91# (If _AS_PATH_WALK were called with IFS unset, it would disable word
92# splitting by setting IFS to empty value.)
Reid Spencera773bd52006-08-04 18:18:08 +000093IFS=" "" $as_nl"
94
95# Find who we are. Look in the path if we contain no directory separator.
Torok Edwin871384f2010-01-26 08:50:50 +000096case $0 in #((
Reid Spencera773bd52006-08-04 18:18:08 +000097 *[\\/]* ) as_myself=$0 ;;
98 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell0c38eaf2003-09-10 15:17:25 +000099for as_dir in $PATH
100do
101 IFS=$as_save_IFS
102 test -z "$as_dir" && as_dir=.
Torok Edwin871384f2010-01-26 08:50:50 +0000103 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
104 done
Reid Spencera773bd52006-08-04 18:18:08 +0000105IFS=$as_save_IFS
John Criswell0c38eaf2003-09-10 15:17:25 +0000106
Reid Spencera773bd52006-08-04 18:18:08 +0000107 ;;
108esac
109# We did not find ourselves, most probably we were run as `sh COMMAND'
110# in which case we are not to be found in the path.
111if test "x$as_myself" = x; then
112 as_myself=$0
113fi
114if test ! -f "$as_myself"; then
Torok Edwin871384f2010-01-26 08:50:50 +0000115 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116 exit 1
Reid Spencera773bd52006-08-04 18:18:08 +0000117fi
118
Torok Edwin871384f2010-01-26 08:50:50 +0000119# Unset variables that we do not need and which cause bugs (e.g. in
120# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
121# suppresses any "Segmentation fault" message there. '((' could
122# trigger a bug in pdksh 5.2.14.
123for as_var in BASH_ENV ENV MAIL MAILPATH
124do eval test x\${$as_var+set} = xset \
125 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
Reid Spencera773bd52006-08-04 18:18:08 +0000126done
127PS1='$ '
128PS2='> '
129PS4='+ '
130
131# NLS nuisances.
Torok Edwin871384f2010-01-26 08:50:50 +0000132LC_ALL=C
133export LC_ALL
134LANGUAGE=C
135export LANGUAGE
Reid Spencera773bd52006-08-04 18:18:08 +0000136
Torok Edwin871384f2010-01-26 08:50:50 +0000137# CDPATH.
138(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
139
140if test "x$CONFIG_SHELL" = x; then
141 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
142 emulate sh
143 NULLCMD=:
144 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
145 # is contrary to our usage. Disable this feature.
146 alias -g '\${1+\"\$@\"}'='\"\$@\"'
147 setopt NO_GLOB_SUBST
148else
149 case \`(set -o) 2>/dev/null\` in #(
150 *posix*) :
151 set -o posix ;; #(
152 *) :
153 ;;
154esac
155fi
156"
157 as_required="as_fn_return () { (exit \$1); }
158as_fn_success () { as_fn_return 0; }
159as_fn_failure () { as_fn_return 1; }
160as_fn_ret_success () { return 0; }
161as_fn_ret_failure () { return 1; }
162
163exitcode=0
164as_fn_success || { exitcode=1; echo as_fn_success failed.; }
165as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
166as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
167as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
168if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
169
170else
171 exitcode=1; echo positional parameters were not saved.
172fi
173test x\$exitcode = x0 || exit 1"
174 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
175 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
176 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
177 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
178test \$(( 1 + 1 )) = 2 || exit 1"
179 if (eval "$as_required") 2>/dev/null; then :
180 as_have_required=yes
181else
182 as_have_required=no
183fi
184 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
185
186else
187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
188as_found=false
189for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
190do
191 IFS=$as_save_IFS
192 test -z "$as_dir" && as_dir=.
193 as_found=:
194 case $as_dir in #(
195 /*)
196 for as_base in sh bash ksh sh5; do
197 # Try only shells that exist, to save several forks.
198 as_shell=$as_dir/$as_base
199 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
200 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
201 CONFIG_SHELL=$as_shell as_have_required=yes
202 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
203 break 2
204fi
205fi
206 done;;
207 esac
208 as_found=false
209done
210$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
211 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
212 CONFIG_SHELL=$SHELL as_have_required=yes
213fi; }
214IFS=$as_save_IFS
215
216
217 if test "x$CONFIG_SHELL" != x; then :
218 # We cannot yet assume a decent shell, so we have to provide a
219 # neutralization value for shells without unset; and this also
220 # works around shells that cannot unset nonexistent variables.
221 BASH_ENV=/dev/null
222 ENV=/dev/null
223 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
224 export CONFIG_SHELL
225 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
226fi
227
228 if test x$as_have_required = xno; then :
229 $as_echo "$0: This script requires a shell more modern than all"
230 $as_echo "$0: the shells that I found on your system."
231 if test x${ZSH_VERSION+set} = xset ; then
232 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
233 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
234 else
235 $as_echo "$0: Please tell bug-autoconf@gnu.org and
236$0: llvmbugs@cs.uiuc.edu about your system, including any
237$0: error possibly output before this message. Then install
238$0: a modern shell, or manually run the script under such a
239$0: shell if you do have one."
240 fi
241 exit 1
242fi
243fi
244fi
245SHELL=${CONFIG_SHELL-/bin/sh}
246export SHELL
247# Unset more variables known to interfere with behavior of common tools.
248CLICOLOR_FORCE= GREP_OPTIONS=
249unset CLICOLOR_FORCE GREP_OPTIONS
250
251## --------------------- ##
252## M4sh Shell Functions. ##
253## --------------------- ##
254# as_fn_unset VAR
255# ---------------
256# Portably unset VAR.
257as_fn_unset ()
258{
259 { eval $1=; unset $1;}
260}
261as_unset=as_fn_unset
262
263# as_fn_set_status STATUS
264# -----------------------
265# Set $? to STATUS, without forking.
266as_fn_set_status ()
267{
268 return $1
269} # as_fn_set_status
270
271# as_fn_exit STATUS
272# -----------------
273# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
274as_fn_exit ()
275{
276 set +e
277 as_fn_set_status $1
278 exit $1
279} # as_fn_exit
280
281# as_fn_mkdir_p
282# -------------
283# Create "$as_dir" as a directory, including parents if necessary.
284as_fn_mkdir_p ()
285{
286
287 case $as_dir in #(
288 -*) as_dir=./$as_dir;;
289 esac
290 test -d "$as_dir" || eval $as_mkdir_p || {
291 as_dirs=
292 while :; do
293 case $as_dir in #(
294 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
295 *) as_qdir=$as_dir;;
296 esac
297 as_dirs="'$as_qdir' $as_dirs"
298 as_dir=`$as_dirname -- "$as_dir" ||
299$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
300 X"$as_dir" : 'X\(//\)[^/]' \| \
301 X"$as_dir" : 'X\(//\)$' \| \
302 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
303$as_echo X"$as_dir" |
304 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
305 s//\1/
306 q
307 }
308 /^X\(\/\/\)[^/].*/{
309 s//\1/
310 q
311 }
312 /^X\(\/\/\)$/{
313 s//\1/
314 q
315 }
316 /^X\(\/\).*/{
317 s//\1/
318 q
319 }
320 s/.*/./; q'`
321 test -d "$as_dir" && break
322 done
323 test -z "$as_dirs" || eval "mkdir $as_dirs"
324 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
325
326
327} # as_fn_mkdir_p
328# as_fn_append VAR VALUE
329# ----------------------
330# Append the text in VALUE to the end of the definition contained in VAR. Take
331# advantage of any shell optimizations that allow amortized linear growth over
332# repeated appends, instead of the typical quadratic growth present in naive
333# implementations.
334if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
335 eval 'as_fn_append ()
336 {
337 eval $1+=\$2
338 }'
339else
340 as_fn_append ()
341 {
342 eval $1=\$$1\$2
343 }
344fi # as_fn_append
345
346# as_fn_arith ARG...
347# ------------------
348# Perform arithmetic evaluation on the ARGs, and store the result in the
349# global $as_val. Take advantage of shells that can avoid forks. The arguments
350# must be portable across $(()) and expr.
351if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
352 eval 'as_fn_arith ()
353 {
354 as_val=$(( $* ))
355 }'
356else
357 as_fn_arith ()
358 {
359 as_val=`expr "$@" || test $? -eq 1`
360 }
361fi # as_fn_arith
362
363
364# as_fn_error ERROR [LINENO LOG_FD]
365# ---------------------------------
366# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
367# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
368# script with status $?, using 1 if that was 0.
369as_fn_error ()
370{
371 as_status=$?; test $as_status -eq 0 && as_status=1
372 if test "$3"; then
373 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
374 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
375 fi
376 $as_echo "$as_me: error: $1" >&2
377 as_fn_exit $as_status
378} # as_fn_error
379
Reid Spencera773bd52006-08-04 18:18:08 +0000380if expr a : '\(a\)' >/dev/null 2>&1 &&
381 test "X`expr 00001 : '.*\(...\)'`" = X001; then
382 as_expr=expr
383else
384 as_expr=false
385fi
386
387if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
388 as_basename=basename
389else
390 as_basename=false
391fi
392
Torok Edwin871384f2010-01-26 08:50:50 +0000393if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
394 as_dirname=dirname
395else
396 as_dirname=false
397fi
Reid Spencera773bd52006-08-04 18:18:08 +0000398
Reid Spencera773bd52006-08-04 18:18:08 +0000399as_me=`$as_basename -- "$0" ||
400$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
401 X"$0" : 'X\(//\)$' \| \
402 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Torok Edwin871384f2010-01-26 08:50:50 +0000403$as_echo X/"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +0000404 sed '/^.*\/\([^/][^/]*\)\/*$/{
405 s//\1/
406 q
407 }
408 /^X\/\(\/\/\)$/{
409 s//\1/
410 q
411 }
412 /^X\/\(\/\).*/{
413 s//\1/
414 q
415 }
416 s/.*/./; q'`
417
Torok Edwin871384f2010-01-26 08:50:50 +0000418# Avoid depending upon Character Ranges.
419as_cr_letters='abcdefghijklmnopqrstuvwxyz'
420as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
421as_cr_Letters=$as_cr_letters$as_cr_LETTERS
422as_cr_digits='0123456789'
423as_cr_alnum=$as_cr_Letters$as_cr_digits
Reid Spencera773bd52006-08-04 18:18:08 +0000424
425
Torok Edwin871384f2010-01-26 08:50:50 +0000426 as_lineno_1=$LINENO as_lineno_1a=$LINENO
427 as_lineno_2=$LINENO as_lineno_2a=$LINENO
428 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
429 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
430 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
Reid Spencera773bd52006-08-04 18:18:08 +0000431 sed -n '
432 p
433 /[$]LINENO/=
434 ' <$as_myself |
John Criswell0c38eaf2003-09-10 15:17:25 +0000435 sed '
Reid Spencera773bd52006-08-04 18:18:08 +0000436 s/[$]LINENO.*/&-/
437 t lineno
438 b
439 :lineno
John Criswell0c38eaf2003-09-10 15:17:25 +0000440 N
Reid Spencera773bd52006-08-04 18:18:08 +0000441 :loop
442 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
John Criswell0c38eaf2003-09-10 15:17:25 +0000443 t loop
Reid Spencera773bd52006-08-04 18:18:08 +0000444 s/-\n.*//
John Criswell0c38eaf2003-09-10 15:17:25 +0000445 ' >$as_me.lineno &&
Reid Spencera773bd52006-08-04 18:18:08 +0000446 chmod +x "$as_me.lineno" ||
Torok Edwin871384f2010-01-26 08:50:50 +0000447 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
John Criswell0c38eaf2003-09-10 15:17:25 +0000448
449 # Don't try to exec as it changes $[0], causing all sort of problems
450 # (the dirname of $[0] is not the place where we might find the
Reid Spencera773bd52006-08-04 18:18:08 +0000451 # original and so on. Autoconf is especially sensitive to this).
452 . "./$as_me.lineno"
John Criswell0c38eaf2003-09-10 15:17:25 +0000453 # Exit status is that of the last command.
454 exit
455}
456
Reid Spencera773bd52006-08-04 18:18:08 +0000457ECHO_C= ECHO_N= ECHO_T=
Torok Edwin871384f2010-01-26 08:50:50 +0000458case `echo -n x` in #(((((
Reid Spencera773bd52006-08-04 18:18:08 +0000459-n*)
Torok Edwin871384f2010-01-26 08:50:50 +0000460 case `echo 'xy\c'` in
Reid Spencera773bd52006-08-04 18:18:08 +0000461 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Torok Edwin871384f2010-01-26 08:50:50 +0000462 xy) ECHO_C='\c';;
463 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
464 ECHO_T=' ';;
Reid Spencera773bd52006-08-04 18:18:08 +0000465 esac;;
466*)
467 ECHO_N='-n';;
John Criswell0c38eaf2003-09-10 15:17:25 +0000468esac
469
John Criswell0c38eaf2003-09-10 15:17:25 +0000470rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +0000471if test -d conf$$.dir; then
472 rm -f conf$$.dir/conf$$.file
473else
474 rm -f conf$$.dir
Torok Edwin871384f2010-01-26 08:50:50 +0000475 mkdir conf$$.dir 2>/dev/null
Reid Spencera773bd52006-08-04 18:18:08 +0000476fi
Torok Edwin871384f2010-01-26 08:50:50 +0000477if (echo >conf$$.file) 2>/dev/null; then
478 if ln -s conf$$.file conf$$ 2>/dev/null; then
479 as_ln_s='ln -s'
480 # ... but there are two gotchas:
481 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
482 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
483 # In both cases, we have to default to `cp -p'.
484 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
485 as_ln_s='cp -p'
486 elif ln conf$$.file conf$$ 2>/dev/null; then
487 as_ln_s=ln
488 else
John Criswell0c38eaf2003-09-10 15:17:25 +0000489 as_ln_s='cp -p'
Torok Edwin871384f2010-01-26 08:50:50 +0000490 fi
John Criswell0c38eaf2003-09-10 15:17:25 +0000491else
492 as_ln_s='cp -p'
493fi
Reid Spencera773bd52006-08-04 18:18:08 +0000494rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
495rmdir conf$$.dir 2>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +0000496
497if mkdir -p . 2>/dev/null; then
Torok Edwin871384f2010-01-26 08:50:50 +0000498 as_mkdir_p='mkdir -p "$as_dir"'
John Criswell0c38eaf2003-09-10 15:17:25 +0000499else
Reid Spencer2706f8c2004-09-19 23:53:36 +0000500 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +0000501 as_mkdir_p=false
502fi
503
Torok Edwin871384f2010-01-26 08:50:50 +0000504if test -x / >/dev/null 2>&1; then
505 as_test_x='test -x'
Reid Spencera773bd52006-08-04 18:18:08 +0000506else
Torok Edwin871384f2010-01-26 08:50:50 +0000507 if ls -dL / >/dev/null 2>&1; then
508 as_ls_L_option=L
509 else
510 as_ls_L_option=
511 fi
512 as_test_x='
513 eval sh -c '\''
514 if test -d "$1"; then
515 test -d "$1/.";
516 else
517 case $1 in #(
518 -*)set "./$1";;
519 esac;
520 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
521 ???[sx]*):;;*)false;;esac;fi
522 '\'' sh
523 '
Reid Spencera773bd52006-08-04 18:18:08 +0000524fi
Torok Edwin871384f2010-01-26 08:50:50 +0000525as_executable_p=$as_test_x
John Criswell0c38eaf2003-09-10 15:17:25 +0000526
527# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +0000528as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell0c38eaf2003-09-10 15:17:25 +0000529
530# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +0000531as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell0c38eaf2003-09-10 15:17:25 +0000532
533
Torok Edwin871384f2010-01-26 08:50:50 +0000534test -n "$DJDIR" || exec 7<&0 </dev/null
535exec 6>&1
Reid Spencera773bd52006-08-04 18:18:08 +0000536
John Criswell7a73b802003-06-30 21:59:07 +0000537# Name of the host.
538# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
539# so uname gets run too.
540ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
541
John Criswell7a73b802003-06-30 21:59:07 +0000542#
543# Initializations.
544#
545ac_default_prefix=/usr/local
Reid Spencera773bd52006-08-04 18:18:08 +0000546ac_clean_files=
John Criswell0c38eaf2003-09-10 15:17:25 +0000547ac_config_libobj_dir=.
Reid Spencera773bd52006-08-04 18:18:08 +0000548LIBOBJS=
John Criswell7a73b802003-06-30 21:59:07 +0000549cross_compiling=no
550subdirs=
551MFLAGS=
552MAKEFLAGS=
John Criswell7a73b802003-06-30 21:59:07 +0000553
John Criswell7a73b802003-06-30 21:59:07 +0000554# Identity of this package.
Reid Spencerabec8f92004-10-27 23:03:44 +0000555PACKAGE_NAME='llvm'
Reid Spencer2b51a082004-08-04 00:34:49 +0000556PACKAGE_TARNAME='-llvm-'
Tanya Lattner953042b2009-08-22 04:37:30 +0000557PACKAGE_VERSION='2.7svn'
558PACKAGE_STRING='llvm 2.7svn'
John Criswell7a73b802003-06-30 21:59:07 +0000559PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
Torok Edwin871384f2010-01-26 08:50:50 +0000560PACKAGE_URL=''
John Criswell7a73b802003-06-30 21:59:07 +0000561
Reid Spencer5e1d9a52004-11-25 04:51:04 +0000562ac_unique_file="lib/VMCore/Module.cpp"
Torok Edwin871384f2010-01-26 08:50:50 +0000563enable_option_checking=no
John Criswell7a73b802003-06-30 21:59:07 +0000564# Factoring default headers for most tests.
565ac_includes_default="\
566#include <stdio.h>
Torok Edwin871384f2010-01-26 08:50:50 +0000567#ifdef HAVE_SYS_TYPES_H
John Criswell7a73b802003-06-30 21:59:07 +0000568# include <sys/types.h>
569#endif
Torok Edwin871384f2010-01-26 08:50:50 +0000570#ifdef HAVE_SYS_STAT_H
John Criswell7a73b802003-06-30 21:59:07 +0000571# include <sys/stat.h>
572#endif
Torok Edwin871384f2010-01-26 08:50:50 +0000573#ifdef STDC_HEADERS
John Criswell7a73b802003-06-30 21:59:07 +0000574# include <stdlib.h>
575# include <stddef.h>
576#else
Torok Edwin871384f2010-01-26 08:50:50 +0000577# ifdef HAVE_STDLIB_H
John Criswell7a73b802003-06-30 21:59:07 +0000578# include <stdlib.h>
579# endif
580#endif
Torok Edwin871384f2010-01-26 08:50:50 +0000581#ifdef HAVE_STRING_H
582# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
John Criswell7a73b802003-06-30 21:59:07 +0000583# include <memory.h>
584# endif
585# include <string.h>
586#endif
Torok Edwin871384f2010-01-26 08:50:50 +0000587#ifdef HAVE_STRINGS_H
John Criswell7a73b802003-06-30 21:59:07 +0000588# include <strings.h>
589#endif
Torok Edwin871384f2010-01-26 08:50:50 +0000590#ifdef HAVE_INTTYPES_H
John Criswell7a73b802003-06-30 21:59:07 +0000591# include <inttypes.h>
Reid Spencera773bd52006-08-04 18:18:08 +0000592#endif
Torok Edwin871384f2010-01-26 08:50:50 +0000593#ifdef HAVE_STDINT_H
Reid Spencera773bd52006-08-04 18:18:08 +0000594# include <stdint.h>
John Criswell7a73b802003-06-30 21:59:07 +0000595#endif
Torok Edwin871384f2010-01-26 08:50:50 +0000596#ifdef HAVE_UNISTD_H
John Criswell7a73b802003-06-30 21:59:07 +0000597# include <unistd.h>
598#endif"
599
Torok Edwin871384f2010-01-26 08:50:50 +0000600ac_header_list=
601ac_subst_vars='LTLIBOBJS
Reid Spencera773bd52006-08-04 18:18:08 +0000602LIBOBJS
Torok Edwin871384f2010-01-26 08:50:50 +0000603RDYNAMIC
604RPATH
605ENABLE_VISIBILITY_INLINES_HIDDEN
606OCAML_LIBDIR
607ALL_BINDINGS
608BINDINGS_TO_BUILD
609LLVM_CONFIGTIME
610LLVM_MANDIR
611LLVM_INFODIR
612LLVM_INCLUDEDIR
613LLVM_ETCDIR
614LLVM_DOCSDIR
615LLVM_DATADIR
616LLVM_LIBDIR
617LLVM_BINDIR
618LLVM_PREFIX
619SHLIBEXT
620LLVMGCC_LANGS
621LLVMGCC_MAJVERS
622LLVMGCC_VERSION
623LLVMGCCLIBEXEC
624LLVMGCCDIR
625LLVMCC1PLUS
626LLVMCC1
627MMAP_FILE
628HUGE_VAL_SANITY
629HAVE_PTHREAD
630USE_OPROFILE
631USE_UDIS86
632NO_MISSING_FIELD_INITIALIZERS
633NO_VARIADIC_MACROS
634LLVMGXX
635LLVMGCC
636LLVMGXXCOMMAND
637LLVMGCCCOMMAND
638LIBADD_DL
639CONVENIENCE_LTDL_FALSE
640CONVENIENCE_LTDL_TRUE
641INSTALL_LTDL_FALSE
642INSTALL_LTDL_TRUE
643GAS
644OCAMLDOC
645OCAMLDEP
646OCAMLOPT
647OCAMLC
648ZIP
649TCLSH
650RUNTEST
651POD2MAN
652POD2HTML
653GZIP
654GROFF
655DOXYGEN
656BZIP2
657INSTALL_DATA
658INSTALL_SCRIPT
659INSTALL_PROGRAM
660HAVE_PERL
661PERL
662DOTTY
663GV
664CIRCO
665TWOPI
666NEATO
667FDP
668DOT
669GRAPHVIZ
670BINPWD
671TAR
672SED
673RM
674AR
675RANLIB
676MV
677MKDIR
678FIND
679DATE
680CP
681CMP
682LN_S
683ifGNUmake
684NM
685ac_ct_CXX
686CXXFLAGS
687CXX
688ENABLE_LLVMC_DYNAMIC_PLUGINS
689ENABLE_LLVMC_DYNAMIC
690BINUTILS_INCDIR
691EXTRA_OPTIONS
692OPTIMIZE_OPTION
693ENABLE_CBE_PRINTF_A
694LLVM_ENUM_DISASSEMBLERS
695LLVM_ENUM_ASM_PARSERS
696LLVM_ENUM_ASM_PRINTERS
697LLVM_ENUM_TARGETS
698TARGETS_TO_BUILD
699ENABLE_PIC
700ENABLE_THREADS
701ENABLE_DOXYGEN
702TARGET_HAS_JIT
703JIT
704DEBUG_SYMBOLS
705DEBUG_RUNTIME
706EXPENSIVE_CHECKS
707ENABLE_EXPENSIVE_CHECKS
708DISABLE_ASSERTIONS
709ENABLE_PROFILING
710ENABLE_OPTIMIZED
711CVSBUILD
712BUILD_CXX
713BUILD_EXEEXT
714BUILD_CC
715LLVM_CROSS_COMPILING
716EGREP
717GREP
718CPP
719OBJEXT
720EXEEXT
721ac_ct_CC
722CPPFLAGS
723LDFLAGS
724CFLAGS
725CC
726ENDIAN
727ARCH
728LLVM_ON_WIN32
729LLVM_ON_UNIX
730NOLINKALL
731LINKALL
732TARGET_OS
733HOST_OS
734OS
735target_os
736target_vendor
737target_cpu
738target
739host_os
740host_vendor
741host_cpu
742host
743build_os
744build_vendor
745build_cpu
746build
747subdirs
748LLVM_COPYRIGHT
749target_alias
750host_alias
751build_alias
752LIBS
753ECHO_T
754ECHO_N
755ECHO_C
756DEFS
757mandir
758localedir
759libdir
760psdir
761pdfdir
762dvidir
763htmldir
764infodir
765docdir
766oldincludedir
767includedir
768localstatedir
769sharedstatedir
770sysconfdir
771datadir
772datarootdir
773libexecdir
774sbindir
775bindir
776program_transform_name
777prefix
778exec_prefix
779PACKAGE_URL
780PACKAGE_BUGREPORT
781PACKAGE_STRING
782PACKAGE_VERSION
783PACKAGE_TARNAME
784PACKAGE_NAME
785PATH_SEPARATOR
786SHELL'
John Criswell0c38eaf2003-09-10 15:17:25 +0000787ac_subst_files=''
Torok Edwin871384f2010-01-26 08:50:50 +0000788ac_user_opts='
789enable_option_checking
790enable_optimized
791enable_profiling
792enable_assertions
793enable_expensive_checks
794enable_debug_runtime
795enable_debug_symbols
796enable_jit
797enable_doxygen
798enable_threads
799enable_pic
800enable_targets
801enable_cbe_printf_a
802with_llvmgccdir
803with_llvmgcc
804with_llvmgxx
805with_optimize_option
806with_extra_options
807enable_bindings
808with_ocaml_libdir
809with_c_include_dirs
810with_cxx_include_root
811with_cxx_include_arch
812with_cxx_include_32bit_dir
813with_cxx_include_64bit_dir
814with_binutils_include
815enable_libffi
816enable_llvmc_dynamic
817enable_llvmc_dynamic_plugins
818with_tclinclude
819enable_ltdl_install
820with_udis86
821with_oprofile
822'
Reid Spencera773bd52006-08-04 18:18:08 +0000823 ac_precious_vars='build_alias
824host_alias
825target_alias
826CC
827CFLAGS
828LDFLAGS
Torok Edwin871384f2010-01-26 08:50:50 +0000829LIBS
Reid Spencera773bd52006-08-04 18:18:08 +0000830CPPFLAGS
831CPP
832CXX
833CXXFLAGS
Torok Edwin871384f2010-01-26 08:50:50 +0000834CCC'
Reid Spencera773bd52006-08-04 18:18:08 +0000835ac_subdirs_all='projects/sample
Reid Spencera773bd52006-08-04 18:18:08 +0000836projects/privbracket
Reid Spencer67bb0792007-01-17 02:14:46 +0000837projects/llvm-stacker
Anton Korobeynikov080d6872007-07-03 17:16:46 +0000838projects/llvm-test
Matthijs Kooijman5b80c662008-06-24 13:01:57 +0000839projects/test-suite
Reid Spencera773bd52006-08-04 18:18:08 +0000840projects/llvm-reopt
841projects/llvm-gcc
842projects/llvm-java
843projects/llvm-tv
844projects/llvm-poolalloc
Andrew Lenharth0af32252007-07-17 20:37:35 +0000845projects/poolalloc
Reid Spencera773bd52006-08-04 18:18:08 +0000846projects/llvm-kernel'
John Criswell7a73b802003-06-30 21:59:07 +0000847
848# Initialize some variables set by options.
849ac_init_help=
850ac_init_version=false
Torok Edwin871384f2010-01-26 08:50:50 +0000851ac_unrecognized_opts=
852ac_unrecognized_sep=
John Criswell7a73b802003-06-30 21:59:07 +0000853# The variables have the same names as the options, with
854# dashes changed to underlines.
855cache_file=/dev/null
856exec_prefix=NONE
857no_create=
858no_recursion=
859prefix=NONE
860program_prefix=NONE
861program_suffix=NONE
862program_transform_name=s,x,x,
863silent=
864site=
865srcdir=
866verbose=
867x_includes=NONE
868x_libraries=NONE
869
870# Installation directory options.
871# These are left unexpanded so users can "make install exec_prefix=/foo"
872# and all the variables that are supposed to be based on exec_prefix
873# by default will actually change.
874# Use braces instead of parens because sh, perl, etc. also accept them.
Reid Spencera773bd52006-08-04 18:18:08 +0000875# (The list follows the same order as the GNU Coding Standards.)
John Criswell7a73b802003-06-30 21:59:07 +0000876bindir='${exec_prefix}/bin'
877sbindir='${exec_prefix}/sbin'
878libexecdir='${exec_prefix}/libexec'
Reid Spencera773bd52006-08-04 18:18:08 +0000879datarootdir='${prefix}/share'
880datadir='${datarootdir}'
John Criswell7a73b802003-06-30 21:59:07 +0000881sysconfdir='${prefix}/etc'
882sharedstatedir='${prefix}/com'
883localstatedir='${prefix}/var'
John Criswell7a73b802003-06-30 21:59:07 +0000884includedir='${prefix}/include'
885oldincludedir='/usr/include'
Reid Spencera773bd52006-08-04 18:18:08 +0000886docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
887infodir='${datarootdir}/info'
888htmldir='${docdir}'
889dvidir='${docdir}'
890pdfdir='${docdir}'
891psdir='${docdir}'
892libdir='${exec_prefix}/lib'
893localedir='${datarootdir}/locale'
894mandir='${datarootdir}/man'
John Criswell7a73b802003-06-30 21:59:07 +0000895
896ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +0000897ac_dashdash=
John Criswell7a73b802003-06-30 21:59:07 +0000898for ac_option
899do
900 # If the previous option needs an argument, assign it.
901 if test -n "$ac_prev"; then
Reid Spencera773bd52006-08-04 18:18:08 +0000902 eval $ac_prev=\$ac_option
John Criswell7a73b802003-06-30 21:59:07 +0000903 ac_prev=
904 continue
905 fi
906
Reid Spencera773bd52006-08-04 18:18:08 +0000907 case $ac_option in
908 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
909 *) ac_optarg=yes ;;
910 esac
John Criswell7a73b802003-06-30 21:59:07 +0000911
912 # Accept the important Cygnus configure options, so we can diagnose typos.
913
Reid Spencera773bd52006-08-04 18:18:08 +0000914 case $ac_dashdash$ac_option in
915 --)
916 ac_dashdash=yes ;;
John Criswell7a73b802003-06-30 21:59:07 +0000917
918 -bindir | --bindir | --bindi | --bind | --bin | --bi)
919 ac_prev=bindir ;;
920 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
921 bindir=$ac_optarg ;;
922
923 -build | --build | --buil | --bui | --bu)
924 ac_prev=build_alias ;;
925 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
926 build_alias=$ac_optarg ;;
927
928 -cache-file | --cache-file | --cache-fil | --cache-fi \
929 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
930 ac_prev=cache_file ;;
931 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
932 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
933 cache_file=$ac_optarg ;;
934
935 --config-cache | -C)
936 cache_file=config.cache ;;
937
Reid Spencera773bd52006-08-04 18:18:08 +0000938 -datadir | --datadir | --datadi | --datad)
John Criswell7a73b802003-06-30 21:59:07 +0000939 ac_prev=datadir ;;
Reid Spencera773bd52006-08-04 18:18:08 +0000940 -datadir=* | --datadir=* | --datadi=* | --datad=*)
John Criswell7a73b802003-06-30 21:59:07 +0000941 datadir=$ac_optarg ;;
942
Reid Spencera773bd52006-08-04 18:18:08 +0000943 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
944 | --dataroo | --dataro | --datar)
945 ac_prev=datarootdir ;;
946 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
947 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
948 datarootdir=$ac_optarg ;;
949
John Criswell7a73b802003-06-30 21:59:07 +0000950 -disable-* | --disable-*)
Torok Edwin871384f2010-01-26 08:50:50 +0000951 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
John Criswell7a73b802003-06-30 21:59:07 +0000952 # Reject names that are not valid shell variable names.
Torok Edwin871384f2010-01-26 08:50:50 +0000953 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
954 as_fn_error "invalid feature name: $ac_useropt"
955 ac_useropt_orig=$ac_useropt
956 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
957 case $ac_user_opts in
958 *"
959"enable_$ac_useropt"
960"*) ;;
961 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
962 ac_unrecognized_sep=', ';;
963 esac
964 eval enable_$ac_useropt=no ;;
Reid Spencera773bd52006-08-04 18:18:08 +0000965
966 -docdir | --docdir | --docdi | --doc | --do)
967 ac_prev=docdir ;;
968 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
969 docdir=$ac_optarg ;;
970
971 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
972 ac_prev=dvidir ;;
973 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
974 dvidir=$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +0000975
976 -enable-* | --enable-*)
Torok Edwin871384f2010-01-26 08:50:50 +0000977 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
John Criswell7a73b802003-06-30 21:59:07 +0000978 # Reject names that are not valid shell variable names.
Torok Edwin871384f2010-01-26 08:50:50 +0000979 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
980 as_fn_error "invalid feature name: $ac_useropt"
981 ac_useropt_orig=$ac_useropt
982 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
983 case $ac_user_opts in
984 *"
985"enable_$ac_useropt"
986"*) ;;
987 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
988 ac_unrecognized_sep=', ';;
989 esac
990 eval enable_$ac_useropt=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +0000991
992 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
993 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
994 | --exec | --exe | --ex)
995 ac_prev=exec_prefix ;;
996 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
997 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
998 | --exec=* | --exe=* | --ex=*)
999 exec_prefix=$ac_optarg ;;
1000
1001 -gas | --gas | --ga | --g)
1002 # Obsolete; use --with-gas.
1003 with_gas=yes ;;
1004
1005 -help | --help | --hel | --he | -h)
1006 ac_init_help=long ;;
1007 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1008 ac_init_help=recursive ;;
1009 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1010 ac_init_help=short ;;
1011
1012 -host | --host | --hos | --ho)
1013 ac_prev=host_alias ;;
1014 -host=* | --host=* | --hos=* | --ho=*)
1015 host_alias=$ac_optarg ;;
1016
Reid Spencera773bd52006-08-04 18:18:08 +00001017 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1018 ac_prev=htmldir ;;
1019 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1020 | --ht=*)
1021 htmldir=$ac_optarg ;;
1022
John Criswell7a73b802003-06-30 21:59:07 +00001023 -includedir | --includedir | --includedi | --included | --include \
1024 | --includ | --inclu | --incl | --inc)
1025 ac_prev=includedir ;;
1026 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1027 | --includ=* | --inclu=* | --incl=* | --inc=*)
1028 includedir=$ac_optarg ;;
1029
1030 -infodir | --infodir | --infodi | --infod | --info | --inf)
1031 ac_prev=infodir ;;
1032 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1033 infodir=$ac_optarg ;;
1034
1035 -libdir | --libdir | --libdi | --libd)
1036 ac_prev=libdir ;;
1037 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1038 libdir=$ac_optarg ;;
1039
1040 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1041 | --libexe | --libex | --libe)
1042 ac_prev=libexecdir ;;
1043 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1044 | --libexe=* | --libex=* | --libe=*)
1045 libexecdir=$ac_optarg ;;
1046
Reid Spencera773bd52006-08-04 18:18:08 +00001047 -localedir | --localedir | --localedi | --localed | --locale)
1048 ac_prev=localedir ;;
1049 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1050 localedir=$ac_optarg ;;
1051
John Criswell7a73b802003-06-30 21:59:07 +00001052 -localstatedir | --localstatedir | --localstatedi | --localstated \
Reid Spencera773bd52006-08-04 18:18:08 +00001053 | --localstate | --localstat | --localsta | --localst | --locals)
John Criswell7a73b802003-06-30 21:59:07 +00001054 ac_prev=localstatedir ;;
1055 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Reid Spencera773bd52006-08-04 18:18:08 +00001056 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
John Criswell7a73b802003-06-30 21:59:07 +00001057 localstatedir=$ac_optarg ;;
1058
1059 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1060 ac_prev=mandir ;;
1061 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1062 mandir=$ac_optarg ;;
1063
1064 -nfp | --nfp | --nf)
1065 # Obsolete; use --without-fp.
1066 with_fp=no ;;
1067
1068 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1069 | --no-cr | --no-c | -n)
1070 no_create=yes ;;
1071
1072 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1073 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1074 no_recursion=yes ;;
1075
1076 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1077 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1078 | --oldin | --oldi | --old | --ol | --o)
1079 ac_prev=oldincludedir ;;
1080 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1081 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1082 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1083 oldincludedir=$ac_optarg ;;
1084
1085 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1086 ac_prev=prefix ;;
1087 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1088 prefix=$ac_optarg ;;
1089
1090 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1091 | --program-pre | --program-pr | --program-p)
1092 ac_prev=program_prefix ;;
1093 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1094 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1095 program_prefix=$ac_optarg ;;
1096
1097 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1098 | --program-suf | --program-su | --program-s)
1099 ac_prev=program_suffix ;;
1100 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1101 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1102 program_suffix=$ac_optarg ;;
1103
1104 -program-transform-name | --program-transform-name \
1105 | --program-transform-nam | --program-transform-na \
1106 | --program-transform-n | --program-transform- \
1107 | --program-transform | --program-transfor \
1108 | --program-transfo | --program-transf \
1109 | --program-trans | --program-tran \
1110 | --progr-tra | --program-tr | --program-t)
1111 ac_prev=program_transform_name ;;
1112 -program-transform-name=* | --program-transform-name=* \
1113 | --program-transform-nam=* | --program-transform-na=* \
1114 | --program-transform-n=* | --program-transform-=* \
1115 | --program-transform=* | --program-transfor=* \
1116 | --program-transfo=* | --program-transf=* \
1117 | --program-trans=* | --program-tran=* \
1118 | --progr-tra=* | --program-tr=* | --program-t=*)
1119 program_transform_name=$ac_optarg ;;
1120
Reid Spencera773bd52006-08-04 18:18:08 +00001121 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1122 ac_prev=pdfdir ;;
1123 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1124 pdfdir=$ac_optarg ;;
1125
1126 -psdir | --psdir | --psdi | --psd | --ps)
1127 ac_prev=psdir ;;
1128 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1129 psdir=$ac_optarg ;;
1130
John Criswell7a73b802003-06-30 21:59:07 +00001131 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1132 | -silent | --silent | --silen | --sile | --sil)
1133 silent=yes ;;
1134
1135 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1136 ac_prev=sbindir ;;
1137 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1138 | --sbi=* | --sb=*)
1139 sbindir=$ac_optarg ;;
1140
1141 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1142 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1143 | --sharedst | --shareds | --shared | --share | --shar \
1144 | --sha | --sh)
1145 ac_prev=sharedstatedir ;;
1146 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1147 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1148 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1149 | --sha=* | --sh=*)
1150 sharedstatedir=$ac_optarg ;;
1151
1152 -site | --site | --sit)
1153 ac_prev=site ;;
1154 -site=* | --site=* | --sit=*)
1155 site=$ac_optarg ;;
1156
1157 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1158 ac_prev=srcdir ;;
1159 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1160 srcdir=$ac_optarg ;;
1161
1162 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1163 | --syscon | --sysco | --sysc | --sys | --sy)
1164 ac_prev=sysconfdir ;;
1165 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1166 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1167 sysconfdir=$ac_optarg ;;
1168
1169 -target | --target | --targe | --targ | --tar | --ta | --t)
1170 ac_prev=target_alias ;;
1171 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1172 target_alias=$ac_optarg ;;
1173
1174 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1175 verbose=yes ;;
1176
1177 -version | --version | --versio | --versi | --vers | -V)
1178 ac_init_version=: ;;
1179
1180 -with-* | --with-*)
Torok Edwin871384f2010-01-26 08:50:50 +00001181 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
John Criswell7a73b802003-06-30 21:59:07 +00001182 # Reject names that are not valid shell variable names.
Torok Edwin871384f2010-01-26 08:50:50 +00001183 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1184 as_fn_error "invalid package name: $ac_useropt"
1185 ac_useropt_orig=$ac_useropt
1186 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1187 case $ac_user_opts in
1188 *"
1189"with_$ac_useropt"
1190"*) ;;
1191 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1192 ac_unrecognized_sep=', ';;
1193 esac
1194 eval with_$ac_useropt=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001195
1196 -without-* | --without-*)
Torok Edwin871384f2010-01-26 08:50:50 +00001197 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
John Criswell7a73b802003-06-30 21:59:07 +00001198 # Reject names that are not valid shell variable names.
Torok Edwin871384f2010-01-26 08:50:50 +00001199 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1200 as_fn_error "invalid package name: $ac_useropt"
1201 ac_useropt_orig=$ac_useropt
1202 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1203 case $ac_user_opts in
1204 *"
1205"with_$ac_useropt"
1206"*) ;;
1207 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1208 ac_unrecognized_sep=', ';;
1209 esac
1210 eval with_$ac_useropt=no ;;
John Criswell7a73b802003-06-30 21:59:07 +00001211
1212 --x)
1213 # Obsolete; use --with-x.
1214 with_x=yes ;;
1215
1216 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1217 | --x-incl | --x-inc | --x-in | --x-i)
1218 ac_prev=x_includes ;;
1219 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1220 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1221 x_includes=$ac_optarg ;;
1222
1223 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1224 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1225 ac_prev=x_libraries ;;
1226 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1227 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1228 x_libraries=$ac_optarg ;;
1229
Torok Edwin871384f2010-01-26 08:50:50 +00001230 -*) as_fn_error "unrecognized option: \`$ac_option'
1231Try \`$0 --help' for more information."
John Criswell7a73b802003-06-30 21:59:07 +00001232 ;;
1233
1234 *=*)
1235 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1236 # Reject names that are not valid shell variable names.
Torok Edwin871384f2010-01-26 08:50:50 +00001237 case $ac_envvar in #(
1238 '' | [0-9]* | *[!_$as_cr_alnum]* )
1239 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1240 esac
Reid Spencera773bd52006-08-04 18:18:08 +00001241 eval $ac_envvar=\$ac_optarg
John Criswell7a73b802003-06-30 21:59:07 +00001242 export $ac_envvar ;;
1243
1244 *)
1245 # FIXME: should be removed in autoconf 3.0.
Torok Edwin871384f2010-01-26 08:50:50 +00001246 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001247 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Torok Edwin871384f2010-01-26 08:50:50 +00001248 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001249 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1250 ;;
1251
1252 esac
1253done
1254
1255if test -n "$ac_prev"; then
1256 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Torok Edwin871384f2010-01-26 08:50:50 +00001257 as_fn_error "missing argument to $ac_option"
John Criswell7a73b802003-06-30 21:59:07 +00001258fi
1259
Torok Edwin871384f2010-01-26 08:50:50 +00001260if test -n "$ac_unrecognized_opts"; then
1261 case $enable_option_checking in
1262 no) ;;
1263 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1264 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1265 esac
1266fi
1267
1268# Check all directory arguments for consistency.
Reid Spencera773bd52006-08-04 18:18:08 +00001269for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1270 datadir sysconfdir sharedstatedir localstatedir includedir \
1271 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1272 libdir localedir mandir
John Criswell7a73b802003-06-30 21:59:07 +00001273do
Reid Spencera773bd52006-08-04 18:18:08 +00001274 eval ac_val=\$$ac_var
Torok Edwin871384f2010-01-26 08:50:50 +00001275 # Remove trailing slashes.
1276 case $ac_val in
1277 */ )
1278 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1279 eval $ac_var=\$ac_val;;
1280 esac
1281 # Be sure to have absolute directory names.
John Criswell7a73b802003-06-30 21:59:07 +00001282 case $ac_val in
Reid Spencera773bd52006-08-04 18:18:08 +00001283 [\\/$]* | ?:[\\/]* ) continue;;
1284 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
John Criswell7a73b802003-06-30 21:59:07 +00001285 esac
Torok Edwin871384f2010-01-26 08:50:50 +00001286 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
John Criswell7a73b802003-06-30 21:59:07 +00001287done
1288
1289# There might be people who depend on the old broken behavior: `$host'
1290# used to hold the argument of --host etc.
1291# FIXME: To remove some day.
1292build=$build_alias
1293host=$host_alias
1294target=$target_alias
1295
1296# FIXME: To remove some day.
1297if test "x$host_alias" != x; then
1298 if test "x$build_alias" = x; then
1299 cross_compiling=maybe
Torok Edwin871384f2010-01-26 08:50:50 +00001300 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
John Criswell7a73b802003-06-30 21:59:07 +00001301 If a cross compiler is detected then cross compile mode will be used." >&2
1302 elif test "x$build_alias" != "x$host_alias"; then
1303 cross_compiling=yes
1304 fi
1305fi
1306
1307ac_tool_prefix=
1308test -n "$host_alias" && ac_tool_prefix=$host_alias-
1309
1310test "$silent" = yes && exec 6>/dev/null
1311
1312
Reid Spencera773bd52006-08-04 18:18:08 +00001313ac_pwd=`pwd` && test -n "$ac_pwd" &&
1314ac_ls_di=`ls -di .` &&
1315ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Torok Edwin871384f2010-01-26 08:50:50 +00001316 as_fn_error "working directory cannot be determined"
Reid Spencera773bd52006-08-04 18:18:08 +00001317test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Torok Edwin871384f2010-01-26 08:50:50 +00001318 as_fn_error "pwd does not report name of working directory"
Reid Spencera773bd52006-08-04 18:18:08 +00001319
1320
John Criswell7a73b802003-06-30 21:59:07 +00001321# Find the source files, if location was not specified.
1322if test -z "$srcdir"; then
1323 ac_srcdir_defaulted=yes
Reid Spencera773bd52006-08-04 18:18:08 +00001324 # Try the directory containing this script, then the parent directory.
Torok Edwin871384f2010-01-26 08:50:50 +00001325 ac_confdir=`$as_dirname -- "$as_myself" ||
1326$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1327 X"$as_myself" : 'X\(//\)[^/]' \| \
1328 X"$as_myself" : 'X\(//\)$' \| \
1329 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1330$as_echo X"$as_myself" |
Reid Spencera773bd52006-08-04 18:18:08 +00001331 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1332 s//\1/
1333 q
1334 }
1335 /^X\(\/\/\)[^/].*/{
1336 s//\1/
1337 q
1338 }
1339 /^X\(\/\/\)$/{
1340 s//\1/
1341 q
1342 }
1343 /^X\(\/\).*/{
1344 s//\1/
1345 q
1346 }
1347 s/.*/./; q'`
John Criswell7a73b802003-06-30 21:59:07 +00001348 srcdir=$ac_confdir
Reid Spencera773bd52006-08-04 18:18:08 +00001349 if test ! -r "$srcdir/$ac_unique_file"; then
John Criswell7a73b802003-06-30 21:59:07 +00001350 srcdir=..
1351 fi
1352else
1353 ac_srcdir_defaulted=no
1354fi
Reid Spencera773bd52006-08-04 18:18:08 +00001355if test ! -r "$srcdir/$ac_unique_file"; then
1356 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Torok Edwin871384f2010-01-26 08:50:50 +00001357 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
John Criswell7a73b802003-06-30 21:59:07 +00001358fi
Reid Spencera773bd52006-08-04 18:18:08 +00001359ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1360ac_abs_confdir=`(
Torok Edwin871384f2010-01-26 08:50:50 +00001361 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
Reid Spencera773bd52006-08-04 18:18:08 +00001362 pwd)`
1363# When building in place, set srcdir=.
1364if test "$ac_abs_confdir" = "$ac_pwd"; then
1365 srcdir=.
1366fi
1367# Remove unnecessary trailing slashes from srcdir.
1368# Double slashes in file names in object file debugging info
1369# mess up M-x gdb in Emacs.
1370case $srcdir in
1371*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1372esac
1373for ac_var in $ac_precious_vars; do
1374 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1375 eval ac_env_${ac_var}_value=\$${ac_var}
1376 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1377 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1378done
John Criswell7a73b802003-06-30 21:59:07 +00001379
1380#
1381# Report the --help message.
1382#
1383if test "$ac_init_help" = "long"; then
1384 # Omit some internal or obsolete options to make the list less imposing.
1385 # This message is too long to be a string in the A/UX 3.1 sh.
1386 cat <<_ACEOF
Tanya Lattner953042b2009-08-22 04:37:30 +00001387\`configure' configures llvm 2.7svn to adapt to many kinds of systems.
John Criswell7a73b802003-06-30 21:59:07 +00001388
1389Usage: $0 [OPTION]... [VAR=VALUE]...
1390
1391To assign environment variables (e.g., CC, CFLAGS...), specify them as
1392VAR=VALUE. See below for descriptions of some of the useful variables.
1393
1394Defaults for the options are specified in brackets.
1395
1396Configuration:
1397 -h, --help display this help and exit
1398 --help=short display options specific to this package
1399 --help=recursive display the short help of all the included packages
1400 -V, --version display version information and exit
1401 -q, --quiet, --silent do not print \`checking...' messages
1402 --cache-file=FILE cache test results in FILE [disabled]
1403 -C, --config-cache alias for \`--cache-file=config.cache'
1404 -n, --no-create do not create output files
1405 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1406
John Criswell7a73b802003-06-30 21:59:07 +00001407Installation directories:
1408 --prefix=PREFIX install architecture-independent files in PREFIX
Torok Edwin871384f2010-01-26 08:50:50 +00001409 [$ac_default_prefix]
John Criswell7a73b802003-06-30 21:59:07 +00001410 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Torok Edwin871384f2010-01-26 08:50:50 +00001411 [PREFIX]
John Criswell7a73b802003-06-30 21:59:07 +00001412
1413By default, \`make install' will install all the files in
1414\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1415an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1416for instance \`--prefix=\$HOME'.
1417
1418For better control, use the options below.
1419
1420Fine tuning of the installation directories:
Torok Edwin871384f2010-01-26 08:50:50 +00001421 --bindir=DIR user executables [EPREFIX/bin]
1422 --sbindir=DIR system admin executables [EPREFIX/sbin]
1423 --libexecdir=DIR program executables [EPREFIX/libexec]
1424 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1425 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1426 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1427 --libdir=DIR object code libraries [EPREFIX/lib]
1428 --includedir=DIR C header files [PREFIX/include]
1429 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1430 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1431 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1432 --infodir=DIR info documentation [DATAROOTDIR/info]
1433 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1434 --mandir=DIR man documentation [DATAROOTDIR/man]
1435 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1436 --htmldir=DIR html documentation [DOCDIR]
1437 --dvidir=DIR dvi documentation [DOCDIR]
1438 --pdfdir=DIR pdf documentation [DOCDIR]
1439 --psdir=DIR ps documentation [DOCDIR]
John Criswell7a73b802003-06-30 21:59:07 +00001440_ACEOF
1441
1442 cat <<\_ACEOF
1443
1444System types:
1445 --build=BUILD configure for building on BUILD [guessed]
1446 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1447 --target=TARGET configure for building compilers for TARGET [HOST]
1448_ACEOF
1449fi
1450
1451if test -n "$ac_init_help"; then
1452 case $ac_init_help in
Tanya Lattner953042b2009-08-22 04:37:30 +00001453 short | recursive ) echo "Configuration of llvm 2.7svn:";;
John Criswell7a73b802003-06-30 21:59:07 +00001454 esac
1455 cat <<\_ACEOF
1456
1457Optional Features:
Torok Edwin871384f2010-01-26 08:50:50 +00001458 --disable-option-checking ignore unrecognized --enable/--with options
John Criswell7a73b802003-06-30 21:59:07 +00001459 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1460 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001461 --enable-optimized Compile with optimizations enabled (default is NO)
1462 --enable-profiling Compile with profiling enabled (default is NO)
1463 --enable-assertions Compile with assertion checks enabled (default is
1464 YES)
David Greenea696d242007-06-28 19:36:08 +00001465 --enable-expensive-checks
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001466 Compile with expensive debug checks enabled (default
1467 is NO)
1468 --enable-debug-runtime Build runtime libs with debug symbols (default is
1469 NO)
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00001470 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1471 optimization is on and YES if it's off)
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001472 --enable-jit Enable Just In Time Compiling (default is YES)
Reid Spencer1f319422004-11-29 04:56:35 +00001473 --enable-doxygen Build doxygen documentation (default is NO)
Reid Spencer0a262ba2005-08-24 10:07:20 +00001474 --enable-threads Use threads if available (default is YES)
Reid Spencer89b0d992006-12-16 22:07:52 +00001475 --enable-pic Build LLVM with Position Independent Code (default
Nick Lewycky5d249572009-02-19 06:18:56 +00001476 is YES)
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00001477 --enable-targets Build specific host targets: all or
1478 target1,target2,... Valid targets are: host, x86,
1479 x86_64, sparc, powerpc, alpha, arm, mips, spu,
1480 pic16, xcore, msp430, systemz, blackfin, cbe, msil,
1481 and cpp (default=all)
Reid Spencer65c5d752006-11-05 17:08:18 +00001482 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1483 %a (default is YES)
Gordon Henriksenc0efff82007-10-02 09:50:32 +00001484 --enable-bindings Build specific language bindings:
1485 all,auto,none,{binding-name} (default=auto)
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001486 --enable-libffi Check for the presence of libffi (default is YES)
Mikhail Glushenkovd0f27c42009-07-04 14:23:08 +00001487 --enable-llvmc-dynamic Link LLVMC dynamically (default is NO, unless on
1488 Win32)
1489 --enable-llvmc-dynamic-plugins
1490 Enable dynamic LLVMC plugins (default is YES)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00001491 --enable-ltdl-install install libltdl
John Criswell7a73b802003-06-30 21:59:07 +00001492
1493Optional Packages:
1494 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1495 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Reid Spencer59473af2004-12-25 07:31:29 +00001496 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1497 searches PATH)
Devang Patel5d28b882007-12-04 22:54:47 +00001498 --with-llvmgcc Specify location of llvm-gcc driver (default
1499 searches PATH)
1500 --with-llvmgxx Specify location of llvm-g++ driver (default
1501 searches PATH)
Daniel Dunbar1fce9482009-11-04 04:32:50 +00001502 --with-optimize-option Select the compiler options to use for optimized
1503 builds
Duncan Sandse4eb2d22009-05-13 13:13:18 +00001504 --with-extra-options Specify additional options to compile LLVM with
Gordon Henriksenf0915682007-10-02 16:42:22 +00001505 --with-ocaml-libdir Specify install location for ocaml bindings (default
1506 is stdlib)
Rafael Espindola7f9ec912009-11-12 05:46:09 +00001507 --with-c-include-dirs Colon separated list of directories clang will
1508 search for headers
Rafael Espindola420d23c2009-11-16 19:46:55 +00001509 --with-cxx-include-root Directory with the libstdc++ headers.
1510 --with-cxx-include-arch Architecture of the libstdc++ headers.
1511 --with-cxx-include-32bit-dir
1512 32 bit multilib dir.
1513 --with-cxx-include-64bit-dir
1514 64 bit multilib directory.
Nick Lewyckye792b1d2009-02-03 07:10:30 +00001515 --with-binutils-include Specify path to binutils/include/ containing
1516 plugin-api.h file for gold plugin.
Reid Spencer0fcb9412004-11-30 08:11:54 +00001517 --with-tclinclude directory where tcl headers are
Reid Spencerb6a7aa72007-01-19 17:41:47 +00001518 --with-udis86=<path> Use udis86 external x86 disassembler library
Jeffrey Yasskina93e7702009-07-10 21:09:55 +00001519 --with-oprofile=<prefix>
1520 Tell OProfile >= 0.9.4 how to symbolize JIT output
John Criswell7a73b802003-06-30 21:59:07 +00001521
1522Some influential environment variables:
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001523 CC C compiler command
1524 CFLAGS C compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001525 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1526 nonstandard directory <lib dir>
Torok Edwin871384f2010-01-26 08:50:50 +00001527 LIBS libraries to pass to the linker, e.g. -l<library>
1528 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
Reid Spencera773bd52006-08-04 18:18:08 +00001529 you have headers in a nonstandard directory <include dir>
John Criswell7a73b802003-06-30 21:59:07 +00001530 CPP C preprocessor
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001531 CXX C++ compiler command
1532 CXXFLAGS C++ compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001533
1534Use these variables to override the choices made by `configure' or to help
1535it to find libraries and programs with nonstandard names/locations.
1536
1537Report bugs to <llvmbugs@cs.uiuc.edu>.
1538_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001539ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +00001540fi
1541
1542if test "$ac_init_help" = "recursive"; then
1543 # If there are subdirs, report their specific --help.
John Criswell7a73b802003-06-30 21:59:07 +00001544 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Torok Edwin871384f2010-01-26 08:50:50 +00001545 test -d "$ac_dir" ||
1546 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1547 continue
John Criswell7a73b802003-06-30 21:59:07 +00001548 ac_builddir=.
1549
Reid Spencera773bd52006-08-04 18:18:08 +00001550case "$ac_dir" in
1551.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1552*)
Torok Edwin871384f2010-01-26 08:50:50 +00001553 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Reid Spencera773bd52006-08-04 18:18:08 +00001554 # A ".." for each directory in $ac_dir_suffix.
Torok Edwin871384f2010-01-26 08:50:50 +00001555 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Reid Spencera773bd52006-08-04 18:18:08 +00001556 case $ac_top_builddir_sub in
1557 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1558 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1559 esac ;;
1560esac
1561ac_abs_top_builddir=$ac_pwd
1562ac_abs_builddir=$ac_pwd$ac_dir_suffix
1563# for backward compatibility:
1564ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +00001565
1566case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +00001567 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +00001568 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +00001569 ac_top_srcdir=$ac_top_builddir_sub
1570 ac_abs_top_srcdir=$ac_pwd ;;
1571 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +00001572 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +00001573 ac_top_srcdir=$srcdir
1574 ac_abs_top_srcdir=$srcdir ;;
1575 *) # Relative name.
1576 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1577 ac_top_srcdir=$ac_top_build_prefix$srcdir
1578 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +00001579esac
Reid Spencera773bd52006-08-04 18:18:08 +00001580ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +00001581
Reid Spencera773bd52006-08-04 18:18:08 +00001582 cd "$ac_dir" || { ac_status=$?; continue; }
1583 # Check for guested configure.
1584 if test -f "$ac_srcdir/configure.gnu"; then
1585 echo &&
1586 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1587 elif test -f "$ac_srcdir/configure"; then
1588 echo &&
1589 $SHELL "$ac_srcdir/configure" --help=recursive
John Criswell7a73b802003-06-30 21:59:07 +00001590 else
Torok Edwin871384f2010-01-26 08:50:50 +00001591 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Reid Spencera773bd52006-08-04 18:18:08 +00001592 fi || ac_status=$?
1593 cd "$ac_pwd" || { ac_status=$?; break; }
John Criswell7a73b802003-06-30 21:59:07 +00001594 done
1595fi
1596
Reid Spencera773bd52006-08-04 18:18:08 +00001597test -n "$ac_init_help" && exit $ac_status
John Criswell7a73b802003-06-30 21:59:07 +00001598if $ac_init_version; then
1599 cat <<\_ACEOF
Tanya Lattner953042b2009-08-22 04:37:30 +00001600llvm configure 2.7svn
Torok Edwin871384f2010-01-26 08:50:50 +00001601generated by GNU Autoconf 2.65
John Criswell7a73b802003-06-30 21:59:07 +00001602
Torok Edwin871384f2010-01-26 08:50:50 +00001603Copyright (C) 2009 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00001604This configure script is free software; the Free Software Foundation
1605gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001606
Tanya Lattnerc2264592009-08-22 21:01:26 +00001607Copyright (c) 2003-2009 University of Illinois at Urbana-Champaign.
John Criswell7a73b802003-06-30 21:59:07 +00001608_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001609 exit
John Criswell7a73b802003-06-30 21:59:07 +00001610fi
Torok Edwin871384f2010-01-26 08:50:50 +00001611
1612## ------------------------ ##
1613## Autoconf initialization. ##
1614## ------------------------ ##
1615
1616# ac_fn_c_try_compile LINENO
1617# --------------------------
1618# Try to compile conftest.$ac_ext, and return whether this succeeded.
1619ac_fn_c_try_compile ()
1620{
1621 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1622 rm -f conftest.$ac_objext
1623 if { { ac_try="$ac_compile"
1624case "(($ac_try" in
1625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1626 *) ac_try_echo=$ac_try;;
1627esac
1628eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1629$as_echo "$ac_try_echo"; } >&5
1630 (eval "$ac_compile") 2>conftest.err
1631 ac_status=$?
1632 if test -s conftest.err; then
1633 grep -v '^ *+' conftest.err >conftest.er1
1634 cat conftest.er1 >&5
1635 mv -f conftest.er1 conftest.err
1636 fi
1637 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1638 test $ac_status = 0; } && {
1639 test -z "$ac_c_werror_flag" ||
1640 test ! -s conftest.err
1641 } && test -s conftest.$ac_objext; then :
1642 ac_retval=0
1643else
1644 $as_echo "$as_me: failed program was:" >&5
1645sed 's/^/| /' conftest.$ac_ext >&5
1646
1647 ac_retval=1
1648fi
1649 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1650 as_fn_set_status $ac_retval
1651
1652} # ac_fn_c_try_compile
1653
1654# ac_fn_c_try_run LINENO
1655# ----------------------
1656# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1657# that executables *can* be run.
1658ac_fn_c_try_run ()
1659{
1660 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1661 if { { ac_try="$ac_link"
1662case "(($ac_try" in
1663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1664 *) ac_try_echo=$ac_try;;
1665esac
1666eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1667$as_echo "$ac_try_echo"; } >&5
1668 (eval "$ac_link") 2>&5
1669 ac_status=$?
1670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1671 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1672 { { case "(($ac_try" in
1673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1674 *) ac_try_echo=$ac_try;;
1675esac
1676eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1677$as_echo "$ac_try_echo"; } >&5
1678 (eval "$ac_try") 2>&5
1679 ac_status=$?
1680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1681 test $ac_status = 0; }; }; then :
1682 ac_retval=0
1683else
1684 $as_echo "$as_me: program exited with status $ac_status" >&5
1685 $as_echo "$as_me: failed program was:" >&5
1686sed 's/^/| /' conftest.$ac_ext >&5
1687
1688 ac_retval=$ac_status
1689fi
1690 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1691 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1692 as_fn_set_status $ac_retval
1693
1694} # ac_fn_c_try_run
1695
1696# ac_fn_c_try_cpp LINENO
1697# ----------------------
1698# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1699ac_fn_c_try_cpp ()
1700{
1701 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1702 if { { ac_try="$ac_cpp conftest.$ac_ext"
1703case "(($ac_try" in
1704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1705 *) ac_try_echo=$ac_try;;
1706esac
1707eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1708$as_echo "$ac_try_echo"; } >&5
1709 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1710 ac_status=$?
1711 if test -s conftest.err; then
1712 grep -v '^ *+' conftest.err >conftest.er1
1713 cat conftest.er1 >&5
1714 mv -f conftest.er1 conftest.err
1715 fi
1716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1717 test $ac_status = 0; } >/dev/null && {
1718 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1719 test ! -s conftest.err
1720 }; then :
1721 ac_retval=0
1722else
1723 $as_echo "$as_me: failed program was:" >&5
1724sed 's/^/| /' conftest.$ac_ext >&5
1725
1726 ac_retval=1
1727fi
1728 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1729 as_fn_set_status $ac_retval
1730
1731} # ac_fn_c_try_cpp
1732
1733# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1734# -------------------------------------------------------
1735# Tests whether HEADER exists and can be compiled using the include files in
1736# INCLUDES, setting the cache variable VAR accordingly.
1737ac_fn_c_check_header_compile ()
1738{
1739 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1741$as_echo_n "checking for $2... " >&6; }
1742if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1743 $as_echo_n "(cached) " >&6
1744else
1745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1746/* end confdefs.h. */
1747$4
1748#include <$2>
1749_ACEOF
1750if ac_fn_c_try_compile "$LINENO"; then :
1751 eval "$3=yes"
1752else
1753 eval "$3=no"
1754fi
1755rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1756fi
1757eval ac_res=\$$3
1758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1759$as_echo "$ac_res" >&6; }
1760 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1761
1762} # ac_fn_c_check_header_compile
1763
1764# ac_fn_cxx_try_compile LINENO
1765# ----------------------------
1766# Try to compile conftest.$ac_ext, and return whether this succeeded.
1767ac_fn_cxx_try_compile ()
1768{
1769 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1770 rm -f conftest.$ac_objext
1771 if { { ac_try="$ac_compile"
1772case "(($ac_try" in
1773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1774 *) ac_try_echo=$ac_try;;
1775esac
1776eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1777$as_echo "$ac_try_echo"; } >&5
1778 (eval "$ac_compile") 2>conftest.err
1779 ac_status=$?
1780 if test -s conftest.err; then
1781 grep -v '^ *+' conftest.err >conftest.er1
1782 cat conftest.er1 >&5
1783 mv -f conftest.er1 conftest.err
1784 fi
1785 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1786 test $ac_status = 0; } && {
1787 test -z "$ac_cxx_werror_flag" ||
1788 test ! -s conftest.err
1789 } && test -s conftest.$ac_objext; then :
1790 ac_retval=0
1791else
1792 $as_echo "$as_me: failed program was:" >&5
1793sed 's/^/| /' conftest.$ac_ext >&5
1794
1795 ac_retval=1
1796fi
1797 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1798 as_fn_set_status $ac_retval
1799
1800} # ac_fn_cxx_try_compile
1801
1802# ac_fn_c_try_link LINENO
1803# -----------------------
1804# Try to link conftest.$ac_ext, and return whether this succeeded.
1805ac_fn_c_try_link ()
1806{
1807 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1808 rm -f conftest.$ac_objext conftest$ac_exeext
1809 if { { ac_try="$ac_link"
1810case "(($ac_try" in
1811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1812 *) ac_try_echo=$ac_try;;
1813esac
1814eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1815$as_echo "$ac_try_echo"; } >&5
1816 (eval "$ac_link") 2>conftest.err
1817 ac_status=$?
1818 if test -s conftest.err; then
1819 grep -v '^ *+' conftest.err >conftest.er1
1820 cat conftest.er1 >&5
1821 mv -f conftest.er1 conftest.err
1822 fi
1823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1824 test $ac_status = 0; } && {
1825 test -z "$ac_c_werror_flag" ||
1826 test ! -s conftest.err
1827 } && test -s conftest$ac_exeext && {
1828 test "$cross_compiling" = yes ||
1829 $as_test_x conftest$ac_exeext
1830 }; then :
1831 ac_retval=0
1832else
1833 $as_echo "$as_me: failed program was:" >&5
1834sed 's/^/| /' conftest.$ac_ext >&5
1835
1836 ac_retval=1
1837fi
1838 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1839 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1840 # interfere with the next link command; also delete a directory that is
1841 # left behind by Apple's compiler. We do this before executing the actions.
1842 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1843 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1844 as_fn_set_status $ac_retval
1845
1846} # ac_fn_c_try_link
1847
1848# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1849# -------------------------------------------------------
1850# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1851# the include files in INCLUDES and setting the cache variable VAR
1852# accordingly.
1853ac_fn_c_check_header_mongrel ()
1854{
1855 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1856 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1858$as_echo_n "checking for $2... " >&6; }
1859if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1860 $as_echo_n "(cached) " >&6
1861fi
1862eval ac_res=\$$3
1863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1864$as_echo "$ac_res" >&6; }
1865else
1866 # Is the header compilable?
1867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1868$as_echo_n "checking $2 usability... " >&6; }
1869cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1870/* end confdefs.h. */
1871$4
1872#include <$2>
1873_ACEOF
1874if ac_fn_c_try_compile "$LINENO"; then :
1875 ac_header_compiler=yes
1876else
1877 ac_header_compiler=no
1878fi
1879rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1881$as_echo "$ac_header_compiler" >&6; }
1882
1883# Is the header present?
1884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1885$as_echo_n "checking $2 presence... " >&6; }
1886cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1887/* end confdefs.h. */
1888#include <$2>
1889_ACEOF
1890if ac_fn_c_try_cpp "$LINENO"; then :
1891 ac_header_preproc=yes
1892else
1893 ac_header_preproc=no
1894fi
1895rm -f conftest.err conftest.$ac_ext
1896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1897$as_echo "$ac_header_preproc" >&6; }
1898
1899# So? What about this header?
1900case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1901 yes:no: )
1902 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1903$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1904 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1905$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1906 ;;
1907 no:yes:* )
1908 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1909$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1910 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1911$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1912 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1913$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1914 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1915$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1916 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1917$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1918( cat <<\_ASBOX
1919## ----------------------------------- ##
1920## Report this to llvmbugs@cs.uiuc.edu ##
1921## ----------------------------------- ##
1922_ASBOX
1923 ) | sed "s/^/$as_me: WARNING: /" >&2
1924 ;;
1925esac
1926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1927$as_echo_n "checking for $2... " >&6; }
1928if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1929 $as_echo_n "(cached) " >&6
1930else
1931 eval "$3=\$ac_header_compiler"
1932fi
1933eval ac_res=\$$3
1934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1935$as_echo "$ac_res" >&6; }
1936fi
1937 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1938
1939} # ac_fn_c_check_header_mongrel
1940
1941# ac_fn_c_check_func LINENO FUNC VAR
1942# ----------------------------------
1943# Tests whether FUNC exists, setting the cache variable VAR accordingly
1944ac_fn_c_check_func ()
1945{
1946 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1948$as_echo_n "checking for $2... " >&6; }
1949if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1950 $as_echo_n "(cached) " >&6
1951else
1952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1953/* end confdefs.h. */
1954/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1955 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1956#define $2 innocuous_$2
1957
1958/* System header to define __stub macros and hopefully few prototypes,
1959 which can conflict with char $2 (); below.
1960 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1961 <limits.h> exists even on freestanding compilers. */
1962
1963#ifdef __STDC__
1964# include <limits.h>
1965#else
1966# include <assert.h>
1967#endif
1968
1969#undef $2
1970
1971/* Override any GCC internal prototype to avoid an error.
1972 Use char because int might match the return type of a GCC
1973 builtin and then its argument prototype would still apply. */
1974#ifdef __cplusplus
1975extern "C"
1976#endif
1977char $2 ();
1978/* The GNU C library defines this for functions which it implements
1979 to always fail with ENOSYS. Some functions are actually named
1980 something starting with __ and the normal name is an alias. */
1981#if defined __stub_$2 || defined __stub___$2
1982choke me
1983#endif
1984
1985int
1986main ()
1987{
1988return $2 ();
1989 ;
1990 return 0;
1991}
1992_ACEOF
1993if ac_fn_c_try_link "$LINENO"; then :
1994 eval "$3=yes"
1995else
1996 eval "$3=no"
1997fi
1998rm -f core conftest.err conftest.$ac_objext \
1999 conftest$ac_exeext conftest.$ac_ext
2000fi
2001eval ac_res=\$$3
2002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2003$as_echo "$ac_res" >&6; }
2004 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2005
2006} # ac_fn_c_check_func
2007
2008# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2009# -------------------------------------------
2010# Tests whether TYPE exists after having included INCLUDES, setting cache
2011# variable VAR accordingly.
2012ac_fn_c_check_type ()
2013{
2014 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2016$as_echo_n "checking for $2... " >&6; }
2017if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2018 $as_echo_n "(cached) " >&6
2019else
2020 eval "$3=no"
2021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2022/* end confdefs.h. */
2023$4
2024int
2025main ()
2026{
2027if (sizeof ($2))
2028 return 0;
2029 ;
2030 return 0;
2031}
2032_ACEOF
2033if ac_fn_c_try_compile "$LINENO"; then :
2034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2035/* end confdefs.h. */
2036$4
2037int
2038main ()
2039{
2040if (sizeof (($2)))
2041 return 0;
2042 ;
2043 return 0;
2044}
2045_ACEOF
2046if ac_fn_c_try_compile "$LINENO"; then :
2047
2048else
2049 eval "$3=yes"
2050fi
2051rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2052fi
2053rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2054fi
2055eval ac_res=\$$3
2056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2057$as_echo "$ac_res" >&6; }
2058 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2059
2060} # ac_fn_c_check_type
2061
2062# ac_fn_cxx_try_run LINENO
2063# ------------------------
2064# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2065# that executables *can* be run.
2066ac_fn_cxx_try_run ()
2067{
2068 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2069 if { { ac_try="$ac_link"
2070case "(($ac_try" in
2071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2072 *) ac_try_echo=$ac_try;;
2073esac
2074eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2075$as_echo "$ac_try_echo"; } >&5
2076 (eval "$ac_link") 2>&5
2077 ac_status=$?
2078 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2079 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2080 { { case "(($ac_try" in
2081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2082 *) ac_try_echo=$ac_try;;
2083esac
2084eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2085$as_echo "$ac_try_echo"; } >&5
2086 (eval "$ac_try") 2>&5
2087 ac_status=$?
2088 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2089 test $ac_status = 0; }; }; then :
2090 ac_retval=0
2091else
2092 $as_echo "$as_me: program exited with status $ac_status" >&5
2093 $as_echo "$as_me: failed program was:" >&5
2094sed 's/^/| /' conftest.$ac_ext >&5
2095
2096 ac_retval=$ac_status
2097fi
2098 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2099 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2100 as_fn_set_status $ac_retval
2101
2102} # ac_fn_cxx_try_run
Reid Spencera773bd52006-08-04 18:18:08 +00002103cat >config.log <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00002104This file contains any messages produced by compilers while
2105running configure, to aid debugging if configure makes a mistake.
2106
Tanya Lattner953042b2009-08-22 04:37:30 +00002107It was created by llvm $as_me 2.7svn, which was
Torok Edwin871384f2010-01-26 08:50:50 +00002108generated by GNU Autoconf 2.65. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00002109
2110 $ $0 $@
2111
2112_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00002113exec 5>>config.log
John Criswell7a73b802003-06-30 21:59:07 +00002114{
2115cat <<_ASUNAME
2116## --------- ##
2117## Platform. ##
2118## --------- ##
2119
2120hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2121uname -m = `(uname -m) 2>/dev/null || echo unknown`
2122uname -r = `(uname -r) 2>/dev/null || echo unknown`
2123uname -s = `(uname -s) 2>/dev/null || echo unknown`
2124uname -v = `(uname -v) 2>/dev/null || echo unknown`
2125
2126/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2127/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2128
2129/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2130/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2131/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Reid Spencera773bd52006-08-04 18:18:08 +00002132/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
John Criswell7a73b802003-06-30 21:59:07 +00002133/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2134/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2135/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2136
2137_ASUNAME
2138
2139as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2140for as_dir in $PATH
2141do
2142 IFS=$as_save_IFS
2143 test -z "$as_dir" && as_dir=.
Torok Edwin871384f2010-01-26 08:50:50 +00002144 $as_echo "PATH: $as_dir"
2145 done
Reid Spencera773bd52006-08-04 18:18:08 +00002146IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002147
2148} >&5
2149
2150cat >&5 <<_ACEOF
2151
2152
2153## ----------- ##
2154## Core tests. ##
2155## ----------- ##
2156
2157_ACEOF
2158
2159
2160# Keep a trace of the command line.
2161# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell0c38eaf2003-09-10 15:17:25 +00002162# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00002163# Also quote any args containing shell meta-characters.
John Criswell0c38eaf2003-09-10 15:17:25 +00002164# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00002165ac_configure_args=
John Criswell0c38eaf2003-09-10 15:17:25 +00002166ac_configure_args0=
2167ac_configure_args1=
John Criswell0c38eaf2003-09-10 15:17:25 +00002168ac_must_keep_next=false
2169for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00002170do
John Criswell0c38eaf2003-09-10 15:17:25 +00002171 for ac_arg
2172 do
2173 case $ac_arg in
2174 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2175 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2176 | -silent | --silent | --silen | --sile | --sil)
2177 continue ;;
Reid Spencera773bd52006-08-04 18:18:08 +00002178 *\'*)
Torok Edwin871384f2010-01-26 08:50:50 +00002179 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002180 esac
2181 case $ac_pass in
Torok Edwin871384f2010-01-26 08:50:50 +00002182 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002183 2)
Torok Edwin871384f2010-01-26 08:50:50 +00002184 as_fn_append ac_configure_args1 " '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00002185 if test $ac_must_keep_next = true; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00002186 ac_must_keep_next=false # Got value, back to normal.
John Criswell0c38eaf2003-09-10 15:17:25 +00002187 else
Reid Spencer2706f8c2004-09-19 23:53:36 +00002188 case $ac_arg in
2189 *=* | --config-cache | -C | -disable-* | --disable-* \
2190 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2191 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2192 | -with-* | --with-* | -without-* | --without-* | --x)
2193 case "$ac_configure_args0 " in
2194 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2195 esac
2196 ;;
2197 -* ) ac_must_keep_next=true ;;
2198 esac
John Criswell0c38eaf2003-09-10 15:17:25 +00002199 fi
Torok Edwin871384f2010-01-26 08:50:50 +00002200 as_fn_append ac_configure_args " '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00002201 ;;
2202 esac
2203 done
John Criswell7a73b802003-06-30 21:59:07 +00002204done
Torok Edwin871384f2010-01-26 08:50:50 +00002205{ ac_configure_args0=; unset ac_configure_args0;}
2206{ ac_configure_args1=; unset ac_configure_args1;}
John Criswell7a73b802003-06-30 21:59:07 +00002207
2208# When interrupted or exit'd, cleanup temporary files, and complete
2209# config.log. We remove comments because anyway the quotes in there
2210# would cause problems or look ugly.
Reid Spencera773bd52006-08-04 18:18:08 +00002211# WARNING: Use '\'' to represent an apostrophe within the trap.
2212# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
John Criswell7a73b802003-06-30 21:59:07 +00002213trap 'exit_status=$?
2214 # Save into config.log some information that might help in debugging.
2215 {
2216 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00002217
John Criswell7a73b802003-06-30 21:59:07 +00002218 cat <<\_ASBOX
2219## ---------------- ##
2220## Cache variables. ##
2221## ---------------- ##
2222_ASBOX
2223 echo
2224 # The following way of writing the cache mishandles newlines in values,
Reid Spencera773bd52006-08-04 18:18:08 +00002225(
2226 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2227 eval ac_val=\$$ac_var
2228 case $ac_val in #(
2229 *${as_nl}*)
2230 case $ac_var in #(
Torok Edwin871384f2010-01-26 08:50:50 +00002231 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2232$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
Reid Spencera773bd52006-08-04 18:18:08 +00002233 esac
2234 case $ac_var in #(
2235 _ | IFS | as_nl) ;; #(
Torok Edwin871384f2010-01-26 08:50:50 +00002236 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2237 *) { eval $ac_var=; unset $ac_var;} ;;
Reid Spencera773bd52006-08-04 18:18:08 +00002238 esac ;;
2239 esac
2240 done
John Criswell7a73b802003-06-30 21:59:07 +00002241 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +00002242 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2243 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +00002244 sed -n \
Reid Spencera773bd52006-08-04 18:18:08 +00002245 "s/'\''/'\''\\\\'\'''\''/g;
2246 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2247 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +00002248 *)
Reid Spencera773bd52006-08-04 18:18:08 +00002249 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +00002250 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00002251 esac |
2252 sort
2253)
John Criswell7a73b802003-06-30 21:59:07 +00002254 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00002255
2256 cat <<\_ASBOX
2257## ----------------- ##
2258## Output variables. ##
2259## ----------------- ##
2260_ASBOX
2261 echo
2262 for ac_var in $ac_subst_vars
2263 do
Reid Spencera773bd52006-08-04 18:18:08 +00002264 eval ac_val=\$$ac_var
2265 case $ac_val in
Torok Edwin871384f2010-01-26 08:50:50 +00002266 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Reid Spencera773bd52006-08-04 18:18:08 +00002267 esac
Torok Edwin871384f2010-01-26 08:50:50 +00002268 $as_echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00002269 done | sort
2270 echo
2271
2272 if test -n "$ac_subst_files"; then
2273 cat <<\_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00002274## ------------------- ##
2275## File substitutions. ##
2276## ------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +00002277_ASBOX
2278 echo
2279 for ac_var in $ac_subst_files
2280 do
Reid Spencera773bd52006-08-04 18:18:08 +00002281 eval ac_val=\$$ac_var
2282 case $ac_val in
Torok Edwin871384f2010-01-26 08:50:50 +00002283 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Reid Spencera773bd52006-08-04 18:18:08 +00002284 esac
Torok Edwin871384f2010-01-26 08:50:50 +00002285 $as_echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00002286 done | sort
2287 echo
2288 fi
2289
John Criswell7a73b802003-06-30 21:59:07 +00002290 if test -s confdefs.h; then
2291 cat <<\_ASBOX
2292## ----------- ##
2293## confdefs.h. ##
2294## ----------- ##
2295_ASBOX
2296 echo
Reid Spencera773bd52006-08-04 18:18:08 +00002297 cat confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00002298 echo
2299 fi
2300 test "$ac_signal" != 0 &&
Torok Edwin871384f2010-01-26 08:50:50 +00002301 $as_echo "$as_me: caught signal $ac_signal"
2302 $as_echo "$as_me: exit $exit_status"
John Criswell7a73b802003-06-30 21:59:07 +00002303 } >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002304 rm -f core *.core core.conftest.* &&
2305 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
John Criswell7a73b802003-06-30 21:59:07 +00002306 exit $exit_status
Reid Spencera773bd52006-08-04 18:18:08 +00002307' 0
John Criswell7a73b802003-06-30 21:59:07 +00002308for ac_signal in 1 2 13 15; do
Torok Edwin871384f2010-01-26 08:50:50 +00002309 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
John Criswell7a73b802003-06-30 21:59:07 +00002310done
2311ac_signal=0
2312
2313# confdefs.h avoids OS command line length limits that DEFS can exceed.
Reid Spencera773bd52006-08-04 18:18:08 +00002314rm -f -r conftest* confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00002315
Torok Edwin871384f2010-01-26 08:50:50 +00002316$as_echo "/* confdefs.h */" > confdefs.h
2317
John Criswell7a73b802003-06-30 21:59:07 +00002318# Predefined preprocessor variables.
2319
2320cat >>confdefs.h <<_ACEOF
2321#define PACKAGE_NAME "$PACKAGE_NAME"
2322_ACEOF
2323
John Criswell7a73b802003-06-30 21:59:07 +00002324cat >>confdefs.h <<_ACEOF
2325#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2326_ACEOF
2327
John Criswell7a73b802003-06-30 21:59:07 +00002328cat >>confdefs.h <<_ACEOF
2329#define PACKAGE_VERSION "$PACKAGE_VERSION"
2330_ACEOF
2331
John Criswell7a73b802003-06-30 21:59:07 +00002332cat >>confdefs.h <<_ACEOF
2333#define PACKAGE_STRING "$PACKAGE_STRING"
2334_ACEOF
2335
John Criswell7a73b802003-06-30 21:59:07 +00002336cat >>confdefs.h <<_ACEOF
2337#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2338_ACEOF
2339
Torok Edwin871384f2010-01-26 08:50:50 +00002340cat >>confdefs.h <<_ACEOF
2341#define PACKAGE_URL "$PACKAGE_URL"
2342_ACEOF
2343
John Criswell7a73b802003-06-30 21:59:07 +00002344
2345# Let the site file select an alternate cache file if it wants to.
Torok Edwin871384f2010-01-26 08:50:50 +00002346# Prefer an explicitly selected file to automatically selected ones.
2347ac_site_file1=NONE
2348ac_site_file2=NONE
Reid Spencera773bd52006-08-04 18:18:08 +00002349if test -n "$CONFIG_SITE"; then
Torok Edwin871384f2010-01-26 08:50:50 +00002350 ac_site_file1=$CONFIG_SITE
Reid Spencera773bd52006-08-04 18:18:08 +00002351elif test "x$prefix" != xNONE; then
Torok Edwin871384f2010-01-26 08:50:50 +00002352 ac_site_file1=$prefix/share/config.site
2353 ac_site_file2=$prefix/etc/config.site
Reid Spencera773bd52006-08-04 18:18:08 +00002354else
Torok Edwin871384f2010-01-26 08:50:50 +00002355 ac_site_file1=$ac_default_prefix/share/config.site
2356 ac_site_file2=$ac_default_prefix/etc/config.site
John Criswell7a73b802003-06-30 21:59:07 +00002357fi
Torok Edwin871384f2010-01-26 08:50:50 +00002358for ac_site_file in "$ac_site_file1" "$ac_site_file2"
Reid Spencera773bd52006-08-04 18:18:08 +00002359do
Torok Edwin871384f2010-01-26 08:50:50 +00002360 test "x$ac_site_file" = xNONE && continue
2361 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2362 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2363$as_echo "$as_me: loading site script $ac_site_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00002364 sed 's/^/| /' "$ac_site_file" >&5
2365 . "$ac_site_file"
2366 fi
2367done
2368
2369if test -r "$cache_file"; then
Torok Edwin871384f2010-01-26 08:50:50 +00002370 # Some versions of bash will fail to source /dev/null (special files
2371 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2372 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2373 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2374$as_echo "$as_me: loading cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00002375 case $cache_file in
Reid Spencera773bd52006-08-04 18:18:08 +00002376 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2377 *) . "./$cache_file";;
John Criswell7a73b802003-06-30 21:59:07 +00002378 esac
2379 fi
2380else
Torok Edwin871384f2010-01-26 08:50:50 +00002381 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2382$as_echo "$as_me: creating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00002383 >$cache_file
2384fi
2385
Torok Edwin871384f2010-01-26 08:50:50 +00002386as_fn_append ac_header_list " stdlib.h"
2387as_fn_append ac_header_list " unistd.h"
2388as_fn_append ac_header_list " sys/param.h"
John Criswell7a73b802003-06-30 21:59:07 +00002389# Check that the precious variables saved in the cache have kept the same
2390# value.
2391ac_cache_corrupted=false
Reid Spencera773bd52006-08-04 18:18:08 +00002392for ac_var in $ac_precious_vars; do
John Criswell7a73b802003-06-30 21:59:07 +00002393 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2394 eval ac_new_set=\$ac_env_${ac_var}_set
Reid Spencera773bd52006-08-04 18:18:08 +00002395 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2396 eval ac_new_val=\$ac_env_${ac_var}_value
John Criswell7a73b802003-06-30 21:59:07 +00002397 case $ac_old_set,$ac_new_set in
2398 set,)
Torok Edwin871384f2010-01-26 08:50:50 +00002399 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2400$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002401 ac_cache_corrupted=: ;;
2402 ,set)
Torok Edwin871384f2010-01-26 08:50:50 +00002403 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2404$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002405 ac_cache_corrupted=: ;;
2406 ,);;
2407 *)
2408 if test "x$ac_old_val" != "x$ac_new_val"; then
Torok Edwin871384f2010-01-26 08:50:50 +00002409 # differences in whitespace do not lead to failure.
2410 ac_old_val_w=`echo x $ac_old_val`
2411 ac_new_val_w=`echo x $ac_new_val`
2412 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2413 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2414$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2415 ac_cache_corrupted=:
2416 else
2417 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2418$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2419 eval $ac_var=\$ac_old_val
2420 fi
2421 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2422$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2423 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2424$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002425 fi;;
2426 esac
2427 # Pass precious variables to config.status.
2428 if test "$ac_new_set" = set; then
2429 case $ac_new_val in
Torok Edwin871384f2010-01-26 08:50:50 +00002430 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell7a73b802003-06-30 21:59:07 +00002431 *) ac_arg=$ac_var=$ac_new_val ;;
2432 esac
2433 case " $ac_configure_args " in
2434 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
Torok Edwin871384f2010-01-26 08:50:50 +00002435 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002436 esac
2437 fi
2438done
2439if $ac_cache_corrupted; then
Torok Edwin871384f2010-01-26 08:50:50 +00002440 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2441$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2442 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2443$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2444 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
John Criswell7a73b802003-06-30 21:59:07 +00002445fi
Torok Edwin871384f2010-01-26 08:50:50 +00002446## -------------------- ##
2447## Main body of script. ##
2448## -------------------- ##
Reid Spencera773bd52006-08-04 18:18:08 +00002449
John Criswell7a73b802003-06-30 21:59:07 +00002450ac_ext=c
2451ac_cpp='$CPP $CPPFLAGS'
2452ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2453ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2454ac_compiler_gnu=$ac_cv_c_compiler_gnu
2455
2456
2457
Tanya Lattnerc2264592009-08-22 21:01:26 +00002458LLVM_COPYRIGHT="Copyright (c) 2003-2009 University of Illinois at Urbana-Champaign."
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002459
2460
2461
2462
2463
2464
2465
John Criswell7a73b802003-06-30 21:59:07 +00002466ac_aux_dir=
Reid Spencera773bd52006-08-04 18:18:08 +00002467for ac_dir in autoconf "$srcdir"/autoconf; do
Torok Edwin871384f2010-01-26 08:50:50 +00002468 for ac_t in install-sh install.sh shtool; do
2469 if test -f "$ac_dir/$ac_t"; then
2470 ac_aux_dir=$ac_dir
2471 ac_install_sh="$ac_aux_dir/$ac_t -c"
2472 break 2
2473 fi
2474 done
John Criswell7a73b802003-06-30 21:59:07 +00002475done
2476if test -z "$ac_aux_dir"; then
Torok Edwin871384f2010-01-26 08:50:50 +00002477 as_fn_error "cannot find install-sh, install.sh, or shtool in autoconf \"$srcdir\"/autoconf" "$LINENO" 5
John Criswell7a73b802003-06-30 21:59:07 +00002478fi
Reid Spencera773bd52006-08-04 18:18:08 +00002479
2480# These three variables are undocumented and unsupported,
2481# and are intended to be withdrawn in a future Autoconf release.
2482# They can cause serious problems if a builder's source tree is in a directory
2483# whose full name contains unusual characters.
2484ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2485ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2486ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2487
John Criswell7a73b802003-06-30 21:59:07 +00002488
John Criswell392aaa32003-07-22 19:18:09 +00002489
Torok Edwin871384f2010-01-26 08:50:50 +00002490
Reid Spencer2706f8c2004-09-19 23:53:36 +00002491if test ${srcdir} != "." ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002492 if test -f ${srcdir}/include/llvm/Config/config.h ; then
Torok Edwin871384f2010-01-26 08:50:50 +00002493 as_fn_error "Already configured in ${srcdir}" "$LINENO" 5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002494 fi
John Criswell93e1c722003-09-15 17:04:06 +00002495fi
2496
John Criswell33a911a2003-11-25 20:36:46 +00002497for i in `ls ${srcdir}/projects`
2498do
Reid Spencer4d68ba22004-09-07 16:35:45 +00002499 if test -d ${srcdir}/projects/${i} ; then
2500 case ${i} in
Reid Spencer67bb0792007-01-17 02:14:46 +00002501 CVS) ;;
Torok Edwin871384f2010-01-26 08:50:50 +00002502 sample)
2503
2504subdirs="$subdirs projects/sample"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002505 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002506 privbracket) subdirs="$subdirs projects/privbracket"
John Criswell0389cf72006-06-20 17:44:40 +00002507 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002508 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002509 ;;
Tanya Lattnerb70e4522008-06-24 17:49:13 +00002510 # llvm-test is the old name of the test-suite, kept here for backwards
2511 # compatibility
Anton Korobeynikov080d6872007-07-03 17:16:46 +00002512 llvm-test) subdirs="$subdirs projects/llvm-test"
Reid Spencer67bb0792007-01-17 02:14:46 +00002513 ;;
Matthijs Kooijman5b80c662008-06-24 13:01:57 +00002514 test-suite) subdirs="$subdirs projects/test-suite"
2515 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002516 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002517;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002518 llvm-gcc) subdirs="$subdirs projects/llvm-gcc"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002519 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002520 llvm-java) subdirs="$subdirs projects/llvm-java"
Reid Spencer8085cff2005-01-16 02:58:39 +00002521 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002522 llvm-tv) subdirs="$subdirs projects/llvm-tv"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002523 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002524 llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
John Criswelle96aa1c2004-10-28 13:35:00 +00002525 ;;
Reid Spencer9372f152007-07-30 20:13:24 +00002526 poolalloc) subdirs="$subdirs projects/poolalloc"
Andrew Lenharth0af32252007-07-17 20:37:35 +00002527 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002528 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
John Criswell241116f2005-12-19 20:27:24 +00002529 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00002530 *)
Torok Edwin871384f2010-01-26 08:50:50 +00002531 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2532$as_echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
Reid Spencer8b93e7a2004-09-21 17:14:44 +00002533 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00002534 esac
John Criswell33a911a2003-11-25 20:36:46 +00002535 fi
2536done
John Criswell559a6c12003-09-30 16:31:48 +00002537
John Criswell7a73b802003-06-30 21:59:07 +00002538
2539# Make sure we can run config.sub.
Reid Spencera773bd52006-08-04 18:18:08 +00002540$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
Torok Edwin871384f2010-01-26 08:50:50 +00002541 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
John Criswell7a73b802003-06-30 21:59:07 +00002542
Torok Edwin871384f2010-01-26 08:50:50 +00002543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2544$as_echo_n "checking build system type... " >&6; }
2545if test "${ac_cv_build+set}" = set; then :
2546 $as_echo_n "(cached) " >&6
John Criswell7a73b802003-06-30 21:59:07 +00002547else
Reid Spencera773bd52006-08-04 18:18:08 +00002548 ac_build_alias=$build_alias
2549test "x$ac_build_alias" = x &&
2550 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2551test "x$ac_build_alias" = x &&
Torok Edwin871384f2010-01-26 08:50:50 +00002552 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
Reid Spencera773bd52006-08-04 18:18:08 +00002553ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
Torok Edwin871384f2010-01-26 08:50:50 +00002554 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
John Criswell7a73b802003-06-30 21:59:07 +00002555
2556fi
Torok Edwin871384f2010-01-26 08:50:50 +00002557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2558$as_echo "$ac_cv_build" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00002559case $ac_cv_build in
2560*-*-*) ;;
Torok Edwin871384f2010-01-26 08:50:50 +00002561*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
Reid Spencera773bd52006-08-04 18:18:08 +00002562esac
John Criswell7a73b802003-06-30 21:59:07 +00002563build=$ac_cv_build
Reid Spencera773bd52006-08-04 18:18:08 +00002564ac_save_IFS=$IFS; IFS='-'
2565set x $ac_cv_build
2566shift
2567build_cpu=$1
2568build_vendor=$2
2569shift; shift
2570# Remember, the first character of IFS is used to create $*,
2571# except with old shells:
2572build_os=$*
2573IFS=$ac_save_IFS
2574case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002575
2576
Torok Edwin871384f2010-01-26 08:50:50 +00002577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2578$as_echo_n "checking host system type... " >&6; }
2579if test "${ac_cv_host+set}" = set; then :
2580 $as_echo_n "(cached) " >&6
John Criswell7a73b802003-06-30 21:59:07 +00002581else
Reid Spencera773bd52006-08-04 18:18:08 +00002582 if test "x$host_alias" = x; then
2583 ac_cv_host=$ac_cv_build
2584else
2585 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
Torok Edwin871384f2010-01-26 08:50:50 +00002586 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
Reid Spencera773bd52006-08-04 18:18:08 +00002587fi
John Criswell7a73b802003-06-30 21:59:07 +00002588
2589fi
Torok Edwin871384f2010-01-26 08:50:50 +00002590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2591$as_echo "$ac_cv_host" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00002592case $ac_cv_host in
2593*-*-*) ;;
Torok Edwin871384f2010-01-26 08:50:50 +00002594*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
Reid Spencera773bd52006-08-04 18:18:08 +00002595esac
John Criswell7a73b802003-06-30 21:59:07 +00002596host=$ac_cv_host
Reid Spencera773bd52006-08-04 18:18:08 +00002597ac_save_IFS=$IFS; IFS='-'
2598set x $ac_cv_host
2599shift
2600host_cpu=$1
2601host_vendor=$2
2602shift; shift
2603# Remember, the first character of IFS is used to create $*,
2604# except with old shells:
2605host_os=$*
2606IFS=$ac_save_IFS
2607case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002608
2609
Torok Edwin871384f2010-01-26 08:50:50 +00002610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2611$as_echo_n "checking target system type... " >&6; }
2612if test "${ac_cv_target+set}" = set; then :
2613 $as_echo_n "(cached) " >&6
John Criswell7a73b802003-06-30 21:59:07 +00002614else
Reid Spencera773bd52006-08-04 18:18:08 +00002615 if test "x$target_alias" = x; then
2616 ac_cv_target=$ac_cv_host
2617else
2618 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
Torok Edwin871384f2010-01-26 08:50:50 +00002619 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
Reid Spencera773bd52006-08-04 18:18:08 +00002620fi
John Criswell7a73b802003-06-30 21:59:07 +00002621
2622fi
Torok Edwin871384f2010-01-26 08:50:50 +00002623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2624$as_echo "$ac_cv_target" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00002625case $ac_cv_target in
2626*-*-*) ;;
Torok Edwin871384f2010-01-26 08:50:50 +00002627*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
Reid Spencera773bd52006-08-04 18:18:08 +00002628esac
John Criswell7a73b802003-06-30 21:59:07 +00002629target=$ac_cv_target
Reid Spencera773bd52006-08-04 18:18:08 +00002630ac_save_IFS=$IFS; IFS='-'
2631set x $ac_cv_target
2632shift
2633target_cpu=$1
2634target_vendor=$2
2635shift; shift
2636# Remember, the first character of IFS is used to create $*,
2637# except with old shells:
2638target_os=$*
2639IFS=$ac_save_IFS
2640case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002641
2642
2643# The aliases save the names the user supplied, while $host etc.
2644# will get canonicalized.
2645test -n "$target_alias" &&
2646 test "$program_prefix$program_suffix$program_transform_name" = \
2647 NONENONEs,x,x, &&
2648 program_prefix=${target_alias}-
2649
Torok Edwin871384f2010-01-26 08:50:50 +00002650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking type of operating system we're going to host on" >&5
2651$as_echo_n "checking type of operating system we're going to host on... " >&6; }
2652if test "${llvm_cv_os_type+set}" = set; then :
2653 $as_echo_n "(cached) " >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002654else
Reid Spencere2cfe5d2006-07-26 21:14:56 +00002655 case $host in
Reid Spencer7b3e8512004-12-24 06:29:05 +00002656 *-*-aix*)
Reid Spencera773bd52006-08-04 18:18:08 +00002657 llvm_cv_link_all_option="-Wl,--whole-archive"
2658 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002659 llvm_cv_os_type="AIX"
2660 llvm_cv_platform_type="Unix" ;;
Reid Spencer6ccd01a2006-08-22 22:21:38 +00002661 *-*-irix*)
2662 llvm_cv_link_all_option="-Wl,--whole-archive"
2663 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2664 llvm_cv_os_type="IRIX"
2665 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002666 *-*-cygwin*)
Reid Spencera773bd52006-08-04 18:18:08 +00002667 llvm_cv_link_all_option="-Wl,--whole-archive"
2668 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002669 llvm_cv_os_type="Cygwin"
2670 llvm_cv_platform_type="Unix" ;;
2671 *-*-darwin*)
Reid Spencera773bd52006-08-04 18:18:08 +00002672 llvm_cv_link_all_option="-Wl,-all_load"
Chris Lattner399c7c72008-02-05 19:43:53 +00002673 llvm_cv_no_link_all_option="-Wl,-noall_load"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002674 llvm_cv_os_type="Darwin"
2675 llvm_cv_platform_type="Unix" ;;
2676 *-*-freebsd*)
Reid Spencera773bd52006-08-04 18:18:08 +00002677 llvm_cv_link_all_option="-Wl,--whole-archive"
2678 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002679 llvm_cv_os_type="FreeBSD"
2680 llvm_cv_platform_type="Unix" ;;
Reid Spencer1014ab42006-04-19 23:47:16 +00002681 *-*-openbsd*)
Reid Spencera773bd52006-08-04 18:18:08 +00002682 llvm_cv_link_all_option="-Wl,--whole-archive"
2683 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer1014ab42006-04-19 23:47:16 +00002684 llvm_cv_os_type="OpenBSD"
2685 llvm_cv_platform_type="Unix" ;;
Reid Spencer466207a2007-01-20 20:45:39 +00002686 *-*-netbsd*)
2687 llvm_cv_link_all_option="-Wl,--whole-archive"
2688 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2689 llvm_cv_os_type="NetBSD"
2690 llvm_cv_platform_type="Unix" ;;
Matthijs Kooijmanf5122812008-06-26 10:36:58 +00002691 *-*-dragonfly*)
2692 llvm_cv_link_all_option="-Wl,--whole-archive"
2693 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2694 llvm_cv_os_type="DragonFly"
2695 llvm_cv_platform_type="Unix" ;;
Duraid Madina775afa52005-05-16 16:33:34 +00002696 *-*-hpux*)
Reid Spencera773bd52006-08-04 18:18:08 +00002697 llvm_cv_link_all_option="-Wl,--whole-archive"
2698 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Duraid Madina775afa52005-05-16 16:33:34 +00002699 llvm_cv_os_type="HP-UX"
2700 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002701 *-*-interix*)
Reid Spencera773bd52006-08-04 18:18:08 +00002702 llvm_cv_link_all_option="-Wl,--whole-archive"
2703 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002704 llvm_cv_os_type="Interix"
2705 llvm_cv_platform_type="Unix" ;;
2706 *-*-linux*)
Reid Spencera773bd52006-08-04 18:18:08 +00002707 llvm_cv_link_all_option="-Wl,--whole-archive"
2708 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002709 llvm_cv_os_type="Linux"
2710 llvm_cv_platform_type="Unix" ;;
2711 *-*-solaris*)
Reid Spencera773bd52006-08-04 18:18:08 +00002712 llvm_cv_link_all_option="-Wl,-z,allextract"
2713 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002714 llvm_cv_os_type="SunOS"
2715 llvm_cv_platform_type="Unix" ;;
Edward O'Callaghan2b19d692009-10-14 00:44:50 +00002716 *-*-auroraux*)
2717 llvm_cv_link_all_option="-Wl,-z,allextract"
2718 llvm_cv_link_all_option="-Wl,-z,defaultextract"
2719 llvm_cv_os_type="AuroraUX"
2720 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002721 *-*-win32*)
Reid Spencera773bd52006-08-04 18:18:08 +00002722 llvm_cv_link_all_option="-Wl,--whole-archive"
2723 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002724 llvm_cv_os_type="Win32"
2725 llvm_cv_platform_type="Win32" ;;
2726 *-*-mingw*)
Reid Spencera773bd52006-08-04 18:18:08 +00002727 llvm_cv_link_all_option="-Wl,--whole-archive"
2728 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002729 llvm_cv_os_type="MingW"
2730 llvm_cv_platform_type="Win32" ;;
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +00002731 *-*-haiku*)
2732 llvm_cv_link_all_option="-Wl,--whole-archive"
2733 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2734 llvm_cv_os_type="Haiku"
2735 llvm_cv_platform_type="Unix" ;;
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002736 *-unknown-eabi*)
2737 llvm_cv_link_all_option="-Wl,--whole-archive"
2738 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2739 llvm_cv_os_type="Freestanding"
2740 llvm_cv_platform_type="Unix" ;;
2741 *-unknown-elf*)
2742 llvm_cv_link_all_option="-Wl,--whole-archive"
2743 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2744 llvm_cv_os_type="Freestanding"
2745 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002746 *)
Reid Spencera773bd52006-08-04 18:18:08 +00002747 llvm_cv_link_all_option=""
2748 llvm_cv_no_link_all_option=""
Reid Spencer7b3e8512004-12-24 06:29:05 +00002749 llvm_cv_os_type="Unknown"
2750 llvm_cv_platform_type="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002751esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002752fi
Torok Edwin871384f2010-01-26 08:50:50 +00002753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $llvm_cv_os_type" >&5
2754$as_echo "$llvm_cv_os_type" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002755
Torok Edwin871384f2010-01-26 08:50:50 +00002756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking type of operating system we're going to target" >&5
2757$as_echo_n "checking type of operating system we're going to target... " >&6; }
2758if test "${llvm_cv_target_os_type+set}" = set; then :
2759 $as_echo_n "(cached) " >&6
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002760else
2761 case $target in
2762 *-*-aix*)
2763 llvm_cv_target_os_type="AIX" ;;
2764 *-*-irix*)
2765 llvm_cv_target_os_type="IRIX" ;;
2766 *-*-cygwin*)
2767 llvm_cv_target_os_type="Cygwin" ;;
2768 *-*-darwin*)
2769 llvm_cv_target_os_type="Darwin" ;;
2770 *-*-freebsd*)
2771 llvm_cv_target_os_type="FreeBSD" ;;
2772 *-*-openbsd*)
2773 llvm_cv_target_os_type="OpenBSD" ;;
2774 *-*-netbsd*)
2775 llvm_cv_target_os_type="NetBSD" ;;
2776 *-*-dragonfly*)
2777 llvm_cv_target_os_type="DragonFly" ;;
2778 *-*-hpux*)
2779 llvm_cv_target_os_type="HP-UX" ;;
2780 *-*-interix*)
2781 llvm_cv_target_os_type="Interix" ;;
2782 *-*-linux*)
2783 llvm_cv_target_os_type="Linux" ;;
2784 *-*-solaris*)
2785 llvm_cv_target_os_type="SunOS" ;;
Edward O'Callaghan2b19d692009-10-14 00:44:50 +00002786 *-*-auroraux*)
2787 llvm_cv_target_os_type="AuroraUX" ;;
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002788 *-*-win32*)
2789 llvm_cv_target_os_type="Win32" ;;
2790 *-*-mingw*)
2791 llvm_cv_target_os_type="MingW" ;;
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +00002792 *-*-haiku*)
2793 llvm_cv_target_os_type="Haiku" ;;
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002794 *-unknown-eabi*)
2795 llvm_cv_target_os_type="Freestanding" ;;
2796 *)
2797 llvm_cv_target_os_type="Unknown" ;;
2798esac
2799fi
Torok Edwin871384f2010-01-26 08:50:50 +00002800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $llvm_cv_target_os_type" >&5
2801$as_echo "$llvm_cv_target_os_type" >&6; }
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002802
Reid Spencer7b3e8512004-12-24 06:29:05 +00002803if test "$llvm_cv_os_type" = "Unknown" ; then
Torok Edwin871384f2010-01-26 08:50:50 +00002804 as_fn_error "Operating system is unknown, configure can't continue" "$LINENO" 5
Reid Spencer886e9512004-08-31 01:34:10 +00002805fi
2806
Reid Spencer7b3e8512004-12-24 06:29:05 +00002807OS=$llvm_cv_os_type
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002808
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002809HOST_OS=$llvm_cv_os_type
2810
2811TARGET_OS=$llvm_cv_target_os_type
2812
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002813
Reid Spencera773bd52006-08-04 18:18:08 +00002814LINKALL=$llvm_cv_link_all_option
2815
2816NOLINKALL=$llvm_cv_no_link_all_option
2817
2818
Reid Spencer7b3e8512004-12-24 06:29:05 +00002819case $llvm_cv_platform_type in
2820 Unix)
2821
Torok Edwin871384f2010-01-26 08:50:50 +00002822$as_echo "#define LLVM_ON_UNIX 1" >>confdefs.h
Reid Spencer7b3e8512004-12-24 06:29:05 +00002823
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002824 LLVM_ON_UNIX=1
2825
2826 LLVM_ON_WIN32=0
2827
Reid Spencer7b3e8512004-12-24 06:29:05 +00002828 ;;
2829 Win32)
2830
Torok Edwin871384f2010-01-26 08:50:50 +00002831$as_echo "#define LLVM_ON_WIN32 1" >>confdefs.h
Reid Spencer7b3e8512004-12-24 06:29:05 +00002832
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002833 LLVM_ON_UNIX=0
2834
2835 LLVM_ON_WIN32=1
2836
Reid Spencer7b3e8512004-12-24 06:29:05 +00002837 ;;
2838esac
2839
Torok Edwin871384f2010-01-26 08:50:50 +00002840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target architecture" >&5
2841$as_echo_n "checking target architecture... " >&6; }
2842if test "${llvm_cv_target_arch+set}" = set; then :
2843 $as_echo_n "(cached) " >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002844else
2845 case $target in
Reid Spenceree93c872004-12-23 21:08:52 +00002846 i?86-*) llvm_cv_target_arch="x86" ;;
Reid Spencer2dc65862004-12-28 07:56:14 +00002847 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002848 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2849 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
Andrew Lenharth501cb272005-01-24 17:25:41 +00002850 alpha*-*) llvm_cv_target_arch="Alpha" ;;
Nick Lewyckyfa8ffc12009-04-18 18:11:26 +00002851 arm*-*) llvm_cv_target_arch="ARM" ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00002852 mips-*) llvm_cv_target_arch="Mips" ;;
Sanjiv Gupta0234f512008-05-13 17:37:32 +00002853 pic16-*) llvm_cv_target_arch="PIC16" ;;
Richard Osborneb25baef2008-11-07 10:59:00 +00002854 xcore-*) llvm_cv_target_arch="XCore" ;;
Anton Korobeynikov2c4718b2009-05-03 13:42:23 +00002855 msp430-*) llvm_cv_target_arch="MSP430" ;;
Anton Korobeynikov4403b932009-07-16 13:27:25 +00002856 s390x-*) llvm_cv_target_arch="SystemZ" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00002857 bfin-*) llvm_cv_target_arch="Blackfin" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002858 *) llvm_cv_target_arch="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002859esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002860fi
Torok Edwin871384f2010-01-26 08:50:50 +00002861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $llvm_cv_target_arch" >&5
2862$as_echo "$llvm_cv_target_arch" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002863
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002864if test "$llvm_cv_target_arch" = "Unknown" ; then
Torok Edwin871384f2010-01-26 08:50:50 +00002865 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Configuring LLVM for an unknown target archicture" >&5
2866$as_echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002867fi
John Criswell76595452003-07-01 22:07:39 +00002868
Nick Lewycky83fc4472009-09-29 05:48:51 +00002869# Determine the LLVM native architecture for the target
2870case "$llvm_cv_target_arch" in
2871 x86) LLVM_NATIVE_ARCH="X86" ;;
2872 x86_64) LLVM_NATIVE_ARCH="X86" ;;
2873 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
2874esac
2875
2876ARCH=$llvm_cv_target_arch
2877
2878
2879ac_ext=c
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002880ac_cpp='$CPP $CPPFLAGS'
2881ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2882ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2883ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00002884if test -n "$ac_tool_prefix"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002885 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2886set dummy ${ac_tool_prefix}gcc; ac_word=$2
Torok Edwin871384f2010-01-26 08:50:50 +00002887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2888$as_echo_n "checking for $ac_word... " >&6; }
2889if test "${ac_cv_prog_CC+set}" = set; then :
2890 $as_echo_n "(cached) " >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002891else
2892 if test -n "$CC"; then
2893 ac_cv_prog_CC="$CC" # Let the user override the test.
2894else
2895as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2896for as_dir in $PATH
2897do
2898 IFS=$as_save_IFS
2899 test -z "$as_dir" && as_dir=.
Torok Edwin871384f2010-01-26 08:50:50 +00002900 for ac_exec_ext in '' $ac_executable_extensions; do
2901 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 +00002902 ac_cv_prog_CC="${ac_tool_prefix}gcc"
Torok Edwin871384f2010-01-26 08:50:50 +00002903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002904 break 2
2905 fi
2906done
Torok Edwin871384f2010-01-26 08:50:50 +00002907 done
Reid Spencera773bd52006-08-04 18:18:08 +00002908IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002909
2910fi
2911fi
2912CC=$ac_cv_prog_CC
2913if test -n "$CC"; then
Torok Edwin871384f2010-01-26 08:50:50 +00002914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2915$as_echo "$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002916else
Torok Edwin871384f2010-01-26 08:50:50 +00002917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2918$as_echo "no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002919fi
2920
Reid Spencera773bd52006-08-04 18:18:08 +00002921
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002922fi
2923if test -z "$ac_cv_prog_CC"; then
2924 ac_ct_CC=$CC
2925 # Extract the first word of "gcc", so it can be a program name with args.
2926set dummy gcc; ac_word=$2
Torok Edwin871384f2010-01-26 08:50:50 +00002927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2928$as_echo_n "checking for $ac_word... " >&6; }
2929if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2930 $as_echo_n "(cached) " >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002931else
2932 if test -n "$ac_ct_CC"; then
2933 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2934else
2935as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2936for as_dir in $PATH
2937do
2938 IFS=$as_save_IFS
2939 test -z "$as_dir" && as_dir=.
Torok Edwin871384f2010-01-26 08:50:50 +00002940 for ac_exec_ext in '' $ac_executable_extensions; do
2941 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 +00002942 ac_cv_prog_ac_ct_CC="gcc"
Torok Edwin871384f2010-01-26 08:50:50 +00002943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002944 break 2
2945 fi
2946done
Torok Edwin871384f2010-01-26 08:50:50 +00002947 done
Reid Spencera773bd52006-08-04 18:18:08 +00002948IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002949
2950fi
2951fi
2952ac_ct_CC=$ac_cv_prog_ac_ct_CC
2953if test -n "$ac_ct_CC"; then
Torok Edwin871384f2010-01-26 08:50:50 +00002954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2955$as_echo "$ac_ct_CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002956else
Torok Edwin871384f2010-01-26 08:50:50 +00002957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2958$as_echo "no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002959fi
2960
Reid Spencera773bd52006-08-04 18:18:08 +00002961 if test "x$ac_ct_CC" = x; then
2962 CC=""
2963 else
2964 case $cross_compiling:$ac_tool_warned in
2965yes:)
Torok Edwin871384f2010-01-26 08:50:50 +00002966{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2967$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00002968ac_tool_warned=yes ;;
2969esac
2970 CC=$ac_ct_CC
2971 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002972else
2973 CC="$ac_cv_prog_CC"
2974fi
2975
2976if test -z "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002977 if test -n "$ac_tool_prefix"; then
2978 # 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 +00002979set dummy ${ac_tool_prefix}cc; ac_word=$2
Torok Edwin871384f2010-01-26 08:50:50 +00002980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2981$as_echo_n "checking for $ac_word... " >&6; }
2982if test "${ac_cv_prog_CC+set}" = set; then :
2983 $as_echo_n "(cached) " >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002984else
2985 if test -n "$CC"; then
2986 ac_cv_prog_CC="$CC" # Let the user override the test.
2987else
2988as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2989for as_dir in $PATH
2990do
2991 IFS=$as_save_IFS
2992 test -z "$as_dir" && as_dir=.
Torok Edwin871384f2010-01-26 08:50:50 +00002993 for ac_exec_ext in '' $ac_executable_extensions; do
2994 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 +00002995 ac_cv_prog_CC="${ac_tool_prefix}cc"
Torok Edwin871384f2010-01-26 08:50:50 +00002996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002997 break 2
2998 fi
2999done
Torok Edwin871384f2010-01-26 08:50:50 +00003000 done
Reid Spencera773bd52006-08-04 18:18:08 +00003001IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003002
3003fi
3004fi
3005CC=$ac_cv_prog_CC
3006if test -n "$CC"; then
Torok Edwin871384f2010-01-26 08:50:50 +00003007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3008$as_echo "$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003009else
Torok Edwin871384f2010-01-26 08:50:50 +00003010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3011$as_echo "no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003012fi
3013
Reid Spencera773bd52006-08-04 18:18:08 +00003014
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003015 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003016fi
3017if test -z "$CC"; then
3018 # Extract the first word of "cc", so it can be a program name with args.
3019set dummy cc; ac_word=$2
Torok Edwin871384f2010-01-26 08:50:50 +00003020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3021$as_echo_n "checking for $ac_word... " >&6; }
3022if test "${ac_cv_prog_CC+set}" = set; then :
3023 $as_echo_n "(cached) " >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003024else
3025 if test -n "$CC"; then
3026 ac_cv_prog_CC="$CC" # Let the user override the test.
3027else
3028 ac_prog_rejected=no
3029as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3030for as_dir in $PATH
3031do
3032 IFS=$as_save_IFS
3033 test -z "$as_dir" && as_dir=.
Torok Edwin871384f2010-01-26 08:50:50 +00003034 for ac_exec_ext in '' $ac_executable_extensions; do
3035 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 +00003036 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3037 ac_prog_rejected=yes
3038 continue
3039 fi
3040 ac_cv_prog_CC="cc"
Torok Edwin871384f2010-01-26 08:50:50 +00003041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003042 break 2
3043 fi
3044done
Torok Edwin871384f2010-01-26 08:50:50 +00003045 done
Reid Spencera773bd52006-08-04 18:18:08 +00003046IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003047
3048if test $ac_prog_rejected = yes; then
3049 # We found a bogon in the path, so make sure we never use it.
3050 set dummy $ac_cv_prog_CC
3051 shift
3052 if test $# != 0; then
3053 # We chose a different compiler from the bogus one.
3054 # However, it has the same basename, so the bogon will be chosen
3055 # first if we set CC to just the basename; use the full file name.
3056 shift
3057 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3058 fi
3059fi
3060fi
3061fi
3062CC=$ac_cv_prog_CC
3063if test -n "$CC"; then
Torok Edwin871384f2010-01-26 08:50:50 +00003064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3065$as_echo "$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003066else
Torok Edwin871384f2010-01-26 08:50:50 +00003067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3068$as_echo "no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003069fi
3070
Reid Spencera773bd52006-08-04 18:18:08 +00003071
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003072fi
3073if test -z "$CC"; then
3074 if test -n "$ac_tool_prefix"; then
Reid Spencera773bd52006-08-04 18:18:08 +00003075 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00003076 do
3077 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3078set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Torok Edwin871384f2010-01-26 08:50:50 +00003079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3080$as_echo_n "checking for $ac_word... " >&6; }
3081if test "${ac_cv_prog_CC+set}" = set; then :
3082 $as_echo_n "(cached) " >&6
John Criswell7a73b802003-06-30 21:59:07 +00003083else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003084 if test -n "$CC"; then
3085 ac_cv_prog_CC="$CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00003086else
3087as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3088for as_dir in $PATH
3089do
3090 IFS=$as_save_IFS
3091 test -z "$as_dir" && as_dir=.
Torok Edwin871384f2010-01-26 08:50:50 +00003092 for ac_exec_ext in '' $ac_executable_extensions; do
3093 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 +00003094 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Torok Edwin871384f2010-01-26 08:50:50 +00003095 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
John Criswell7a73b802003-06-30 21:59:07 +00003096 break 2
3097 fi
3098done
Torok Edwin871384f2010-01-26 08:50:50 +00003099 done
Reid Spencera773bd52006-08-04 18:18:08 +00003100IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00003101
3102fi
3103fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003104CC=$ac_cv_prog_CC
3105if test -n "$CC"; then
Torok Edwin871384f2010-01-26 08:50:50 +00003106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3107$as_echo "$CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00003108else
Torok Edwin871384f2010-01-26 08:50:50 +00003109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3110$as_echo "no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00003111fi
3112
Reid Spencera773bd52006-08-04 18:18:08 +00003113
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003114 test -n "$CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00003115 done
3116fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003117if test -z "$CC"; then
3118 ac_ct_CC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +00003119 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00003120do
3121 # Extract the first word of "$ac_prog", so it can be a program name with args.
3122set dummy $ac_prog; ac_word=$2
Torok Edwin871384f2010-01-26 08:50:50 +00003123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3124$as_echo_n "checking for $ac_word... " >&6; }
3125if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3126 $as_echo_n "(cached) " >&6
John Criswell7a73b802003-06-30 21:59:07 +00003127else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003128 if test -n "$ac_ct_CC"; then
3129 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00003130else
3131as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3132for as_dir in $PATH
3133do
3134 IFS=$as_save_IFS
3135 test -z "$as_dir" && as_dir=.
Torok Edwin871384f2010-01-26 08:50:50 +00003136 for ac_exec_ext in '' $ac_executable_extensions; do
3137 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 +00003138 ac_cv_prog_ac_ct_CC="$ac_prog"
Torok Edwin871384f2010-01-26 08:50:50 +00003139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
John Criswell7a73b802003-06-30 21:59:07 +00003140 break 2
3141 fi
3142done
Torok Edwin871384f2010-01-26 08:50:50 +00003143 done
Reid Spencera773bd52006-08-04 18:18:08 +00003144IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00003145
3146fi
3147fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003148ac_ct_CC=$ac_cv_prog_ac_ct_CC
3149if test -n "$ac_ct_CC"; then
Torok Edwin871384f2010-01-26 08:50:50 +00003150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3151$as_echo "$ac_ct_CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00003152else
Torok Edwin871384f2010-01-26 08:50:50 +00003153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3154$as_echo "no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00003155fi
3156
Reid Spencera773bd52006-08-04 18:18:08 +00003157
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003158 test -n "$ac_ct_CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00003159done
John Criswell7a73b802003-06-30 21:59:07 +00003160
Reid Spencera773bd52006-08-04 18:18:08 +00003161 if test "x$ac_ct_CC" = x; then
3162 CC=""
3163 else
3164 case $cross_compiling:$ac_tool_warned in
3165yes:)
Torok Edwin871384f2010-01-26 08:50:50 +00003166{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3167$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00003168ac_tool_warned=yes ;;
3169esac
3170 CC=$ac_ct_CC
3171 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003172fi
3173
John Criswell7a73b802003-06-30 21:59:07 +00003174fi
3175
3176
Torok Edwin871384f2010-01-26 08:50:50 +00003177test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3178$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3179as_fn_error "no acceptable C compiler found in \$PATH
3180See \`config.log' for more details." "$LINENO" 5; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003181
John Criswell7a73b802003-06-30 21:59:07 +00003182# Provide some information about the compiler.
Torok Edwin871384f2010-01-26 08:50:50 +00003183$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3184set X $ac_compile
3185ac_compiler=$2
3186for ac_option in --version -v -V -qversion; do
3187 { { ac_try="$ac_compiler $ac_option >&5"
Reid Spencera773bd52006-08-04 18:18:08 +00003188case "(($ac_try" in
3189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3190 *) ac_try_echo=$ac_try;;
3191esac
Torok Edwin871384f2010-01-26 08:50:50 +00003192eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3193$as_echo "$ac_try_echo"; } >&5
3194 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003195 ac_status=$?
Torok Edwin871384f2010-01-26 08:50:50 +00003196 if test -s conftest.err; then
3197 sed '10a\
3198... rest of stderr output deleted ...
3199 10q' conftest.err >conftest.er1
3200 cat conftest.er1 >&5
3201 fi
3202 rm -f conftest.er1 conftest.err
3203 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3204 test $ac_status = 0; }
3205done
John Criswell7a73b802003-06-30 21:59:07 +00003206
Torok Edwin871384f2010-01-26 08:50:50 +00003207cat confdefs.h - <<_ACEOF >conftest.$ac_ext
John Criswell0c38eaf2003-09-10 15:17:25 +00003208/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003209
John Criswell7a73b802003-06-30 21:59:07 +00003210int
3211main ()
3212{
3213
3214 ;
3215 return 0;
3216}
3217_ACEOF
3218ac_clean_files_save=$ac_clean_files
Torok Edwin871384f2010-01-26 08:50:50 +00003219ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00003220# Try to create an executable without -o first, disregard a.out.
3221# It will help us diagnose broken compilers, and finding out an intuition
3222# of exeext.
Torok Edwin871384f2010-01-26 08:50:50 +00003223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3224$as_echo_n "checking whether the C compiler works... " >&6; }
3225ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3226
3227# The possible output files:
3228ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3229
Reid Spencera773bd52006-08-04 18:18:08 +00003230ac_rmfiles=
3231for ac_file in $ac_files
3232do
3233 case $ac_file in
Torok Edwin871384f2010-01-26 08:50:50 +00003234 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Reid Spencera773bd52006-08-04 18:18:08 +00003235 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3236 esac
3237done
3238rm -f $ac_rmfiles
3239
Torok Edwin871384f2010-01-26 08:50:50 +00003240if { { ac_try="$ac_link_default"
Reid Spencera773bd52006-08-04 18:18:08 +00003241case "(($ac_try" in
3242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3243 *) ac_try_echo=$ac_try;;
3244esac
Torok Edwin871384f2010-01-26 08:50:50 +00003245eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3246$as_echo "$ac_try_echo"; } >&5
Reid Spencera773bd52006-08-04 18:18:08 +00003247 (eval "$ac_link_default") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00003248 ac_status=$?
Torok Edwin871384f2010-01-26 08:50:50 +00003249 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3250 test $ac_status = 0; }; then :
Reid Spencera773bd52006-08-04 18:18:08 +00003251 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3252# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3253# in a Makefile. We should not override ac_cv_exeext if it was cached,
3254# so that the user can short-circuit this test for compilers unknown to
3255# Autoconf.
Torok Edwin871384f2010-01-26 08:50:50 +00003256for ac_file in $ac_files ''
John Criswell0c38eaf2003-09-10 15:17:25 +00003257do
3258 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00003259 case $ac_file in
Torok Edwin871384f2010-01-26 08:50:50 +00003260 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
Reid Spencer2706f8c2004-09-19 23:53:36 +00003261 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00003262 [ab].out )
Reid Spencer2706f8c2004-09-19 23:53:36 +00003263 # We found the default executable, but exeext='' is most
3264 # certainly right.
3265 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00003266 *.* )
Torok Edwin871384f2010-01-26 08:50:50 +00003267 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
Reid Spencera773bd52006-08-04 18:18:08 +00003268 then :; else
3269 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3270 fi
3271 # We set ac_cv_exeext here because the later test for it is not
3272 # safe: cross compilers may not add the suffix if given an `-o'
3273 # argument, so we may need to know it at that point already.
3274 # Even if this section looks crufty: it has the advantage of
3275 # actually working.
Reid Spencer2706f8c2004-09-19 23:53:36 +00003276 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00003277 * )
Reid Spencer2706f8c2004-09-19 23:53:36 +00003278 break;;
John Criswell7a73b802003-06-30 21:59:07 +00003279 esac
3280done
Reid Spencera773bd52006-08-04 18:18:08 +00003281test "$ac_cv_exeext" = no && ac_cv_exeext=
3282
John Criswell7a73b802003-06-30 21:59:07 +00003283else
Torok Edwin871384f2010-01-26 08:50:50 +00003284 ac_file=''
3285fi
3286if test -z "$ac_file"; then :
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3288$as_echo "no" >&6; }
3289$as_echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003290sed 's/^/| /' conftest.$ac_ext >&5
3291
Torok Edwin871384f2010-01-26 08:50:50 +00003292{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3293$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3294{ as_fn_set_status 77
3295as_fn_error "C compiler cannot create executables
3296See \`config.log' for more details." "$LINENO" 5; }; }
3297else
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3299$as_echo "yes" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00003300fi
Torok Edwin871384f2010-01-26 08:50:50 +00003301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3302$as_echo_n "checking for C compiler default output file name... " >&6; }
3303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3304$as_echo "$ac_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00003305ac_exeext=$ac_cv_exeext
John Criswell7a73b802003-06-30 21:59:07 +00003306
Torok Edwin871384f2010-01-26 08:50:50 +00003307rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00003308ac_clean_files=$ac_clean_files_save
Torok Edwin871384f2010-01-26 08:50:50 +00003309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3310$as_echo_n "checking for suffix of executables... " >&6; }
3311if { { ac_try="$ac_link"
Reid Spencera773bd52006-08-04 18:18:08 +00003312case "(($ac_try" in
3313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3314 *) ac_try_echo=$ac_try;;
3315esac
Torok Edwin871384f2010-01-26 08:50:50 +00003316eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3317$as_echo "$ac_try_echo"; } >&5
Reid Spencera773bd52006-08-04 18:18:08 +00003318 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00003319 ac_status=$?
Torok Edwin871384f2010-01-26 08:50:50 +00003320 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3321 test $ac_status = 0; }; then :
John Criswell7a73b802003-06-30 21:59:07 +00003322 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3323# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3324# work properly (i.e., refer to `conftest.exe'), while it won't with
3325# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00003326for ac_file in conftest.exe conftest conftest.*; do
3327 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00003328 case $ac_file in
Torok Edwin871384f2010-01-26 08:50:50 +00003329 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00003330 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Reid Spencer2706f8c2004-09-19 23:53:36 +00003331 break;;
John Criswell7a73b802003-06-30 21:59:07 +00003332 * ) break;;
3333 esac
3334done
3335else
Torok Edwin871384f2010-01-26 08:50:50 +00003336 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3337$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3338as_fn_error "cannot compute suffix of executables: cannot compile and link
3339See \`config.log' for more details." "$LINENO" 5; }
John Criswell7a73b802003-06-30 21:59:07 +00003340fi
Torok Edwin871384f2010-01-26 08:50:50 +00003341rm -f conftest conftest$ac_cv_exeext
3342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3343$as_echo "$ac_cv_exeext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00003344
3345rm -f conftest.$ac_ext
3346EXEEXT=$ac_cv_exeext
3347ac_exeext=$EXEEXT
Torok Edwin871384f2010-01-26 08:50:50 +00003348cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3349/* end confdefs.h. */
3350#include <stdio.h>
3351int
3352main ()
3353{
3354FILE *f = fopen ("conftest.out", "w");
3355 return ferror (f) || fclose (f) != 0;
3356
3357 ;
3358 return 0;
3359}
John Criswell0c38eaf2003-09-10 15:17:25 +00003360_ACEOF
Torok Edwin871384f2010-01-26 08:50:50 +00003361ac_clean_files="$ac_clean_files conftest.out"
3362# Check that the compiler produces executables we can run. If not, either
3363# the compiler is broken, or we cross compile.
3364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3365$as_echo_n "checking whether we are cross compiling... " >&6; }
3366if test "$cross_compiling" != yes; then
3367 { { ac_try="$ac_link"
3368case "(($ac_try" in
3369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3370 *) ac_try_echo=$ac_try;;
3371esac
3372eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3373$as_echo "$ac_try_echo"; } >&5
3374 (eval "$ac_link") 2>&5
3375 ac_status=$?
3376 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3377 test $ac_status = 0; }
3378 if { ac_try='./conftest$ac_cv_exeext'
3379 { { case "(($ac_try" in
3380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3381 *) ac_try_echo=$ac_try;;
3382esac
3383eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3384$as_echo "$ac_try_echo"; } >&5
3385 (eval "$ac_try") 2>&5
3386 ac_status=$?
3387 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3388 test $ac_status = 0; }; }; then
3389 cross_compiling=no
3390 else
3391 if test "$cross_compiling" = maybe; then
3392 cross_compiling=yes
3393 else
3394 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3395$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3396as_fn_error "cannot run C compiled programs.
3397If you meant to cross compile, use \`--host'.
3398See \`config.log' for more details." "$LINENO" 5; }
3399 fi
3400 fi
3401fi
3402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3403$as_echo "$cross_compiling" >&6; }
3404
3405rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3406ac_clean_files=$ac_clean_files_save
3407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3408$as_echo_n "checking for suffix of object files... " >&6; }
3409if test "${ac_cv_objext+set}" = set; then :
3410 $as_echo_n "(cached) " >&6
3411else
3412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
John Criswell0c38eaf2003-09-10 15:17:25 +00003413/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003414
John Criswell7a73b802003-06-30 21:59:07 +00003415int
3416main ()
3417{
3418
3419 ;
3420 return 0;
3421}
3422_ACEOF
3423rm -f conftest.o conftest.obj
Torok Edwin871384f2010-01-26 08:50:50 +00003424if { { ac_try="$ac_compile"
Reid Spencera773bd52006-08-04 18:18:08 +00003425case "(($ac_try" in
3426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3427 *) ac_try_echo=$ac_try;;
3428esac
Torok Edwin871384f2010-01-26 08:50:50 +00003429eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3430$as_echo "$ac_try_echo"; } >&5
Reid Spencera773bd52006-08-04 18:18:08 +00003431 (eval "$ac_compile") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00003432 ac_status=$?
Torok Edwin871384f2010-01-26 08:50:50 +00003433 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3434 test $ac_status = 0; }; then :
Reid Spencera773bd52006-08-04 18:18:08 +00003435 for ac_file in conftest.o conftest.obj conftest.*; do
3436 test -f "$ac_file" || continue;
John Criswell7a73b802003-06-30 21:59:07 +00003437 case $ac_file in
Torok Edwin871384f2010-01-26 08:50:50 +00003438 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00003439 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3440 break;;
3441 esac
3442done
3443else
Torok Edwin871384f2010-01-26 08:50:50 +00003444 $as_echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003445sed 's/^/| /' conftest.$ac_ext >&5
3446
Torok Edwin871384f2010-01-26 08:50:50 +00003447{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3448$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3449as_fn_error "cannot compute suffix of object files: cannot compile
3450See \`config.log' for more details." "$LINENO" 5; }
John Criswell7a73b802003-06-30 21:59:07 +00003451fi
John Criswell7a73b802003-06-30 21:59:07 +00003452rm -f conftest.$ac_cv_objext conftest.$ac_ext
3453fi
Torok Edwin871384f2010-01-26 08:50:50 +00003454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3455$as_echo "$ac_cv_objext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00003456OBJEXT=$ac_cv_objext
3457ac_objext=$OBJEXT
Torok Edwin871384f2010-01-26 08:50:50 +00003458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3459$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3460if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3461 $as_echo_n "(cached) " >&6
John Criswell7a73b802003-06-30 21:59:07 +00003462else
Torok Edwin871384f2010-01-26 08:50:50 +00003463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
John Criswell0c38eaf2003-09-10 15:17:25 +00003464/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003465
John Criswell7a73b802003-06-30 21:59:07 +00003466int
3467main ()
3468{
3469#ifndef __GNUC__
3470 choke me
3471#endif
3472
3473 ;
3474 return 0;
3475}
3476_ACEOF
Torok Edwin871384f2010-01-26 08:50:50 +00003477if ac_fn_c_try_compile "$LINENO"; then :
John Criswell7a73b802003-06-30 21:59:07 +00003478 ac_compiler_gnu=yes
3479else
Torok Edwin871384f2010-01-26 08:50:50 +00003480 ac_compiler_gnu=no
John Criswell7a73b802003-06-30 21:59:07 +00003481fi
Reid Spencera773bd52006-08-04 18:18:08 +00003482rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003483ac_cv_c_compiler_gnu=$ac_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00003484
3485fi
Torok Edwin871384f2010-01-26 08:50:50 +00003486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3487$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3488if test $ac_compiler_gnu = yes; then
3489 GCC=yes
3490else
3491 GCC=
3492fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003493ac_test_CFLAGS=${CFLAGS+set}
3494ac_save_CFLAGS=$CFLAGS
Torok Edwin871384f2010-01-26 08:50:50 +00003495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3496$as_echo_n "checking whether $CC accepts -g... " >&6; }
3497if test "${ac_cv_prog_cc_g+set}" = set; then :
3498 $as_echo_n "(cached) " >&6
John Criswell7a73b802003-06-30 21:59:07 +00003499else
Reid Spencera773bd52006-08-04 18:18:08 +00003500 ac_save_c_werror_flag=$ac_c_werror_flag
3501 ac_c_werror_flag=yes
3502 ac_cv_prog_cc_g=no
3503 CFLAGS="-g"
Torok Edwin871384f2010-01-26 08:50:50 +00003504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
John Criswell0c38eaf2003-09-10 15:17:25 +00003505/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003506
John Criswell7a73b802003-06-30 21:59:07 +00003507int
3508main ()
3509{
3510
3511 ;
3512 return 0;
3513}
3514_ACEOF
Torok Edwin871384f2010-01-26 08:50:50 +00003515if ac_fn_c_try_compile "$LINENO"; then :
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003516 ac_cv_prog_cc_g=yes
John Criswell7a73b802003-06-30 21:59:07 +00003517else
Torok Edwin871384f2010-01-26 08:50:50 +00003518 CFLAGS=""
3519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +00003520/* end confdefs.h. */
3521
3522int
3523main ()
3524{
3525
3526 ;
3527 return 0;
3528}
3529_ACEOF
Torok Edwin871384f2010-01-26 08:50:50 +00003530if ac_fn_c_try_compile "$LINENO"; then :
Reid Spencera773bd52006-08-04 18:18:08 +00003531
Torok Edwin871384f2010-01-26 08:50:50 +00003532else
3533 ac_c_werror_flag=$ac_save_c_werror_flag
Reid Spencera773bd52006-08-04 18:18:08 +00003534 CFLAGS="-g"
Torok Edwin871384f2010-01-26 08:50:50 +00003535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +00003536/* end confdefs.h. */
3537
3538int
3539main ()
3540{
3541
3542 ;
3543 return 0;
3544}
3545_ACEOF
Torok Edwin871384f2010-01-26 08:50:50 +00003546if ac_fn_c_try_compile "$LINENO"; then :
Reid Spencera773bd52006-08-04 18:18:08 +00003547 ac_cv_prog_cc_g=yes
John Criswell7a73b802003-06-30 21:59:07 +00003548fi
Reid Spencera773bd52006-08-04 18:18:08 +00003549rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003550fi
Reid Spencera773bd52006-08-04 18:18:08 +00003551rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3552fi
Reid Spencera773bd52006-08-04 18:18:08 +00003553rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3554 ac_c_werror_flag=$ac_save_c_werror_flag
3555fi
Torok Edwin871384f2010-01-26 08:50:50 +00003556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3557$as_echo "$ac_cv_prog_cc_g" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003558if test "$ac_test_CFLAGS" = set; then
3559 CFLAGS=$ac_save_CFLAGS
3560elif test $ac_cv_prog_cc_g = yes; then
3561 if test "$GCC" = yes; then
3562 CFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00003563 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003564 CFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00003565 fi
3566else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003567 if test "$GCC" = yes; then
3568 CFLAGS="-O2"
John Criswell7a73b802003-06-30 21:59:07 +00003569 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003570 CFLAGS=
John Criswell7a73b802003-06-30 21:59:07 +00003571 fi
3572fi
Torok Edwin871384f2010-01-26 08:50:50 +00003573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3574$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3575if test "${ac_cv_prog_cc_c89+set}" = set; then :
3576 $as_echo_n "(cached) " >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003577else
Reid Spencera773bd52006-08-04 18:18:08 +00003578 ac_cv_prog_cc_c89=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003579ac_save_CC=$CC
Torok Edwin871384f2010-01-26 08:50:50 +00003580cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003581/* end confdefs.h. */
3582#include <stdarg.h>
3583#include <stdio.h>
3584#include <sys/types.h>
3585#include <sys/stat.h>
3586/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3587struct buf { int x; };
3588FILE * (*rcsopen) (struct buf *, struct stat *, int);
3589static char *e (p, i)
3590 char **p;
3591 int i;
3592{
3593 return p[i];
3594}
3595static char *f (char * (*g) (char **, int), char **p, ...)
3596{
3597 char *s;
3598 va_list v;
3599 va_start (v,p);
3600 s = g (p, va_arg (v,int));
3601 va_end (v);
3602 return s;
3603}
3604
3605/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3606 function prototypes and stuff, but not '\xHH' hex character constants.
3607 These don't provoke an error unfortunately, instead are silently treated
Reid Spencera773bd52006-08-04 18:18:08 +00003608 as 'x'. The following induces an error, until -std is added to get
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003609 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3610 array size at least. It's necessary to write '\x00'==0 to get something
Reid Spencera773bd52006-08-04 18:18:08 +00003611 that's true only with -std. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003612int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3613
Reid Spencera773bd52006-08-04 18:18:08 +00003614/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3615 inside strings and character constants. */
3616#define FOO(x) 'x'
3617int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3618
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003619int test (int i, double x);
3620struct s1 {int (*f) (int a);};
3621struct s2 {int (*f) (double a);};
3622int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3623int argc;
3624char **argv;
3625int
3626main ()
3627{
3628return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3629 ;
3630 return 0;
3631}
3632_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003633for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3634 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003635do
3636 CC="$ac_save_CC $ac_arg"
Torok Edwin871384f2010-01-26 08:50:50 +00003637 if ac_fn_c_try_compile "$LINENO"; then :
Reid Spencera773bd52006-08-04 18:18:08 +00003638 ac_cv_prog_cc_c89=$ac_arg
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003639fi
Reid Spencera773bd52006-08-04 18:18:08 +00003640rm -f core conftest.err conftest.$ac_objext
3641 test "x$ac_cv_prog_cc_c89" != "xno" && break
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003642done
Reid Spencera773bd52006-08-04 18:18:08 +00003643rm -f conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003644CC=$ac_save_CC
3645
3646fi
Reid Spencera773bd52006-08-04 18:18:08 +00003647# AC_CACHE_VAL
3648case "x$ac_cv_prog_cc_c89" in
3649 x)
Torok Edwin871384f2010-01-26 08:50:50 +00003650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3651$as_echo "none needed" >&6; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00003652 xno)
Torok Edwin871384f2010-01-26 08:50:50 +00003653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3654$as_echo "unsupported" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003655 *)
Reid Spencera773bd52006-08-04 18:18:08 +00003656 CC="$CC $ac_cv_prog_cc_c89"
Torok Edwin871384f2010-01-26 08:50:50 +00003657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3658$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003659esac
Torok Edwin871384f2010-01-26 08:50:50 +00003660if test "x$ac_cv_prog_cc_c89" != xno; then :
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003661
Torok Edwin871384f2010-01-26 08:50:50 +00003662fi
John Criswell0c38eaf2003-09-10 15:17:25 +00003663
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003664ac_ext=c
3665ac_cpp='$CPP $CPPFLAGS'
3666ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3667ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3668ac_compiler_gnu=$ac_cv_c_compiler_gnu
3669
3670
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003671ac_ext=c
3672ac_cpp='$CPP $CPPFLAGS'
3673ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3674ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3675ac_compiler_gnu=$ac_cv_c_compiler_gnu
Torok Edwin871384f2010-01-26 08:50:50 +00003676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3677$as_echo_n "checking how to run the C preprocessor... " >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003678# On Suns, sometimes $CPP names a directory.
3679if test -n "$CPP" && test -d "$CPP"; then
3680 CPP=
3681fi
3682if test -z "$CPP"; then
Torok Edwin871384f2010-01-26 08:50:50 +00003683 if test "${ac_cv_prog_CPP+set}" = set; then :
3684 $as_echo_n "(cached) " >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003685else
3686 # Double quotes because CPP needs to be expanded
3687 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3688 do
3689 ac_preproc_ok=false
3690for ac_c_preproc_warn_flag in '' yes
3691do
3692 # Use a header file that comes with gcc, so configuring glibc
3693 # with a fresh cross-compiler works.
3694 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3695 # <limits.h> exists even on freestanding compilers.
3696 # On the NeXT, cc -E runs the code through the compiler's parser,
3697 # not just through cpp. "Syntax error" is here to catch this case.
Torok Edwin871384f2010-01-26 08:50:50 +00003698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003699/* end confdefs.h. */
3700#ifdef __STDC__
3701# include <limits.h>
3702#else
3703# include <assert.h>
3704#endif
3705 Syntax error
3706_ACEOF
Torok Edwin871384f2010-01-26 08:50:50 +00003707if ac_fn_c_try_cpp "$LINENO"; then :
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003708
Torok Edwin871384f2010-01-26 08:50:50 +00003709else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003710 # Broken: fails on valid input.
3711continue
3712fi
3713rm -f conftest.err conftest.$ac_ext
3714
Reid Spencera773bd52006-08-04 18:18:08 +00003715 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003716 # can be detected and how.
Torok Edwin871384f2010-01-26 08:50:50 +00003717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003718/* end confdefs.h. */
3719#include <ac_nonexistent.h>
3720_ACEOF
Torok Edwin871384f2010-01-26 08:50:50 +00003721if ac_fn_c_try_cpp "$LINENO"; then :
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003722 # Broken: success on invalid input.
3723continue
3724else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003725 # Passes both tests.
3726ac_preproc_ok=:
3727break
3728fi
3729rm -f conftest.err conftest.$ac_ext
3730
3731done
3732# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3733rm -f conftest.err conftest.$ac_ext
Torok Edwin871384f2010-01-26 08:50:50 +00003734if $ac_preproc_ok; then :
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003735 break
3736fi
3737
3738 done
3739 ac_cv_prog_CPP=$CPP
3740
3741fi
3742 CPP=$ac_cv_prog_CPP
3743else
3744 ac_cv_prog_CPP=$CPP
3745fi
Torok Edwin871384f2010-01-26 08:50:50 +00003746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3747$as_echo "$CPP" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003748ac_preproc_ok=false
3749for ac_c_preproc_warn_flag in '' yes
3750do
3751 # Use a header file that comes with gcc, so configuring glibc
3752 # with a fresh cross-compiler works.
3753 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3754 # <limits.h> exists even on freestanding compilers.
3755 # On the NeXT, cc -E runs the code through the compiler's parser,
3756 # not just through cpp. "Syntax error" is here to catch this case.
Torok Edwin871384f2010-01-26 08:50:50 +00003757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003758/* end confdefs.h. */
3759#ifdef __STDC__
3760# include <limits.h>
3761#else
3762# include <assert.h>
3763#endif
3764 Syntax error
3765_ACEOF
Torok Edwin871384f2010-01-26 08:50:50 +00003766if ac_fn_c_try_cpp "$LINENO"; then :
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003767
Torok Edwin871384f2010-01-26 08:50:50 +00003768else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003769 # Broken: fails on valid input.
3770continue
3771fi
3772rm -f conftest.err conftest.$ac_ext
3773
Reid Spencera773bd52006-08-04 18:18:08 +00003774 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003775 # can be detected and how.
Torok Edwin871384f2010-01-26 08:50:50 +00003776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003777/* end confdefs.h. */
3778#include <ac_nonexistent.h>
3779_ACEOF
Torok Edwin871384f2010-01-26 08:50:50 +00003780if ac_fn_c_try_cpp "$LINENO"; then :
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003781 # Broken: success on invalid input.
3782continue
3783else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003784 # Passes both tests.
3785ac_preproc_ok=:
3786break
3787fi
3788rm -f conftest.err conftest.$ac_ext
3789
3790done
3791# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3792rm -f conftest.err conftest.$ac_ext
Torok Edwin871384f2010-01-26 08:50:50 +00003793if $ac_preproc_ok; then :
3794
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003795else
Torok Edwin871384f2010-01-26 08:50:50 +00003796 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3797$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3798as_fn_error "C preprocessor \"$CPP\" fails sanity check
3799See \`config.log' for more details." "$LINENO" 5; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003800fi
3801
John Criswell7a73b802003-06-30 21:59:07 +00003802ac_ext=c
3803ac_cpp='$CPP $CPPFLAGS'
3804ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3805ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3806ac_compiler_gnu=$ac_cv_c_compiler_gnu
3807
John Criswell7a73b802003-06-30 21:59:07 +00003808
Torok Edwin871384f2010-01-26 08:50:50 +00003809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3810$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3811if test "${ac_cv_path_GREP+set}" = set; then :
3812 $as_echo_n "(cached) " >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003813else
Torok Edwin871384f2010-01-26 08:50:50 +00003814 if test -z "$GREP"; then
Reid Spencera773bd52006-08-04 18:18:08 +00003815 ac_path_GREP_found=false
Torok Edwin871384f2010-01-26 08:50:50 +00003816 # Loop through the user's path and test for each of PROGNAME-LIST
3817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00003818for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003819do
3820 IFS=$as_save_IFS
3821 test -z "$as_dir" && as_dir=.
Torok Edwin871384f2010-01-26 08:50:50 +00003822 for ac_prog in grep ggrep; do
3823 for ac_exec_ext in '' $ac_executable_extensions; do
3824 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3825 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3826# Check for GNU ac_path_GREP and select it if it is found.
Reid Spencera773bd52006-08-04 18:18:08 +00003827 # Check for GNU $ac_path_GREP
3828case `"$ac_path_GREP" --version 2>&1` in
3829*GNU*)
3830 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3831*)
3832 ac_count=0
Torok Edwin871384f2010-01-26 08:50:50 +00003833 $as_echo_n 0123456789 >"conftest.in"
Reid Spencera773bd52006-08-04 18:18:08 +00003834 while :
3835 do
3836 cat "conftest.in" "conftest.in" >"conftest.tmp"
3837 mv "conftest.tmp" "conftest.in"
3838 cp "conftest.in" "conftest.nl"
Torok Edwin871384f2010-01-26 08:50:50 +00003839 $as_echo 'GREP' >> "conftest.nl"
Reid Spencera773bd52006-08-04 18:18:08 +00003840 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3841 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Torok Edwin871384f2010-01-26 08:50:50 +00003842 as_fn_arith $ac_count + 1 && ac_count=$as_val
Reid Spencera773bd52006-08-04 18:18:08 +00003843 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3844 # Best one so far, save it but keep looking for a better one
3845 ac_cv_path_GREP="$ac_path_GREP"
3846 ac_path_GREP_max=$ac_count
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003847 fi
Reid Spencera773bd52006-08-04 18:18:08 +00003848 # 10*(2^10) chars as input seems more than enough
3849 test $ac_count -gt 10 && break
3850 done
3851 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3852esac
3853
Torok Edwin871384f2010-01-26 08:50:50 +00003854 $ac_path_GREP_found && break 3
3855 done
Reid Spencera773bd52006-08-04 18:18:08 +00003856 done
Torok Edwin871384f2010-01-26 08:50:50 +00003857 done
Reid Spencera773bd52006-08-04 18:18:08 +00003858IFS=$as_save_IFS
Torok Edwin871384f2010-01-26 08:50:50 +00003859 if test -z "$ac_cv_path_GREP"; then
3860 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3861 fi
Reid Spencera773bd52006-08-04 18:18:08 +00003862else
3863 ac_cv_path_GREP=$GREP
3864fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003865
Reid Spencera773bd52006-08-04 18:18:08 +00003866fi
Torok Edwin871384f2010-01-26 08:50:50 +00003867{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3868$as_echo "$ac_cv_path_GREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00003869 GREP="$ac_cv_path_GREP"
3870
3871
Torok Edwin871384f2010-01-26 08:50:50 +00003872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3873$as_echo_n "checking for egrep... " >&6; }
3874if test "${ac_cv_path_EGREP+set}" = set; then :
3875 $as_echo_n "(cached) " >&6
Reid Spencera773bd52006-08-04 18:18:08 +00003876else
3877 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3878 then ac_cv_path_EGREP="$GREP -E"
3879 else
Torok Edwin871384f2010-01-26 08:50:50 +00003880 if test -z "$EGREP"; then
Reid Spencera773bd52006-08-04 18:18:08 +00003881 ac_path_EGREP_found=false
Torok Edwin871384f2010-01-26 08:50:50 +00003882 # Loop through the user's path and test for each of PROGNAME-LIST
3883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00003884for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3885do
3886 IFS=$as_save_IFS
3887 test -z "$as_dir" && as_dir=.
Torok Edwin871384f2010-01-26 08:50:50 +00003888 for ac_prog in egrep; do
3889 for ac_exec_ext in '' $ac_executable_extensions; do
3890 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3891 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3892# Check for GNU ac_path_EGREP and select it if it is found.
Reid Spencera773bd52006-08-04 18:18:08 +00003893 # Check for GNU $ac_path_EGREP
3894case `"$ac_path_EGREP" --version 2>&1` in
3895*GNU*)
3896 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3897*)
3898 ac_count=0
Torok Edwin871384f2010-01-26 08:50:50 +00003899 $as_echo_n 0123456789 >"conftest.in"
Reid Spencera773bd52006-08-04 18:18:08 +00003900 while :
3901 do
3902 cat "conftest.in" "conftest.in" >"conftest.tmp"
3903 mv "conftest.tmp" "conftest.in"
3904 cp "conftest.in" "conftest.nl"
Torok Edwin871384f2010-01-26 08:50:50 +00003905 $as_echo 'EGREP' >> "conftest.nl"
Reid Spencera773bd52006-08-04 18:18:08 +00003906 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3907 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Torok Edwin871384f2010-01-26 08:50:50 +00003908 as_fn_arith $ac_count + 1 && ac_count=$as_val
Reid Spencera773bd52006-08-04 18:18:08 +00003909 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3910 # Best one so far, save it but keep looking for a better one
3911 ac_cv_path_EGREP="$ac_path_EGREP"
3912 ac_path_EGREP_max=$ac_count
3913 fi
3914 # 10*(2^10) chars as input seems more than enough
3915 test $ac_count -gt 10 && break
3916 done
3917 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3918esac
3919
Torok Edwin871384f2010-01-26 08:50:50 +00003920 $ac_path_EGREP_found && break 3
3921 done
Reid Spencera773bd52006-08-04 18:18:08 +00003922 done
Torok Edwin871384f2010-01-26 08:50:50 +00003923 done
Reid Spencera773bd52006-08-04 18:18:08 +00003924IFS=$as_save_IFS
Torok Edwin871384f2010-01-26 08:50:50 +00003925 if test -z "$ac_cv_path_EGREP"; then
3926 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3927 fi
Reid Spencera773bd52006-08-04 18:18:08 +00003928else
3929 ac_cv_path_EGREP=$EGREP
3930fi
3931
Reid Spencera773bd52006-08-04 18:18:08 +00003932 fi
3933fi
Torok Edwin871384f2010-01-26 08:50:50 +00003934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3935$as_echo "$ac_cv_path_EGREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00003936 EGREP="$ac_cv_path_EGREP"
3937
3938
Torok Edwin871384f2010-01-26 08:50:50 +00003939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3940$as_echo_n "checking for ANSI C header files... " >&6; }
3941if test "${ac_cv_header_stdc+set}" = set; then :
3942 $as_echo_n "(cached) " >&6
John Criswell7a73b802003-06-30 21:59:07 +00003943else
Torok Edwin871384f2010-01-26 08:50:50 +00003944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
John Criswell0c38eaf2003-09-10 15:17:25 +00003945/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003946#include <stdlib.h>
3947#include <stdarg.h>
3948#include <string.h>
3949#include <float.h>
3950
John Criswell0c38eaf2003-09-10 15:17:25 +00003951int
3952main ()
3953{
3954
3955 ;
3956 return 0;
3957}
John Criswell7a73b802003-06-30 21:59:07 +00003958_ACEOF
Torok Edwin871384f2010-01-26 08:50:50 +00003959if ac_fn_c_try_compile "$LINENO"; then :
John Criswell7a73b802003-06-30 21:59:07 +00003960 ac_cv_header_stdc=yes
3961else
Torok Edwin871384f2010-01-26 08:50:50 +00003962 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00003963fi
Reid Spencera773bd52006-08-04 18:18:08 +00003964rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003965
3966if test $ac_cv_header_stdc = yes; then
3967 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Torok Edwin871384f2010-01-26 08:50:50 +00003968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
John Criswell0c38eaf2003-09-10 15:17:25 +00003969/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003970#include <string.h>
3971
3972_ACEOF
3973if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Torok Edwin871384f2010-01-26 08:50:50 +00003974 $EGREP "memchr" >/dev/null 2>&1; then :
3975
John Criswell7a73b802003-06-30 21:59:07 +00003976else
3977 ac_cv_header_stdc=no
3978fi
3979rm -f conftest*
3980
3981fi
3982
3983if test $ac_cv_header_stdc = yes; then
3984 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Torok Edwin871384f2010-01-26 08:50:50 +00003985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
John Criswell0c38eaf2003-09-10 15:17:25 +00003986/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003987#include <stdlib.h>
3988
3989_ACEOF
3990if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Torok Edwin871384f2010-01-26 08:50:50 +00003991 $EGREP "free" >/dev/null 2>&1; then :
3992
John Criswell7a73b802003-06-30 21:59:07 +00003993else
3994 ac_cv_header_stdc=no
3995fi
3996rm -f conftest*
3997
3998fi
3999
4000if test $ac_cv_header_stdc = yes; then
4001 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Torok Edwin871384f2010-01-26 08:50:50 +00004002 if test "$cross_compiling" = yes; then :
John Criswell7a73b802003-06-30 21:59:07 +00004003 :
4004else
Torok Edwin871384f2010-01-26 08:50:50 +00004005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
John Criswell0c38eaf2003-09-10 15:17:25 +00004006/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004007#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004008#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00004009#if ((' ' & 0x0FF) == 0x020)
4010# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4011# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4012#else
John Criswell0c38eaf2003-09-10 15:17:25 +00004013# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +00004014 (('a' <= (c) && (c) <= 'i') \
4015 || ('j' <= (c) && (c) <= 'r') \
4016 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +00004017# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4018#endif
4019
4020#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4021int
4022main ()
4023{
4024 int i;
4025 for (i = 0; i < 256; i++)
4026 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +00004027 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +00004028 return 2;
4029 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00004030}
4031_ACEOF
Torok Edwin871384f2010-01-26 08:50:50 +00004032if ac_fn_c_try_run "$LINENO"; then :
4033
John Criswell7a73b802003-06-30 21:59:07 +00004034else
Torok Edwin871384f2010-01-26 08:50:50 +00004035 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00004036fi
Torok Edwin871384f2010-01-26 08:50:50 +00004037rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4038 conftest.$ac_objext conftest.beam conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +00004039fi
4040
John Criswell7a73b802003-06-30 21:59:07 +00004041fi
4042fi
Torok Edwin871384f2010-01-26 08:50:50 +00004043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4044$as_echo "$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00004045if test $ac_cv_header_stdc = yes; then
4046
Torok Edwin871384f2010-01-26 08:50:50 +00004047$as_echo "#define STDC_HEADERS 1" >>confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00004048
4049fi
4050
Reid Spencera773bd52006-08-04 18:18:08 +00004051# On IRIX 5.3, sys/types and inttypes.h are conflicting.
Reid Spencera773bd52006-08-04 18:18:08 +00004052for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4053 inttypes.h stdint.h unistd.h
Torok Edwin871384f2010-01-26 08:50:50 +00004054do :
4055 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4056ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4057"
4058eval as_val=\$$as_ac_Header
4059 if test "x$as_val" = x""yes; then :
Reid Spencera773bd52006-08-04 18:18:08 +00004060 cat >>confdefs.h <<_ACEOF
Torok Edwin871384f2010-01-26 08:50:50 +00004061#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencera773bd52006-08-04 18:18:08 +00004062_ACEOF
4063
4064fi
4065
4066done
4067
4068
Torok Edwin871384f2010-01-26 08:50:50 +00004069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4070$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4071if test "${ac_cv_c_bigendian+set}" = set; then :
4072 $as_echo_n "(cached) " >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004073else
Torok Edwin871384f2010-01-26 08:50:50 +00004074 ac_cv_c_bigendian=unknown
4075 # See if we're dealing with a universal compiler.
4076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4077/* end confdefs.h. */
4078#ifndef __APPLE_CC__
4079 not a universal capable compiler
4080 #endif
4081 typedef int dummy;
4082
Reid Spencera773bd52006-08-04 18:18:08 +00004083_ACEOF
Torok Edwin871384f2010-01-26 08:50:50 +00004084if ac_fn_c_try_compile "$LINENO"; then :
4085
4086 # Check for potential -arch flags. It is not universal unless
4087 # there are at least two -arch flags with different values.
4088 ac_arch=
4089 ac_prev=
4090 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4091 if test -n "$ac_prev"; then
4092 case $ac_word in
4093 i?86 | x86_64 | ppc | ppc64)
4094 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
4095 ac_arch=$ac_word
4096 else
4097 ac_cv_c_bigendian=universal
4098 break
4099 fi
4100 ;;
4101 esac
4102 ac_prev=
4103 elif test "x$ac_word" = "x-arch"; then
4104 ac_prev=arch
4105 fi
4106 done
4107fi
4108rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4109 if test $ac_cv_c_bigendian = unknown; then
4110 # See if sys/param.h defines the BYTE_ORDER macro.
4111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +00004112/* end confdefs.h. */
4113#include <sys/types.h>
Torok Edwin871384f2010-01-26 08:50:50 +00004114 #include <sys/param.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004115
4116int
4117main ()
4118{
Torok Edwin871384f2010-01-26 08:50:50 +00004119#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4120 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4121 && LITTLE_ENDIAN)
4122 bogus endian macros
4123 #endif
Reid Spencera773bd52006-08-04 18:18:08 +00004124
4125 ;
4126 return 0;
4127}
4128_ACEOF
Torok Edwin871384f2010-01-26 08:50:50 +00004129if ac_fn_c_try_compile "$LINENO"; then :
Reid Spencera773bd52006-08-04 18:18:08 +00004130 # It does; now see whether it defined to BIG_ENDIAN or not.
Torok Edwin871384f2010-01-26 08:50:50 +00004131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +00004132/* end confdefs.h. */
4133#include <sys/types.h>
Torok Edwin871384f2010-01-26 08:50:50 +00004134 #include <sys/param.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004135
4136int
4137main ()
4138{
4139#if BYTE_ORDER != BIG_ENDIAN
Torok Edwin871384f2010-01-26 08:50:50 +00004140 not big endian
4141 #endif
Reid Spencera773bd52006-08-04 18:18:08 +00004142
4143 ;
4144 return 0;
4145}
4146_ACEOF
Torok Edwin871384f2010-01-26 08:50:50 +00004147if ac_fn_c_try_compile "$LINENO"; then :
Reid Spencera773bd52006-08-04 18:18:08 +00004148 ac_cv_c_bigendian=yes
4149else
Torok Edwin871384f2010-01-26 08:50:50 +00004150 ac_cv_c_bigendian=no
Reid Spencera773bd52006-08-04 18:18:08 +00004151fi
Reid Spencera773bd52006-08-04 18:18:08 +00004152rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Torok Edwin871384f2010-01-26 08:50:50 +00004153fi
4154rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4155 fi
4156 if test $ac_cv_c_bigendian = unknown; then
4157 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +00004159/* end confdefs.h. */
Torok Edwin871384f2010-01-26 08:50:50 +00004160#include <limits.h>
4161
Reid Spencera773bd52006-08-04 18:18:08 +00004162int
4163main ()
4164{
Torok Edwin871384f2010-01-26 08:50:50 +00004165#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4166 bogus endian macros
4167 #endif
4168
Reid Spencera773bd52006-08-04 18:18:08 +00004169 ;
4170 return 0;
4171}
4172_ACEOF
Torok Edwin871384f2010-01-26 08:50:50 +00004173if ac_fn_c_try_compile "$LINENO"; then :
4174 # It does; now see whether it defined to _BIG_ENDIAN or not.
4175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4176/* end confdefs.h. */
4177#include <limits.h>
4178
4179int
4180main ()
4181{
4182#ifndef _BIG_ENDIAN
4183 not big endian
4184 #endif
4185
4186 ;
4187 return 0;
4188}
4189_ACEOF
4190if ac_fn_c_try_compile "$LINENO"; then :
Reid Spencera773bd52006-08-04 18:18:08 +00004191 ac_cv_c_bigendian=yes
Reid Spencera773bd52006-08-04 18:18:08 +00004192else
Torok Edwin871384f2010-01-26 08:50:50 +00004193 ac_cv_c_bigendian=no
Reid Spencera773bd52006-08-04 18:18:08 +00004194fi
Torok Edwin871384f2010-01-26 08:50:50 +00004195rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4196fi
4197rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4198 fi
4199 if test $ac_cv_c_bigendian = unknown; then
4200 # Compile a test program.
4201 if test "$cross_compiling" = yes; then :
4202 # Try to guess by grepping values from an object file.
4203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4204/* end confdefs.h. */
4205short int ascii_mm[] =
4206 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4207 short int ascii_ii[] =
4208 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4209 int use_ascii (int i) {
4210 return ascii_mm[i] + ascii_ii[i];
4211 }
4212 short int ebcdic_ii[] =
4213 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4214 short int ebcdic_mm[] =
4215 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4216 int use_ebcdic (int i) {
4217 return ebcdic_mm[i] + ebcdic_ii[i];
4218 }
4219 extern int foo;
Reid Spencera773bd52006-08-04 18:18:08 +00004220
Torok Edwin871384f2010-01-26 08:50:50 +00004221int
4222main ()
4223{
4224return use_ascii (foo) == use_ebcdic (foo);
4225 ;
4226 return 0;
4227}
4228_ACEOF
4229if ac_fn_c_try_compile "$LINENO"; then :
4230 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
4231 ac_cv_c_bigendian=yes
4232 fi
4233 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4234 if test "$ac_cv_c_bigendian" = unknown; then
4235 ac_cv_c_bigendian=no
4236 else
4237 # finding both strings is unlikely to happen, but who knows?
4238 ac_cv_c_bigendian=unknown
4239 fi
4240 fi
4241fi
Reid Spencera773bd52006-08-04 18:18:08 +00004242rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4243else
Torok Edwin871384f2010-01-26 08:50:50 +00004244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +00004245/* end confdefs.h. */
4246$ac_includes_default
4247int
4248main ()
4249{
4250
Torok Edwin871384f2010-01-26 08:50:50 +00004251 /* Are we little or big endian? From Harbison&Steele. */
4252 union
4253 {
4254 long int l;
4255 char c[sizeof (long int)];
4256 } u;
4257 u.l = 1;
4258 return u.c[sizeof (long int) - 1] == 1;
Reid Spencera773bd52006-08-04 18:18:08 +00004259
4260 ;
4261 return 0;
4262}
4263_ACEOF
Torok Edwin871384f2010-01-26 08:50:50 +00004264if ac_fn_c_try_run "$LINENO"; then :
Reid Spencera773bd52006-08-04 18:18:08 +00004265 ac_cv_c_bigendian=no
4266else
Torok Edwin871384f2010-01-26 08:50:50 +00004267 ac_cv_c_bigendian=yes
Reid Spencera773bd52006-08-04 18:18:08 +00004268fi
Torok Edwin871384f2010-01-26 08:50:50 +00004269rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4270 conftest.$ac_objext conftest.beam conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +00004271fi
4272
Torok Edwin871384f2010-01-26 08:50:50 +00004273 fi
Reid Spencera773bd52006-08-04 18:18:08 +00004274fi
Torok Edwin871384f2010-01-26 08:50:50 +00004275{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4276$as_echo "$ac_cv_c_bigendian" >&6; }
4277 case $ac_cv_c_bigendian in #(
4278 yes)
4279 ENDIAN=big
4280;; #(
4281 no)
4282 ENDIAN=little
4283 ;; #(
4284 universal)
Reid Spencera773bd52006-08-04 18:18:08 +00004285
Torok Edwin871384f2010-01-26 08:50:50 +00004286$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
4287
4288 ;; #(
4289 *)
4290 as_fn_error "unknown endianness
4291 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
4292 esac
Reid Spencera773bd52006-08-04 18:18:08 +00004293
4294
4295if test "$cross_compiling" = yes; then
4296 LLVM_CROSS_COMPILING=1
4297
4298
Torok Edwin871384f2010-01-26 08:50:50 +00004299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for executable suffix on build platform" >&5
4300$as_echo_n "checking for executable suffix on build platform... " >&6; }
4301if test "${ac_cv_build_exeext+set}" = set; then :
4302 $as_echo_n "(cached) " >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004303else
4304 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4305 ac_cv_build_exeext=.exe
4306else
4307 ac_build_prefix=${build_alias}-
4308
4309 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4310set dummy ${ac_build_prefix}gcc; ac_word=$2
Torok Edwin871384f2010-01-26 08:50:50 +00004311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4312$as_echo_n "checking for $ac_word... " >&6; }
4313if test "${ac_cv_prog_BUILD_CC+set}" = set; then :
4314 $as_echo_n "(cached) " >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004315else
4316 if test -n "$BUILD_CC"; then
4317 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4318else
4319as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4320for as_dir in $PATH
4321do
4322 IFS=$as_save_IFS
4323 test -z "$as_dir" && as_dir=.
Torok Edwin871384f2010-01-26 08:50:50 +00004324 for ac_exec_ext in '' $ac_executable_extensions; do
4325 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 +00004326 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
Torok Edwin871384f2010-01-26 08:50:50 +00004327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004328 break 2
4329 fi
4330done
Torok Edwin871384f2010-01-26 08:50:50 +00004331 done
Reid Spencera773bd52006-08-04 18:18:08 +00004332IFS=$as_save_IFS
4333
4334fi
4335fi
4336BUILD_CC=$ac_cv_prog_BUILD_CC
4337if test -n "$BUILD_CC"; then
Torok Edwin871384f2010-01-26 08:50:50 +00004338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
4339$as_echo "$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004340else
Torok Edwin871384f2010-01-26 08:50:50 +00004341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4342$as_echo "no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004343fi
4344
4345
4346 if test -z "$BUILD_CC"; then
4347 # Extract the first word of "gcc", so it can be a program name with args.
4348set dummy gcc; ac_word=$2
Torok Edwin871384f2010-01-26 08:50:50 +00004349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4350$as_echo_n "checking for $ac_word... " >&6; }
4351if test "${ac_cv_prog_BUILD_CC+set}" = set; then :
4352 $as_echo_n "(cached) " >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004353else
4354 if test -n "$BUILD_CC"; then
4355 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4356else
4357as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4358for as_dir in $PATH
4359do
4360 IFS=$as_save_IFS
4361 test -z "$as_dir" && as_dir=.
Torok Edwin871384f2010-01-26 08:50:50 +00004362 for ac_exec_ext in '' $ac_executable_extensions; do
4363 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 +00004364 ac_cv_prog_BUILD_CC="gcc"
Torok Edwin871384f2010-01-26 08:50:50 +00004365 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004366 break 2
4367 fi
4368done
Torok Edwin871384f2010-01-26 08:50:50 +00004369 done
Reid Spencera773bd52006-08-04 18:18:08 +00004370IFS=$as_save_IFS
4371
4372fi
4373fi
4374BUILD_CC=$ac_cv_prog_BUILD_CC
4375if test -n "$BUILD_CC"; then
Torok Edwin871384f2010-01-26 08:50:50 +00004376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
4377$as_echo "$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004378else
Torok Edwin871384f2010-01-26 08:50:50 +00004379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4380$as_echo "no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004381fi
4382
4383
4384 if test -z "$BUILD_CC"; then
4385 # Extract the first word of "cc", so it can be a program name with args.
4386set dummy cc; ac_word=$2
Torok Edwin871384f2010-01-26 08:50:50 +00004387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4388$as_echo_n "checking for $ac_word... " >&6; }
4389if test "${ac_cv_prog_BUILD_CC+set}" = set; then :
4390 $as_echo_n "(cached) " >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004391else
4392 if test -n "$BUILD_CC"; then
4393 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4394else
4395 ac_prog_rejected=no
4396as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4397for as_dir in $PATH
4398do
4399 IFS=$as_save_IFS
4400 test -z "$as_dir" && as_dir=.
Torok Edwin871384f2010-01-26 08:50:50 +00004401 for ac_exec_ext in '' $ac_executable_extensions; do
4402 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 +00004403 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4404 ac_prog_rejected=yes
4405 continue
4406 fi
4407 ac_cv_prog_BUILD_CC="cc"
Torok Edwin871384f2010-01-26 08:50:50 +00004408 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004409 break 2
4410 fi
4411done
Torok Edwin871384f2010-01-26 08:50:50 +00004412 done
Reid Spencera773bd52006-08-04 18:18:08 +00004413IFS=$as_save_IFS
4414
4415if test $ac_prog_rejected = yes; then
4416 # We found a bogon in the path, so make sure we never use it.
4417 set dummy $ac_cv_prog_BUILD_CC
4418 shift
4419 if test $# != 0; then
4420 # We chose a different compiler from the bogus one.
4421 # However, it has the same basename, so the bogon will be chosen
4422 # first if we set BUILD_CC to just the basename; use the full file name.
4423 shift
4424 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4425 fi
4426fi
4427fi
4428fi
4429BUILD_CC=$ac_cv_prog_BUILD_CC
4430if test -n "$BUILD_CC"; then
Torok Edwin871384f2010-01-26 08:50:50 +00004431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
4432$as_echo "$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004433else
Torok Edwin871384f2010-01-26 08:50:50 +00004434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4435$as_echo "no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004436fi
4437
4438
4439 fi
4440 fi
Torok Edwin871384f2010-01-26 08:50:50 +00004441 test -z "$BUILD_CC" && as_fn_error "no acceptable cc found in \$PATH" "$LINENO" 5
Reid Spencera773bd52006-08-04 18:18:08 +00004442 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4443 rm -f conftest*
4444 echo 'int main () { return 0; }' > conftest.$ac_ext
4445 ac_cv_build_exeext=
Torok Edwin871384f2010-01-26 08:50:50 +00004446 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_build_link\""; } >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004447 (eval $ac_build_link) 2>&5
4448 ac_status=$?
Torok Edwin871384f2010-01-26 08:50:50 +00004449 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4450 test $ac_status = 0; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004451 for file in conftest.*; do
4452 case $file in
Jim Grosbach0eecd892008-09-26 17:27:58 +00004453 *.c | *.o | *.obj | *.dSYM) ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004454 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4455 esac
4456 done
4457 else
Torok Edwin871384f2010-01-26 08:50:50 +00004458 as_fn_error "installation or configuration problem: compiler cannot create executables." "$LINENO" 5
Reid Spencera773bd52006-08-04 18:18:08 +00004459 fi
4460 rm -f conftest*
4461 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4462fi
4463fi
4464
4465BUILD_EXEEXT=""
4466test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
Torok Edwin871384f2010-01-26 08:50:50 +00004467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_build_exeext}" >&5
4468$as_echo "${ac_cv_build_exeext}" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004469ac_build_exeext=$BUILD_EXEEXT
4470
Jim Grosbach673612e2008-10-02 22:56:44 +00004471 ac_build_prefix=${build_alias}-
4472 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4473set dummy ${ac_build_prefix}g++; ac_word=$2
Torok Edwin871384f2010-01-26 08:50:50 +00004474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4475$as_echo_n "checking for $ac_word... " >&6; }
4476if test "${ac_cv_prog_BUILD_CXX+set}" = set; then :
4477 $as_echo_n "(cached) " >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004478else
4479 if test -n "$BUILD_CXX"; then
4480 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4481else
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=.
Torok Edwin871384f2010-01-26 08:50:50 +00004487 for ac_exec_ext in '' $ac_executable_extensions; do
4488 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 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
Torok Edwin871384f2010-01-26 08:50:50 +00004490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004491 break 2
4492 fi
4493done
Torok Edwin871384f2010-01-26 08:50:50 +00004494 done
Jim Grosbach673612e2008-10-02 22:56:44 +00004495IFS=$as_save_IFS
4496
4497fi
4498fi
4499BUILD_CXX=$ac_cv_prog_BUILD_CXX
4500if test -n "$BUILD_CXX"; then
Torok Edwin871384f2010-01-26 08:50:50 +00004501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CXX" >&5
4502$as_echo "$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004503else
Torok Edwin871384f2010-01-26 08:50:50 +00004504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4505$as_echo "no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004506fi
4507
4508
4509 if test -z "$BUILD_CXX"; then
4510 # Extract the first word of "g++", so it can be a program name with args.
4511set dummy g++; ac_word=$2
Torok Edwin871384f2010-01-26 08:50:50 +00004512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4513$as_echo_n "checking for $ac_word... " >&6; }
4514if test "${ac_cv_prog_BUILD_CXX+set}" = set; then :
4515 $as_echo_n "(cached) " >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004516else
4517 if test -n "$BUILD_CXX"; then
4518 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4519else
4520as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4521for as_dir in $PATH
4522do
4523 IFS=$as_save_IFS
4524 test -z "$as_dir" && as_dir=.
Torok Edwin871384f2010-01-26 08:50:50 +00004525 for ac_exec_ext in '' $ac_executable_extensions; do
4526 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 +00004527 ac_cv_prog_BUILD_CXX="g++"
Torok Edwin871384f2010-01-26 08:50:50 +00004528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004529 break 2
4530 fi
4531done
Torok Edwin871384f2010-01-26 08:50:50 +00004532 done
Jim Grosbach673612e2008-10-02 22:56:44 +00004533IFS=$as_save_IFS
4534
4535fi
4536fi
4537BUILD_CXX=$ac_cv_prog_BUILD_CXX
4538if test -n "$BUILD_CXX"; then
Torok Edwin871384f2010-01-26 08:50:50 +00004539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CXX" >&5
4540$as_echo "$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004541else
Torok Edwin871384f2010-01-26 08:50:50 +00004542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4543$as_echo "no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004544fi
4545
4546
4547 if test -z "$BUILD_CXX"; then
4548 # Extract the first word of "c++", so it can be a program name with args.
4549set dummy c++; ac_word=$2
Torok Edwin871384f2010-01-26 08:50:50 +00004550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4551$as_echo_n "checking for $ac_word... " >&6; }
4552if test "${ac_cv_prog_BUILD_CXX+set}" = set; then :
4553 $as_echo_n "(cached) " >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004554else
4555 if test -n "$BUILD_CXX"; then
4556 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4557else
4558 ac_prog_rejected=no
4559as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4560for as_dir in $PATH
4561do
4562 IFS=$as_save_IFS
4563 test -z "$as_dir" && as_dir=.
Torok Edwin871384f2010-01-26 08:50:50 +00004564 for ac_exec_ext in '' $ac_executable_extensions; do
4565 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 +00004566 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4567 ac_prog_rejected=yes
4568 continue
4569 fi
4570 ac_cv_prog_BUILD_CXX="c++"
Torok Edwin871384f2010-01-26 08:50:50 +00004571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004572 break 2
4573 fi
4574done
Torok Edwin871384f2010-01-26 08:50:50 +00004575 done
Jim Grosbach673612e2008-10-02 22:56:44 +00004576IFS=$as_save_IFS
4577
4578if test $ac_prog_rejected = yes; then
4579 # We found a bogon in the path, so make sure we never use it.
4580 set dummy $ac_cv_prog_BUILD_CXX
4581 shift
4582 if test $# != 0; then
4583 # We chose a different compiler from the bogus one.
4584 # However, it has the same basename, so the bogon will be chosen
4585 # first if we set BUILD_CXX to just the basename; use the full file name.
4586 shift
4587 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4588 fi
4589fi
4590fi
4591fi
4592BUILD_CXX=$ac_cv_prog_BUILD_CXX
4593if test -n "$BUILD_CXX"; then
Torok Edwin871384f2010-01-26 08:50:50 +00004594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CXX" >&5
4595$as_echo "$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004596else
Torok Edwin871384f2010-01-26 08:50:50 +00004597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4598$as_echo "no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004599fi
4600
4601
4602 fi
4603 fi
Reid Spencera773bd52006-08-04 18:18:08 +00004604else
4605 LLVM_CROSS_COMPILING=0
4606
4607fi
4608
Nick Lewycky5b28f862009-04-10 05:18:27 +00004609if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
Reid Spencera773bd52006-08-04 18:18:08 +00004610 cvsbuild="yes"
4611 optimize="no"
4612 CVSBUILD=CVSBUILD=1
4613
4614else
4615 cvsbuild="no"
4616 optimize="yes"
4617fi
4618
4619
4620# Check whether --enable-optimized was given.
Torok Edwin871384f2010-01-26 08:50:50 +00004621if test "${enable_optimized+set}" = set; then :
Reid Spencera773bd52006-08-04 18:18:08 +00004622 enableval=$enable_optimized;
4623else
4624 enableval=$optimize
4625fi
4626
4627if test ${enableval} = "no" ; then
4628 ENABLE_OPTIMIZED=
4629
4630else
4631 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4632
4633fi
4634
David Greene2a5a12c2009-04-17 14:50:39 +00004635# Check whether --enable-profiling was given.
Torok Edwin871384f2010-01-26 08:50:50 +00004636if test "${enable_profiling+set}" = set; then :
David Greene2a5a12c2009-04-17 14:50:39 +00004637 enableval=$enable_profiling;
4638else
4639 enableval="no"
4640fi
4641
4642if test ${enableval} = "no" ; then
4643 ENABLE_PROFILING=
4644
4645else
4646 ENABLE_PROFILING=ENABLE_PROFILING=1
4647
4648fi
4649
Reid Spencera773bd52006-08-04 18:18:08 +00004650# Check whether --enable-assertions was given.
Torok Edwin871384f2010-01-26 08:50:50 +00004651if test "${enable_assertions+set}" = set; then :
Reid Spencera773bd52006-08-04 18:18:08 +00004652 enableval=$enable_assertions;
4653else
4654 enableval="yes"
4655fi
4656
4657if test ${enableval} = "yes" ; then
4658 DISABLE_ASSERTIONS=
4659
4660else
4661 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4662
4663fi
4664
David Greenea696d242007-06-28 19:36:08 +00004665# Check whether --enable-expensive-checks was given.
Torok Edwin871384f2010-01-26 08:50:50 +00004666if test "${enable_expensive_checks+set}" = set; then :
David Greenea696d242007-06-28 19:36:08 +00004667 enableval=$enable_expensive_checks;
4668else
4669 enableval="no"
4670fi
4671
4672if test ${enableval} = "yes" ; then
4673 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4674
4675 EXPENSIVE_CHECKS=yes
4676
4677else
4678 ENABLE_EXPENSIVE_CHECKS=
4679
4680 EXPENSIVE_CHECKS=no
4681
4682fi
4683
Reid Spencer8b2e1412006-11-17 03:32:33 +00004684# Check whether --enable-debug-runtime was given.
Torok Edwin871384f2010-01-26 08:50:50 +00004685if test "${enable_debug_runtime+set}" = set; then :
Reid Spencer8b2e1412006-11-17 03:32:33 +00004686 enableval=$enable_debug_runtime;
4687else
4688 enableval=no
4689fi
4690
4691if test ${enableval} = "no" ; then
4692 DEBUG_RUNTIME=
4693
4694else
4695 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4696
4697fi
4698
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00004699# Check whether --enable-debug-symbols was given.
Torok Edwin871384f2010-01-26 08:50:50 +00004700if test "${enable_debug_symbols+set}" = set; then :
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00004701 enableval=$enable_debug_symbols;
4702else
4703 enableval=no
4704fi
4705
4706if test ${enableval} = "no" ; then
4707 DEBUG_SYMBOLS=
4708
4709else
4710 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
4711
4712fi
4713
Reid Spencera773bd52006-08-04 18:18:08 +00004714# Check whether --enable-jit was given.
Torok Edwin871384f2010-01-26 08:50:50 +00004715if test "${enable_jit+set}" = set; then :
Reid Spencera773bd52006-08-04 18:18:08 +00004716 enableval=$enable_jit;
4717else
4718 enableval=default
4719fi
4720
4721if test ${enableval} = "no"
4722then
4723 JIT=
4724
4725else
4726 case "$llvm_cv_target_arch" in
Shantonu Sen7e836972009-08-11 13:39:52 +00004727 x86) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004728 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004729 Sparc) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00004730 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004731 PowerPC) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004732 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004733 x86_64) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004734 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004735 Alpha) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004736 ;;
Eric Christopher030e5a02009-09-14 16:38:49 +00004737 ARM) TARGET_HAS_JIT=1
Reid Spencer9b5b1822007-01-21 06:32:59 +00004738 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004739 Mips) TARGET_HAS_JIT=0
Tanya Lattnerdde567f2007-08-29 16:38:16 +00004740 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004741 PIC16) TARGET_HAS_JIT=0
Sanjiv Gupta0234f512008-05-13 17:37:32 +00004742 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004743 XCore) TARGET_HAS_JIT=0
Richard Osborneb25baef2008-11-07 10:59:00 +00004744 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004745 MSP430) TARGET_HAS_JIT=0
Anton Korobeynikov2c4718b2009-05-03 13:42:23 +00004746 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004747 SystemZ) TARGET_HAS_JIT=0
Anton Korobeynikov4403b932009-07-16 13:27:25 +00004748 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004749 Blackfin) TARGET_HAS_JIT=0
4750 ;;
4751 *) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00004752 ;;
4753 esac
4754fi
4755
4756# Check whether --enable-doxygen was given.
Torok Edwin871384f2010-01-26 08:50:50 +00004757if test "${enable_doxygen+set}" = set; then :
Reid Spencera773bd52006-08-04 18:18:08 +00004758 enableval=$enable_doxygen;
4759else
4760 enableval=default
4761fi
4762
4763case "$enableval" in
4764 yes) ENABLE_DOXYGEN=1
4765 ;;
4766 no) ENABLE_DOXYGEN=0
4767 ;;
4768 default) ENABLE_DOXYGEN=0
4769 ;;
Torok Edwin871384f2010-01-26 08:50:50 +00004770 *) as_fn_error "Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" "$LINENO" 5 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004771esac
4772
4773# Check whether --enable-threads was given.
Torok Edwin871384f2010-01-26 08:50:50 +00004774if test "${enable_threads+set}" = set; then :
Reid Spencera773bd52006-08-04 18:18:08 +00004775 enableval=$enable_threads;
4776else
Reid Spencer65c5d752006-11-05 17:08:18 +00004777 enableval=default
Reid Spencera773bd52006-08-04 18:18:08 +00004778fi
4779
4780case "$enableval" in
4781 yes) ENABLE_THREADS=1
4782 ;;
4783 no) ENABLE_THREADS=0
4784 ;;
Reid Spencer65c5d752006-11-05 17:08:18 +00004785 default) ENABLE_THREADS=1
4786 ;;
Torok Edwin871384f2010-01-26 08:50:50 +00004787 *) as_fn_error "Invalid setting for --enable-threads. Use \"yes\" or \"no\"" "$LINENO" 5 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004788esac
4789
Owen Andersona8603702009-05-19 22:18:56 +00004790cat >>confdefs.h <<_ACEOF
4791#define ENABLE_THREADS $ENABLE_THREADS
4792_ACEOF
4793
4794
Reid Spencer89b0d992006-12-16 22:07:52 +00004795# Check whether --enable-pic was given.
Torok Edwin871384f2010-01-26 08:50:50 +00004796if test "${enable_pic+set}" = set; then :
Reid Spencer89b0d992006-12-16 22:07:52 +00004797 enableval=$enable_pic;
4798else
4799 enableval=default
4800fi
4801
4802case "$enableval" in
4803 yes) ENABLE_PIC=1
4804 ;;
4805 no) ENABLE_PIC=0
4806 ;;
Nick Lewycky5d249572009-02-19 06:18:56 +00004807 default) ENABLE_PIC=1
Reid Spencer89b0d992006-12-16 22:07:52 +00004808 ;;
Torok Edwin871384f2010-01-26 08:50:50 +00004809 *) as_fn_error "Invalid setting for --enable-pic. Use \"yes\" or \"no\"" "$LINENO" 5 ;;
Reid Spencer89b0d992006-12-16 22:07:52 +00004810esac
4811
4812cat >>confdefs.h <<_ACEOF
4813#define ENABLE_PIC $ENABLE_PIC
4814_ACEOF
4815
4816
Reid Spencera773bd52006-08-04 18:18:08 +00004817TARGETS_TO_BUILD=""
4818# Check whether --enable-targets was given.
Torok Edwin871384f2010-01-26 08:50:50 +00004819if test "${enable_targets+set}" = set; then :
Reid Spencera773bd52006-08-04 18:18:08 +00004820 enableval=$enable_targets;
4821else
4822 enableval=all
4823fi
4824
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00004825if test "$enableval" = host-only ; then
4826 enableval=host
4827fi
Reid Spencera773bd52006-08-04 18:18:08 +00004828case "$enableval" in
Jakob Stoklund Olesen73b7bb72009-08-02 17:32:37 +00004829 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU PIC16 XCore MSP430 SystemZ Blackfin CBackend MSIL CppBackend" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004830 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4831 case "$a_target" in
Shantonu Sen7e836972009-08-11 13:39:52 +00004832 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4833 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4834 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4835 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4836 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4837 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4838 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4839 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4840 pic16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4841 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4842 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
4843 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
4844 blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
4845 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
4846 msil) TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
4847 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00004848 host) case "$llvm_cv_target_arch" in
4849 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4850 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4851 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4852 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4853 Alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4854 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4855 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4856 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4857 PIC16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4858 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4859 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
Anton Korobeynikov6ca835d2010-01-05 20:45:43 +00004860 s390x) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00004861 Blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
Torok Edwin871384f2010-01-26 08:50:50 +00004862 *) as_fn_error "Can not set target to build" "$LINENO" 5 ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00004863 esac ;;
Torok Edwin871384f2010-01-26 08:50:50 +00004864 *) as_fn_error "Unrecognized target $a_target" "$LINENO" 5 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004865 esac
4866 done
4867 ;;
4868esac
Reid Spencera773bd52006-08-04 18:18:08 +00004869TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4870
4871
Douglas Gregor0711c302009-06-17 00:43:20 +00004872# Determine whether we are building LLVM support for the native architecture.
4873# If so, define LLVM_NATIVE_ARCH to that LLVM target.
4874for a_target in $TARGETS_TO_BUILD; do
4875 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
Douglas Gregora0162ff2009-06-23 17:22:05 +00004876 LLVM_NATIVE_ARCHTARGET="${LLVM_NATIVE_ARCH}Target"
Douglas Gregor0711c302009-06-17 00:43:20 +00004877
4878cat >>confdefs.h <<_ACEOF
Douglas Gregora0162ff2009-06-23 17:22:05 +00004879#define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCHTARGET
Douglas Gregor0711c302009-06-17 00:43:20 +00004880_ACEOF
4881
4882 fi
4883done
4884
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00004885# Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
4886# target feature def files.
Douglas Gregor1555a232009-06-16 20:12:29 +00004887LLVM_ENUM_TARGETS=""
4888LLVM_ENUM_ASM_PRINTERS=""
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00004889LLVM_ENUM_ASM_PARSERS=""
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00004890LLVM_ENUM_DISASSEMBLERS=""
Douglas Gregor1555a232009-06-16 20:12:29 +00004891for target_to_build in $TARGETS_TO_BUILD; do
4892 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
4893 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmPrinter/Makefile ; then
4894 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
4895 fi
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00004896 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
4897 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
4898 fi
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00004899 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
4900 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
4901 fi
Douglas Gregor1555a232009-06-16 20:12:29 +00004902done
4903
4904
4905
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00004906
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00004907
Reid Spencer65c5d752006-11-05 17:08:18 +00004908# Check whether --enable-cbe-printf-a was given.
Torok Edwin871384f2010-01-26 08:50:50 +00004909if test "${enable_cbe_printf_a+set}" = set; then :
Reid Spencer65c5d752006-11-05 17:08:18 +00004910 enableval=$enable_cbe_printf_a;
4911else
4912 enableval=default
4913fi
4914
4915case "$enableval" in
4916 yes) ENABLE_CBE_PRINTF_A=1
4917 ;;
4918 no) ENABLE_CBE_PRINTF_A=0
4919 ;;
4920 default) ENABLE_CBE_PRINTF_A=1
4921 ;;
Torok Edwin871384f2010-01-26 08:50:50 +00004922 *) as_fn_error "Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" "$LINENO" 5 ;;
Reid Spencer65c5d752006-11-05 17:08:18 +00004923esac
4924
4925cat >>confdefs.h <<_ACEOF
4926#define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
4927_ACEOF
4928
4929
Reid Spencera773bd52006-08-04 18:18:08 +00004930
4931# Check whether --with-llvmgccdir was given.
Torok Edwin871384f2010-01-26 08:50:50 +00004932if test "${with_llvmgccdir+set}" = set; then :
Reid Spencera773bd52006-08-04 18:18:08 +00004933 withval=$with_llvmgccdir;
4934else
4935 withval=default
4936fi
4937
4938case "$withval" in
4939 default) WITH_LLVMGCCDIR=default ;;
4940 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
Torok Edwin871384f2010-01-26 08:50:50 +00004941 *) as_fn_error "Invalid path for --with-llvmgccdir. Provide full path" "$LINENO" 5 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004942esac
4943
4944
Devang Patel5d28b882007-12-04 22:54:47 +00004945# Check whether --with-llvmgcc was given.
Torok Edwin871384f2010-01-26 08:50:50 +00004946if test "${with_llvmgcc+set}" = set; then :
Devang Patel5d28b882007-12-04 22:54:47 +00004947 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
4948 WITH_LLVMGCCDIR=""
4949fi
4950
4951
4952
4953# Check whether --with-llvmgxx was given.
Torok Edwin871384f2010-01-26 08:50:50 +00004954if test "${with_llvmgxx+set}" = set; then :
Devang Patel5d28b882007-12-04 22:54:47 +00004955 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
4956 WITH_LLVMGCCDIR=""
4957fi
4958
Douglas Gregor01746742009-05-11 18:05:52 +00004959
Mikhail Glushenkov4558f482009-04-21 19:46:10 +00004960if test -n "$LLVMGCC"; then
4961 LLVMGCCCOMMAND="$LLVMGCC"
4962fi
4963
4964if test -n "$LLVMGXX"; then
4965 LLVMGXXCOMMAND="$LLVMGXX"
4966fi
Devang Patel5d28b882007-12-04 22:54:47 +00004967
4968if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
Torok Edwin871384f2010-01-26 08:50:50 +00004969 as_fn_error "Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" "$LINENO" 5;
Devang Patel5d28b882007-12-04 22:54:47 +00004970fi
4971
4972if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
Torok Edwin871384f2010-01-26 08:50:50 +00004973 as_fn_error "Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" "$LINENO" 5;
Devang Patel5d28b882007-12-04 22:54:47 +00004974fi
4975
4976
Daniel Dunbar1fce9482009-11-04 04:32:50 +00004977# Check whether --with-optimize-option was given.
Torok Edwin871384f2010-01-26 08:50:50 +00004978if test "${with_optimize_option+set}" = set; then :
Daniel Dunbar1fce9482009-11-04 04:32:50 +00004979 withval=$with_optimize_option;
4980else
4981 withval=default
4982fi
4983
Torok Edwin871384f2010-01-26 08:50:50 +00004984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking optimization flags" >&5
4985$as_echo_n "checking optimization flags... " >&6; }
Daniel Dunbar1fce9482009-11-04 04:32:50 +00004986case "$withval" in
4987 default)
4988 case "$llvm_cv_os_type" in
4989 MingW) optimize_option=-O3 ;;
4990 *) optimize_option=-O2 ;;
4991 esac ;;
4992 *) optimize_option="$withval" ;;
4993esac
4994OPTIMIZE_OPTION=$optimize_option
4995
Torok Edwin871384f2010-01-26 08:50:50 +00004996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $optimize_option" >&5
4997$as_echo "$optimize_option" >&6; }
Daniel Dunbar1fce9482009-11-04 04:32:50 +00004998
4999
Reid Spencera773bd52006-08-04 18:18:08 +00005000# Check whether --with-extra-options was given.
Torok Edwin871384f2010-01-26 08:50:50 +00005001if test "${with_extra_options+set}" = set; then :
Reid Spencera773bd52006-08-04 18:18:08 +00005002 withval=$with_extra_options;
5003else
5004 withval=default
5005fi
5006
5007case "$withval" in
5008 default) EXTRA_OPTIONS= ;;
5009 *) EXTRA_OPTIONS=$withval ;;
5010esac
5011EXTRA_OPTIONS=$EXTRA_OPTIONS
5012
5013
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005014# Check whether --enable-bindings was given.
Torok Edwin871384f2010-01-26 08:50:50 +00005015if test "${enable_bindings+set}" = set; then :
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005016 enableval=$enable_bindings;
5017else
5018 enableval=default
5019fi
5020
5021BINDINGS_TO_BUILD=""
5022case "$enableval" in
Gordon Henriksenbae4adc2007-10-02 10:14:42 +00005023 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005024 all ) BINDINGS_TO_BUILD="ocaml" ;;
5025 none | no) BINDINGS_TO_BUILD="" ;;
5026 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5027 case "$a_binding" in
5028 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
Torok Edwin871384f2010-01-26 08:50:50 +00005029 *) as_fn_error "Unrecognized binding $a_binding" "$LINENO" 5 ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005030 esac
5031 done
5032 ;;
5033esac
5034
Reid Spencera773bd52006-08-04 18:18:08 +00005035
Gordon Henriksenf0915682007-10-02 16:42:22 +00005036# Check whether --with-ocaml-libdir was given.
Torok Edwin871384f2010-01-26 08:50:50 +00005037if test "${with_ocaml_libdir+set}" = set; then :
Gordon Henriksenf0915682007-10-02 16:42:22 +00005038 withval=$with_ocaml_libdir;
5039else
5040 withval=auto
5041fi
5042
5043case "$withval" in
5044 auto) with_ocaml_libdir="$withval" ;;
5045 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
Torok Edwin871384f2010-01-26 08:50:50 +00005046 *) as_fn_error "Invalid path for --with-ocaml-libdir. Provide full path" "$LINENO" 5 ;;
Gordon Henriksenf0915682007-10-02 16:42:22 +00005047esac
5048
5049
Rafael Espindolad6c8ec62009-12-07 00:27:35 +00005050# Check whether --with-c-include-dirs was given.
Torok Edwin871384f2010-01-26 08:50:50 +00005051if test "${with_c_include_dirs+set}" = set; then :
Rafael Espindolad6c8ec62009-12-07 00:27:35 +00005052 withval=$with_c_include_dirs;
Rafael Espindola7f9ec912009-11-12 05:46:09 +00005053else
5054 withval=""
5055fi
5056
5057
5058cat >>confdefs.h <<_ACEOF
5059#define C_INCLUDE_DIRS "$withval"
5060_ACEOF
5061
5062
5063
Rafael Espindola420d23c2009-11-16 19:46:55 +00005064# Check whether --with-cxx-include-root was given.
Torok Edwin871384f2010-01-26 08:50:50 +00005065if test "${with_cxx_include_root+set}" = set; then :
Rafael Espindola420d23c2009-11-16 19:46:55 +00005066 withval=$with_cxx_include_root;
5067else
5068 withval=""
5069fi
5070
5071
5072cat >>confdefs.h <<_ACEOF
5073#define CXX_INCLUDE_ROOT "$withval"
5074_ACEOF
5075
5076
5077
5078# Check whether --with-cxx-include-arch was given.
Torok Edwin871384f2010-01-26 08:50:50 +00005079if test "${with_cxx_include_arch+set}" = set; then :
Rafael Espindola420d23c2009-11-16 19:46:55 +00005080 withval=$with_cxx_include_arch;
5081else
5082 withval=""
5083fi
5084
5085
5086cat >>confdefs.h <<_ACEOF
5087#define CXX_INCLUDE_ARCH "$withval"
5088_ACEOF
5089
5090
5091
5092# Check whether --with-cxx-include-32bit-dir was given.
Torok Edwin871384f2010-01-26 08:50:50 +00005093if test "${with_cxx_include_32bit_dir+set}" = set; then :
Rafael Espindola420d23c2009-11-16 19:46:55 +00005094 withval=$with_cxx_include_32bit_dir;
5095else
5096 withval=""
5097fi
5098
5099
5100cat >>confdefs.h <<_ACEOF
5101#define CXX_INCLUDE_32BIT_DIR "$withval"
5102_ACEOF
5103
5104
5105
5106# Check whether --with-cxx-include-64bit-dir was given.
Torok Edwin871384f2010-01-26 08:50:50 +00005107if test "${with_cxx_include_64bit_dir+set}" = set; then :
Rafael Espindola420d23c2009-11-16 19:46:55 +00005108 withval=$with_cxx_include_64bit_dir;
5109else
5110 withval=""
5111fi
5112
5113
5114cat >>confdefs.h <<_ACEOF
5115#define CXX_INCLUDE_64BIT_DIR "$withval"
5116_ACEOF
5117
5118
5119
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005120# Check whether --with-binutils-include was given.
Torok Edwin871384f2010-01-26 08:50:50 +00005121if test "${with_binutils_include+set}" = set; then :
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005122 withval=$with_binutils_include;
5123else
5124 withval=default
5125fi
5126
5127case "$withval" in
5128 default) WITH_BINUTILS_INCDIR=default ;;
5129 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
Torok Edwin871384f2010-01-26 08:50:50 +00005130 *) as_fn_error "Invalid path for --with-binutils-include. Provide full path" "$LINENO" 5 ;;
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005131esac
5132if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5133 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5134
5135 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5136 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
Torok Edwin871384f2010-01-26 08:50:50 +00005137 as_fn_error "Invalid path to directory containing plugin-api.h." "$LINENO" 5;
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005138 fi
5139fi
5140
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00005141# Check whether --enable-libffi was given.
Torok Edwin871384f2010-01-26 08:50:50 +00005142if test "${enable_libffi+set}" = set; then :
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00005143 enableval=$enable_libffi;
5144else
5145 enableval=yes
5146fi
5147
5148case "$enableval" in
5149 yes) llvm_cv_enable_libffi="yes" ;;
5150 no) llvm_cv_enable_libffi="no" ;;
Torok Edwin871384f2010-01-26 08:50:50 +00005151 *) as_fn_error "Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" "$LINENO" 5 ;;
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00005152esac
5153
Mikhail Glushenkovd0f27c42009-07-04 14:23:08 +00005154if test "$llvm_cv_os_type" = "Win32" ; then
5155 llvmc_dynamic="yes"
5156else
5157 llvmc_dynamic="no"
5158fi
5159
5160# Check whether --enable-llvmc-dynamic was given.
Torok Edwin871384f2010-01-26 08:50:50 +00005161if test "${enable_llvmc_dynamic+set}" = set; then :
Mikhail Glushenkovd0f27c42009-07-04 14:23:08 +00005162 enableval=$enable_llvmc_dynamic;
5163else
5164 enableval=$llvmc_dynamic
5165fi
5166
5167if test ${enableval} = "yes" && test "$ENABLE_PIC" -eq 1 ; then
5168 ENABLE_LLVMC_DYNAMIC=ENABLE_LLVMC_DYNAMIC=1
5169
5170else
5171 ENABLE_LLVMC_DYNAMIC=
5172
5173fi
5174
5175# Check whether --enable-llvmc-dynamic-plugins was given.
Torok Edwin871384f2010-01-26 08:50:50 +00005176if test "${enable_llvmc_dynamic_plugins+set}" = set; then :
Mikhail Glushenkovd0f27c42009-07-04 14:23:08 +00005177 enableval=$enable_llvmc_dynamic_plugins;
5178else
5179 enableval=yes
5180fi
5181
5182if test ${enableval} = "yes" ; then
5183 ENABLE_LLVMC_DYNAMIC_PLUGINS=ENABLE_LLVMC_DYNAMIC_PLUGINS=1
5184
5185else
5186 ENABLE_LLVMC_DYNAMIC_PLUGINS=
5187
5188fi
5189
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005190
Reid Spencera773bd52006-08-04 18:18:08 +00005191ac_ext=c
5192ac_cpp='$CPP $CPPFLAGS'
5193ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5194ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5195ac_compiler_gnu=$ac_cv_c_compiler_gnu
Torok Edwin871384f2010-01-26 08:50:50 +00005196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5197$as_echo_n "checking how to run the C preprocessor... " >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005198# On Suns, sometimes $CPP names a directory.
5199if test -n "$CPP" && test -d "$CPP"; then
5200 CPP=
5201fi
5202if test -z "$CPP"; then
Torok Edwin871384f2010-01-26 08:50:50 +00005203 if test "${ac_cv_prog_CPP+set}" = set; then :
5204 $as_echo_n "(cached) " >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005205else
5206 # Double quotes because CPP needs to be expanded
5207 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5208 do
5209 ac_preproc_ok=false
5210for ac_c_preproc_warn_flag in '' yes
5211do
5212 # Use a header file that comes with gcc, so configuring glibc
5213 # with a fresh cross-compiler works.
5214 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5215 # <limits.h> exists even on freestanding compilers.
5216 # On the NeXT, cc -E runs the code through the compiler's parser,
5217 # not just through cpp. "Syntax error" is here to catch this case.
Torok Edwin871384f2010-01-26 08:50:50 +00005218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +00005219/* end confdefs.h. */
5220#ifdef __STDC__
5221# include <limits.h>
5222#else
5223# include <assert.h>
5224#endif
5225 Syntax error
5226_ACEOF
Torok Edwin871384f2010-01-26 08:50:50 +00005227if ac_fn_c_try_cpp "$LINENO"; then :
Reid Spencera773bd52006-08-04 18:18:08 +00005228
Torok Edwin871384f2010-01-26 08:50:50 +00005229else
Reid Spencera773bd52006-08-04 18:18:08 +00005230 # Broken: fails on valid input.
5231continue
5232fi
Reid Spencera773bd52006-08-04 18:18:08 +00005233rm -f conftest.err conftest.$ac_ext
5234
5235 # OK, works on sane cases. Now check whether nonexistent headers
5236 # can be detected and how.
Torok Edwin871384f2010-01-26 08:50:50 +00005237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +00005238/* end confdefs.h. */
5239#include <ac_nonexistent.h>
5240_ACEOF
Torok Edwin871384f2010-01-26 08:50:50 +00005241if ac_fn_c_try_cpp "$LINENO"; then :
Reid Spencera773bd52006-08-04 18:18:08 +00005242 # Broken: success on invalid input.
5243continue
5244else
Reid Spencera773bd52006-08-04 18:18:08 +00005245 # Passes both tests.
5246ac_preproc_ok=:
5247break
5248fi
Reid Spencera773bd52006-08-04 18:18:08 +00005249rm -f conftest.err conftest.$ac_ext
5250
5251done
5252# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5253rm -f conftest.err conftest.$ac_ext
Torok Edwin871384f2010-01-26 08:50:50 +00005254if $ac_preproc_ok; then :
Reid Spencera773bd52006-08-04 18:18:08 +00005255 break
5256fi
5257
5258 done
5259 ac_cv_prog_CPP=$CPP
5260
5261fi
5262 CPP=$ac_cv_prog_CPP
5263else
5264 ac_cv_prog_CPP=$CPP
5265fi
Torok Edwin871384f2010-01-26 08:50:50 +00005266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5267$as_echo "$CPP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005268ac_preproc_ok=false
5269for ac_c_preproc_warn_flag in '' yes
5270do
5271 # Use a header file that comes with gcc, so configuring glibc
5272 # with a fresh cross-compiler works.
5273 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5274 # <limits.h> exists even on freestanding compilers.
5275 # On the NeXT, cc -E runs the code through the compiler's parser,
5276 # not just through cpp. "Syntax error" is here to catch this case.
Torok Edwin871384f2010-01-26 08:50:50 +00005277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +00005278/* end confdefs.h. */
5279#ifdef __STDC__
5280# include <limits.h>
5281#else
5282# include <assert.h>
5283#endif
5284 Syntax error
5285_ACEOF
Torok Edwin871384f2010-01-26 08:50:50 +00005286if ac_fn_c_try_cpp "$LINENO"; then :
Reid Spencera773bd52006-08-04 18:18:08 +00005287
Torok Edwin871384f2010-01-26 08:50:50 +00005288else
Reid Spencera773bd52006-08-04 18:18:08 +00005289 # Broken: fails on valid input.
5290continue
5291fi
Reid Spencera773bd52006-08-04 18:18:08 +00005292rm -f conftest.err conftest.$ac_ext
5293
5294 # OK, works on sane cases. Now check whether nonexistent headers
5295 # can be detected and how.
Torok Edwin871384f2010-01-26 08:50:50 +00005296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +00005297/* end confdefs.h. */
5298#include <ac_nonexistent.h>
5299_ACEOF
Torok Edwin871384f2010-01-26 08:50:50 +00005300if ac_fn_c_try_cpp "$LINENO"; then :
Reid Spencera773bd52006-08-04 18:18:08 +00005301 # Broken: success on invalid input.
5302continue
5303else
Reid Spencera773bd52006-08-04 18:18:08 +00005304 # Passes both tests.
5305ac_preproc_ok=:
5306break
5307fi
Reid Spencera773bd52006-08-04 18:18:08 +00005308rm -f conftest.err conftest.$ac_ext
5309
5310done
5311# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5312rm -f conftest.err conftest.$ac_ext
Torok Edwin871384f2010-01-26 08:50:50 +00005313if $ac_preproc_ok; then :
5314
Reid Spencera773bd52006-08-04 18:18:08 +00005315else
Torok Edwin871384f2010-01-26 08:50:50 +00005316 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5317$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5318as_fn_error "C preprocessor \"$CPP\" fails sanity check
5319See \`config.log' for more details." "$LINENO" 5; }
Reid Spencera773bd52006-08-04 18:18:08 +00005320fi
5321
5322ac_ext=c
5323ac_cpp='$CPP $CPPFLAGS'
5324ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5325ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5326ac_compiler_gnu=$ac_cv_c_compiler_gnu
5327
5328ac_ext=c
5329ac_cpp='$CPP $CPPFLAGS'
5330ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5331ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5332ac_compiler_gnu=$ac_cv_c_compiler_gnu
5333if test -n "$ac_tool_prefix"; then
5334 for ac_prog in gcc
5335 do
5336 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5337set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Torok Edwin871384f2010-01-26 08:50:50 +00005338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5339$as_echo_n "checking for $ac_word... " >&6; }
5340if test "${ac_cv_prog_CC+set}" = set; then :
5341 $as_echo_n "(cached) " >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005342else
5343 if test -n "$CC"; then
5344 ac_cv_prog_CC="$CC" # Let the user override the test.
5345else
5346as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5347for as_dir in $PATH
5348do
5349 IFS=$as_save_IFS
5350 test -z "$as_dir" && as_dir=.
Torok Edwin871384f2010-01-26 08:50:50 +00005351 for ac_exec_ext in '' $ac_executable_extensions; do
5352 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 +00005353 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Torok Edwin871384f2010-01-26 08:50:50 +00005354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005355 break 2
5356 fi
5357done
Torok Edwin871384f2010-01-26 08:50:50 +00005358 done
Reid Spencera773bd52006-08-04 18:18:08 +00005359IFS=$as_save_IFS
5360
5361fi
5362fi
5363CC=$ac_cv_prog_CC
5364if test -n "$CC"; then
Torok Edwin871384f2010-01-26 08:50:50 +00005365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5366$as_echo "$CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005367else
Torok Edwin871384f2010-01-26 08:50:50 +00005368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5369$as_echo "no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005370fi
5371
5372
5373 test -n "$CC" && break
5374 done
5375fi
5376if test -z "$CC"; then
5377 ac_ct_CC=$CC
5378 for ac_prog in gcc
5379do
5380 # Extract the first word of "$ac_prog", so it can be a program name with args.
5381set dummy $ac_prog; ac_word=$2
Torok Edwin871384f2010-01-26 08:50:50 +00005382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5383$as_echo_n "checking for $ac_word... " >&6; }
5384if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5385 $as_echo_n "(cached) " >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005386else
5387 if test -n "$ac_ct_CC"; then
5388 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5389else
5390as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5391for as_dir in $PATH
5392do
5393 IFS=$as_save_IFS
5394 test -z "$as_dir" && as_dir=.
Torok Edwin871384f2010-01-26 08:50:50 +00005395 for ac_exec_ext in '' $ac_executable_extensions; do
5396 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 +00005397 ac_cv_prog_ac_ct_CC="$ac_prog"
Torok Edwin871384f2010-01-26 08:50:50 +00005398 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005399 break 2
5400 fi
5401done
Torok Edwin871384f2010-01-26 08:50:50 +00005402 done
Reid Spencera773bd52006-08-04 18:18:08 +00005403IFS=$as_save_IFS
5404
5405fi
5406fi
5407ac_ct_CC=$ac_cv_prog_ac_ct_CC
5408if test -n "$ac_ct_CC"; then
Torok Edwin871384f2010-01-26 08:50:50 +00005409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5410$as_echo "$ac_ct_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005411else
Torok Edwin871384f2010-01-26 08:50:50 +00005412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5413$as_echo "no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005414fi
5415
5416
5417 test -n "$ac_ct_CC" && break
5418done
5419
5420 if test "x$ac_ct_CC" = x; then
5421 CC=""
5422 else
5423 case $cross_compiling:$ac_tool_warned in
5424yes:)
Torok Edwin871384f2010-01-26 08:50:50 +00005425{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5426$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00005427ac_tool_warned=yes ;;
5428esac
5429 CC=$ac_ct_CC
5430 fi
5431fi
5432
5433
Torok Edwin871384f2010-01-26 08:50:50 +00005434test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5435$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5436as_fn_error "no acceptable C compiler found in \$PATH
5437See \`config.log' for more details." "$LINENO" 5; }
Reid Spencera773bd52006-08-04 18:18:08 +00005438
5439# Provide some information about the compiler.
Torok Edwin871384f2010-01-26 08:50:50 +00005440$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5441set X $ac_compile
5442ac_compiler=$2
5443for ac_option in --version -v -V -qversion; do
5444 { { ac_try="$ac_compiler $ac_option >&5"
Reid Spencera773bd52006-08-04 18:18:08 +00005445case "(($ac_try" in
5446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5447 *) ac_try_echo=$ac_try;;
5448esac
Torok Edwin871384f2010-01-26 08:50:50 +00005449eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5450$as_echo "$ac_try_echo"; } >&5
5451 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
Reid Spencera773bd52006-08-04 18:18:08 +00005452 ac_status=$?
Torok Edwin871384f2010-01-26 08:50:50 +00005453 if test -s conftest.err; then
5454 sed '10a\
5455... rest of stderr output deleted ...
5456 10q' conftest.err >conftest.er1
5457 cat conftest.er1 >&5
5458 fi
5459 rm -f conftest.er1 conftest.err
5460 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5461 test $ac_status = 0; }
5462done
Reid Spencera773bd52006-08-04 18:18:08 +00005463
Torok Edwin871384f2010-01-26 08:50:50 +00005464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5465$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5466if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5467 $as_echo_n "(cached) " >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005468else
Torok Edwin871384f2010-01-26 08:50:50 +00005469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +00005470/* end confdefs.h. */
5471
5472int
5473main ()
5474{
5475#ifndef __GNUC__
5476 choke me
5477#endif
5478
5479 ;
5480 return 0;
5481}
5482_ACEOF
Torok Edwin871384f2010-01-26 08:50:50 +00005483if ac_fn_c_try_compile "$LINENO"; then :
Reid Spencera773bd52006-08-04 18:18:08 +00005484 ac_compiler_gnu=yes
5485else
Torok Edwin871384f2010-01-26 08:50:50 +00005486 ac_compiler_gnu=no
Reid Spencera773bd52006-08-04 18:18:08 +00005487fi
Reid Spencera773bd52006-08-04 18:18:08 +00005488rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5489ac_cv_c_compiler_gnu=$ac_compiler_gnu
5490
5491fi
Torok Edwin871384f2010-01-26 08:50:50 +00005492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5493$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5494if test $ac_compiler_gnu = yes; then
5495 GCC=yes
5496else
5497 GCC=
5498fi
Reid Spencera773bd52006-08-04 18:18:08 +00005499ac_test_CFLAGS=${CFLAGS+set}
5500ac_save_CFLAGS=$CFLAGS
Torok Edwin871384f2010-01-26 08:50:50 +00005501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5502$as_echo_n "checking whether $CC accepts -g... " >&6; }
5503if test "${ac_cv_prog_cc_g+set}" = set; then :
5504 $as_echo_n "(cached) " >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005505else
5506 ac_save_c_werror_flag=$ac_c_werror_flag
5507 ac_c_werror_flag=yes
5508 ac_cv_prog_cc_g=no
5509 CFLAGS="-g"
Torok Edwin871384f2010-01-26 08:50:50 +00005510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +00005511/* end confdefs.h. */
5512
5513int
5514main ()
5515{
5516
5517 ;
5518 return 0;
5519}
5520_ACEOF
Torok Edwin871384f2010-01-26 08:50:50 +00005521if ac_fn_c_try_compile "$LINENO"; then :
Reid Spencera773bd52006-08-04 18:18:08 +00005522 ac_cv_prog_cc_g=yes
5523else
Torok Edwin871384f2010-01-26 08:50:50 +00005524 CFLAGS=""
5525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +00005526/* end confdefs.h. */
5527
5528int
5529main ()
5530{
5531
5532 ;
5533 return 0;
5534}
5535_ACEOF
Torok Edwin871384f2010-01-26 08:50:50 +00005536if ac_fn_c_try_compile "$LINENO"; then :
Reid Spencera773bd52006-08-04 18:18:08 +00005537
Torok Edwin871384f2010-01-26 08:50:50 +00005538else
5539 ac_c_werror_flag=$ac_save_c_werror_flag
Reid Spencera773bd52006-08-04 18:18:08 +00005540 CFLAGS="-g"
Torok Edwin871384f2010-01-26 08:50:50 +00005541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +00005542/* end confdefs.h. */
5543
5544int
5545main ()
5546{
5547
5548 ;
5549 return 0;
5550}
5551_ACEOF
Torok Edwin871384f2010-01-26 08:50:50 +00005552if ac_fn_c_try_compile "$LINENO"; then :
Reid Spencera773bd52006-08-04 18:18:08 +00005553 ac_cv_prog_cc_g=yes
Reid Spencera773bd52006-08-04 18:18:08 +00005554fi
Reid Spencera773bd52006-08-04 18:18:08 +00005555rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5556fi
Reid Spencera773bd52006-08-04 18:18:08 +00005557rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5558fi
Reid Spencera773bd52006-08-04 18:18:08 +00005559rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5560 ac_c_werror_flag=$ac_save_c_werror_flag
5561fi
Torok Edwin871384f2010-01-26 08:50:50 +00005562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5563$as_echo "$ac_cv_prog_cc_g" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005564if test "$ac_test_CFLAGS" = set; then
5565 CFLAGS=$ac_save_CFLAGS
5566elif test $ac_cv_prog_cc_g = yes; then
5567 if test "$GCC" = yes; then
5568 CFLAGS="-g -O2"
5569 else
5570 CFLAGS="-g"
5571 fi
5572else
5573 if test "$GCC" = yes; then
5574 CFLAGS="-O2"
5575 else
5576 CFLAGS=
5577 fi
5578fi
Torok Edwin871384f2010-01-26 08:50:50 +00005579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5580$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5581if test "${ac_cv_prog_cc_c89+set}" = set; then :
5582 $as_echo_n "(cached) " >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005583else
5584 ac_cv_prog_cc_c89=no
5585ac_save_CC=$CC
Torok Edwin871384f2010-01-26 08:50:50 +00005586cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +00005587/* end confdefs.h. */
5588#include <stdarg.h>
5589#include <stdio.h>
5590#include <sys/types.h>
5591#include <sys/stat.h>
5592/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5593struct buf { int x; };
5594FILE * (*rcsopen) (struct buf *, struct stat *, int);
5595static char *e (p, i)
5596 char **p;
5597 int i;
5598{
5599 return p[i];
5600}
5601static char *f (char * (*g) (char **, int), char **p, ...)
5602{
5603 char *s;
5604 va_list v;
5605 va_start (v,p);
5606 s = g (p, va_arg (v,int));
5607 va_end (v);
5608 return s;
5609}
5610
5611/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5612 function prototypes and stuff, but not '\xHH' hex character constants.
5613 These don't provoke an error unfortunately, instead are silently treated
5614 as 'x'. The following induces an error, until -std is added to get
5615 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5616 array size at least. It's necessary to write '\x00'==0 to get something
5617 that's true only with -std. */
5618int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5619
5620/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5621 inside strings and character constants. */
5622#define FOO(x) 'x'
5623int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5624
5625int test (int i, double x);
5626struct s1 {int (*f) (int a);};
5627struct s2 {int (*f) (double a);};
5628int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5629int argc;
5630char **argv;
5631int
5632main ()
5633{
5634return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5635 ;
5636 return 0;
5637}
5638_ACEOF
5639for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5640 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5641do
5642 CC="$ac_save_CC $ac_arg"
Torok Edwin871384f2010-01-26 08:50:50 +00005643 if ac_fn_c_try_compile "$LINENO"; then :
Reid Spencera773bd52006-08-04 18:18:08 +00005644 ac_cv_prog_cc_c89=$ac_arg
Reid Spencera773bd52006-08-04 18:18:08 +00005645fi
Reid Spencera773bd52006-08-04 18:18:08 +00005646rm -f core conftest.err conftest.$ac_objext
5647 test "x$ac_cv_prog_cc_c89" != "xno" && break
5648done
5649rm -f conftest.$ac_ext
5650CC=$ac_save_CC
5651
5652fi
5653# AC_CACHE_VAL
5654case "x$ac_cv_prog_cc_c89" in
5655 x)
Torok Edwin871384f2010-01-26 08:50:50 +00005656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5657$as_echo "none needed" >&6; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005658 xno)
Torok Edwin871384f2010-01-26 08:50:50 +00005659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5660$as_echo "unsupported" >&6; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005661 *)
5662 CC="$CC $ac_cv_prog_cc_c89"
Torok Edwin871384f2010-01-26 08:50:50 +00005663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5664$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005665esac
Torok Edwin871384f2010-01-26 08:50:50 +00005666if test "x$ac_cv_prog_cc_c89" != xno; then :
Reid Spencera773bd52006-08-04 18:18:08 +00005667
Torok Edwin871384f2010-01-26 08:50:50 +00005668fi
Reid Spencera773bd52006-08-04 18:18:08 +00005669
5670ac_ext=c
5671ac_cpp='$CPP $CPPFLAGS'
5672ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5673ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5674ac_compiler_gnu=$ac_cv_c_compiler_gnu
5675
5676ac_ext=cpp
5677ac_cpp='$CXXCPP $CPPFLAGS'
5678ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5679ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5680ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5681if test -z "$CXX"; then
5682 if test -n "$CCC"; then
5683 CXX=$CCC
5684 else
5685 if test -n "$ac_tool_prefix"; then
5686 for ac_prog in g++
5687 do
5688 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5689set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Torok Edwin871384f2010-01-26 08:50:50 +00005690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5691$as_echo_n "checking for $ac_word... " >&6; }
5692if test "${ac_cv_prog_CXX+set}" = set; then :
5693 $as_echo_n "(cached) " >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005694else
5695 if test -n "$CXX"; then
5696 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5697else
5698as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5699for as_dir in $PATH
5700do
5701 IFS=$as_save_IFS
5702 test -z "$as_dir" && as_dir=.
Torok Edwin871384f2010-01-26 08:50:50 +00005703 for ac_exec_ext in '' $ac_executable_extensions; do
5704 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 +00005705 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
Torok Edwin871384f2010-01-26 08:50:50 +00005706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005707 break 2
5708 fi
5709done
Torok Edwin871384f2010-01-26 08:50:50 +00005710 done
Reid Spencera773bd52006-08-04 18:18:08 +00005711IFS=$as_save_IFS
5712
5713fi
5714fi
5715CXX=$ac_cv_prog_CXX
5716if test -n "$CXX"; then
Torok Edwin871384f2010-01-26 08:50:50 +00005717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5718$as_echo "$CXX" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005719else
Torok Edwin871384f2010-01-26 08:50:50 +00005720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5721$as_echo "no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005722fi
5723
5724
5725 test -n "$CXX" && break
5726 done
5727fi
5728if test -z "$CXX"; then
5729 ac_ct_CXX=$CXX
5730 for ac_prog in g++
5731do
5732 # Extract the first word of "$ac_prog", so it can be a program name with args.
5733set dummy $ac_prog; ac_word=$2
Torok Edwin871384f2010-01-26 08:50:50 +00005734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5735$as_echo_n "checking for $ac_word... " >&6; }
5736if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
5737 $as_echo_n "(cached) " >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005738else
5739 if test -n "$ac_ct_CXX"; then
5740 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5741else
5742as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5743for as_dir in $PATH
5744do
5745 IFS=$as_save_IFS
5746 test -z "$as_dir" && as_dir=.
Torok Edwin871384f2010-01-26 08:50:50 +00005747 for ac_exec_ext in '' $ac_executable_extensions; do
5748 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 +00005749 ac_cv_prog_ac_ct_CXX="$ac_prog"
Torok Edwin871384f2010-01-26 08:50:50 +00005750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005751 break 2
5752 fi
5753done
Torok Edwin871384f2010-01-26 08:50:50 +00005754 done
Reid Spencera773bd52006-08-04 18:18:08 +00005755IFS=$as_save_IFS
5756
5757fi
5758fi
5759ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5760if test -n "$ac_ct_CXX"; then
Torok Edwin871384f2010-01-26 08:50:50 +00005761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5762$as_echo "$ac_ct_CXX" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005763else
Torok Edwin871384f2010-01-26 08:50:50 +00005764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5765$as_echo "no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005766fi
5767
5768
5769 test -n "$ac_ct_CXX" && break
5770done
5771
5772 if test "x$ac_ct_CXX" = x; then
5773 CXX="g++"
5774 else
5775 case $cross_compiling:$ac_tool_warned in
5776yes:)
Torok Edwin871384f2010-01-26 08:50:50 +00005777{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5778$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00005779ac_tool_warned=yes ;;
5780esac
5781 CXX=$ac_ct_CXX
5782 fi
5783fi
5784
5785 fi
5786fi
5787# Provide some information about the compiler.
Torok Edwin871384f2010-01-26 08:50:50 +00005788$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5789set X $ac_compile
5790ac_compiler=$2
5791for ac_option in --version -v -V -qversion; do
5792 { { ac_try="$ac_compiler $ac_option >&5"
Reid Spencera773bd52006-08-04 18:18:08 +00005793case "(($ac_try" in
5794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5795 *) ac_try_echo=$ac_try;;
5796esac
Torok Edwin871384f2010-01-26 08:50:50 +00005797eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5798$as_echo "$ac_try_echo"; } >&5
5799 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
Reid Spencera773bd52006-08-04 18:18:08 +00005800 ac_status=$?
Torok Edwin871384f2010-01-26 08:50:50 +00005801 if test -s conftest.err; then
5802 sed '10a\
5803... rest of stderr output deleted ...
5804 10q' conftest.err >conftest.er1
5805 cat conftest.er1 >&5
5806 fi
5807 rm -f conftest.er1 conftest.err
5808 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5809 test $ac_status = 0; }
5810done
Reid Spencera773bd52006-08-04 18:18:08 +00005811
Torok Edwin871384f2010-01-26 08:50:50 +00005812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5813$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5814if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
5815 $as_echo_n "(cached) " >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005816else
Torok Edwin871384f2010-01-26 08:50:50 +00005817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +00005818/* end confdefs.h. */
5819
5820int
5821main ()
5822{
5823#ifndef __GNUC__
5824 choke me
5825#endif
5826
5827 ;
5828 return 0;
5829}
5830_ACEOF
Torok Edwin871384f2010-01-26 08:50:50 +00005831if ac_fn_cxx_try_compile "$LINENO"; then :
Reid Spencera773bd52006-08-04 18:18:08 +00005832 ac_compiler_gnu=yes
5833else
Torok Edwin871384f2010-01-26 08:50:50 +00005834 ac_compiler_gnu=no
Reid Spencera773bd52006-08-04 18:18:08 +00005835fi
Reid Spencera773bd52006-08-04 18:18:08 +00005836rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5837ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5838
5839fi
Torok Edwin871384f2010-01-26 08:50:50 +00005840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5841$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5842if test $ac_compiler_gnu = yes; then
5843 GXX=yes
5844else
5845 GXX=
5846fi
Reid Spencera773bd52006-08-04 18:18:08 +00005847ac_test_CXXFLAGS=${CXXFLAGS+set}
5848ac_save_CXXFLAGS=$CXXFLAGS
Torok Edwin871384f2010-01-26 08:50:50 +00005849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5850$as_echo_n "checking whether $CXX accepts -g... " >&6; }
5851if test "${ac_cv_prog_cxx_g+set}" = set; then :
5852 $as_echo_n "(cached) " >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005853else
5854 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5855 ac_cxx_werror_flag=yes
5856 ac_cv_prog_cxx_g=no
5857 CXXFLAGS="-g"
Torok Edwin871384f2010-01-26 08:50:50 +00005858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +00005859/* end confdefs.h. */
5860
5861int
5862main ()
5863{
5864
5865 ;
5866 return 0;
5867}
5868_ACEOF
Torok Edwin871384f2010-01-26 08:50:50 +00005869if ac_fn_cxx_try_compile "$LINENO"; then :
Reid Spencera773bd52006-08-04 18:18:08 +00005870 ac_cv_prog_cxx_g=yes
5871else
Torok Edwin871384f2010-01-26 08:50:50 +00005872 CXXFLAGS=""
5873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +00005874/* end confdefs.h. */
5875
5876int
5877main ()
5878{
5879
5880 ;
5881 return 0;
5882}
5883_ACEOF
Torok Edwin871384f2010-01-26 08:50:50 +00005884if ac_fn_cxx_try_compile "$LINENO"; then :
Reid Spencera773bd52006-08-04 18:18:08 +00005885
Torok Edwin871384f2010-01-26 08:50:50 +00005886else
5887 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
Reid Spencera773bd52006-08-04 18:18:08 +00005888 CXXFLAGS="-g"
Torok Edwin871384f2010-01-26 08:50:50 +00005889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +00005890/* end confdefs.h. */
5891
5892int
5893main ()
5894{
5895
5896 ;
5897 return 0;
5898}
5899_ACEOF
Torok Edwin871384f2010-01-26 08:50:50 +00005900if ac_fn_cxx_try_compile "$LINENO"; then :
Reid Spencera773bd52006-08-04 18:18:08 +00005901 ac_cv_prog_cxx_g=yes
Reid Spencera773bd52006-08-04 18:18:08 +00005902fi
Reid Spencera773bd52006-08-04 18:18:08 +00005903rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5904fi
Reid Spencera773bd52006-08-04 18:18:08 +00005905rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5906fi
Reid Spencera773bd52006-08-04 18:18:08 +00005907rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5908 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5909fi
Torok Edwin871384f2010-01-26 08:50:50 +00005910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5911$as_echo "$ac_cv_prog_cxx_g" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005912if test "$ac_test_CXXFLAGS" = set; then
5913 CXXFLAGS=$ac_save_CXXFLAGS
5914elif test $ac_cv_prog_cxx_g = yes; then
5915 if test "$GXX" = yes; then
5916 CXXFLAGS="-g -O2"
5917 else
5918 CXXFLAGS="-g"
5919 fi
5920else
5921 if test "$GXX" = yes; then
5922 CXXFLAGS="-O2"
5923 else
5924 CXXFLAGS=
5925 fi
5926fi
5927ac_ext=c
5928ac_cpp='$CPP $CPPFLAGS'
5929ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5930ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5931ac_compiler_gnu=$ac_cv_c_compiler_gnu
5932
Reid Spencera773bd52006-08-04 18:18:08 +00005933
Torok Edwin871384f2010-01-26 08:50:50 +00005934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD-compatible nm" >&5
5935$as_echo_n "checking for BSD-compatible nm... " >&6; }
5936if test "${lt_cv_path_NM+set}" = set; then :
5937 $as_echo_n "(cached) " >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005938else
5939 if test -n "$NM"; then
5940 # Let the user override the test.
5941 lt_cv_path_NM="$NM"
5942else
5943 lt_nm_to_check="${ac_tool_prefix}nm"
5944 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5945 lt_nm_to_check="$lt_nm_to_check nm"
5946 fi
5947 for lt_tmp_nm in $lt_nm_to_check; do
5948 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5949 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5950 IFS="$lt_save_ifs"
5951 test -z "$ac_dir" && ac_dir=.
5952 tmp_nm="$ac_dir/$lt_tmp_nm"
5953 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5954 # Check to see if the nm accepts a BSD-compat flag.
5955 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5956 # nm: unknown option "B" ignored
5957 # Tru64's nm complains that /dev/null is an invalid object file
5958 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5959 */dev/null* | *'Invalid file or object type'*)
5960 lt_cv_path_NM="$tmp_nm -B"
5961 break
5962 ;;
5963 *)
5964 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5965 */dev/null*)
5966 lt_cv_path_NM="$tmp_nm -p"
5967 break
5968 ;;
5969 *)
5970 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5971 continue # so that we can try to find one that supports BSD flags
5972 ;;
5973 esac
5974 ;;
5975 esac
5976 fi
5977 done
5978 IFS="$lt_save_ifs"
5979 done
5980 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5981fi
5982fi
Torok Edwin871384f2010-01-26 08:50:50 +00005983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5984$as_echo "$lt_cv_path_NM" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005985NM="$lt_cv_path_NM"
5986
5987
5988
Torok Edwin871384f2010-01-26 08:50:50 +00005989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
5990$as_echo_n "checking for GNU make... " >&6; }
5991if test "${llvm_cv_gnu_make_command+set}" = set; then :
5992 $as_echo_n "(cached) " >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005993else
5994 llvm_cv_gnu_make_command=''
5995 for a in "$MAKE" make gmake gnumake ; do
5996 if test -z "$a" ; then continue ; fi ;
5997 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5998 then
5999 llvm_cv_gnu_make_command=$a ;
6000 break;
6001 fi
6002 done
6003fi
Torok Edwin871384f2010-01-26 08:50:50 +00006004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $llvm_cv_gnu_make_command" >&5
6005$as_echo "$llvm_cv_gnu_make_command" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006006 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6007 ifGNUmake='' ;
6008 else
6009 ifGNUmake='#' ;
Torok Edwin871384f2010-01-26 08:50:50 +00006010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5
6011$as_echo "\"Not found\"" >&6; };
Reid Spencera773bd52006-08-04 18:18:08 +00006012 fi
6013
6014
Torok Edwin871384f2010-01-26 08:50:50 +00006015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6016$as_echo_n "checking whether ln -s works... " >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006017LN_S=$as_ln_s
6018if test "$LN_S" = "ln -s"; then
Torok Edwin871384f2010-01-26 08:50:50 +00006019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6020$as_echo "yes" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006021else
Torok Edwin871384f2010-01-26 08:50:50 +00006022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6023$as_echo "no, using $LN_S" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006024fi
6025
6026# Extract the first word of "cmp", so it can be a program name with args.
6027set dummy cmp; ac_word=$2
Torok Edwin871384f2010-01-26 08:50:50 +00006028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6029$as_echo_n "checking for $ac_word... " >&6; }
6030if test "${ac_cv_path_CMP+set}" = set; then :
6031 $as_echo_n "(cached) " >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006032else
6033 case $CMP in
6034 [\\/]* | ?:[\\/]*)
6035 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6036 ;;
6037 *)
6038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6039for as_dir in $PATH
6040do
6041 IFS=$as_save_IFS
6042 test -z "$as_dir" && as_dir=.
Torok Edwin871384f2010-01-26 08:50:50 +00006043 for ac_exec_ext in '' $ac_executable_extensions; do
6044 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 +00006045 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
Torok Edwin871384f2010-01-26 08:50:50 +00006046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006047 break 2
6048 fi
6049done
Torok Edwin871384f2010-01-26 08:50:50 +00006050 done
Reid Spencera773bd52006-08-04 18:18:08 +00006051IFS=$as_save_IFS
6052
6053 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6054 ;;
6055esac
6056fi
6057CMP=$ac_cv_path_CMP
6058if test -n "$CMP"; then
Torok Edwin871384f2010-01-26 08:50:50 +00006059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
6060$as_echo "$CMP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006061else
Torok Edwin871384f2010-01-26 08:50:50 +00006062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6063$as_echo "no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006064fi
6065
6066
6067# Extract the first word of "cp", so it can be a program name with args.
6068set dummy cp; ac_word=$2
Torok Edwin871384f2010-01-26 08:50:50 +00006069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6070$as_echo_n "checking for $ac_word... " >&6; }
6071if test "${ac_cv_path_CP+set}" = set; then :
6072 $as_echo_n "(cached) " >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006073else
6074 case $CP in
6075 [\\/]* | ?:[\\/]*)
6076 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6077 ;;
6078 *)
6079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6080for as_dir in $PATH
6081do
6082 IFS=$as_save_IFS
6083 test -z "$as_dir" && as_dir=.
Torok Edwin871384f2010-01-26 08:50:50 +00006084 for ac_exec_ext in '' $ac_executable_extensions; do
6085 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 +00006086 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
Torok Edwin871384f2010-01-26 08:50:50 +00006087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006088 break 2
6089 fi
6090done
Torok Edwin871384f2010-01-26 08:50:50 +00006091 done
Reid Spencera773bd52006-08-04 18:18:08 +00006092IFS=$as_save_IFS
6093
6094 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6095 ;;
6096esac
6097fi
6098CP=$ac_cv_path_CP
6099if test -n "$CP"; then
Torok Edwin871384f2010-01-26 08:50:50 +00006100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
6101$as_echo "$CP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006102else
Torok Edwin871384f2010-01-26 08:50:50 +00006103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6104$as_echo "no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006105fi
6106
6107
6108# Extract the first word of "date", so it can be a program name with args.
6109set dummy date; ac_word=$2
Torok Edwin871384f2010-01-26 08:50:50 +00006110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6111$as_echo_n "checking for $ac_word... " >&6; }
6112if test "${ac_cv_path_DATE+set}" = set; then :
6113 $as_echo_n "(cached) " >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006114else
6115 case $DATE in
6116 [\\/]* | ?:[\\/]*)
6117 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6118 ;;
6119 *)
6120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6121for as_dir in $PATH
6122do
6123 IFS=$as_save_IFS
6124 test -z "$as_dir" && as_dir=.
Torok Edwin871384f2010-01-26 08:50:50 +00006125 for ac_exec_ext in '' $ac_executable_extensions; do
6126 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 +00006127 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
Torok Edwin871384f2010-01-26 08:50:50 +00006128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006129 break 2
6130 fi
6131done
Torok Edwin871384f2010-01-26 08:50:50 +00006132 done
Reid Spencera773bd52006-08-04 18:18:08 +00006133IFS=$as_save_IFS
6134
6135 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6136 ;;
6137esac
6138fi
6139DATE=$ac_cv_path_DATE
6140if test -n "$DATE"; then
Torok Edwin871384f2010-01-26 08:50:50 +00006141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5
6142$as_echo "$DATE" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006143else
Torok Edwin871384f2010-01-26 08:50:50 +00006144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6145$as_echo "no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006146fi
6147
6148
6149# Extract the first word of "find", so it can be a program name with args.
6150set dummy find; ac_word=$2
Torok Edwin871384f2010-01-26 08:50:50 +00006151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6152$as_echo_n "checking for $ac_word... " >&6; }
6153if test "${ac_cv_path_FIND+set}" = set; then :
6154 $as_echo_n "(cached) " >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006155else
6156 case $FIND in
6157 [\\/]* | ?:[\\/]*)
6158 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6159 ;;
6160 *)
6161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6162for as_dir in $PATH
6163do
6164 IFS=$as_save_IFS
6165 test -z "$as_dir" && as_dir=.
Torok Edwin871384f2010-01-26 08:50:50 +00006166 for ac_exec_ext in '' $ac_executable_extensions; do
6167 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 +00006168 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
Torok Edwin871384f2010-01-26 08:50:50 +00006169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006170 break 2
6171 fi
6172done
Torok Edwin871384f2010-01-26 08:50:50 +00006173 done
Reid Spencera773bd52006-08-04 18:18:08 +00006174IFS=$as_save_IFS
6175
6176 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6177 ;;
6178esac
6179fi
6180FIND=$ac_cv_path_FIND
6181if test -n "$FIND"; then
Torok Edwin871384f2010-01-26 08:50:50 +00006182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
6183$as_echo "$FIND" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006184else
Torok Edwin871384f2010-01-26 08:50:50 +00006185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6186$as_echo "no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006187fi
6188
6189
6190# Extract the first word of "grep", so it can be a program name with args.
6191set dummy grep; ac_word=$2
Torok Edwin871384f2010-01-26 08:50:50 +00006192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6193$as_echo_n "checking for $ac_word... " >&6; }
6194if test "${ac_cv_path_GREP+set}" = set; then :
6195 $as_echo_n "(cached) " >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006196else
6197 case $GREP in
6198 [\\/]* | ?:[\\/]*)
6199 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6200 ;;
6201 *)
6202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6203for as_dir in $PATH
6204do
6205 IFS=$as_save_IFS
6206 test -z "$as_dir" && as_dir=.
Torok Edwin871384f2010-01-26 08:50:50 +00006207 for ac_exec_ext in '' $ac_executable_extensions; do
6208 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 +00006209 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
Torok Edwin871384f2010-01-26 08:50:50 +00006210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006211 break 2
6212 fi
6213done
Torok Edwin871384f2010-01-26 08:50:50 +00006214 done
Reid Spencera773bd52006-08-04 18:18:08 +00006215IFS=$as_save_IFS
6216
6217 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6218 ;;
6219esac
6220fi
6221GREP=$ac_cv_path_GREP
6222if test -n "$GREP"; then
Torok Edwin871384f2010-01-26 08:50:50 +00006223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
6224$as_echo "$GREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006225else
Torok Edwin871384f2010-01-26 08:50:50 +00006226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6227$as_echo "no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006228fi
6229
6230
6231# Extract the first word of "mkdir", so it can be a program name with args.
6232set dummy mkdir; ac_word=$2
Torok Edwin871384f2010-01-26 08:50:50 +00006233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6234$as_echo_n "checking for $ac_word... " >&6; }
6235if test "${ac_cv_path_MKDIR+set}" = set; then :
6236 $as_echo_n "(cached) " >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006237else
6238 case $MKDIR in
6239 [\\/]* | ?:[\\/]*)
6240 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6241 ;;
6242 *)
6243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6244for as_dir in $PATH
6245do
6246 IFS=$as_save_IFS
6247 test -z "$as_dir" && as_dir=.
Torok Edwin871384f2010-01-26 08:50:50 +00006248 for ac_exec_ext in '' $ac_executable_extensions; do
6249 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 +00006250 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
Torok Edwin871384f2010-01-26 08:50:50 +00006251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006252 break 2
6253 fi
6254done
Torok Edwin871384f2010-01-26 08:50:50 +00006255 done
Reid Spencera773bd52006-08-04 18:18:08 +00006256IFS=$as_save_IFS
6257
6258 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6259 ;;
6260esac
6261fi
6262MKDIR=$ac_cv_path_MKDIR
6263if test -n "$MKDIR"; then
Torok Edwin871384f2010-01-26 08:50:50 +00006264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
6265$as_echo "$MKDIR" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006266else
Torok Edwin871384f2010-01-26 08:50:50 +00006267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6268$as_echo "no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006269fi
6270
6271
6272# Extract the first word of "mv", so it can be a program name with args.
6273set dummy mv; ac_word=$2
Torok Edwin871384f2010-01-26 08:50:50 +00006274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6275$as_echo_n "checking for $ac_word... " >&6; }
6276if test "${ac_cv_path_MV+set}" = set; then :
6277 $as_echo_n "(cached) " >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006278else
6279 case $MV in
6280 [\\/]* | ?:[\\/]*)
6281 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6282 ;;
6283 *)
6284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6285for as_dir in $PATH
6286do
6287 IFS=$as_save_IFS
6288 test -z "$as_dir" && as_dir=.
Torok Edwin871384f2010-01-26 08:50:50 +00006289 for ac_exec_ext in '' $ac_executable_extensions; do
6290 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 +00006291 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
Torok Edwin871384f2010-01-26 08:50:50 +00006292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006293 break 2
6294 fi
6295done
Torok Edwin871384f2010-01-26 08:50:50 +00006296 done
Reid Spencera773bd52006-08-04 18:18:08 +00006297IFS=$as_save_IFS
6298
6299 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6300 ;;
6301esac
6302fi
6303MV=$ac_cv_path_MV
6304if test -n "$MV"; then
Torok Edwin871384f2010-01-26 08:50:50 +00006305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
6306$as_echo "$MV" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006307else
Torok Edwin871384f2010-01-26 08:50:50 +00006308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6309$as_echo "no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006310fi
6311
6312
6313if test -n "$ac_tool_prefix"; then
6314 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6315set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Torok Edwin871384f2010-01-26 08:50:50 +00006316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6317$as_echo_n "checking for $ac_word... " >&6; }
6318if test "${ac_cv_prog_RANLIB+set}" = set; then :
6319 $as_echo_n "(cached) " >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006320else
6321 if test -n "$RANLIB"; then
6322 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6323else
6324as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6325for as_dir in $PATH
6326do
6327 IFS=$as_save_IFS
6328 test -z "$as_dir" && as_dir=.
Torok Edwin871384f2010-01-26 08:50:50 +00006329 for ac_exec_ext in '' $ac_executable_extensions; do
6330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006331 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Torok Edwin871384f2010-01-26 08:50:50 +00006332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006333 break 2
6334 fi
6335done
Torok Edwin871384f2010-01-26 08:50:50 +00006336 done
Reid Spencera773bd52006-08-04 18:18:08 +00006337IFS=$as_save_IFS
6338
6339fi
6340fi
6341RANLIB=$ac_cv_prog_RANLIB
6342if test -n "$RANLIB"; then
Torok Edwin871384f2010-01-26 08:50:50 +00006343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6344$as_echo "$RANLIB" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006345else
Torok Edwin871384f2010-01-26 08:50:50 +00006346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6347$as_echo "no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006348fi
6349
6350
6351fi
6352if test -z "$ac_cv_prog_RANLIB"; then
6353 ac_ct_RANLIB=$RANLIB
6354 # Extract the first word of "ranlib", so it can be a program name with args.
6355set dummy ranlib; ac_word=$2
Torok Edwin871384f2010-01-26 08:50:50 +00006356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6357$as_echo_n "checking for $ac_word... " >&6; }
6358if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6359 $as_echo_n "(cached) " >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006360else
6361 if test -n "$ac_ct_RANLIB"; then
6362 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6363else
6364as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6365for as_dir in $PATH
6366do
6367 IFS=$as_save_IFS
6368 test -z "$as_dir" && as_dir=.
Torok Edwin871384f2010-01-26 08:50:50 +00006369 for ac_exec_ext in '' $ac_executable_extensions; do
6370 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 +00006371 ac_cv_prog_ac_ct_RANLIB="ranlib"
Torok Edwin871384f2010-01-26 08:50:50 +00006372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006373 break 2
6374 fi
6375done
Torok Edwin871384f2010-01-26 08:50:50 +00006376 done
Reid Spencera773bd52006-08-04 18:18:08 +00006377IFS=$as_save_IFS
6378
6379fi
6380fi
6381ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6382if test -n "$ac_ct_RANLIB"; then
Torok Edwin871384f2010-01-26 08:50:50 +00006383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6384$as_echo "$ac_ct_RANLIB" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006385else
Torok Edwin871384f2010-01-26 08:50:50 +00006386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6387$as_echo "no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006388fi
6389
6390 if test "x$ac_ct_RANLIB" = x; then
6391 RANLIB=":"
6392 else
6393 case $cross_compiling:$ac_tool_warned in
6394yes:)
Torok Edwin871384f2010-01-26 08:50:50 +00006395{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6396$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00006397ac_tool_warned=yes ;;
6398esac
6399 RANLIB=$ac_ct_RANLIB
6400 fi
6401else
6402 RANLIB="$ac_cv_prog_RANLIB"
6403fi
6404
Torok Edwin871384f2010-01-26 08:50:50 +00006405if test -n "$ac_tool_prefix"; then
6406 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6407set dummy ${ac_tool_prefix}ar; ac_word=$2
6408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6409$as_echo_n "checking for $ac_word... " >&6; }
6410if test "${ac_cv_prog_AR+set}" = set; then :
6411 $as_echo_n "(cached) " >&6
6412else
6413 if test -n "$AR"; then
6414 ac_cv_prog_AR="$AR" # Let the user override the test.
6415else
6416as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6417for as_dir in $PATH
6418do
6419 IFS=$as_save_IFS
6420 test -z "$as_dir" && as_dir=.
6421 for ac_exec_ext in '' $ac_executable_extensions; do
6422 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6423 ac_cv_prog_AR="${ac_tool_prefix}ar"
6424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6425 break 2
6426 fi
6427done
6428 done
6429IFS=$as_save_IFS
6430
6431fi
6432fi
6433AR=$ac_cv_prog_AR
6434if test -n "$AR"; then
6435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6436$as_echo "$AR" >&6; }
6437else
6438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6439$as_echo "no" >&6; }
6440fi
6441
6442
6443fi
6444if test -z "$ac_cv_prog_AR"; then
6445 ac_ct_AR=$AR
6446 # Extract the first word of "ar", so it can be a program name with args.
6447set dummy ar; ac_word=$2
6448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6449$as_echo_n "checking for $ac_word... " >&6; }
6450if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6451 $as_echo_n "(cached) " >&6
6452else
6453 if test -n "$ac_ct_AR"; then
6454 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6455else
6456as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6457for as_dir in $PATH
6458do
6459 IFS=$as_save_IFS
6460 test -z "$as_dir" && as_dir=.
6461 for ac_exec_ext in '' $ac_executable_extensions; do
6462 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6463 ac_cv_prog_ac_ct_AR="ar"
6464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6465 break 2
6466 fi
6467done
6468 done
6469IFS=$as_save_IFS
6470
6471fi
6472fi
6473ac_ct_AR=$ac_cv_prog_ac_ct_AR
6474if test -n "$ac_ct_AR"; then
6475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6476$as_echo "$ac_ct_AR" >&6; }
6477else
6478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6479$as_echo "no" >&6; }
6480fi
6481
6482 if test "x$ac_ct_AR" = x; then
6483 AR="false"
6484 else
6485 case $cross_compiling:$ac_tool_warned in
6486yes:)
6487{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6488$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6489ac_tool_warned=yes ;;
6490esac
6491 AR=$ac_ct_AR
6492 fi
6493else
6494 AR="$ac_cv_prog_AR"
6495fi
6496
Reid Spencera773bd52006-08-04 18:18:08 +00006497# Extract the first word of "rm", so it can be a program name with args.
6498set dummy rm; ac_word=$2
Torok Edwin871384f2010-01-26 08:50:50 +00006499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6500$as_echo_n "checking for $ac_word... " >&6; }
6501if test "${ac_cv_path_RM+set}" = set; then :
6502 $as_echo_n "(cached) " >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006503else
6504 case $RM in
6505 [\\/]* | ?:[\\/]*)
6506 ac_cv_path_RM="$RM" # 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=.
Torok Edwin871384f2010-01-26 08:50:50 +00006514 for ac_exec_ext in '' $ac_executable_extensions; do
6515 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_RM="$as_dir/$ac_word$ac_exec_ext"
Torok Edwin871384f2010-01-26 08:50:50 +00006517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006518 break 2
6519 fi
6520done
Torok Edwin871384f2010-01-26 08:50:50 +00006521 done
Reid Spencera773bd52006-08-04 18:18:08 +00006522IFS=$as_save_IFS
6523
6524 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6525 ;;
6526esac
6527fi
6528RM=$ac_cv_path_RM
6529if test -n "$RM"; then
Torok Edwin871384f2010-01-26 08:50:50 +00006530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
6531$as_echo "$RM" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006532else
Torok Edwin871384f2010-01-26 08:50:50 +00006533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6534$as_echo "no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006535fi
6536
6537
6538# Extract the first word of "sed", so it can be a program name with args.
6539set dummy sed; ac_word=$2
Torok Edwin871384f2010-01-26 08:50:50 +00006540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6541$as_echo_n "checking for $ac_word... " >&6; }
6542if test "${ac_cv_path_SED+set}" = set; then :
6543 $as_echo_n "(cached) " >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006544else
6545 case $SED in
6546 [\\/]* | ?:[\\/]*)
6547 ac_cv_path_SED="$SED" # 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=.
Torok Edwin871384f2010-01-26 08:50:50 +00006555 for ac_exec_ext in '' $ac_executable_extensions; do
6556 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_SED="$as_dir/$ac_word$ac_exec_ext"
Torok Edwin871384f2010-01-26 08:50:50 +00006558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006559 break 2
6560 fi
6561done
Torok Edwin871384f2010-01-26 08:50:50 +00006562 done
Reid Spencera773bd52006-08-04 18:18:08 +00006563IFS=$as_save_IFS
6564
6565 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6566 ;;
6567esac
6568fi
6569SED=$ac_cv_path_SED
6570if test -n "$SED"; then
Torok Edwin871384f2010-01-26 08:50:50 +00006571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
6572$as_echo "$SED" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006573else
Torok Edwin871384f2010-01-26 08:50:50 +00006574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6575$as_echo "no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006576fi
6577
6578
6579# Extract the first word of "tar", so it can be a program name with args.
6580set dummy tar; ac_word=$2
Torok Edwin871384f2010-01-26 08:50:50 +00006581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6582$as_echo_n "checking for $ac_word... " >&6; }
6583if test "${ac_cv_path_TAR+set}" = set; then :
6584 $as_echo_n "(cached) " >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006585else
6586 case $TAR in
6587 [\\/]* | ?:[\\/]*)
6588 ac_cv_path_TAR="$TAR" # 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=.
Torok Edwin871384f2010-01-26 08:50:50 +00006596 for ac_exec_ext in '' $ac_executable_extensions; do
6597 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_TAR="$as_dir/$ac_word$ac_exec_ext"
Torok Edwin871384f2010-01-26 08:50:50 +00006599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006600 break 2
6601 fi
6602done
Torok Edwin871384f2010-01-26 08:50:50 +00006603 done
Reid Spencera773bd52006-08-04 18:18:08 +00006604IFS=$as_save_IFS
6605
6606 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6607 ;;
6608esac
6609fi
6610TAR=$ac_cv_path_TAR
6611if test -n "$TAR"; then
Torok Edwin871384f2010-01-26 08:50:50 +00006612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
6613$as_echo "$TAR" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006614else
Torok Edwin871384f2010-01-26 08:50:50 +00006615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6616$as_echo "no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006617fi
6618
6619
6620# Extract the first word of "pwd", so it can be a program name with args.
6621set dummy pwd; ac_word=$2
Torok Edwin871384f2010-01-26 08:50:50 +00006622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6623$as_echo_n "checking for $ac_word... " >&6; }
6624if test "${ac_cv_path_BINPWD+set}" = set; then :
6625 $as_echo_n "(cached) " >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006626else
6627 case $BINPWD in
6628 [\\/]* | ?:[\\/]*)
6629 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6630 ;;
6631 *)
6632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6633for as_dir in $PATH
6634do
6635 IFS=$as_save_IFS
6636 test -z "$as_dir" && as_dir=.
Torok Edwin871384f2010-01-26 08:50:50 +00006637 for ac_exec_ext in '' $ac_executable_extensions; do
6638 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 +00006639 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
Torok Edwin871384f2010-01-26 08:50:50 +00006640 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006641 break 2
6642 fi
6643done
Torok Edwin871384f2010-01-26 08:50:50 +00006644 done
Reid Spencera773bd52006-08-04 18:18:08 +00006645IFS=$as_save_IFS
6646
6647 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6648 ;;
6649esac
6650fi
6651BINPWD=$ac_cv_path_BINPWD
6652if test -n "$BINPWD"; then
Torok Edwin871384f2010-01-26 08:50:50 +00006653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BINPWD" >&5
6654$as_echo "$BINPWD" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006655else
Torok Edwin871384f2010-01-26 08:50:50 +00006656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6657$as_echo "no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006658fi
6659
6660
6661
6662# Extract the first word of "Graphviz", so it can be a program name with args.
6663set dummy Graphviz; ac_word=$2
Torok Edwin871384f2010-01-26 08:50:50 +00006664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6665$as_echo_n "checking for $ac_word... " >&6; }
6666if test "${ac_cv_path_GRAPHVIZ+set}" = set; then :
6667 $as_echo_n "(cached) " >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006668else
6669 case $GRAPHVIZ in
6670 [\\/]* | ?:[\\/]*)
6671 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6672 ;;
6673 *)
6674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6675for as_dir in $PATH
6676do
6677 IFS=$as_save_IFS
6678 test -z "$as_dir" && as_dir=.
Torok Edwin871384f2010-01-26 08:50:50 +00006679 for ac_exec_ext in '' $ac_executable_extensions; do
6680 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 +00006681 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
Torok Edwin871384f2010-01-26 08:50:50 +00006682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006683 break 2
6684 fi
6685done
Torok Edwin871384f2010-01-26 08:50:50 +00006686 done
Reid Spencera773bd52006-08-04 18:18:08 +00006687IFS=$as_save_IFS
6688
6689 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6690 ;;
6691esac
6692fi
6693GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6694if test -n "$GRAPHVIZ"; then
Torok Edwin871384f2010-01-26 08:50:50 +00006695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GRAPHVIZ" >&5
6696$as_echo "$GRAPHVIZ" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006697else
Torok Edwin871384f2010-01-26 08:50:50 +00006698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6699$as_echo "no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006700fi
6701
6702
6703if test "$GRAPHVIZ" != "echo Graphviz" ; then
6704
Torok Edwin871384f2010-01-26 08:50:50 +00006705$as_echo "#define HAVE_GRAPHVIZ 1" >>confdefs.h
Reid Spencera773bd52006-08-04 18:18:08 +00006706
Jeff Cohen28783c32007-01-12 18:22:38 +00006707 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00006708 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6709 fi
6710
6711cat >>confdefs.h <<_ACEOF
6712#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6713_ACEOF
6714
6715fi
6716# Extract the first word of "dot", so it can be a program name with args.
6717set dummy dot; ac_word=$2
Torok Edwin871384f2010-01-26 08:50:50 +00006718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6719$as_echo_n "checking for $ac_word... " >&6; }
6720if test "${ac_cv_path_DOT+set}" = set; then :
6721 $as_echo_n "(cached) " >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006722else
6723 case $DOT in
6724 [\\/]* | ?:[\\/]*)
6725 ac_cv_path_DOT="$DOT" # 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=.
Torok Edwin871384f2010-01-26 08:50:50 +00006733 for ac_exec_ext in '' $ac_executable_extensions; do
6734 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_DOT="$as_dir/$ac_word$ac_exec_ext"
Torok Edwin871384f2010-01-26 08:50:50 +00006736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006737 break 2
6738 fi
6739done
Torok Edwin871384f2010-01-26 08:50:50 +00006740 done
Reid Spencera773bd52006-08-04 18:18:08 +00006741IFS=$as_save_IFS
6742
6743 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6744 ;;
6745esac
6746fi
6747DOT=$ac_cv_path_DOT
6748if test -n "$DOT"; then
Torok Edwin871384f2010-01-26 08:50:50 +00006749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOT" >&5
6750$as_echo "$DOT" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006751else
Torok Edwin871384f2010-01-26 08:50:50 +00006752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6753$as_echo "no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006754fi
6755
6756
6757if test "$DOT" != "echo dot" ; then
6758
Torok Edwin871384f2010-01-26 08:50:50 +00006759$as_echo "#define HAVE_DOT 1" >>confdefs.h
Reid Spencera773bd52006-08-04 18:18:08 +00006760
Jeff Cohen28783c32007-01-12 18:22:38 +00006761 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00006762 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6763 fi
6764
6765cat >>confdefs.h <<_ACEOF
6766#define LLVM_PATH_DOT "$DOT${EXEEXT}"
6767_ACEOF
6768
6769fi
David Greenef0b9eff2009-07-09 17:16:26 +00006770# Extract the first word of "fdp", so it can be a program name with args.
6771set dummy fdp; ac_word=$2
Torok Edwin871384f2010-01-26 08:50:50 +00006772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6773$as_echo_n "checking for $ac_word... " >&6; }
6774if test "${ac_cv_path_FDP+set}" = set; then :
6775 $as_echo_n "(cached) " >&6
David Greenef0b9eff2009-07-09 17:16:26 +00006776else
6777 case $FDP in
6778 [\\/]* | ?:[\\/]*)
6779 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6780 ;;
6781 *)
6782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6783for as_dir in $PATH
6784do
6785 IFS=$as_save_IFS
6786 test -z "$as_dir" && as_dir=.
Torok Edwin871384f2010-01-26 08:50:50 +00006787 for ac_exec_ext in '' $ac_executable_extensions; do
6788 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
David Greenef0b9eff2009-07-09 17:16:26 +00006789 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
Torok Edwin871384f2010-01-26 08:50:50 +00006790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00006791 break 2
6792 fi
6793done
Torok Edwin871384f2010-01-26 08:50:50 +00006794 done
David Greenef0b9eff2009-07-09 17:16:26 +00006795IFS=$as_save_IFS
6796
6797 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6798 ;;
6799esac
6800fi
6801FDP=$ac_cv_path_FDP
6802if test -n "$FDP"; then
Torok Edwin871384f2010-01-26 08:50:50 +00006803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FDP" >&5
6804$as_echo "$FDP" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006805else
Torok Edwin871384f2010-01-26 08:50:50 +00006806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6807$as_echo "no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006808fi
6809
6810
6811if test "$FDP" != "echo fdp" ; then
6812
Torok Edwin871384f2010-01-26 08:50:50 +00006813$as_echo "#define HAVE_FDP 1" >>confdefs.h
David Greenef0b9eff2009-07-09 17:16:26 +00006814
6815 if test "$llvm_cv_os_type" = "MingW" ; then
6816 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6817 fi
6818
6819cat >>confdefs.h <<_ACEOF
6820#define LLVM_PATH_FDP "$FDP${EXEEXT}"
6821_ACEOF
6822
6823fi
6824# Extract the first word of "neato", so it can be a program name with args.
6825set dummy neato; ac_word=$2
Torok Edwin871384f2010-01-26 08:50:50 +00006826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6827$as_echo_n "checking for $ac_word... " >&6; }
6828if test "${ac_cv_path_NEATO+set}" = set; then :
6829 $as_echo_n "(cached) " >&6
David Greenef0b9eff2009-07-09 17:16:26 +00006830else
6831 case $NEATO in
6832 [\\/]* | ?:[\\/]*)
6833 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6834 ;;
6835 *)
6836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6837for as_dir in $PATH
6838do
6839 IFS=$as_save_IFS
6840 test -z "$as_dir" && as_dir=.
Torok Edwin871384f2010-01-26 08:50:50 +00006841 for ac_exec_ext in '' $ac_executable_extensions; do
6842 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
David Greenef0b9eff2009-07-09 17:16:26 +00006843 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
Torok Edwin871384f2010-01-26 08:50:50 +00006844 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00006845 break 2
6846 fi
6847done
Torok Edwin871384f2010-01-26 08:50:50 +00006848 done
David Greenef0b9eff2009-07-09 17:16:26 +00006849IFS=$as_save_IFS
6850
6851 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6852 ;;
6853esac
6854fi
6855NEATO=$ac_cv_path_NEATO
6856if test -n "$NEATO"; then
Torok Edwin871384f2010-01-26 08:50:50 +00006857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NEATO" >&5
6858$as_echo "$NEATO" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006859else
Torok Edwin871384f2010-01-26 08:50:50 +00006860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6861$as_echo "no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006862fi
6863
6864
6865if test "$NEATO" != "echo neato" ; then
6866
Torok Edwin871384f2010-01-26 08:50:50 +00006867$as_echo "#define HAVE_NEATO 1" >>confdefs.h
David Greenef0b9eff2009-07-09 17:16:26 +00006868
6869 if test "$llvm_cv_os_type" = "MingW" ; then
6870 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6871 fi
6872
6873cat >>confdefs.h <<_ACEOF
6874#define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6875_ACEOF
6876
6877fi
6878# Extract the first word of "twopi", so it can be a program name with args.
6879set dummy twopi; ac_word=$2
Torok Edwin871384f2010-01-26 08:50:50 +00006880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6881$as_echo_n "checking for $ac_word... " >&6; }
6882if test "${ac_cv_path_TWOPI+set}" = set; then :
6883 $as_echo_n "(cached) " >&6
David Greenef0b9eff2009-07-09 17:16:26 +00006884else
6885 case $TWOPI in
6886 [\\/]* | ?:[\\/]*)
6887 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6888 ;;
6889 *)
6890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6891for as_dir in $PATH
6892do
6893 IFS=$as_save_IFS
6894 test -z "$as_dir" && as_dir=.
Torok Edwin871384f2010-01-26 08:50:50 +00006895 for ac_exec_ext in '' $ac_executable_extensions; do
6896 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
David Greenef0b9eff2009-07-09 17:16:26 +00006897 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
Torok Edwin871384f2010-01-26 08:50:50 +00006898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00006899 break 2
6900 fi
6901done
Torok Edwin871384f2010-01-26 08:50:50 +00006902 done
David Greenef0b9eff2009-07-09 17:16:26 +00006903IFS=$as_save_IFS
6904
6905 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6906 ;;
6907esac
6908fi
6909TWOPI=$ac_cv_path_TWOPI
6910if test -n "$TWOPI"; then
Torok Edwin871384f2010-01-26 08:50:50 +00006911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TWOPI" >&5
6912$as_echo "$TWOPI" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006913else
Torok Edwin871384f2010-01-26 08:50:50 +00006914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6915$as_echo "no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006916fi
6917
6918
6919if test "$TWOPI" != "echo twopi" ; then
6920
Torok Edwin871384f2010-01-26 08:50:50 +00006921$as_echo "#define HAVE_TWOPI 1" >>confdefs.h
David Greenef0b9eff2009-07-09 17:16:26 +00006922
6923 if test "$llvm_cv_os_type" = "MingW" ; then
6924 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6925 fi
6926
6927cat >>confdefs.h <<_ACEOF
6928#define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6929_ACEOF
6930
6931fi
6932# Extract the first word of "circo", so it can be a program name with args.
6933set dummy circo; ac_word=$2
Torok Edwin871384f2010-01-26 08:50:50 +00006934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6935$as_echo_n "checking for $ac_word... " >&6; }
6936if test "${ac_cv_path_CIRCO+set}" = set; then :
6937 $as_echo_n "(cached) " >&6
David Greenef0b9eff2009-07-09 17:16:26 +00006938else
6939 case $CIRCO in
6940 [\\/]* | ?:[\\/]*)
6941 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6942 ;;
6943 *)
6944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6945for as_dir in $PATH
6946do
6947 IFS=$as_save_IFS
6948 test -z "$as_dir" && as_dir=.
Torok Edwin871384f2010-01-26 08:50:50 +00006949 for ac_exec_ext in '' $ac_executable_extensions; do
6950 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
David Greenef0b9eff2009-07-09 17:16:26 +00006951 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
Torok Edwin871384f2010-01-26 08:50:50 +00006952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00006953 break 2
6954 fi
6955done
Torok Edwin871384f2010-01-26 08:50:50 +00006956 done
David Greenef0b9eff2009-07-09 17:16:26 +00006957IFS=$as_save_IFS
6958
6959 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6960 ;;
6961esac
6962fi
6963CIRCO=$ac_cv_path_CIRCO
6964if test -n "$CIRCO"; then
Torok Edwin871384f2010-01-26 08:50:50 +00006965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CIRCO" >&5
6966$as_echo "$CIRCO" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006967else
Torok Edwin871384f2010-01-26 08:50:50 +00006968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6969$as_echo "no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006970fi
6971
6972
6973if test "$CIRCO" != "echo circo" ; then
6974
Torok Edwin871384f2010-01-26 08:50:50 +00006975$as_echo "#define HAVE_CIRCO 1" >>confdefs.h
David Greenef0b9eff2009-07-09 17:16:26 +00006976
6977 if test "$llvm_cv_os_type" = "MingW" ; then
6978 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6979 fi
6980
6981cat >>confdefs.h <<_ACEOF
6982#define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6983_ACEOF
6984
6985fi
Reid Spencera773bd52006-08-04 18:18:08 +00006986for ac_prog in gv gsview32
6987do
6988 # Extract the first word of "$ac_prog", so it can be a program name with args.
6989set dummy $ac_prog; ac_word=$2
Torok Edwin871384f2010-01-26 08:50:50 +00006990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6991$as_echo_n "checking for $ac_word... " >&6; }
6992if test "${ac_cv_path_GV+set}" = set; then :
6993 $as_echo_n "(cached) " >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006994else
6995 case $GV in
6996 [\\/]* | ?:[\\/]*)
6997 ac_cv_path_GV="$GV" # Let the user override the test with a path.
6998 ;;
6999 *)
7000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7001for as_dir in $PATH
7002do
7003 IFS=$as_save_IFS
7004 test -z "$as_dir" && as_dir=.
Torok Edwin871384f2010-01-26 08:50:50 +00007005 for ac_exec_ext in '' $ac_executable_extensions; do
7006 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 +00007007 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
Torok Edwin871384f2010-01-26 08:50:50 +00007008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007009 break 2
7010 fi
7011done
Torok Edwin871384f2010-01-26 08:50:50 +00007012 done
Reid Spencera773bd52006-08-04 18:18:08 +00007013IFS=$as_save_IFS
7014
7015 ;;
7016esac
7017fi
7018GV=$ac_cv_path_GV
7019if test -n "$GV"; then
Torok Edwin871384f2010-01-26 08:50:50 +00007020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GV" >&5
7021$as_echo "$GV" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007022else
Torok Edwin871384f2010-01-26 08:50:50 +00007023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7024$as_echo "no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007025fi
7026
7027
7028 test -n "$GV" && break
7029done
7030test -n "$GV" || GV="echo gv"
7031
7032if test "$GV" != "echo gv" ; then
7033
Torok Edwin871384f2010-01-26 08:50:50 +00007034$as_echo "#define HAVE_GV 1" >>confdefs.h
Reid Spencera773bd52006-08-04 18:18:08 +00007035
Jeff Cohen28783c32007-01-12 18:22:38 +00007036 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007037 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7038 fi
7039
7040cat >>confdefs.h <<_ACEOF
7041#define LLVM_PATH_GV "$GV${EXEEXT}"
7042_ACEOF
7043
7044fi
7045# Extract the first word of "dotty", so it can be a program name with args.
7046set dummy dotty; ac_word=$2
Torok Edwin871384f2010-01-26 08:50:50 +00007047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7048$as_echo_n "checking for $ac_word... " >&6; }
7049if test "${ac_cv_path_DOTTY+set}" = set; then :
7050 $as_echo_n "(cached) " >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007051else
7052 case $DOTTY in
7053 [\\/]* | ?:[\\/]*)
7054 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7055 ;;
7056 *)
7057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7058for as_dir in $PATH
7059do
7060 IFS=$as_save_IFS
7061 test -z "$as_dir" && as_dir=.
Torok Edwin871384f2010-01-26 08:50:50 +00007062 for ac_exec_ext in '' $ac_executable_extensions; do
7063 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 +00007064 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
Torok Edwin871384f2010-01-26 08:50:50 +00007065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007066 break 2
7067 fi
7068done
Torok Edwin871384f2010-01-26 08:50:50 +00007069 done
Reid Spencera773bd52006-08-04 18:18:08 +00007070IFS=$as_save_IFS
7071
7072 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7073 ;;
7074esac
7075fi
7076DOTTY=$ac_cv_path_DOTTY
7077if test -n "$DOTTY"; then
Torok Edwin871384f2010-01-26 08:50:50 +00007078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOTTY" >&5
7079$as_echo "$DOTTY" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007080else
Torok Edwin871384f2010-01-26 08:50:50 +00007081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7082$as_echo "no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007083fi
7084
7085
7086if test "$DOTTY" != "echo dotty" ; then
7087
Torok Edwin871384f2010-01-26 08:50:50 +00007088$as_echo "#define HAVE_DOTTY 1" >>confdefs.h
Reid Spencera773bd52006-08-04 18:18:08 +00007089
Jeff Cohen28783c32007-01-12 18:22:38 +00007090 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007091 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7092 fi
7093
7094cat >>confdefs.h <<_ACEOF
7095#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7096_ACEOF
7097
7098fi
7099
7100
7101# Extract the first word of "perl", so it can be a program name with args.
7102set dummy perl; ac_word=$2
Torok Edwin871384f2010-01-26 08:50:50 +00007103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7104$as_echo_n "checking for $ac_word... " >&6; }
7105if test "${ac_cv_path_PERL+set}" = set; then :
7106 $as_echo_n "(cached) " >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007107else
7108 case $PERL in
7109 [\\/]* | ?:[\\/]*)
7110 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7111 ;;
7112 *)
7113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7114for as_dir in $PATH
7115do
7116 IFS=$as_save_IFS
7117 test -z "$as_dir" && as_dir=.
Torok Edwin871384f2010-01-26 08:50:50 +00007118 for ac_exec_ext in '' $ac_executable_extensions; do
7119 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 +00007120 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
Torok Edwin871384f2010-01-26 08:50:50 +00007121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007122 break 2
7123 fi
7124done
Torok Edwin871384f2010-01-26 08:50:50 +00007125 done
Reid Spencera773bd52006-08-04 18:18:08 +00007126IFS=$as_save_IFS
7127
7128 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7129 ;;
7130esac
7131fi
7132PERL=$ac_cv_path_PERL
7133if test -n "$PERL"; then
Torok Edwin871384f2010-01-26 08:50:50 +00007134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
7135$as_echo "$PERL" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007136else
Torok Edwin871384f2010-01-26 08:50:50 +00007137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7138$as_echo "no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007139fi
7140
7141
7142if test "$PERL" != "none"; then
Torok Edwin871384f2010-01-26 08:50:50 +00007143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl 5.006 or newer" >&5
7144$as_echo_n "checking for Perl 5.006 or newer... " >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007145 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
Torok Edwin871384f2010-01-26 08:50:50 +00007146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7147$as_echo "yes" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007148 else
7149 PERL=none
Torok Edwin871384f2010-01-26 08:50:50 +00007150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7151$as_echo "not found" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007152 fi
7153fi
7154
7155
7156if test x"$PERL" = xnone; then
7157 HAVE_PERL=0
7158
Torok Edwin871384f2010-01-26 08:50:50 +00007159 as_fn_error "perl is required but was not found, please install it" "$LINENO" 5
Reid Spencera773bd52006-08-04 18:18:08 +00007160else
7161 HAVE_PERL=1
7162
7163fi
7164
7165# Find a good install program. We prefer a C program (faster),
7166# so one script is as good as another. But avoid the broken or
7167# incompatible versions:
7168# SysV /etc/install, /usr/sbin/install
7169# SunOS /usr/etc/install
7170# IRIX /sbin/install
7171# AIX /bin/install
7172# AmigaOS /C/install, which installs bootblocks on floppy discs
7173# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7174# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7175# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7176# OS/2's system install, which has a completely different semantic
7177# ./install, which can be erroneously created by make from ./install.sh.
Torok Edwin871384f2010-01-26 08:50:50 +00007178# Reject install programs that cannot install multiple files.
7179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
7180$as_echo_n "checking for a BSD-compatible install... " >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007181if test -z "$INSTALL"; then
Torok Edwin871384f2010-01-26 08:50:50 +00007182if test "${ac_cv_path_install+set}" = set; then :
7183 $as_echo_n "(cached) " >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007184else
7185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7186for as_dir in $PATH
7187do
7188 IFS=$as_save_IFS
7189 test -z "$as_dir" && as_dir=.
Torok Edwin871384f2010-01-26 08:50:50 +00007190 # Account for people who put trailing slashes in PATH elements.
7191case $as_dir/ in #((
7192 ./ | .// | /[cC]/* | \
Reid Spencera773bd52006-08-04 18:18:08 +00007193 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Torok Edwin871384f2010-01-26 08:50:50 +00007194 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
Reid Spencera773bd52006-08-04 18:18:08 +00007195 /usr/ucb/* ) ;;
7196 *)
7197 # OSF1 and SCO ODT 3.0 have their own names for install.
7198 # Don't use installbsd from OSF since it installs stuff as root
7199 # by default.
7200 for ac_prog in ginstall scoinst install; do
7201 for ac_exec_ext in '' $ac_executable_extensions; do
Torok Edwin871384f2010-01-26 08:50:50 +00007202 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 +00007203 if test $ac_prog = install &&
7204 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7205 # AIX install. It has an incompatible calling convention.
7206 :
7207 elif test $ac_prog = install &&
7208 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7209 # program-specific install script used by HP pwplus--don't use.
7210 :
7211 else
Torok Edwin871384f2010-01-26 08:50:50 +00007212 rm -rf conftest.one conftest.two conftest.dir
7213 echo one > conftest.one
7214 echo two > conftest.two
7215 mkdir conftest.dir
7216 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
7217 test -s conftest.one && test -s conftest.two &&
7218 test -s conftest.dir/conftest.one &&
7219 test -s conftest.dir/conftest.two
7220 then
7221 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7222 break 3
7223 fi
Reid Spencera773bd52006-08-04 18:18:08 +00007224 fi
7225 fi
7226 done
7227 done
7228 ;;
7229esac
Torok Edwin871384f2010-01-26 08:50:50 +00007230
7231 done
Reid Spencera773bd52006-08-04 18:18:08 +00007232IFS=$as_save_IFS
7233
Torok Edwin871384f2010-01-26 08:50:50 +00007234rm -rf conftest.one conftest.two conftest.dir
Reid Spencera773bd52006-08-04 18:18:08 +00007235
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
Torok Edwin871384f2010-01-26 08:50:50 +00007247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7248$as_echo "$INSTALL" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007249
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
Torok Edwin871384f2010-01-26 08:50:50 +00007261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7262$as_echo_n "checking for $ac_word... " >&6; }
7263if test "${ac_cv_path_BZIP2+set}" = set; then :
7264 $as_echo_n "(cached) " >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007265else
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=.
Torok Edwin871384f2010-01-26 08:50:50 +00007276 for ac_exec_ext in '' $ac_executable_extensions; do
7277 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"
Torok Edwin871384f2010-01-26 08:50:50 +00007279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007280 break 2
7281 fi
7282done
Torok Edwin871384f2010-01-26 08:50:50 +00007283 done
Reid Spencera773bd52006-08-04 18:18:08 +00007284IFS=$as_save_IFS
7285
Reid Spencera773bd52006-08-04 18:18:08 +00007286 ;;
7287esac
7288fi
7289BZIP2=$ac_cv_path_BZIP2
7290if test -n "$BZIP2"; then
Torok Edwin871384f2010-01-26 08:50:50 +00007291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIP2" >&5
7292$as_echo "$BZIP2" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007293else
Torok Edwin871384f2010-01-26 08:50:50 +00007294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7295$as_echo "no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007296fi
7297
7298
7299# Extract the first word of "doxygen", so it can be a program name with args.
7300set dummy doxygen; ac_word=$2
Torok Edwin871384f2010-01-26 08:50:50 +00007301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7302$as_echo_n "checking for $ac_word... " >&6; }
7303if test "${ac_cv_path_DOXYGEN+set}" = set; then :
7304 $as_echo_n "(cached) " >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007305else
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=.
Torok Edwin871384f2010-01-26 08:50:50 +00007316 for ac_exec_ext in '' $ac_executable_extensions; do
7317 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"
Torok Edwin871384f2010-01-26 08:50:50 +00007319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007320 break 2
7321 fi
7322done
Torok Edwin871384f2010-01-26 08:50:50 +00007323 done
Reid Spencera773bd52006-08-04 18:18:08 +00007324IFS=$as_save_IFS
7325
Reid Spencera773bd52006-08-04 18:18:08 +00007326 ;;
7327esac
7328fi
7329DOXYGEN=$ac_cv_path_DOXYGEN
7330if test -n "$DOXYGEN"; then
Torok Edwin871384f2010-01-26 08:50:50 +00007331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
7332$as_echo "$DOXYGEN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007333else
Torok Edwin871384f2010-01-26 08:50:50 +00007334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7335$as_echo "no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007336fi
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
Torok Edwin871384f2010-01-26 08:50:50 +00007341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7342$as_echo_n "checking for $ac_word... " >&6; }
7343if test "${ac_cv_path_GROFF+set}" = set; then :
7344 $as_echo_n "(cached) " >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007345else
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=.
Torok Edwin871384f2010-01-26 08:50:50 +00007356 for ac_exec_ext in '' $ac_executable_extensions; do
7357 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"
Torok Edwin871384f2010-01-26 08:50:50 +00007359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007360 break 2
7361 fi
7362done
Torok Edwin871384f2010-01-26 08:50:50 +00007363 done
Reid Spencera773bd52006-08-04 18:18:08 +00007364IFS=$as_save_IFS
7365
Reid Spencera773bd52006-08-04 18:18:08 +00007366 ;;
7367esac
7368fi
7369GROFF=$ac_cv_path_GROFF
7370if test -n "$GROFF"; then
Torok Edwin871384f2010-01-26 08:50:50 +00007371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GROFF" >&5
7372$as_echo "$GROFF" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007373else
Torok Edwin871384f2010-01-26 08:50:50 +00007374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7375$as_echo "no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007376fi
7377
7378
7379# Extract the first word of "gzip", so it can be a program name with args.
7380set dummy gzip; ac_word=$2
Torok Edwin871384f2010-01-26 08:50:50 +00007381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7382$as_echo_n "checking for $ac_word... " >&6; }
7383if test "${ac_cv_path_GZIP+set}" = set; then :
7384 $as_echo_n "(cached) " >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007385else
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=.
Torok Edwin871384f2010-01-26 08:50:50 +00007396 for ac_exec_ext in '' $ac_executable_extensions; do
7397 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"
Torok Edwin871384f2010-01-26 08:50:50 +00007399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007400 break 2
7401 fi
7402done
Torok Edwin871384f2010-01-26 08:50:50 +00007403 done
Reid Spencera773bd52006-08-04 18:18:08 +00007404IFS=$as_save_IFS
7405
Reid Spencera773bd52006-08-04 18:18:08 +00007406 ;;
7407esac
7408fi
7409GZIP=$ac_cv_path_GZIP
7410if test -n "$GZIP"; then
Torok Edwin871384f2010-01-26 08:50:50 +00007411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP" >&5
7412$as_echo "$GZIP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007413else
Torok Edwin871384f2010-01-26 08:50:50 +00007414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7415$as_echo "no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007416fi
7417
7418
7419# Extract the first word of "pod2html", so it can be a program name with args.
7420set dummy pod2html; ac_word=$2
Torok Edwin871384f2010-01-26 08:50:50 +00007421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7422$as_echo_n "checking for $ac_word... " >&6; }
7423if test "${ac_cv_path_POD2HTML+set}" = set; then :
7424 $as_echo_n "(cached) " >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007425else
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=.
Torok Edwin871384f2010-01-26 08:50:50 +00007436 for ac_exec_ext in '' $ac_executable_extensions; do
7437 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"
Torok Edwin871384f2010-01-26 08:50:50 +00007439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007440 break 2
7441 fi
7442done
Torok Edwin871384f2010-01-26 08:50:50 +00007443 done
Reid Spencera773bd52006-08-04 18:18:08 +00007444IFS=$as_save_IFS
7445
Reid Spencera773bd52006-08-04 18:18:08 +00007446 ;;
7447esac
7448fi
7449POD2HTML=$ac_cv_path_POD2HTML
7450if test -n "$POD2HTML"; then
Torok Edwin871384f2010-01-26 08:50:50 +00007451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POD2HTML" >&5
7452$as_echo "$POD2HTML" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007453else
Torok Edwin871384f2010-01-26 08:50:50 +00007454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7455$as_echo "no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007456fi
7457
7458
7459# Extract the first word of "pod2man", so it can be a program name with args.
7460set dummy pod2man; ac_word=$2
Torok Edwin871384f2010-01-26 08:50:50 +00007461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7462$as_echo_n "checking for $ac_word... " >&6; }
7463if test "${ac_cv_path_POD2MAN+set}" = set; then :
7464 $as_echo_n "(cached) " >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007465else
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=.
Torok Edwin871384f2010-01-26 08:50:50 +00007476 for ac_exec_ext in '' $ac_executable_extensions; do
7477 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"
Torok Edwin871384f2010-01-26 08:50:50 +00007479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007480 break 2
7481 fi
7482done
Torok Edwin871384f2010-01-26 08:50:50 +00007483 done
Reid Spencera773bd52006-08-04 18:18:08 +00007484IFS=$as_save_IFS
7485
Reid Spencera773bd52006-08-04 18:18:08 +00007486 ;;
7487esac
7488fi
7489POD2MAN=$ac_cv_path_POD2MAN
7490if test -n "$POD2MAN"; then
Torok Edwin871384f2010-01-26 08:50:50 +00007491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POD2MAN" >&5
7492$as_echo "$POD2MAN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007493else
Torok Edwin871384f2010-01-26 08:50:50 +00007494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7495$as_echo "no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007496fi
7497
7498
7499# Extract the first word of "runtest", so it can be a program name with args.
7500set dummy runtest; ac_word=$2
Torok Edwin871384f2010-01-26 08:50:50 +00007501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7502$as_echo_n "checking for $ac_word... " >&6; }
7503if test "${ac_cv_path_RUNTEST+set}" = set; then :
7504 $as_echo_n "(cached) " >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007505else
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=.
Torok Edwin871384f2010-01-26 08:50:50 +00007516 for ac_exec_ext in '' $ac_executable_extensions; do
7517 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"
Torok Edwin871384f2010-01-26 08:50:50 +00007519 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007520 break 2
7521 fi
7522done
Torok Edwin871384f2010-01-26 08:50:50 +00007523 done
Reid Spencera773bd52006-08-04 18:18:08 +00007524IFS=$as_save_IFS
7525
Reid Spencera773bd52006-08-04 18:18:08 +00007526 ;;
7527esac
7528fi
7529RUNTEST=$ac_cv_path_RUNTEST
7530if test -n "$RUNTEST"; then
Torok Edwin871384f2010-01-26 08:50:50 +00007531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
7532$as_echo "$RUNTEST" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007533else
Torok Edwin871384f2010-01-26 08:50:50 +00007534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7535$as_echo "no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007536fi
7537
7538
7539
7540no_itcl=true
Torok Edwin871384f2010-01-26 08:50:50 +00007541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the tclsh program in tclinclude directory" >&5
7542$as_echo_n "checking for the tclsh program in tclinclude directory... " >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007543
7544# Check whether --with-tclinclude was given.
Torok Edwin871384f2010-01-26 08:50:50 +00007545if test "${with_tclinclude+set}" = set; then :
Reid Spencera773bd52006-08-04 18:18:08 +00007546 withval=$with_tclinclude; with_tclinclude=${withval}
7547else
7548 with_tclinclude=''
7549fi
7550
Torok Edwin871384f2010-01-26 08:50:50 +00007551if test "${ac_cv_path_tclsh+set}" = set; then :
7552 $as_echo_n "(cached) " >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007553else
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
Torok Edwin871384f2010-01-26 08:50:50 +00007561 as_fn_error "${with_tclinclude} directory doesn't contain tclsh" "$LINENO" 5
Reid Spencera773bd52006-08-04 18:18:08 +00007562 fi
7563fi
Torok Edwin871384f2010-01-26 08:50:50 +00007564fi
7565
Reid Spencera773bd52006-08-04 18:18:08 +00007566
7567if test x"${ac_cv_path_tclsh}" = x ; then
Torok Edwin871384f2010-01-26 08:50:50 +00007568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7569$as_echo "none" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007570 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
Torok Edwin871384f2010-01-26 08:50:50 +00007574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7575$as_echo_n "checking for $ac_word... " >&6; }
7576if test "${ac_cv_path_TCLSH+set}" = set; then :
7577 $as_echo_n "(cached) " >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007578else
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=.
Torok Edwin871384f2010-01-26 08:50:50 +00007589 for ac_exec_ext in '' $ac_executable_extensions; do
7590 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"
Torok Edwin871384f2010-01-26 08:50:50 +00007592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007593 break 2
7594 fi
7595done
Torok Edwin871384f2010-01-26 08:50:50 +00007596 done
Reid Spencera773bd52006-08-04 18:18:08 +00007597IFS=$as_save_IFS
7598
7599 ;;
7600esac
7601fi
7602TCLSH=$ac_cv_path_TCLSH
7603if test -n "$TCLSH"; then
Torok Edwin871384f2010-01-26 08:50:50 +00007604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCLSH" >&5
7605$as_echo "$TCLSH" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007606else
Torok Edwin871384f2010-01-26 08:50:50 +00007607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7608$as_echo "no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007609fi
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
Torok Edwin871384f2010-01-26 08:50:50 +00007621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_tclsh}" >&5
7622$as_echo "${ac_cv_path_tclsh}" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007623 TCLSH="${ac_cv_path_tclsh}"
7624
7625fi
7626
Reid Spencera773bd52006-08-04 18:18:08 +00007627# Extract the first word of "zip", so it can be a program name with args.
7628set dummy zip; ac_word=$2
Torok Edwin871384f2010-01-26 08:50:50 +00007629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7630$as_echo_n "checking for $ac_word... " >&6; }
7631if test "${ac_cv_path_ZIP+set}" = set; then :
7632 $as_echo_n "(cached) " >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007633else
7634 case $ZIP in
7635 [\\/]* | ?:[\\/]*)
7636 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7637 ;;
7638 *)
7639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7640for as_dir in $PATH
7641do
7642 IFS=$as_save_IFS
7643 test -z "$as_dir" && as_dir=.
Torok Edwin871384f2010-01-26 08:50:50 +00007644 for ac_exec_ext in '' $ac_executable_extensions; do
7645 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 +00007646 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
Torok Edwin871384f2010-01-26 08:50:50 +00007647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007648 break 2
7649 fi
7650done
Torok Edwin871384f2010-01-26 08:50:50 +00007651 done
Reid Spencera773bd52006-08-04 18:18:08 +00007652IFS=$as_save_IFS
7653
Reid Spencera773bd52006-08-04 18:18:08 +00007654 ;;
7655esac
7656fi
7657ZIP=$ac_cv_path_ZIP
7658if test -n "$ZIP"; then
Torok Edwin871384f2010-01-26 08:50:50 +00007659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
7660$as_echo "$ZIP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007661else
Torok Edwin871384f2010-01-26 08:50:50 +00007662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7663$as_echo "no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007664fi
7665
7666
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007667for ac_prog in ocamlc
Gordon Henriksene7072162008-03-07 18:20:01 +00007668do
7669 # Extract the first word of "$ac_prog", so it can be a program name with args.
7670set dummy $ac_prog; ac_word=$2
Torok Edwin871384f2010-01-26 08:50:50 +00007671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7672$as_echo_n "checking for $ac_word... " >&6; }
7673if test "${ac_cv_path_OCAMLC+set}" = set; then :
7674 $as_echo_n "(cached) " >&6
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007675else
7676 case $OCAMLC in
7677 [\\/]* | ?:[\\/]*)
7678 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7679 ;;
7680 *)
7681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7682for as_dir in $PATH
7683do
7684 IFS=$as_save_IFS
7685 test -z "$as_dir" && as_dir=.
Torok Edwin871384f2010-01-26 08:50:50 +00007686 for ac_exec_ext in '' $ac_executable_extensions; do
7687 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 +00007688 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
Torok Edwin871384f2010-01-26 08:50:50 +00007689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007690 break 2
7691 fi
7692done
Torok Edwin871384f2010-01-26 08:50:50 +00007693 done
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007694IFS=$as_save_IFS
7695
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007696 ;;
7697esac
7698fi
7699OCAMLC=$ac_cv_path_OCAMLC
7700if test -n "$OCAMLC"; then
Torok Edwin871384f2010-01-26 08:50:50 +00007701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLC" >&5
7702$as_echo "$OCAMLC" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007703else
Torok Edwin871384f2010-01-26 08:50:50 +00007704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7705$as_echo "no" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007706fi
7707
7708
Gordon Henriksene7072162008-03-07 18:20:01 +00007709 test -n "$OCAMLC" && break
7710done
7711
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007712for ac_prog in ocamlopt
Gordon Henriksene7072162008-03-07 18:20:01 +00007713do
7714 # Extract the first word of "$ac_prog", so it can be a program name with args.
7715set dummy $ac_prog; ac_word=$2
Torok Edwin871384f2010-01-26 08:50:50 +00007716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7717$as_echo_n "checking for $ac_word... " >&6; }
7718if test "${ac_cv_path_OCAMLOPT+set}" = set; then :
7719 $as_echo_n "(cached) " >&6
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007720else
7721 case $OCAMLOPT in
7722 [\\/]* | ?:[\\/]*)
7723 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7724 ;;
7725 *)
7726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7727for as_dir in $PATH
7728do
7729 IFS=$as_save_IFS
7730 test -z "$as_dir" && as_dir=.
Torok Edwin871384f2010-01-26 08:50:50 +00007731 for ac_exec_ext in '' $ac_executable_extensions; do
7732 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 +00007733 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
Torok Edwin871384f2010-01-26 08:50:50 +00007734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007735 break 2
7736 fi
7737done
Torok Edwin871384f2010-01-26 08:50:50 +00007738 done
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007739IFS=$as_save_IFS
7740
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007741 ;;
7742esac
7743fi
7744OCAMLOPT=$ac_cv_path_OCAMLOPT
7745if test -n "$OCAMLOPT"; then
Torok Edwin871384f2010-01-26 08:50:50 +00007746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLOPT" >&5
7747$as_echo "$OCAMLOPT" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007748else
Torok Edwin871384f2010-01-26 08:50:50 +00007749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7750$as_echo "no" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007751fi
7752
7753
Gordon Henriksene7072162008-03-07 18:20:01 +00007754 test -n "$OCAMLOPT" && break
7755done
7756
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007757for ac_prog in ocamldep
Gordon Henriksene7072162008-03-07 18:20:01 +00007758do
7759 # Extract the first word of "$ac_prog", so it can be a program name with args.
7760set dummy $ac_prog; ac_word=$2
Torok Edwin871384f2010-01-26 08:50:50 +00007761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7762$as_echo_n "checking for $ac_word... " >&6; }
7763if test "${ac_cv_path_OCAMLDEP+set}" = set; then :
7764 $as_echo_n "(cached) " >&6
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007765else
7766 case $OCAMLDEP in
7767 [\\/]* | ?:[\\/]*)
7768 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7769 ;;
7770 *)
7771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7772for as_dir in $PATH
7773do
7774 IFS=$as_save_IFS
7775 test -z "$as_dir" && as_dir=.
Torok Edwin871384f2010-01-26 08:50:50 +00007776 for ac_exec_ext in '' $ac_executable_extensions; do
7777 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 +00007778 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
Torok Edwin871384f2010-01-26 08:50:50 +00007779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007780 break 2
7781 fi
7782done
Torok Edwin871384f2010-01-26 08:50:50 +00007783 done
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007784IFS=$as_save_IFS
7785
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007786 ;;
7787esac
7788fi
7789OCAMLDEP=$ac_cv_path_OCAMLDEP
7790if test -n "$OCAMLDEP"; then
Torok Edwin871384f2010-01-26 08:50:50 +00007791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLDEP" >&5
7792$as_echo "$OCAMLDEP" >&6; }
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007793else
Torok Edwin871384f2010-01-26 08:50:50 +00007794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7795$as_echo "no" >&6; }
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007796fi
7797
7798
Gordon Henriksene7072162008-03-07 18:20:01 +00007799 test -n "$OCAMLDEP" && break
7800done
7801
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007802for ac_prog in ocamldoc
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007803do
7804 # Extract the first word of "$ac_prog", so it can be a program name with args.
7805set dummy $ac_prog; ac_word=$2
Torok Edwin871384f2010-01-26 08:50:50 +00007806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7807$as_echo_n "checking for $ac_word... " >&6; }
7808if test "${ac_cv_path_OCAMLDOC+set}" = set; then :
7809 $as_echo_n "(cached) " >&6
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007810else
7811 case $OCAMLDOC in
7812 [\\/]* | ?:[\\/]*)
7813 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7814 ;;
7815 *)
7816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7817for as_dir in $PATH
7818do
7819 IFS=$as_save_IFS
7820 test -z "$as_dir" && as_dir=.
Torok Edwin871384f2010-01-26 08:50:50 +00007821 for ac_exec_ext in '' $ac_executable_extensions; do
7822 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 +00007823 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
Torok Edwin871384f2010-01-26 08:50:50 +00007824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007825 break 2
7826 fi
7827done
Torok Edwin871384f2010-01-26 08:50:50 +00007828 done
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007829IFS=$as_save_IFS
7830
7831 ;;
7832esac
7833fi
7834OCAMLDOC=$ac_cv_path_OCAMLDOC
7835if test -n "$OCAMLDOC"; then
Torok Edwin871384f2010-01-26 08:50:50 +00007836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLDOC" >&5
7837$as_echo "$OCAMLDOC" >&6; }
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007838else
Torok Edwin871384f2010-01-26 08:50:50 +00007839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7840$as_echo "no" >&6; }
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007841fi
7842
7843
7844 test -n "$OCAMLDOC" && break
7845done
7846
Torok Edwincc499a42008-10-22 09:56:27 +00007847for ac_prog in gas as
7848do
7849 # Extract the first word of "$ac_prog", so it can be a program name with args.
7850set dummy $ac_prog; ac_word=$2
Torok Edwin871384f2010-01-26 08:50:50 +00007851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7852$as_echo_n "checking for $ac_word... " >&6; }
7853if test "${ac_cv_path_GAS+set}" = set; then :
7854 $as_echo_n "(cached) " >&6
Torok Edwincc499a42008-10-22 09:56:27 +00007855else
7856 case $GAS in
7857 [\\/]* | ?:[\\/]*)
7858 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7859 ;;
7860 *)
7861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7862for as_dir in $PATH
7863do
7864 IFS=$as_save_IFS
7865 test -z "$as_dir" && as_dir=.
Torok Edwin871384f2010-01-26 08:50:50 +00007866 for ac_exec_ext in '' $ac_executable_extensions; do
7867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Torok Edwincc499a42008-10-22 09:56:27 +00007868 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
Torok Edwin871384f2010-01-26 08:50:50 +00007869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwincc499a42008-10-22 09:56:27 +00007870 break 2
7871 fi
7872done
Torok Edwin871384f2010-01-26 08:50:50 +00007873 done
Torok Edwincc499a42008-10-22 09:56:27 +00007874IFS=$as_save_IFS
7875
7876 ;;
7877esac
7878fi
7879GAS=$ac_cv_path_GAS
7880if test -n "$GAS"; then
Torok Edwin871384f2010-01-26 08:50:50 +00007881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GAS" >&5
7882$as_echo "$GAS" >&6; }
Torok Edwincc499a42008-10-22 09:56:27 +00007883else
Torok Edwin871384f2010-01-26 08:50:50 +00007884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7885$as_echo "no" >&6; }
Torok Edwincc499a42008-10-22 09:56:27 +00007886fi
7887
7888
7889 test -n "$GAS" && break
7890done
7891
Reid Spencera773bd52006-08-04 18:18:08 +00007892
Torok Edwin871384f2010-01-26 08:50:50 +00007893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler -Wl,-R<path> option" >&5
7894$as_echo_n "checking for compiler -Wl,-R<path> option... " >&6; }
7895if test "${llvm_cv_link_use_r+set}" = set; then :
7896 $as_echo_n "(cached) " >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007897else
7898 ac_ext=c
7899ac_cpp='$CPP $CPPFLAGS'
7900ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7901ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7902ac_compiler_gnu=$ac_cv_c_compiler_gnu
7903
7904 oldcflags="$CFLAGS"
7905 CFLAGS="$CFLAGS -Wl,-R."
Torok Edwin871384f2010-01-26 08:50:50 +00007906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +00007907/* end confdefs.h. */
7908
7909int
7910main ()
7911{
7912int main() { return 0; }
7913 ;
7914 return 0;
7915}
7916_ACEOF
Torok Edwin871384f2010-01-26 08:50:50 +00007917if ac_fn_c_try_link "$LINENO"; then :
Reid Spencera773bd52006-08-04 18:18:08 +00007918 llvm_cv_link_use_r=yes
7919else
Torok Edwin871384f2010-01-26 08:50:50 +00007920 llvm_cv_link_use_r=no
Reid Spencera773bd52006-08-04 18:18:08 +00007921fi
Bill Wendlingebcceee2009-04-18 11:20:33 +00007922rm -f core conftest.err conftest.$ac_objext \
Torok Edwin871384f2010-01-26 08:50:50 +00007923 conftest$ac_exeext conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +00007924 CFLAGS="$oldcflags"
7925 ac_ext=c
7926ac_cpp='$CPP $CPPFLAGS'
7927ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7928ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7929ac_compiler_gnu=$ac_cv_c_compiler_gnu
7930
7931
7932fi
Torok Edwin871384f2010-01-26 08:50:50 +00007933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $llvm_cv_link_use_r" >&5
7934$as_echo "$llvm_cv_link_use_r" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007935if test "$llvm_cv_link_use_r" = yes ; then
7936
Torok Edwin871384f2010-01-26 08:50:50 +00007937$as_echo "#define HAVE_LINK_R 1" >>confdefs.h
Reid Spencera773bd52006-08-04 18:18:08 +00007938
7939 fi
7940
7941
Torok Edwin871384f2010-01-26 08:50:50 +00007942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler -Wl,-export-dynamic option" >&5
7943$as_echo_n "checking for compiler -Wl,-export-dynamic option... " >&6; }
7944if test "${llvm_cv_link_use_export_dynamic+set}" = set; then :
7945 $as_echo_n "(cached) " >&6
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007946else
7947 ac_ext=c
7948ac_cpp='$CPP $CPPFLAGS'
7949ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7950ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7951ac_compiler_gnu=$ac_cv_c_compiler_gnu
7952
7953 oldcflags="$CFLAGS"
7954 CFLAGS="$CFLAGS -Wl,-export-dynamic"
Torok Edwin871384f2010-01-26 08:50:50 +00007955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007956/* end confdefs.h. */
7957
7958int
7959main ()
7960{
7961int main() { return 0; }
7962 ;
7963 return 0;
7964}
7965_ACEOF
Torok Edwin871384f2010-01-26 08:50:50 +00007966if ac_fn_c_try_link "$LINENO"; then :
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007967 llvm_cv_link_use_export_dynamic=yes
7968else
Torok Edwin871384f2010-01-26 08:50:50 +00007969 llvm_cv_link_use_export_dynamic=no
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007970fi
Bill Wendlingebcceee2009-04-18 11:20:33 +00007971rm -f core conftest.err conftest.$ac_objext \
Torok Edwin871384f2010-01-26 08:50:50 +00007972 conftest$ac_exeext conftest.$ac_ext
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007973 CFLAGS="$oldcflags"
7974 ac_ext=c
7975ac_cpp='$CPP $CPPFLAGS'
7976ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7977ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7978ac_compiler_gnu=$ac_cv_c_compiler_gnu
7979
7980
7981fi
Torok Edwin871384f2010-01-26 08:50:50 +00007982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $llvm_cv_link_use_export_dynamic" >&5
7983$as_echo "$llvm_cv_link_use_export_dynamic" >&6; }
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007984if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7985
Torok Edwin871384f2010-01-26 08:50:50 +00007986$as_echo "#define HAVE_LINK_EXPORT_DYNAMIC 1" >>confdefs.h
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007987
7988 fi
7989
7990
Reid Spencera773bd52006-08-04 18:18:08 +00007991
7992
Torok Edwin871384f2010-01-26 08:50:50 +00007993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
7994$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
7995if test "${ac_cv_c_const+set}" = set; then :
7996 $as_echo_n "(cached) " >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007997else
Torok Edwin871384f2010-01-26 08:50:50 +00007998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +00007999/* end confdefs.h. */
8000
8001int
8002main ()
8003{
8004/* FIXME: Include the comments suggested by Paul. */
8005#ifndef __cplusplus
8006 /* Ultrix mips cc rejects this. */
8007 typedef int charset[2];
Torok Edwin871384f2010-01-26 08:50:50 +00008008 const charset cs;
Reid Spencera773bd52006-08-04 18:18:08 +00008009 /* SunOS 4.1.1 cc rejects this. */
Torok Edwin871384f2010-01-26 08:50:50 +00008010 char const *const *pcpcc;
8011 char **ppc;
Reid Spencera773bd52006-08-04 18:18:08 +00008012 /* NEC SVR4.0.2 mips cc rejects this. */
8013 struct point {int x, y;};
8014 static struct point const zero = {0,0};
8015 /* AIX XL C 1.02.0.0 rejects this.
8016 It does not let you subtract one const X* pointer from another in
8017 an arm of an if-expression whose if-part is not a constant
8018 expression */
8019 const char *g = "string";
Torok Edwin871384f2010-01-26 08:50:50 +00008020 pcpcc = &g + (g ? g-g : 0);
Reid Spencera773bd52006-08-04 18:18:08 +00008021 /* HPUX 7.0 cc rejects these. */
Torok Edwin871384f2010-01-26 08:50:50 +00008022 ++pcpcc;
8023 ppc = (char**) pcpcc;
8024 pcpcc = (char const *const *) ppc;
Reid Spencera773bd52006-08-04 18:18:08 +00008025 { /* SCO 3.2v4 cc rejects this. */
8026 char *t;
8027 char const *s = 0 ? (char *) 0 : (char const *) 0;
8028
8029 *t++ = 0;
8030 if (s) return 0;
8031 }
8032 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8033 int x[] = {25, 17};
8034 const int *foo = &x[0];
8035 ++foo;
8036 }
8037 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8038 typedef const int *iptr;
8039 iptr p = 0;
8040 ++p;
8041 }
8042 { /* AIX XL C 1.02.0.0 rejects this saying
8043 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8044 struct s { int j; const int *ap[3]; };
8045 struct s *b; b->j = 5;
8046 }
8047 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8048 const int foo = 10;
8049 if (!foo) return 0;
8050 }
Torok Edwin871384f2010-01-26 08:50:50 +00008051 return !cs[0] && !zero.x;
Reid Spencera773bd52006-08-04 18:18:08 +00008052#endif
8053
8054 ;
8055 return 0;
8056}
8057_ACEOF
Torok Edwin871384f2010-01-26 08:50:50 +00008058if ac_fn_c_try_compile "$LINENO"; then :
Reid Spencera773bd52006-08-04 18:18:08 +00008059 ac_cv_c_const=yes
8060else
Torok Edwin871384f2010-01-26 08:50:50 +00008061 ac_cv_c_const=no
Reid Spencera773bd52006-08-04 18:18:08 +00008062fi
Reid Spencera773bd52006-08-04 18:18:08 +00008063rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8064fi
Torok Edwin871384f2010-01-26 08:50:50 +00008065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
8066$as_echo "$ac_cv_c_const" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008067if test $ac_cv_c_const = no; then
8068
Torok Edwin871384f2010-01-26 08:50:50 +00008069$as_echo "#define const /**/" >>confdefs.h
Reid Spencera773bd52006-08-04 18:18:08 +00008070
8071fi
8072
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008073ac_header_dirent=no
8074for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Torok Edwin871384f2010-01-26 08:50:50 +00008075 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
8077$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
8078if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
8079 $as_echo_n "(cached) " >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008080else
Torok Edwin871384f2010-01-26 08:50:50 +00008081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008082/* end confdefs.h. */
8083#include <sys/types.h>
8084#include <$ac_hdr>
8085
8086int
8087main ()
8088{
8089if ((DIR *) 0)
8090return 0;
8091 ;
8092 return 0;
8093}
8094_ACEOF
Torok Edwin871384f2010-01-26 08:50:50 +00008095if ac_fn_c_try_compile "$LINENO"; then :
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008096 eval "$as_ac_Header=yes"
8097else
Torok Edwin871384f2010-01-26 08:50:50 +00008098 eval "$as_ac_Header=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008099fi
Reid Spencera773bd52006-08-04 18:18:08 +00008100rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008101fi
Torok Edwin871384f2010-01-26 08:50:50 +00008102eval ac_res=\$$as_ac_Header
8103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8104$as_echo "$ac_res" >&6; }
8105eval as_val=\$$as_ac_Header
8106 if test "x$as_val" = x""yes; then :
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008107 cat >>confdefs.h <<_ACEOF
Torok Edwin871384f2010-01-26 08:50:50 +00008108#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008109_ACEOF
8110
8111ac_header_dirent=$ac_hdr; break
8112fi
8113
8114done
8115# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8116if test $ac_header_dirent = dirent.h; then
Torok Edwin871384f2010-01-26 08:50:50 +00008117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
8118$as_echo_n "checking for library containing opendir... " >&6; }
8119if test "${ac_cv_search_opendir+set}" = set; then :
8120 $as_echo_n "(cached) " >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008121else
8122 ac_func_search_save_LIBS=$LIBS
Torok Edwin871384f2010-01-26 08:50:50 +00008123cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008124/* end confdefs.h. */
8125
Reid Spencera773bd52006-08-04 18:18:08 +00008126/* Override any GCC internal prototype to avoid an error.
8127 Use char because int might match the return type of a GCC
8128 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008129#ifdef __cplusplus
8130extern "C"
8131#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008132char opendir ();
8133int
8134main ()
8135{
Reid Spencera773bd52006-08-04 18:18:08 +00008136return opendir ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008137 ;
8138 return 0;
8139}
8140_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008141for ac_lib in '' dir; do
8142 if test -z "$ac_lib"; then
8143 ac_res="none required"
8144 else
8145 ac_res=-l$ac_lib
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008146 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +00008147 fi
Torok Edwin871384f2010-01-26 08:50:50 +00008148 if ac_fn_c_try_link "$LINENO"; then :
Reid Spencera773bd52006-08-04 18:18:08 +00008149 ac_cv_search_opendir=$ac_res
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008150fi
Bill Wendlingebcceee2009-04-18 11:20:33 +00008151rm -f core conftest.err conftest.$ac_objext \
Torok Edwin871384f2010-01-26 08:50:50 +00008152 conftest$ac_exeext
8153 if test "${ac_cv_search_opendir+set}" = set; then :
Reid Spencera773bd52006-08-04 18:18:08 +00008154 break
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008155fi
John Criswell7a73b802003-06-30 21:59:07 +00008156done
Torok Edwin871384f2010-01-26 08:50:50 +00008157if test "${ac_cv_search_opendir+set}" = set; then :
8158
Reid Spencera773bd52006-08-04 18:18:08 +00008159else
8160 ac_cv_search_opendir=no
8161fi
8162rm conftest.$ac_ext
8163LIBS=$ac_func_search_save_LIBS
8164fi
Torok Edwin871384f2010-01-26 08:50:50 +00008165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
8166$as_echo "$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008167ac_res=$ac_cv_search_opendir
Torok Edwin871384f2010-01-26 08:50:50 +00008168if test "$ac_res" != no; then :
Reid Spencera773bd52006-08-04 18:18:08 +00008169 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell7a73b802003-06-30 21:59:07 +00008170
Reid Spencera773bd52006-08-04 18:18:08 +00008171fi
8172
8173else
Torok Edwin871384f2010-01-26 08:50:50 +00008174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
8175$as_echo_n "checking for library containing opendir... " >&6; }
8176if test "${ac_cv_search_opendir+set}" = set; then :
8177 $as_echo_n "(cached) " >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008178else
8179 ac_func_search_save_LIBS=$LIBS
Torok Edwin871384f2010-01-26 08:50:50 +00008180cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +00008181/* end confdefs.h. */
8182
8183/* Override any GCC internal prototype to avoid an error.
8184 Use char because int might match the return type of a GCC
8185 builtin and then its argument prototype would still apply. */
8186#ifdef __cplusplus
8187extern "C"
8188#endif
8189char opendir ();
8190int
8191main ()
8192{
8193return opendir ();
8194 ;
8195 return 0;
8196}
8197_ACEOF
8198for ac_lib in '' x; do
8199 if test -z "$ac_lib"; then
8200 ac_res="none required"
8201 else
8202 ac_res=-l$ac_lib
8203 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8204 fi
Torok Edwin871384f2010-01-26 08:50:50 +00008205 if ac_fn_c_try_link "$LINENO"; then :
Reid Spencera773bd52006-08-04 18:18:08 +00008206 ac_cv_search_opendir=$ac_res
Reid Spencera773bd52006-08-04 18:18:08 +00008207fi
Bill Wendlingebcceee2009-04-18 11:20:33 +00008208rm -f core conftest.err conftest.$ac_objext \
Torok Edwin871384f2010-01-26 08:50:50 +00008209 conftest$ac_exeext
8210 if test "${ac_cv_search_opendir+set}" = set; then :
Reid Spencera773bd52006-08-04 18:18:08 +00008211 break
8212fi
8213done
Torok Edwin871384f2010-01-26 08:50:50 +00008214if test "${ac_cv_search_opendir+set}" = set; then :
8215
Reid Spencera773bd52006-08-04 18:18:08 +00008216else
8217 ac_cv_search_opendir=no
8218fi
8219rm conftest.$ac_ext
8220LIBS=$ac_func_search_save_LIBS
8221fi
Torok Edwin871384f2010-01-26 08:50:50 +00008222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
8223$as_echo "$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008224ac_res=$ac_cv_search_opendir
Torok Edwin871384f2010-01-26 08:50:50 +00008225if test "$ac_res" != no; then :
Reid Spencera773bd52006-08-04 18:18:08 +00008226 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8227
8228fi
8229
8230fi
John Criswell7a73b802003-06-30 21:59:07 +00008231
John Criswell7a73b802003-06-30 21:59:07 +00008232for ac_header in dlfcn.h
Torok Edwin871384f2010-01-26 08:50:50 +00008233do :
8234 ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
8235if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
John Criswell7a73b802003-06-30 21:59:07 +00008236 cat >>confdefs.h <<_ACEOF
Torok Edwin871384f2010-01-26 08:50:50 +00008237#define HAVE_DLFCN_H 1
John Criswell7a73b802003-06-30 21:59:07 +00008238_ACEOF
8239
8240fi
8241
8242done
8243
Reid Spencera773bd52006-08-04 18:18:08 +00008244# Check whether --enable-ltdl-install was given.
Torok Edwin871384f2010-01-26 08:50:50 +00008245if test "${enable_ltdl_install+set}" = set; then :
Reid Spencera773bd52006-08-04 18:18:08 +00008246 enableval=$enable_ltdl_install;
8247fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008248
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008249
Torok Edwin871384f2010-01-26 08:50:50 +00008250 if test x"${enable_ltdl_install-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008251 INSTALL_LTDL_TRUE=
8252 INSTALL_LTDL_FALSE='#'
8253else
8254 INSTALL_LTDL_TRUE='#'
8255 INSTALL_LTDL_FALSE=
8256fi
8257
Torok Edwin871384f2010-01-26 08:50:50 +00008258 if test x"${enable_ltdl_convenience-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008259 CONVENIENCE_LTDL_TRUE=
8260 CONVENIENCE_LTDL_FALSE='#'
8261else
8262 CONVENIENCE_LTDL_TRUE='#'
8263 CONVENIENCE_LTDL_FALSE=
8264fi
8265
8266
Torok Edwin871384f2010-01-26 08:50:50 +00008267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
8268$as_echo_n "checking dynamic linker characteristics... " >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008269library_names_spec=
8270libname_spec='lib$name'
8271soname_spec=
8272shrext_cmds=".so"
8273postinstall_cmds=
8274postuninstall_cmds=
8275finish_cmds=
8276finish_eval=
8277shlibpath_var=
8278shlibpath_overrides_runpath=unknown
8279version_type=none
8280dynamic_linker="$host_os ld.so"
8281sys_lib_dlsearch_path_spec="/lib /usr/lib"
8282if test "$GCC" = yes; then
8283 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8284 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8285 # if the path contains ";" then we assume it to be the separator
8286 # otherwise default to the standard path separator (i.e. ":") - it is
8287 # assumed that no part of a normal pathname contains ";" but that should
8288 # okay in the real world where ";" in dirpaths is itself problematic.
8289 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8290 else
8291 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8292 fi
8293else
8294 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8295fi
8296need_lib_prefix=unknown
8297hardcode_into_libs=no
8298
8299# when you set need_version to no, make sure it does not cause -set_version
8300# flags to be left without arguments
8301need_version=unknown
8302
8303case $host_os in
8304aix3*)
8305 version_type=linux
8306 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8307 shlibpath_var=LIBPATH
8308
8309 # AIX 3 has no versioning support, so we append a major version to the name.
8310 soname_spec='${libname}${release}${shared_ext}$major'
8311 ;;
8312
8313aix4* | aix5*)
8314 version_type=linux
8315 need_lib_prefix=no
8316 need_version=no
8317 hardcode_into_libs=yes
8318 if test "$host_cpu" = ia64; then
8319 # AIX 5 supports IA64
8320 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8321 shlibpath_var=LD_LIBRARY_PATH
8322 else
8323 # With GCC up to 2.95.x, collect2 would create an import file
8324 # for dependence libraries. The import file would start with
8325 # the line `#! .'. This would cause the generated library to
8326 # depend on `.', always an invalid library. This was fixed in
8327 # development snapshots of GCC prior to 3.0.
8328 case $host_os in
8329 aix4 | aix4.[01] | aix4.[01].*)
8330 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8331 echo ' yes '
8332 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8333 :
8334 else
8335 can_build_shared=no
8336 fi
8337 ;;
8338 esac
8339 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8340 # soname into executable. Probably we can add versioning support to
8341 # collect2, so additional links can be useful in future.
8342 if test "$aix_use_runtimelinking" = yes; then
8343 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8344 # instead of lib<name>.a to let people know that these are not
8345 # typical AIX shared libraries.
8346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8347 else
8348 # We preserve .a as extension for shared libraries through AIX4.2
8349 # and later when we are not doing run time linking.
8350 library_names_spec='${libname}${release}.a $libname.a'
8351 soname_spec='${libname}${release}${shared_ext}$major'
8352 fi
8353 shlibpath_var=LIBPATH
8354 fi
8355 ;;
8356
8357amigaos*)
8358 library_names_spec='$libname.ixlibrary $libname.a'
8359 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8360 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'
8361 ;;
8362
8363beos*)
8364 library_names_spec='${libname}${shared_ext}'
8365 dynamic_linker="$host_os ld.so"
8366 shlibpath_var=LIBRARY_PATH
8367 ;;
8368
8369bsdi[45]*)
8370 version_type=linux
8371 need_version=no
8372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8373 soname_spec='${libname}${release}${shared_ext}$major'
8374 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8375 shlibpath_var=LD_LIBRARY_PATH
8376 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8377 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8378 # the default ld.so.conf also contains /usr/contrib/lib and
8379 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8380 # libtool to hard-code these into programs
8381 ;;
8382
8383cygwin* | mingw* | pw32*)
8384 version_type=windows
8385 shrext_cmds=".dll"
8386 need_version=no
8387 need_lib_prefix=no
8388
8389 case $GCC,$host_os in
8390 yes,cygwin* | yes,mingw* | yes,pw32*)
8391 library_names_spec='$libname.dll.a'
8392 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8393 postinstall_cmds='base_file=`basename \${file}`~
8394 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8395 dldir=$destdir/`dirname \$dlpath`~
8396 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +00008397 $install_prog $dir/$dlname \$dldir/$dlname~
8398 chmod a+x \$dldir/$dlname'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008399 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8400 dlpath=$dir/\$dldll~
8401 $rm \$dlpath'
8402 shlibpath_overrides_runpath=yes
8403
8404 case $host_os in
8405 cygwin*)
8406 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8407 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8408 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8409 ;;
8410 mingw*)
8411 # MinGW DLLs use traditional 'lib' prefix
8412 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8413 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8414 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8415 # It is most probably a Windows format PATH printed by
8416 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8417 # path with ; separators, and with drive letters. We can handle the
8418 # drive letters (cygwin fileutils understands them), so leave them,
8419 # especially as we might pass files found there to a mingw objdump,
8420 # which wouldn't understand a cygwinified path. Ahh.
8421 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8422 else
8423 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8424 fi
8425 ;;
8426 pw32*)
8427 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +00008428 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 +00008429 ;;
8430 esac
8431 ;;
8432
8433 *)
8434 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8435 ;;
8436 esac
8437 dynamic_linker='Win32 ld.exe'
8438 # FIXME: first we should search . and the directory the executable is in
8439 shlibpath_var=PATH
8440 ;;
8441
8442darwin* | rhapsody*)
8443 dynamic_linker="$host_os dyld"
8444 version_type=darwin
8445 need_lib_prefix=no
8446 need_version=no
8447 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8448 soname_spec='${libname}${release}${major}$shared_ext'
8449 shlibpath_overrides_runpath=yes
8450 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +00008451 shrext_cmds='.dylib'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008452 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8453 if test "$GCC" = yes; then
8454 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"`
8455 else
8456 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8457 fi
8458 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8459 ;;
8460
8461dgux*)
8462 version_type=linux
8463 need_lib_prefix=no
8464 need_version=no
8465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8466 soname_spec='${libname}${release}${shared_ext}$major'
8467 shlibpath_var=LD_LIBRARY_PATH
8468 ;;
8469
8470freebsd1*)
8471 dynamic_linker=no
8472 ;;
8473
8474kfreebsd*-gnu)
8475 version_type=linux
8476 need_lib_prefix=no
8477 need_version=no
8478 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8479 soname_spec='${libname}${release}${shared_ext}$major'
8480 shlibpath_var=LD_LIBRARY_PATH
8481 shlibpath_overrides_runpath=no
8482 hardcode_into_libs=yes
8483 dynamic_linker='GNU ld.so'
8484 ;;
8485
Reid Spencera773bd52006-08-04 18:18:08 +00008486freebsd* | dragonfly*)
8487 # DragonFly does not have aout. When/if they implement a new
8488 # versioning mechanism, adjust this.
8489 if test -x /usr/bin/objformat; then
8490 objformat=`/usr/bin/objformat`
8491 else
8492 case $host_os in
8493 freebsd[123]*) objformat=aout ;;
8494 *) objformat=elf ;;
8495 esac
8496 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008497 version_type=freebsd-$objformat
8498 case $version_type in
8499 freebsd-elf*)
8500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8501 need_version=no
8502 need_lib_prefix=no
8503 ;;
8504 freebsd-*)
8505 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8506 need_version=yes
8507 ;;
8508 esac
8509 shlibpath_var=LD_LIBRARY_PATH
8510 case $host_os in
8511 freebsd2*)
8512 shlibpath_overrides_runpath=yes
8513 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008514 freebsd3.[01]* | freebsdelf3.[01]*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008515 shlibpath_overrides_runpath=yes
8516 hardcode_into_libs=yes
8517 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008518 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8519 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008520 shlibpath_overrides_runpath=no
8521 hardcode_into_libs=yes
8522 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008523 freebsd*) # from 4.6 on
8524 shlibpath_overrides_runpath=yes
8525 hardcode_into_libs=yes
8526 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008527 esac
8528 ;;
8529
8530gnu*)
8531 version_type=linux
8532 need_lib_prefix=no
8533 need_version=no
8534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8535 soname_spec='${libname}${release}${shared_ext}$major'
8536 shlibpath_var=LD_LIBRARY_PATH
8537 hardcode_into_libs=yes
8538 ;;
8539
8540hpux9* | hpux10* | hpux11*)
8541 # Give a soname corresponding to the major version so that dld.sl refuses to
8542 # link against other versions.
8543 version_type=sunos
8544 need_lib_prefix=no
8545 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +00008546 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008547 ia64*)
8548 shrext_cmds='.so'
8549 hardcode_into_libs=yes
8550 dynamic_linker="$host_os dld.so"
8551 shlibpath_var=LD_LIBRARY_PATH
8552 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8553 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8554 soname_spec='${libname}${release}${shared_ext}$major'
8555 if test "X$HPUX_IA64_MODE" = X32; then
8556 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8557 else
8558 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8559 fi
8560 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8561 ;;
8562 hppa*64*)
8563 shrext_cmds='.sl'
8564 hardcode_into_libs=yes
8565 dynamic_linker="$host_os dld.sl"
8566 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8567 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8568 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8569 soname_spec='${libname}${release}${shared_ext}$major'
8570 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8571 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8572 ;;
8573 *)
8574 shrext_cmds='.sl'
8575 dynamic_linker="$host_os dld.sl"
8576 shlibpath_var=SHLIB_PATH
8577 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8578 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8579 soname_spec='${libname}${release}${shared_ext}$major'
8580 ;;
8581 esac
8582 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8583 postinstall_cmds='chmod 555 $lib'
8584 ;;
8585
Reid Spencera773bd52006-08-04 18:18:08 +00008586interix3*)
8587 version_type=linux
8588 need_lib_prefix=no
8589 need_version=no
8590 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8591 soname_spec='${libname}${release}${shared_ext}$major'
8592 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8593 shlibpath_var=LD_LIBRARY_PATH
8594 shlibpath_overrides_runpath=no
8595 hardcode_into_libs=yes
8596 ;;
8597
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008598irix5* | irix6* | nonstopux*)
8599 case $host_os in
8600 nonstopux*) version_type=nonstopux ;;
8601 *)
8602 if test "$lt_cv_prog_gnu_ld" = yes; then
8603 version_type=linux
8604 else
8605 version_type=irix
8606 fi ;;
8607 esac
8608 need_lib_prefix=no
8609 need_version=no
8610 soname_spec='${libname}${release}${shared_ext}$major'
8611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8612 case $host_os in
8613 irix5* | nonstopux*)
8614 libsuff= shlibsuff=
8615 ;;
8616 *)
8617 case $LD in # libtool.m4 will add one of these switches to LD
8618 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8619 libsuff= shlibsuff= libmagic=32-bit;;
8620 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8621 libsuff=32 shlibsuff=N32 libmagic=N32;;
8622 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8623 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8624 *) libsuff= shlibsuff= libmagic=never-match;;
8625 esac
8626 ;;
8627 esac
8628 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8629 shlibpath_overrides_runpath=no
8630 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8631 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8632 hardcode_into_libs=yes
8633 ;;
8634
8635# No shared lib support for Linux oldld, aout, or coff.
8636linux*oldld* | linux*aout* | linux*coff*)
8637 dynamic_linker=no
8638 ;;
8639
8640# This must be Linux ELF.
8641linux*)
8642 version_type=linux
8643 need_lib_prefix=no
8644 need_version=no
8645 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8646 soname_spec='${libname}${release}${shared_ext}$major'
8647 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8648 shlibpath_var=LD_LIBRARY_PATH
8649 shlibpath_overrides_runpath=no
8650 # This implies no fast_install, which is unacceptable.
8651 # Some rework will be needed to allow for fast_install
8652 # before this can be enabled.
8653 hardcode_into_libs=yes
8654
8655 # Append ld.so.conf contents to the search path
8656 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +00008657 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 +00008658 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8659 fi
8660
8661 # We used to test for /lib/ld.so.1 and disable shared libraries on
8662 # powerpc, because MkLinux only supported shared libraries with the
8663 # GNU dynamic linker. Since this was broken with cross compilers,
8664 # most powerpc-linux boxes support dynamic linking these days and
8665 # people can always --disable-shared, the test was removed, and we
8666 # assume the GNU/Linux dynamic linker is in use.
8667 dynamic_linker='GNU/Linux ld.so'
8668 ;;
8669
8670knetbsd*-gnu)
8671 version_type=linux
8672 need_lib_prefix=no
8673 need_version=no
8674 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8675 soname_spec='${libname}${release}${shared_ext}$major'
8676 shlibpath_var=LD_LIBRARY_PATH
8677 shlibpath_overrides_runpath=no
8678 hardcode_into_libs=yes
8679 dynamic_linker='GNU ld.so'
8680 ;;
8681
8682netbsd*)
8683 version_type=sunos
8684 need_lib_prefix=no
8685 need_version=no
8686 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8687 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8688 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8689 dynamic_linker='NetBSD (a.out) ld.so'
8690 else
8691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8692 soname_spec='${libname}${release}${shared_ext}$major'
8693 dynamic_linker='NetBSD ld.elf_so'
8694 fi
8695 shlibpath_var=LD_LIBRARY_PATH
8696 shlibpath_overrides_runpath=yes
8697 hardcode_into_libs=yes
8698 ;;
8699
8700newsos6)
8701 version_type=linux
8702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8703 shlibpath_var=LD_LIBRARY_PATH
8704 shlibpath_overrides_runpath=yes
8705 ;;
8706
8707nto-qnx*)
8708 version_type=linux
8709 need_lib_prefix=no
8710 need_version=no
8711 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8712 soname_spec='${libname}${release}${shared_ext}$major'
8713 shlibpath_var=LD_LIBRARY_PATH
8714 shlibpath_overrides_runpath=yes
8715 ;;
8716
8717openbsd*)
8718 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +00008719 sys_lib_dlsearch_path_spec="/usr/lib"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008720 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +00008721 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8722 case $host_os in
8723 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8724 *) need_version=no ;;
8725 esac
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008726 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8727 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8728 shlibpath_var=LD_LIBRARY_PATH
8729 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8730 case $host_os in
8731 openbsd2.[89] | openbsd2.[89].*)
8732 shlibpath_overrides_runpath=no
8733 ;;
8734 *)
8735 shlibpath_overrides_runpath=yes
8736 ;;
8737 esac
8738 else
8739 shlibpath_overrides_runpath=yes
8740 fi
8741 ;;
8742
8743os2*)
8744 libname_spec='$name'
8745 shrext_cmds=".dll"
8746 need_lib_prefix=no
8747 library_names_spec='$libname${shared_ext} $libname.a'
8748 dynamic_linker='OS/2 ld.exe'
8749 shlibpath_var=LIBPATH
8750 ;;
8751
8752osf3* | osf4* | osf5*)
8753 version_type=osf
8754 need_lib_prefix=no
8755 need_version=no
8756 soname_spec='${libname}${release}${shared_ext}$major'
8757 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8758 shlibpath_var=LD_LIBRARY_PATH
8759 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8760 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8761 ;;
8762
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008763solaris*)
8764 version_type=linux
8765 need_lib_prefix=no
8766 need_version=no
8767 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8768 soname_spec='${libname}${release}${shared_ext}$major'
8769 shlibpath_var=LD_LIBRARY_PATH
8770 shlibpath_overrides_runpath=yes
8771 hardcode_into_libs=yes
8772 # ldd complains unless libraries are executable
8773 postinstall_cmds='chmod +x $lib'
8774 ;;
8775
8776sunos4*)
8777 version_type=sunos
8778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8779 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8780 shlibpath_var=LD_LIBRARY_PATH
8781 shlibpath_overrides_runpath=yes
8782 if test "$with_gnu_ld" = yes; then
8783 need_lib_prefix=no
8784 fi
8785 need_version=yes
8786 ;;
8787
Reid Spencera773bd52006-08-04 18:18:08 +00008788sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008789 version_type=linux
8790 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8791 soname_spec='${libname}${release}${shared_ext}$major'
8792 shlibpath_var=LD_LIBRARY_PATH
8793 case $host_vendor in
8794 sni)
8795 shlibpath_overrides_runpath=no
8796 need_lib_prefix=no
8797 export_dynamic_flag_spec='${wl}-Blargedynsym'
8798 runpath_var=LD_RUN_PATH
8799 ;;
8800 siemens)
8801 need_lib_prefix=no
8802 ;;
8803 motorola)
8804 need_lib_prefix=no
8805 need_version=no
8806 shlibpath_overrides_runpath=no
8807 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8808 ;;
8809 esac
8810 ;;
8811
8812sysv4*MP*)
8813 if test -d /usr/nec ;then
8814 version_type=linux
8815 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8816 soname_spec='$libname${shared_ext}.$major'
8817 shlibpath_var=LD_LIBRARY_PATH
8818 fi
8819 ;;
8820
Reid Spencera773bd52006-08-04 18:18:08 +00008821sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8822 version_type=freebsd-elf
8823 need_lib_prefix=no
8824 need_version=no
8825 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8826 soname_spec='${libname}${release}${shared_ext}$major'
8827 shlibpath_var=LD_LIBRARY_PATH
8828 hardcode_into_libs=yes
8829 if test "$with_gnu_ld" = yes; then
8830 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8831 shlibpath_overrides_runpath=no
8832 else
8833 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8834 shlibpath_overrides_runpath=yes
8835 case $host_os in
8836 sco3.2v5*)
8837 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8838 ;;
8839 esac
8840 fi
8841 sys_lib_dlsearch_path_spec='/usr/lib'
8842 ;;
8843
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008844uts4*)
8845 version_type=linux
8846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8847 soname_spec='${libname}${release}${shared_ext}$major'
8848 shlibpath_var=LD_LIBRARY_PATH
8849 ;;
8850
8851*)
8852 dynamic_linker=no
8853 ;;
8854esac
Torok Edwin871384f2010-01-26 08:50:50 +00008855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
8856$as_echo "$dynamic_linker" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008857test "$dynamic_linker" = no && can_build_shared=no
8858
Reid Spencera773bd52006-08-04 18:18:08 +00008859variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8860if test "$GCC" = yes; then
8861 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8862fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008863
Reid Spencera773bd52006-08-04 18:18:08 +00008864
Torok Edwin871384f2010-01-26 08:50:50 +00008865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for loadable modules" >&5
8866$as_echo_n "checking which extension is used for loadable modules... " >&6; }
8867if test "${libltdl_cv_shlibext+set}" = set; then :
8868 $as_echo_n "(cached) " >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008869else
8870
8871module=yes
8872eval libltdl_cv_shlibext=$shrext_cmds
8873
8874fi
Torok Edwin871384f2010-01-26 08:50:50 +00008875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
8876$as_echo "$libltdl_cv_shlibext" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008877if test -n "$libltdl_cv_shlibext"; then
8878
8879cat >>confdefs.h <<_ACEOF
8880#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
8881_ACEOF
8882
8883fi
8884
8885
Torok Edwin871384f2010-01-26 08:50:50 +00008886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time library path" >&5
8887$as_echo_n "checking which variable specifies run-time library path... " >&6; }
8888if test "${libltdl_cv_shlibpath_var+set}" = set; then :
8889 $as_echo_n "(cached) " >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008890else
8891 libltdl_cv_shlibpath_var="$shlibpath_var"
8892fi
Torok Edwin871384f2010-01-26 08:50:50 +00008893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibpath_var" >&5
8894$as_echo "$libltdl_cv_shlibpath_var" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008895if test -n "$libltdl_cv_shlibpath_var"; then
8896
8897cat >>confdefs.h <<_ACEOF
8898#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
8899_ACEOF
8900
8901fi
8902
8903
Torok Edwin871384f2010-01-26 08:50:50 +00008904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
8905$as_echo_n "checking for the default library search path... " >&6; }
8906if test "${libltdl_cv_sys_search_path+set}" = set; then :
8907 $as_echo_n "(cached) " >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008908else
8909 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
8910fi
Torok Edwin871384f2010-01-26 08:50:50 +00008911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_sys_search_path" >&5
8912$as_echo "$libltdl_cv_sys_search_path" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008913if test -n "$libltdl_cv_sys_search_path"; then
8914 sys_search_path=
8915 for dir in $libltdl_cv_sys_search_path; do
8916 if test -z "$sys_search_path"; then
8917 sys_search_path="$dir"
8918 else
8919 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
8920 fi
8921 done
8922
8923cat >>confdefs.h <<_ACEOF
8924#define LTDL_SYSSEARCHPATH "$sys_search_path"
8925_ACEOF
8926
8927fi
8928
Torok Edwin871384f2010-01-26 08:50:50 +00008929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8930$as_echo_n "checking for objdir... " >&6; }
8931if test "${libltdl_cv_objdir+set}" = set; then :
8932 $as_echo_n "(cached) " >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008933else
8934 libltdl_cv_objdir="$objdir"
8935 if test -n "$objdir"; then
8936 :
8937 else
8938 rm -f .libs 2>/dev/null
8939 mkdir .libs 2>/dev/null
8940 if test -d .libs; then
8941 libltdl_cv_objdir=.libs
8942 else
8943 # MS-DOS does not allow filenames that begin with a dot.
8944 libltdl_cv_objdir=_libs
8945 fi
8946 rmdir .libs 2>/dev/null
8947 fi
8948
8949fi
Torok Edwin871384f2010-01-26 08:50:50 +00008950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_objdir" >&5
8951$as_echo "$libltdl_cv_objdir" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008952
8953cat >>confdefs.h <<_ACEOF
8954#define LTDL_OBJDIR "$libltdl_cv_objdir/"
8955_ACEOF
8956
8957
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008958
8959
8960
8961
8962# Check for command to grab the raw symbol name followed by C symbol from nm.
Torok Edwin871384f2010-01-26 08:50:50 +00008963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8964$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8965if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
8966 $as_echo_n "(cached) " >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008967else
8968
8969# These are sane defaults that work on at least a few old systems.
8970# [They come from Ultrix. What could be older than Ultrix?!! ;)]
8971
8972# Character class describing NM global symbol codes.
8973symcode='[BCDEGRST]'
8974
8975# Regexp to match symbols that can be accessed directly from C.
8976sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8977
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008978# Transform an extracted symbol line into a proper C declaration
8979lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
8980
8981# Transform an extracted symbol line into symbol name and symbol address
8982lt_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'"
8983
8984# Define system-specific variables.
8985case $host_os in
8986aix*)
8987 symcode='[BCDT]'
8988 ;;
8989cygwin* | mingw* | pw32*)
8990 symcode='[ABCDGISTW]'
8991 ;;
8992hpux*) # Its linker distinguishes data from code symbols
8993 if test "$host_cpu" = ia64; then
8994 symcode='[ABCDEGRST]'
8995 fi
8996 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8997 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'"
8998 ;;
8999linux*)
9000 if test "$host_cpu" = ia64; then
9001 symcode='[ABCDGIRSTW]'
9002 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9003 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'"
9004 fi
9005 ;;
9006irix* | nonstopux*)
9007 symcode='[BCDEGRST]'
9008 ;;
9009osf*)
9010 symcode='[BCDEGQRST]'
9011 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009012solaris*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009013 symcode='[BDRT]'
9014 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009015sco3.2v5*)
9016 symcode='[DT]'
9017 ;;
9018sysv4.2uw2*)
9019 symcode='[DT]'
9020 ;;
9021sysv5* | sco5v6* | unixware* | OpenUNIX*)
9022 symcode='[ABDT]'
9023 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009024sysv4)
9025 symcode='[DFNSTU]'
9026 ;;
9027esac
9028
9029# Handle CRLF in mingw tool chain
9030opt_cr=
9031case $build_os in
9032mingw*)
9033 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9034 ;;
9035esac
9036
9037# If we're using GNU nm, then use its standard symbol codes.
9038case `$NM -V 2>&1` in
9039*GNU* | *'with BFD'*)
9040 symcode='[ABCDGIRSTW]' ;;
9041esac
9042
9043# Try without a prefix undercore, then with it.
9044for ac_symprfx in "" "_"; do
9045
Reid Spencera773bd52006-08-04 18:18:08 +00009046 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9047 symxfrm="\\1 $ac_symprfx\\2 \\2"
9048
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009049 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +00009050 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 +00009051
9052 # Check to see that the pipe works correctly.
9053 pipe_works=no
9054
9055 rm -f conftest*
9056 cat > conftest.$ac_ext <<EOF
9057#ifdef __cplusplus
9058extern "C" {
9059#endif
9060char nm_test_var;
9061void nm_test_func(){}
9062#ifdef __cplusplus
9063}
9064#endif
9065int main(){nm_test_var='a';nm_test_func();return(0);}
9066EOF
9067
Torok Edwin871384f2010-01-26 08:50:50 +00009068 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009069 (eval $ac_compile) 2>&5
9070 ac_status=$?
Torok Edwin871384f2010-01-26 08:50:50 +00009071 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9072 test $ac_status = 0; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009073 # Now try to grab the symbols.
9074 nlist=conftest.nm
Torok Edwin871384f2010-01-26 08:50:50 +00009075 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009076 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9077 ac_status=$?
Torok Edwin871384f2010-01-26 08:50:50 +00009078 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9079 test $ac_status = 0; } && test -s "$nlist"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009080 # Try sorting and uniquifying the output.
9081 if sort "$nlist" | uniq > "$nlist"T; then
9082 mv -f "$nlist"T "$nlist"
9083 else
9084 rm -f "$nlist"T
9085 fi
9086
9087 # Make sure that we snagged all the symbols we need.
9088 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9089 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9090 cat <<EOF > conftest.$ac_ext
9091#ifdef __cplusplus
9092extern "C" {
9093#endif
9094
9095EOF
9096 # Now generate the symbol file.
9097 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9098
9099 cat <<EOF >> conftest.$ac_ext
9100#if defined (__STDC__) && __STDC__
9101# define lt_ptr_t void *
9102#else
9103# define lt_ptr_t char *
9104# define const
9105#endif
9106
9107/* The mapping between symbol names and symbols. */
9108const struct {
9109 const char *name;
9110 lt_ptr_t address;
9111}
9112lt_preloaded_symbols[] =
9113{
9114EOF
9115 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9116 cat <<\EOF >> conftest.$ac_ext
9117 {0, (lt_ptr_t) 0}
9118};
9119
9120#ifdef __cplusplus
9121}
9122#endif
9123EOF
9124 # Now try linking the two files.
9125 mv conftest.$ac_objext conftstm.$ac_objext
9126 lt_save_LIBS="$LIBS"
9127 lt_save_CFLAGS="$CFLAGS"
9128 LIBS="conftstm.$ac_objext"
9129 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
Torok Edwin871384f2010-01-26 08:50:50 +00009130 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009131 (eval $ac_link) 2>&5
9132 ac_status=$?
Torok Edwin871384f2010-01-26 08:50:50 +00009133 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9134 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009135 pipe_works=yes
9136 fi
9137 LIBS="$lt_save_LIBS"
9138 CFLAGS="$lt_save_CFLAGS"
9139 else
9140 echo "cannot find nm_test_func in $nlist" >&5
9141 fi
9142 else
9143 echo "cannot find nm_test_var in $nlist" >&5
9144 fi
9145 else
9146 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9147 fi
9148 else
9149 echo "$progname: failed program was:" >&5
9150 cat conftest.$ac_ext >&5
9151 fi
9152 rm -f conftest* conftst*
9153
9154 # Do not use the global_symbol_pipe unless it works.
9155 if test "$pipe_works" = yes; then
9156 break
9157 else
9158 lt_cv_sys_global_symbol_pipe=
9159 fi
9160done
9161
9162fi
9163
9164if test -z "$lt_cv_sys_global_symbol_pipe"; then
9165 lt_cv_sys_global_symbol_to_cdecl=
9166fi
9167if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Torok Edwin871384f2010-01-26 08:50:50 +00009168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
9169$as_echo "failed" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009170else
Torok Edwin871384f2010-01-26 08:50:50 +00009171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9172$as_echo "ok" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009173fi
9174
9175
Torok Edwin871384f2010-01-26 08:50:50 +00009176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
9177$as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
9178if test "${libltdl_cv_preloaded_symbols+set}" = set; then :
9179 $as_echo_n "(cached) " >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009180else
9181 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9182 libltdl_cv_preloaded_symbols=yes
9183 else
9184 libltdl_cv_preloaded_symbols=no
9185 fi
9186
9187fi
Torok Edwin871384f2010-01-26 08:50:50 +00009188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
9189$as_echo "$libltdl_cv_preloaded_symbols" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009190if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9191
Torok Edwin871384f2010-01-26 08:50:50 +00009192$as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009193
9194fi
9195
9196LIBADD_DL=
9197
9198ac_ext=c
9199ac_cpp='$CPP $CPPFLAGS'
9200ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9201ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9202ac_compiler_gnu=$ac_cv_c_compiler_gnu
9203
9204
Torok Edwin871384f2010-01-26 08:50:50 +00009205ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
9206if test "x$ac_cv_func_shl_load" = x""yes; then :
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009207
Torok Edwin871384f2010-01-26 08:50:50 +00009208$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009209
9210else
Torok Edwin871384f2010-01-26 08:50:50 +00009211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
9212$as_echo_n "checking for shl_load in -ldld... " >&6; }
9213if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
9214 $as_echo_n "(cached) " >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009215else
9216 ac_check_lib_save_LIBS=$LIBS
9217LIBS="-ldld $LIBS"
Torok Edwin871384f2010-01-26 08:50:50 +00009218cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009219/* end confdefs.h. */
9220
Reid Spencera773bd52006-08-04 18:18:08 +00009221/* Override any GCC internal prototype to avoid an error.
9222 Use char because int might match the return type of a GCC
9223 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009224#ifdef __cplusplus
9225extern "C"
9226#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009227char shl_load ();
9228int
9229main ()
9230{
Reid Spencera773bd52006-08-04 18:18:08 +00009231return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009232 ;
9233 return 0;
9234}
9235_ACEOF
Torok Edwin871384f2010-01-26 08:50:50 +00009236if ac_fn_c_try_link "$LINENO"; then :
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009237 ac_cv_lib_dld_shl_load=yes
9238else
Torok Edwin871384f2010-01-26 08:50:50 +00009239 ac_cv_lib_dld_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009240fi
Bill Wendlingebcceee2009-04-18 11:20:33 +00009241rm -f core conftest.err conftest.$ac_objext \
Torok Edwin871384f2010-01-26 08:50:50 +00009242 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009243LIBS=$ac_check_lib_save_LIBS
9244fi
Torok Edwin871384f2010-01-26 08:50:50 +00009245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
9246$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
9247if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009248
Torok Edwin871384f2010-01-26 08:50:50 +00009249$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009250
9251 LIBADD_DL="$LIBADD_DL -ldld"
9252else
Torok Edwin871384f2010-01-26 08:50:50 +00009253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9254$as_echo_n "checking for dlopen in -ldl... " >&6; }
9255if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
9256 $as_echo_n "(cached) " >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009257else
9258 ac_check_lib_save_LIBS=$LIBS
9259LIBS="-ldl $LIBS"
Torok Edwin871384f2010-01-26 08:50:50 +00009260cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009261/* end confdefs.h. */
9262
Reid Spencera773bd52006-08-04 18:18:08 +00009263/* Override any GCC internal prototype to avoid an error.
9264 Use char because int might match the return type of a GCC
9265 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009266#ifdef __cplusplus
9267extern "C"
9268#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009269char dlopen ();
9270int
9271main ()
9272{
Reid Spencera773bd52006-08-04 18:18:08 +00009273return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009274 ;
9275 return 0;
9276}
9277_ACEOF
Torok Edwin871384f2010-01-26 08:50:50 +00009278if ac_fn_c_try_link "$LINENO"; then :
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009279 ac_cv_lib_dl_dlopen=yes
9280else
Torok Edwin871384f2010-01-26 08:50:50 +00009281 ac_cv_lib_dl_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009282fi
Bill Wendlingebcceee2009-04-18 11:20:33 +00009283rm -f core conftest.err conftest.$ac_objext \
Torok Edwin871384f2010-01-26 08:50:50 +00009284 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009285LIBS=$ac_check_lib_save_LIBS
9286fi
Torok Edwin871384f2010-01-26 08:50:50 +00009287{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9288$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9289if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009290
Torok Edwin871384f2010-01-26 08:50:50 +00009291$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009292
9293 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9294else
Torok Edwin871384f2010-01-26 08:50:50 +00009295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009296/* end confdefs.h. */
9297#if HAVE_DLFCN_H
9298# include <dlfcn.h>
9299#endif
9300
9301int
9302main ()
9303{
9304dlopen(0, 0);
9305 ;
9306 return 0;
9307}
9308_ACEOF
Torok Edwin871384f2010-01-26 08:50:50 +00009309if ac_fn_c_try_link "$LINENO"; then :
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009310
Torok Edwin871384f2010-01-26 08:50:50 +00009311$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009312 libltdl_cv_func_dlopen="yes"
9313else
Torok Edwin871384f2010-01-26 08:50:50 +00009314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
9315$as_echo_n "checking for dlopen in -lsvld... " >&6; }
9316if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
9317 $as_echo_n "(cached) " >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009318else
9319 ac_check_lib_save_LIBS=$LIBS
9320LIBS="-lsvld $LIBS"
Torok Edwin871384f2010-01-26 08:50:50 +00009321cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009322/* end confdefs.h. */
9323
Reid Spencera773bd52006-08-04 18:18:08 +00009324/* Override any GCC internal prototype to avoid an error.
9325 Use char because int might match the return type of a GCC
9326 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009327#ifdef __cplusplus
9328extern "C"
9329#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009330char dlopen ();
9331int
9332main ()
9333{
Reid Spencera773bd52006-08-04 18:18:08 +00009334return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009335 ;
9336 return 0;
9337}
9338_ACEOF
Torok Edwin871384f2010-01-26 08:50:50 +00009339if ac_fn_c_try_link "$LINENO"; then :
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009340 ac_cv_lib_svld_dlopen=yes
9341else
Torok Edwin871384f2010-01-26 08:50:50 +00009342 ac_cv_lib_svld_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009343fi
Bill Wendlingebcceee2009-04-18 11:20:33 +00009344rm -f core conftest.err conftest.$ac_objext \
Torok Edwin871384f2010-01-26 08:50:50 +00009345 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009346LIBS=$ac_check_lib_save_LIBS
9347fi
Torok Edwin871384f2010-01-26 08:50:50 +00009348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
9349$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
9350if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009351
Torok Edwin871384f2010-01-26 08:50:50 +00009352$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009353
9354 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
9355else
Torok Edwin871384f2010-01-26 08:50:50 +00009356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
9357$as_echo_n "checking for dld_link in -ldld... " >&6; }
9358if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
9359 $as_echo_n "(cached) " >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009360else
9361 ac_check_lib_save_LIBS=$LIBS
9362LIBS="-ldld $LIBS"
Torok Edwin871384f2010-01-26 08:50:50 +00009363cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009364/* end confdefs.h. */
9365
Reid Spencera773bd52006-08-04 18:18:08 +00009366/* Override any GCC internal prototype to avoid an error.
9367 Use char because int might match the return type of a GCC
9368 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009369#ifdef __cplusplus
9370extern "C"
9371#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009372char dld_link ();
9373int
9374main ()
9375{
Reid Spencera773bd52006-08-04 18:18:08 +00009376return dld_link ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009377 ;
9378 return 0;
9379}
9380_ACEOF
Torok Edwin871384f2010-01-26 08:50:50 +00009381if ac_fn_c_try_link "$LINENO"; then :
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009382 ac_cv_lib_dld_dld_link=yes
9383else
Torok Edwin871384f2010-01-26 08:50:50 +00009384 ac_cv_lib_dld_dld_link=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009385fi
Bill Wendlingebcceee2009-04-18 11:20:33 +00009386rm -f core conftest.err conftest.$ac_objext \
Torok Edwin871384f2010-01-26 08:50:50 +00009387 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009388LIBS=$ac_check_lib_save_LIBS
9389fi
Torok Edwin871384f2010-01-26 08:50:50 +00009390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
9391$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
9392if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009393
Torok Edwin871384f2010-01-26 08:50:50 +00009394$as_echo "#define HAVE_DLD 1" >>confdefs.h
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009395
9396 LIBADD_DL="$LIBADD_DL -ldld"
9397else
Torok Edwin871384f2010-01-26 08:50:50 +00009398 ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
9399if test "x$ac_cv_func__dyld_func_lookup" = x""yes; then :
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009400
Torok Edwin871384f2010-01-26 08:50:50 +00009401$as_echo "#define HAVE_DYLD 1" >>confdefs.h
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009402
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009403fi
Reid Spencera773bd52006-08-04 18:18:08 +00009404
Torok Edwin871384f2010-01-26 08:50:50 +00009405
9406fi
9407
9408
9409fi
9410
9411
9412fi
Bill Wendlingebcceee2009-04-18 11:20:33 +00009413rm -f core conftest.err conftest.$ac_objext \
Torok Edwin871384f2010-01-26 08:50:50 +00009414 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009415
9416fi
9417
9418
9419fi
9420
9421
9422fi
9423
9424
9425if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
9426then
9427 lt_save_LIBS="$LIBS"
9428 LIBS="$LIBS $LIBADD_DL"
Torok Edwin871384f2010-01-26 08:50:50 +00009429 for ac_func in dlerror
9430do :
9431 ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
9432if test "x$ac_cv_func_dlerror" = x""yes; then :
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009433 cat >>confdefs.h <<_ACEOF
Torok Edwin871384f2010-01-26 08:50:50 +00009434#define HAVE_DLERROR 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009435_ACEOF
9436
9437fi
9438done
9439
9440 LIBS="$lt_save_LIBS"
9441fi
9442ac_ext=c
9443ac_cpp='$CPP $CPPFLAGS'
9444ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9445ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9446ac_compiler_gnu=$ac_cv_c_compiler_gnu
9447
9448
9449
Torok Edwin871384f2010-01-26 08:50:50 +00009450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
9451$as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
9452if test "${ac_cv_sys_symbol_underscore+set}" = set; then :
9453 $as_echo_n "(cached) " >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009454else
9455 ac_cv_sys_symbol_underscore=no
9456 cat > conftest.$ac_ext <<EOF
9457void nm_test_func(){}
9458int main(){nm_test_func;return 0;}
9459EOF
Torok Edwin871384f2010-01-26 08:50:50 +00009460 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009461 (eval $ac_compile) 2>&5
9462 ac_status=$?
Torok Edwin871384f2010-01-26 08:50:50 +00009463 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9464 test $ac_status = 0; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009465 # Now try to grab the symbols.
9466 ac_nlist=conftest.nm
Torok Edwin871384f2010-01-26 08:50:50 +00009467 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009468 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
9469 ac_status=$?
Torok Edwin871384f2010-01-26 08:50:50 +00009470 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9471 test $ac_status = 0; } && test -s "$ac_nlist"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009472 # See whether the symbols have a leading underscore.
9473 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
9474 ac_cv_sys_symbol_underscore=yes
9475 else
9476 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
9477 :
9478 else
9479 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
9480 fi
9481 fi
9482 else
9483 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
9484 fi
9485 else
9486 echo "configure: failed program was:" >&5
9487 cat conftest.c >&5
9488 fi
9489 rm -rf conftest*
9490
9491fi
Torok Edwin871384f2010-01-26 08:50:50 +00009492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_symbol_underscore" >&5
9493$as_echo "$ac_cv_sys_symbol_underscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009494
9495
9496if test x"$ac_cv_sys_symbol_underscore" = xyes; then
9497 if test x"$libltdl_cv_func_dlopen" = xyes ||
9498 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
Torok Edwin871384f2010-01-26 08:50:50 +00009499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
9500$as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
9501if test "${libltdl_cv_need_uscore+set}" = set; then :
9502 $as_echo_n "(cached) " >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009503else
9504 libltdl_cv_need_uscore=unknown
9505 save_LIBS="$LIBS"
9506 LIBS="$LIBS $LIBADD_DL"
9507 if test "$cross_compiling" = yes; then :
9508 libltdl_cv_need_uscore=cross
9509else
9510 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9511 lt_status=$lt_dlunknown
9512 cat > conftest.$ac_ext <<EOF
Torok Edwin871384f2010-01-26 08:50:50 +00009513#line 9513 "configure"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009514#include "confdefs.h"
9515
9516#if HAVE_DLFCN_H
9517#include <dlfcn.h>
9518#endif
9519
9520#include <stdio.h>
9521
9522#ifdef RTLD_GLOBAL
9523# define LT_DLGLOBAL RTLD_GLOBAL
9524#else
9525# ifdef DL_GLOBAL
9526# define LT_DLGLOBAL DL_GLOBAL
9527# else
9528# define LT_DLGLOBAL 0
9529# endif
9530#endif
9531
9532/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9533 find out it does not work in some platform. */
9534#ifndef LT_DLLAZY_OR_NOW
9535# ifdef RTLD_LAZY
9536# define LT_DLLAZY_OR_NOW RTLD_LAZY
9537# else
9538# ifdef DL_LAZY
9539# define LT_DLLAZY_OR_NOW DL_LAZY
9540# else
9541# ifdef RTLD_NOW
9542# define LT_DLLAZY_OR_NOW RTLD_NOW
9543# else
9544# ifdef DL_NOW
9545# define LT_DLLAZY_OR_NOW DL_NOW
9546# else
9547# define LT_DLLAZY_OR_NOW 0
9548# endif
9549# endif
9550# endif
9551# endif
9552#endif
9553
9554#ifdef __cplusplus
9555extern "C" void exit (int);
9556#endif
9557
9558void fnord() { int i=42;}
9559int main ()
9560{
9561 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9562 int status = $lt_dlunknown;
9563
9564 if (self)
9565 {
9566 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9567 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9568 /* dlclose (self); */
9569 }
Reid Spencera773bd52006-08-04 18:18:08 +00009570 else
9571 puts (dlerror ());
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009572
9573 exit (status);
9574}
9575EOF
Torok Edwin871384f2010-01-26 08:50:50 +00009576 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009577 (eval $ac_link) 2>&5
9578 ac_status=$?
Torok Edwin871384f2010-01-26 08:50:50 +00009579 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9580 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +00009581 (./conftest; exit; ) >&5 2>/dev/null
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009582 lt_status=$?
9583 case x$lt_status in
9584 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
9585 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009586 x$lt_dlunknown|x*) ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009587 esac
9588 else :
9589 # compilation failed
9590
9591 fi
9592fi
9593rm -fr conftest*
9594
9595 LIBS="$save_LIBS"
9596
9597fi
Torok Edwin871384f2010-01-26 08:50:50 +00009598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
9599$as_echo "$libltdl_cv_need_uscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009600 fi
9601fi
9602
9603if test x"$libltdl_cv_need_uscore" = xyes; then
9604
Torok Edwin871384f2010-01-26 08:50:50 +00009605$as_echo "#define NEED_USCORE 1" >>confdefs.h
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009606
9607fi
9608
9609
Torok Edwin871384f2010-01-26 08:50:50 +00009610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
9611$as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
9612if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then :
9613 $as_echo_n "(cached) " >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009614else
9615 # PORTME does your system automatically load deplibs for dlopen?
9616 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
9617 # For now, we just catch OSes we know something about -- in the
9618 # future, we'll try test this programmatically.
9619 libltdl_cv_sys_dlopen_deplibs=unknown
9620 case "$host_os" in
9621 aix3*|aix4.1.*|aix4.2.*)
9622 # Unknown whether this is true for these versions of AIX, but
9623 # we want this `case' here to explicitly catch those versions.
9624 libltdl_cv_sys_dlopen_deplibs=unknown
9625 ;;
9626 aix[45]*)
9627 libltdl_cv_sys_dlopen_deplibs=yes
9628 ;;
9629 darwin*)
9630 # Assuming the user has installed a libdl from somewhere, this is true
9631 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
9632 libltdl_cv_sys_dlopen_deplibs=yes
9633 ;;
9634 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
9635 # GNU and its variants, using gnu ld.so (Glibc)
9636 libltdl_cv_sys_dlopen_deplibs=yes
9637 ;;
9638 hpux10*|hpux11*)
9639 libltdl_cv_sys_dlopen_deplibs=yes
9640 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009641 interix*)
9642 libltdl_cv_sys_dlopen_deplibs=yes
9643 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009644 irix[12345]*|irix6.[01]*)
9645 # Catch all versions of IRIX before 6.2, and indicate that we don't
9646 # know how it worked for any of those versions.
9647 libltdl_cv_sys_dlopen_deplibs=unknown
9648 ;;
9649 irix*)
9650 # The case above catches anything before 6.2, and it's known that
9651 # at 6.2 and later dlopen does load deplibs.
9652 libltdl_cv_sys_dlopen_deplibs=yes
9653 ;;
9654 netbsd*)
9655 libltdl_cv_sys_dlopen_deplibs=yes
9656 ;;
9657 openbsd*)
9658 libltdl_cv_sys_dlopen_deplibs=yes
9659 ;;
9660 osf[1234]*)
9661 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
9662 # it did *not* use an RPATH in a shared library to find objects the
9663 # library depends on, so we explictly say `no'.
9664 libltdl_cv_sys_dlopen_deplibs=no
9665 ;;
9666 osf5.0|osf5.0a|osf5.1)
9667 # dlopen *does* load deplibs and with the right loader patch applied
9668 # it even uses RPATH in a shared library to search for shared objects
9669 # that the library depends on, but there's no easy way to know if that
9670 # patch is installed. Since this is the case, all we can really
9671 # say is unknown -- it depends on the patch being installed. If
9672 # it is, this changes to `yes'. Without it, it would be `no'.
9673 libltdl_cv_sys_dlopen_deplibs=unknown
9674 ;;
9675 osf*)
9676 # the two cases above should catch all versions of osf <= 5.1. Read
9677 # the comments above for what we know about them.
9678 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
9679 # is used to find them so we can finally say `yes'.
9680 libltdl_cv_sys_dlopen_deplibs=yes
9681 ;;
9682 solaris*)
9683 libltdl_cv_sys_dlopen_deplibs=yes
9684 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009685 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9686 libltdl_cv_sys_dlopen_deplibs=yes
9687 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009688 esac
9689
9690fi
Torok Edwin871384f2010-01-26 08:50:50 +00009691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_sys_dlopen_deplibs" >&5
9692$as_echo "$libltdl_cv_sys_dlopen_deplibs" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009693if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
9694
Torok Edwin871384f2010-01-26 08:50:50 +00009695$as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009696
9697fi
9698
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009699for ac_header in argz.h
Torok Edwin871384f2010-01-26 08:50:50 +00009700do :
9701 ac_fn_c_check_header_mongrel "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default"
9702if test "x$ac_cv_header_argz_h" = x""yes; then :
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009703 cat >>confdefs.h <<_ACEOF
Torok Edwin871384f2010-01-26 08:50:50 +00009704#define HAVE_ARGZ_H 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009705_ACEOF
9706
9707fi
9708
9709done
9710
9711
Torok Edwin871384f2010-01-26 08:50:50 +00009712ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if HAVE_ARGZ_H
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009713# include <argz.h>
9714#endif
Torok Edwin871384f2010-01-26 08:50:50 +00009715"
9716if test "x$ac_cv_type_error_t" = x""yes; then :
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009717
9718cat >>confdefs.h <<_ACEOF
9719#define HAVE_ERROR_T 1
9720_ACEOF
9721
9722
9723else
9724
Torok Edwin871384f2010-01-26 08:50:50 +00009725$as_echo "#define error_t int" >>confdefs.h
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009726
9727fi
9728
9729
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009730for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
Torok Edwin871384f2010-01-26 08:50:50 +00009731do :
9732 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9733ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9734eval as_val=\$$as_ac_var
9735 if test "x$as_val" = x""yes; then :
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009736 cat >>confdefs.h <<_ACEOF
Torok Edwin871384f2010-01-26 08:50:50 +00009737#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009738_ACEOF
9739
9740fi
9741done
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760
9761
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009762for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
9763 stdio.h unistd.h
Torok Edwin871384f2010-01-26 08:50:50 +00009764do :
9765 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9766ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9767eval as_val=\$$as_ac_Header
9768 if test "x$as_val" = x""yes; then :
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009769 cat >>confdefs.h <<_ACEOF
Torok Edwin871384f2010-01-26 08:50:50 +00009770#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009771_ACEOF
9772
9773fi
9774
9775done
9776
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009777for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
Torok Edwin871384f2010-01-26 08:50:50 +00009778do :
9779 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9780ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9781eval as_val=\$$as_ac_Header
9782 if test "x$as_val" = x""yes; then :
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009783 cat >>confdefs.h <<_ACEOF
Torok Edwin871384f2010-01-26 08:50:50 +00009784#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009785_ACEOF
9786
9787fi
9788
9789done
9790
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009791for ac_header in string.h strings.h
Torok Edwin871384f2010-01-26 08:50:50 +00009792do :
9793 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9794ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9795eval as_val=\$$as_ac_Header
9796 if test "x$as_val" = x""yes; then :
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009797 cat >>confdefs.h <<_ACEOF
Torok Edwin871384f2010-01-26 08:50:50 +00009798#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009799_ACEOF
9800 break
9801fi
9802
9803done
9804
9805
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009806for ac_func in strchr index
Torok Edwin871384f2010-01-26 08:50:50 +00009807do :
9808 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9809ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9810eval as_val=\$$as_ac_var
9811 if test "x$as_val" = x""yes; then :
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009812 cat >>confdefs.h <<_ACEOF
Torok Edwin871384f2010-01-26 08:50:50 +00009813#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009814_ACEOF
9815 break
9816fi
9817done
9818
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009819for ac_func in strrchr rindex
Torok Edwin871384f2010-01-26 08:50:50 +00009820do :
9821 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9822ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9823eval as_val=\$$as_ac_var
9824 if test "x$as_val" = x""yes; then :
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009825 cat >>confdefs.h <<_ACEOF
Torok Edwin871384f2010-01-26 08:50:50 +00009826#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009827_ACEOF
9828 break
9829fi
9830done
9831
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009832for ac_func in memcpy bcopy
Torok Edwin871384f2010-01-26 08:50:50 +00009833do :
9834 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9835ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9836eval as_val=\$$as_ac_var
9837 if test "x$as_val" = x""yes; then :
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009838 cat >>confdefs.h <<_ACEOF
Torok Edwin871384f2010-01-26 08:50:50 +00009839#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009840_ACEOF
9841 break
9842fi
9843done
9844
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009845for ac_func in memmove strcmp
Torok Edwin871384f2010-01-26 08:50:50 +00009846do :
9847 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9848ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9849eval as_val=\$$as_ac_var
9850 if test "x$as_val" = x""yes; then :
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009851 cat >>confdefs.h <<_ACEOF
Torok Edwin871384f2010-01-26 08:50:50 +00009852#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009853_ACEOF
9854
9855fi
9856done
9857
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009858for ac_func in closedir opendir readdir
Torok Edwin871384f2010-01-26 08:50:50 +00009859do :
9860 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9861ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9862eval as_val=\$$as_ac_var
9863 if test "x$as_val" = x""yes; then :
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009864 cat >>confdefs.h <<_ACEOF
Torok Edwin871384f2010-01-26 08:50:50 +00009865#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009866_ACEOF
9867
9868fi
9869done
9870
9871
Douglas Gregor01746742009-05-11 18:05:52 +00009872
Reid Spencer7931a782004-12-27 06:15:02 +00009873if test "$WITH_LLVMGCCDIR" = "default" ; then
Reid Spencerc84492c2005-06-02 22:34:49 +00009874 LLVMGCC="llvm-gcc${EXEEXT}"
9875 LLVMGXX="llvm-g++${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +00009876 LLVMGCCCOMMAND="$LLVMGCC"
9877 LLVMGXXCOMMAND="$LLVMGXX"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +00009878 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
9879
9880 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
9881
Reid Spencerc84492c2005-06-02 22:34:49 +00009882 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
9883set dummy $LLVMGCC; ac_word=$2
Torok Edwin871384f2010-01-26 08:50:50 +00009884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9885$as_echo_n "checking for $ac_word... " >&6; }
9886if test "${ac_cv_path_LLVMGCC+set}" = set; then :
9887 $as_echo_n "(cached) " >&6
Reid Spencer59473af2004-12-25 07:31:29 +00009888else
9889 case $LLVMGCC in
9890 [\\/]* | ?:[\\/]*)
9891 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
9892 ;;
9893 *)
9894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9895for as_dir in $PATH
9896do
9897 IFS=$as_save_IFS
9898 test -z "$as_dir" && as_dir=.
Torok Edwin871384f2010-01-26 08:50:50 +00009899 for ac_exec_ext in '' $ac_executable_extensions; do
9900 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 +00009901 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
Torok Edwin871384f2010-01-26 08:50:50 +00009902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer59473af2004-12-25 07:31:29 +00009903 break 2
9904 fi
9905done
Torok Edwin871384f2010-01-26 08:50:50 +00009906 done
Reid Spencera773bd52006-08-04 18:18:08 +00009907IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +00009908
Reid Spencer59473af2004-12-25 07:31:29 +00009909 ;;
9910esac
9911fi
9912LLVMGCC=$ac_cv_path_LLVMGCC
Reid Spencer59473af2004-12-25 07:31:29 +00009913if test -n "$LLVMGCC"; then
Torok Edwin871384f2010-01-26 08:50:50 +00009914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LLVMGCC" >&5
9915$as_echo "$LLVMGCC" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +00009916else
Torok Edwin871384f2010-01-26 08:50:50 +00009917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9918$as_echo "no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +00009919fi
9920
Reid Spencera773bd52006-08-04 18:18:08 +00009921
Reid Spencerc84492c2005-06-02 22:34:49 +00009922 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
9923set dummy $LLVMGXX; ac_word=$2
Torok Edwin871384f2010-01-26 08:50:50 +00009924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9925$as_echo_n "checking for $ac_word... " >&6; }
9926if test "${ac_cv_path_LLVMGXX+set}" = set; then :
9927 $as_echo_n "(cached) " >&6
Reid Spencer59473af2004-12-25 07:31:29 +00009928else
9929 case $LLVMGXX in
9930 [\\/]* | ?:[\\/]*)
9931 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
9932 ;;
9933 *)
9934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9935for as_dir in $PATH
9936do
9937 IFS=$as_save_IFS
9938 test -z "$as_dir" && as_dir=.
Torok Edwin871384f2010-01-26 08:50:50 +00009939 for ac_exec_ext in '' $ac_executable_extensions; do
9940 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 +00009941 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
Torok Edwin871384f2010-01-26 08:50:50 +00009942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer59473af2004-12-25 07:31:29 +00009943 break 2
9944 fi
9945done
Torok Edwin871384f2010-01-26 08:50:50 +00009946 done
Reid Spencera773bd52006-08-04 18:18:08 +00009947IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +00009948
Reid Spencer59473af2004-12-25 07:31:29 +00009949 ;;
9950esac
9951fi
9952LLVMGXX=$ac_cv_path_LLVMGXX
Reid Spencer59473af2004-12-25 07:31:29 +00009953if test -n "$LLVMGXX"; then
Torok Edwin871384f2010-01-26 08:50:50 +00009954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LLVMGXX" >&5
9955$as_echo "$LLVMGXX" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +00009956else
Torok Edwin871384f2010-01-26 08:50:50 +00009957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9958$as_echo "no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +00009959fi
9960
Reid Spencera773bd52006-08-04 18:18:08 +00009961
Reid Spencer59473af2004-12-25 07:31:29 +00009962else
Devang Patel5d28b882007-12-04 22:54:47 +00009963 if test -z "$LLVMGCC"; then
9964 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +00009965 LLVMGCCCOMMAND="$LLVMGCC"
Devang Patel5d28b882007-12-04 22:54:47 +00009966 fi
9967 if test -z "$LLVMGXX"; then
9968 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +00009969 LLVMGXXCOMMAND="$LLVMGXX"
Devang Patel5d28b882007-12-04 22:54:47 +00009970 fi
Mikhail Glushenkov4558f482009-04-21 19:46:10 +00009971
Reid Spencer59473af2004-12-25 07:31:29 +00009972 LLVMGCC=$LLVMGCC
9973
9974 LLVMGXX=$LLVMGXX
9975
Mikhail Glushenkov4558f482009-04-21 19:46:10 +00009976 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
9977
9978 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
9979
Reid Spencer59473af2004-12-25 07:31:29 +00009980fi
9981
Mikhail Glushenkov4558f482009-04-21 19:46:10 +00009982
Torok Edwin871384f2010-01-26 08:50:50 +00009983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking tool compatibility" >&5
9984$as_echo_n "checking tool compatibility... " >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00009985
Reid Spencer86901802004-12-08 23:07:27 +00009986ICC=no
9987IXX=no
9988case $CC in
9989 icc*|icpc*)
9990 ICC=yes
9991 IXX=yes
9992 ;;
9993 *)
9994 ;;
9995esac
9996
Duraid Madina937c60a2006-02-15 07:57:42 +00009997if test "$GCC" != "yes" && test "$ICC" != "yes"
9998then
Torok Edwin871384f2010-01-26 08:50:50 +00009999 as_fn_error "gcc|icc required but not found" "$LINENO" 5
Duraid Madina937c60a2006-02-15 07:57:42 +000010000fi
10001
10002if test "$GXX" != "yes" && test "$IXX" != "yes"
10003then
Torok Edwin871384f2010-01-26 08:50:50 +000010004 as_fn_error "g++|icc required but not found" "$LINENO" 5
Duraid Madina937c60a2006-02-15 07:57:42 +000010005fi
10006
Reid Spencer86901802004-12-08 23:07:27 +000010007if test "$GCC" = "yes"
10008then
Torok Edwin871384f2010-01-26 08:50:50 +000010009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10010/* end confdefs.h. */
Chris Lattner399c7c72008-02-05 19:43:53 +000010011#if !defined(__GNUC__) || __GNUC__ < 3
10012#error Unsupported GCC version
10013#endif
10014
10015_ACEOF
Torok Edwin871384f2010-01-26 08:50:50 +000010016if ac_fn_c_try_compile "$LINENO"; then :
10017
Chris Lattner399c7c72008-02-05 19:43:53 +000010018else
Torok Edwin871384f2010-01-26 08:50:50 +000010019 as_fn_error "gcc 3.x required, but you have a lower version" "$LINENO" 5
Chris Lattner399c7c72008-02-05 19:43:53 +000010020fi
Chris Lattner399c7c72008-02-05 19:43:53 +000010021rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000010022fi
10023
10024if test -z "$llvm_cv_gnu_make_command"
10025then
Torok Edwin871384f2010-01-26 08:50:50 +000010026 as_fn_error "GNU Make required but not found" "$LINENO" 5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000010027fi
10028
Torok Edwin871384f2010-01-26 08:50:50 +000010029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
10030$as_echo "ok" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000010031
Torok Edwin871384f2010-01-26 08:50:50 +000010032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking optional compiler flags" >&5
10033$as_echo_n "checking optional compiler flags... " >&6; }
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000010034NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
10035
10036NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
10037
Torok Edwin871384f2010-01-26 08:50:50 +000010038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
10039$as_echo "$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000010040
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000010041
Torok Edwin871384f2010-01-26 08:50:50 +000010042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5
10043$as_echo_n "checking for sin in -lm... " >&6; }
10044if test "${ac_cv_lib_m_sin+set}" = set; then :
10045 $as_echo_n "(cached) " >&6
Reid Spencer3484a992006-01-19 08:31:08 +000010046else
10047 ac_check_lib_save_LIBS=$LIBS
10048LIBS="-lm $LIBS"
Torok Edwin871384f2010-01-26 08:50:50 +000010049cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Reid Spencer3484a992006-01-19 08:31:08 +000010050/* end confdefs.h. */
10051
Reid Spencera773bd52006-08-04 18:18:08 +000010052/* Override any GCC internal prototype to avoid an error.
10053 Use char because int might match the return type of a GCC
10054 builtin and then its argument prototype would still apply. */
Reid Spencer3484a992006-01-19 08:31:08 +000010055#ifdef __cplusplus
10056extern "C"
10057#endif
Reid Spencer3484a992006-01-19 08:31:08 +000010058char sin ();
10059int
10060main ()
10061{
Reid Spencera773bd52006-08-04 18:18:08 +000010062return sin ();
Reid Spencer3484a992006-01-19 08:31:08 +000010063 ;
10064 return 0;
10065}
10066_ACEOF
Torok Edwin871384f2010-01-26 08:50:50 +000010067if ac_fn_c_try_link "$LINENO"; then :
Reid Spencer3484a992006-01-19 08:31:08 +000010068 ac_cv_lib_m_sin=yes
10069else
Torok Edwin871384f2010-01-26 08:50:50 +000010070 ac_cv_lib_m_sin=no
Reid Spencer3484a992006-01-19 08:31:08 +000010071fi
Bill Wendlingebcceee2009-04-18 11:20:33 +000010072rm -f core conftest.err conftest.$ac_objext \
Torok Edwin871384f2010-01-26 08:50:50 +000010073 conftest$ac_exeext conftest.$ac_ext
Reid Spencer3484a992006-01-19 08:31:08 +000010074LIBS=$ac_check_lib_save_LIBS
10075fi
Torok Edwin871384f2010-01-26 08:50:50 +000010076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5
10077$as_echo "$ac_cv_lib_m_sin" >&6; }
10078if test "x$ac_cv_lib_m_sin" = x""yes; then :
Reid Spencer3484a992006-01-19 08:31:08 +000010079 cat >>confdefs.h <<_ACEOF
10080#define HAVE_LIBM 1
10081_ACEOF
10082
10083 LIBS="-lm $LIBS"
10084
10085fi
10086
Jeff Cohen28783c32007-01-12 18:22:38 +000010087if test "$llvm_cv_os_type" = "MingW" ; then
Torok Edwin871384f2010-01-26 08:50:50 +000010088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -limagehlp" >&5
10089$as_echo_n "checking for main in -limagehlp... " >&6; }
10090if test "${ac_cv_lib_imagehlp_main+set}" = set; then :
10091 $as_echo_n "(cached) " >&6
Reid Spencer484fc8e2006-06-01 16:55:59 +000010092else
10093 ac_check_lib_save_LIBS=$LIBS
10094LIBS="-limagehlp $LIBS"
Torok Edwin871384f2010-01-26 08:50:50 +000010095cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Reid Spencer484fc8e2006-06-01 16:55:59 +000010096/* end confdefs.h. */
10097
Reid Spencer48fdf912006-06-01 19:03:21 +000010098
Reid Spencer484fc8e2006-06-01 16:55:59 +000010099int
10100main ()
10101{
Reid Spencera773bd52006-08-04 18:18:08 +000010102return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000010103 ;
10104 return 0;
10105}
10106_ACEOF
Torok Edwin871384f2010-01-26 08:50:50 +000010107if ac_fn_c_try_link "$LINENO"; then :
Reid Spencer48fdf912006-06-01 19:03:21 +000010108 ac_cv_lib_imagehlp_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000010109else
Torok Edwin871384f2010-01-26 08:50:50 +000010110 ac_cv_lib_imagehlp_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000010111fi
Bill Wendlingebcceee2009-04-18 11:20:33 +000010112rm -f core conftest.err conftest.$ac_objext \
Torok Edwin871384f2010-01-26 08:50:50 +000010113 conftest$ac_exeext conftest.$ac_ext
Reid Spencer484fc8e2006-06-01 16:55:59 +000010114LIBS=$ac_check_lib_save_LIBS
10115fi
Torok Edwin871384f2010-01-26 08:50:50 +000010116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_imagehlp_main" >&5
10117$as_echo "$ac_cv_lib_imagehlp_main" >&6; }
10118if test "x$ac_cv_lib_imagehlp_main" = x""yes; then :
Reid Spencer484fc8e2006-06-01 16:55:59 +000010119 cat >>confdefs.h <<_ACEOF
10120#define HAVE_LIBIMAGEHLP 1
10121_ACEOF
10122
10123 LIBS="-limagehlp $LIBS"
10124
10125fi
10126
Torok Edwin871384f2010-01-26 08:50:50 +000010127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lpsapi" >&5
10128$as_echo_n "checking for main in -lpsapi... " >&6; }
10129if test "${ac_cv_lib_psapi_main+set}" = set; then :
10130 $as_echo_n "(cached) " >&6
Reid Spencer484fc8e2006-06-01 16:55:59 +000010131else
10132 ac_check_lib_save_LIBS=$LIBS
10133LIBS="-lpsapi $LIBS"
Torok Edwin871384f2010-01-26 08:50:50 +000010134cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Reid Spencer484fc8e2006-06-01 16:55:59 +000010135/* end confdefs.h. */
10136
Reid Spencer48fdf912006-06-01 19:03:21 +000010137
Reid Spencer484fc8e2006-06-01 16:55:59 +000010138int
10139main ()
10140{
Reid Spencera773bd52006-08-04 18:18:08 +000010141return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000010142 ;
10143 return 0;
10144}
10145_ACEOF
Torok Edwin871384f2010-01-26 08:50:50 +000010146if ac_fn_c_try_link "$LINENO"; then :
Reid Spencer48fdf912006-06-01 19:03:21 +000010147 ac_cv_lib_psapi_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000010148else
Torok Edwin871384f2010-01-26 08:50:50 +000010149 ac_cv_lib_psapi_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000010150fi
Bill Wendlingebcceee2009-04-18 11:20:33 +000010151rm -f core conftest.err conftest.$ac_objext \
Torok Edwin871384f2010-01-26 08:50:50 +000010152 conftest$ac_exeext conftest.$ac_ext
Reid Spencer484fc8e2006-06-01 16:55:59 +000010153LIBS=$ac_check_lib_save_LIBS
10154fi
Torok Edwin871384f2010-01-26 08:50:50 +000010155{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_psapi_main" >&5
10156$as_echo "$ac_cv_lib_psapi_main" >&6; }
10157if test "x$ac_cv_lib_psapi_main" = x""yes; then :
Reid Spencer484fc8e2006-06-01 16:55:59 +000010158 cat >>confdefs.h <<_ACEOF
10159#define HAVE_LIBPSAPI 1
10160_ACEOF
10161
10162 LIBS="-lpsapi $LIBS"
10163
10164fi
10165
10166fi
Reid Spencer22177fe2005-07-12 15:24:20 +000010167
Torok Edwin871384f2010-01-26 08:50:50 +000010168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
10169$as_echo_n "checking for library containing dlopen... " >&6; }
10170if test "${ac_cv_search_dlopen+set}" = set; then :
10171 $as_echo_n "(cached) " >&6
John Criswell7a73b802003-06-30 21:59:07 +000010172else
10173 ac_func_search_save_LIBS=$LIBS
Torok Edwin871384f2010-01-26 08:50:50 +000010174cat confdefs.h - <<_ACEOF >conftest.$ac_ext
John Criswell0c38eaf2003-09-10 15:17:25 +000010175/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000010176
Reid Spencera773bd52006-08-04 18:18:08 +000010177/* Override any GCC internal prototype to avoid an error.
10178 Use char because int might match the return type of a GCC
10179 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000010180#ifdef __cplusplus
10181extern "C"
10182#endif
John Criswell7a73b802003-06-30 21:59:07 +000010183char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000010184int
10185main ()
10186{
Reid Spencera773bd52006-08-04 18:18:08 +000010187return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000010188 ;
10189 return 0;
10190}
10191_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000010192for ac_lib in '' dl; do
10193 if test -z "$ac_lib"; then
10194 ac_res="none required"
10195 else
10196 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000010197 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000010198 fi
Torok Edwin871384f2010-01-26 08:50:50 +000010199 if ac_fn_c_try_link "$LINENO"; then :
Reid Spencera773bd52006-08-04 18:18:08 +000010200 ac_cv_search_dlopen=$ac_res
John Criswell7a73b802003-06-30 21:59:07 +000010201fi
Bill Wendlingebcceee2009-04-18 11:20:33 +000010202rm -f core conftest.err conftest.$ac_objext \
Torok Edwin871384f2010-01-26 08:50:50 +000010203 conftest$ac_exeext
10204 if test "${ac_cv_search_dlopen+set}" = set; then :
Reid Spencera773bd52006-08-04 18:18:08 +000010205 break
John Criswell7a73b802003-06-30 21:59:07 +000010206fi
Reid Spencera773bd52006-08-04 18:18:08 +000010207done
Torok Edwin871384f2010-01-26 08:50:50 +000010208if test "${ac_cv_search_dlopen+set}" = set; then :
10209
Reid Spencera773bd52006-08-04 18:18:08 +000010210else
10211 ac_cv_search_dlopen=no
10212fi
10213rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000010214LIBS=$ac_func_search_save_LIBS
10215fi
Torok Edwin871384f2010-01-26 08:50:50 +000010216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
10217$as_echo "$ac_cv_search_dlopen" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000010218ac_res=$ac_cv_search_dlopen
Torok Edwin871384f2010-01-26 08:50:50 +000010219if test "$ac_res" != no; then :
Reid Spencera773bd52006-08-04 18:18:08 +000010220 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000010221
Torok Edwin871384f2010-01-26 08:50:50 +000010222$as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +000010223
10224else
Torok Edwin871384f2010-01-26 08:50:50 +000010225 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dlopen() not found - disabling plugin support" >&5
10226$as_echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000010227fi
10228
10229
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000010230if test "$llvm_cv_enable_libffi" = "yes" ; then
Torok Edwin871384f2010-01-26 08:50:50 +000010231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ffi_call" >&5
10232$as_echo_n "checking for library containing ffi_call... " >&6; }
10233if test "${ac_cv_search_ffi_call+set}" = set; then :
10234 $as_echo_n "(cached) " >&6
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000010235else
Nick Lewycky267fddb2009-04-13 04:26:27 +000010236 ac_func_search_save_LIBS=$LIBS
Torok Edwin871384f2010-01-26 08:50:50 +000010237cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000010238/* end confdefs.h. */
10239
10240/* Override any GCC internal prototype to avoid an error.
10241 Use char because int might match the return type of a GCC
10242 builtin and then its argument prototype would still apply. */
10243#ifdef __cplusplus
10244extern "C"
10245#endif
10246char ffi_call ();
10247int
10248main ()
10249{
10250return ffi_call ();
10251 ;
10252 return 0;
10253}
10254_ACEOF
Nick Lewycky267fddb2009-04-13 04:26:27 +000010255for ac_lib in '' ffi; do
10256 if test -z "$ac_lib"; then
10257 ac_res="none required"
10258 else
10259 ac_res=-l$ac_lib
10260 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10261 fi
Torok Edwin871384f2010-01-26 08:50:50 +000010262 if ac_fn_c_try_link "$LINENO"; then :
Nick Lewycky267fddb2009-04-13 04:26:27 +000010263 ac_cv_search_ffi_call=$ac_res
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000010264fi
Bill Wendlingebcceee2009-04-18 11:20:33 +000010265rm -f core conftest.err conftest.$ac_objext \
Torok Edwin871384f2010-01-26 08:50:50 +000010266 conftest$ac_exeext
10267 if test "${ac_cv_search_ffi_call+set}" = set; then :
Nick Lewycky267fddb2009-04-13 04:26:27 +000010268 break
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000010269fi
Nick Lewycky267fddb2009-04-13 04:26:27 +000010270done
Torok Edwin871384f2010-01-26 08:50:50 +000010271if test "${ac_cv_search_ffi_call+set}" = set; then :
10272
Nick Lewycky267fddb2009-04-13 04:26:27 +000010273else
10274 ac_cv_search_ffi_call=no
10275fi
10276rm conftest.$ac_ext
10277LIBS=$ac_func_search_save_LIBS
10278fi
Torok Edwin871384f2010-01-26 08:50:50 +000010279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ffi_call" >&5
10280$as_echo "$ac_cv_search_ffi_call" >&6; }
Nick Lewycky267fddb2009-04-13 04:26:27 +000010281ac_res=$ac_cv_search_ffi_call
Torok Edwin871384f2010-01-26 08:50:50 +000010282if test "$ac_res" != no; then :
Nick Lewycky267fddb2009-04-13 04:26:27 +000010283 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10284
Torok Edwin871384f2010-01-26 08:50:50 +000010285$as_echo "#define HAVE_FFI_CALL 1" >>confdefs.h
Nick Lewycky267fddb2009-04-13 04:26:27 +000010286
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000010287else
Torok Edwin871384f2010-01-26 08:50:50 +000010288 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libffi not found - disabling external calls from interpreter" >&5
10289$as_echo "$as_me: WARNING: libffi not found - disabling external calls from interpreter" >&2;}
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000010290fi
10291
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000010292fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000010293
Torok Edwin871384f2010-01-26 08:50:50 +000010294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing mallinfo" >&5
10295$as_echo_n "checking for library containing mallinfo... " >&6; }
10296if test "${ac_cv_search_mallinfo+set}" = set; then :
10297 $as_echo_n "(cached) " >&6
John Criswell7a73b802003-06-30 21:59:07 +000010298else
10299 ac_func_search_save_LIBS=$LIBS
Torok Edwin871384f2010-01-26 08:50:50 +000010300cat confdefs.h - <<_ACEOF >conftest.$ac_ext
John Criswell0c38eaf2003-09-10 15:17:25 +000010301/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000010302
Reid Spencera773bd52006-08-04 18:18:08 +000010303/* Override any GCC internal prototype to avoid an error.
10304 Use char because int might match the return type of a GCC
10305 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000010306#ifdef __cplusplus
10307extern "C"
10308#endif
John Criswell7a73b802003-06-30 21:59:07 +000010309char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000010310int
10311main ()
10312{
Reid Spencera773bd52006-08-04 18:18:08 +000010313return mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000010314 ;
10315 return 0;
10316}
10317_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000010318for ac_lib in '' malloc; do
10319 if test -z "$ac_lib"; then
10320 ac_res="none required"
10321 else
10322 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000010323 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000010324 fi
Torok Edwin871384f2010-01-26 08:50:50 +000010325 if ac_fn_c_try_link "$LINENO"; then :
Reid Spencera773bd52006-08-04 18:18:08 +000010326 ac_cv_search_mallinfo=$ac_res
John Criswell7a73b802003-06-30 21:59:07 +000010327fi
Bill Wendlingebcceee2009-04-18 11:20:33 +000010328rm -f core conftest.err conftest.$ac_objext \
Torok Edwin871384f2010-01-26 08:50:50 +000010329 conftest$ac_exeext
10330 if test "${ac_cv_search_mallinfo+set}" = set; then :
Reid Spencera773bd52006-08-04 18:18:08 +000010331 break
John Criswell7a73b802003-06-30 21:59:07 +000010332fi
Reid Spencera773bd52006-08-04 18:18:08 +000010333done
Torok Edwin871384f2010-01-26 08:50:50 +000010334if test "${ac_cv_search_mallinfo+set}" = set; then :
10335
Reid Spencera773bd52006-08-04 18:18:08 +000010336else
10337 ac_cv_search_mallinfo=no
10338fi
10339rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000010340LIBS=$ac_func_search_save_LIBS
10341fi
Torok Edwin871384f2010-01-26 08:50:50 +000010342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_mallinfo" >&5
10343$as_echo "$ac_cv_search_mallinfo" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000010344ac_res=$ac_cv_search_mallinfo
Torok Edwin871384f2010-01-26 08:50:50 +000010345if test "$ac_res" != no; then :
Reid Spencera773bd52006-08-04 18:18:08 +000010346 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000010347
Torok Edwin871384f2010-01-26 08:50:50 +000010348$as_echo "#define HAVE_MALLINFO 1" >>confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +000010349
10350fi
10351
10352
Reid Spencer0a262ba2005-08-24 10:07:20 +000010353if test "$ENABLE_THREADS" -eq 1 ; then
Torok Edwin871384f2010-01-26 08:50:50 +000010354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_init in -lpthread" >&5
10355$as_echo_n "checking for pthread_mutex_init in -lpthread... " >&6; }
10356if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then :
10357 $as_echo_n "(cached) " >&6
Reid Spencer22177fe2005-07-12 15:24:20 +000010358else
Edward O'Callaghan5da60462009-10-14 11:12:33 +000010359 ac_check_lib_save_LIBS=$LIBS
10360LIBS="-lpthread $LIBS"
Torok Edwin871384f2010-01-26 08:50:50 +000010361cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Reid Spencer22177fe2005-07-12 15:24:20 +000010362/* end confdefs.h. */
10363
Reid Spencera773bd52006-08-04 18:18:08 +000010364/* Override any GCC internal prototype to avoid an error.
10365 Use char because int might match the return type of a GCC
10366 builtin and then its argument prototype would still apply. */
Reid Spencer22177fe2005-07-12 15:24:20 +000010367#ifdef __cplusplus
10368extern "C"
10369#endif
Reid Spencer22177fe2005-07-12 15:24:20 +000010370char pthread_mutex_init ();
10371int
10372main ()
10373{
Reid Spencera773bd52006-08-04 18:18:08 +000010374return pthread_mutex_init ();
Reid Spencer22177fe2005-07-12 15:24:20 +000010375 ;
10376 return 0;
10377}
10378_ACEOF
Torok Edwin871384f2010-01-26 08:50:50 +000010379if ac_fn_c_try_link "$LINENO"; then :
Edward O'Callaghan5da60462009-10-14 11:12:33 +000010380 ac_cv_lib_pthread_pthread_mutex_init=yes
Reid Spencer22177fe2005-07-12 15:24:20 +000010381else
Torok Edwin871384f2010-01-26 08:50:50 +000010382 ac_cv_lib_pthread_pthread_mutex_init=no
Reid Spencer22177fe2005-07-12 15:24:20 +000010383fi
Bill Wendlingebcceee2009-04-18 11:20:33 +000010384rm -f core conftest.err conftest.$ac_objext \
Torok Edwin871384f2010-01-26 08:50:50 +000010385 conftest$ac_exeext conftest.$ac_ext
Edward O'Callaghan5da60462009-10-14 11:12:33 +000010386LIBS=$ac_check_lib_save_LIBS
Reid Spencer22177fe2005-07-12 15:24:20 +000010387fi
Torok Edwin871384f2010-01-26 08:50:50 +000010388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
10389$as_echo "$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
10390if test "x$ac_cv_lib_pthread_pthread_mutex_init" = x""yes; then :
Edward O'Callaghan5da60462009-10-14 11:12:33 +000010391 cat >>confdefs.h <<_ACEOF
10392#define HAVE_LIBPTHREAD 1
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +000010393_ACEOF
Reid Spencer22177fe2005-07-12 15:24:20 +000010394
Edward O'Callaghan5da60462009-10-14 11:12:33 +000010395 LIBS="-lpthread $LIBS"
10396
Reid Spencer22177fe2005-07-12 15:24:20 +000010397fi
10398
Torok Edwin871384f2010-01-26 08:50:50 +000010399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_mutex_lock" >&5
10400$as_echo_n "checking for library containing pthread_mutex_lock... " >&6; }
10401if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then :
10402 $as_echo_n "(cached) " >&6
Brian Gaeke5f268f72003-12-05 19:29:01 +000010403else
10404 ac_func_search_save_LIBS=$LIBS
Torok Edwin871384f2010-01-26 08:50:50 +000010405cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000010406/* end confdefs.h. */
10407
Reid Spencera773bd52006-08-04 18:18:08 +000010408/* Override any GCC internal prototype to avoid an error.
10409 Use char because int might match the return type of a GCC
10410 builtin and then its argument prototype would still apply. */
Brian Gaeke5f268f72003-12-05 19:29:01 +000010411#ifdef __cplusplus
10412extern "C"
10413#endif
Brian Gaeke5f268f72003-12-05 19:29:01 +000010414char pthread_mutex_lock ();
10415int
10416main ()
10417{
Reid Spencera773bd52006-08-04 18:18:08 +000010418return pthread_mutex_lock ();
Brian Gaeke5f268f72003-12-05 19:29:01 +000010419 ;
10420 return 0;
10421}
10422_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000010423for ac_lib in '' pthread; do
10424 if test -z "$ac_lib"; then
10425 ac_res="none required"
10426 else
10427 ac_res=-l$ac_lib
Brian Gaeke5f268f72003-12-05 19:29:01 +000010428 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000010429 fi
Torok Edwin871384f2010-01-26 08:50:50 +000010430 if ac_fn_c_try_link "$LINENO"; then :
Reid Spencera773bd52006-08-04 18:18:08 +000010431 ac_cv_search_pthread_mutex_lock=$ac_res
Brian Gaeke5f268f72003-12-05 19:29:01 +000010432fi
Bill Wendlingebcceee2009-04-18 11:20:33 +000010433rm -f core conftest.err conftest.$ac_objext \
Torok Edwin871384f2010-01-26 08:50:50 +000010434 conftest$ac_exeext
10435 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then :
Reid Spencera773bd52006-08-04 18:18:08 +000010436 break
Brian Gaeke5f268f72003-12-05 19:29:01 +000010437fi
Reid Spencera773bd52006-08-04 18:18:08 +000010438done
Torok Edwin871384f2010-01-26 08:50:50 +000010439if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then :
10440
Reid Spencera773bd52006-08-04 18:18:08 +000010441else
10442 ac_cv_search_pthread_mutex_lock=no
10443fi
10444rm conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000010445LIBS=$ac_func_search_save_LIBS
10446fi
Torok Edwin871384f2010-01-26 08:50:50 +000010447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_mutex_lock" >&5
10448$as_echo "$ac_cv_search_pthread_mutex_lock" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000010449ac_res=$ac_cv_search_pthread_mutex_lock
Torok Edwin871384f2010-01-26 08:50:50 +000010450if test "$ac_res" != no; then :
Reid Spencera773bd52006-08-04 18:18:08 +000010451 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Brian Gaeke5f268f72003-12-05 19:29:01 +000010452
Torok Edwin871384f2010-01-26 08:50:50 +000010453$as_echo "#define HAVE_PTHREAD_MUTEX_LOCK 1" >>confdefs.h
John Criswell40468462004-09-24 21:19:06 +000010454
10455fi
Brian Gaeke5f268f72003-12-05 19:29:01 +000010456
Torok Edwin871384f2010-01-26 08:50:50 +000010457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_rwlock_init" >&5
10458$as_echo_n "checking for library containing pthread_rwlock_init... " >&6; }
10459if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then :
10460 $as_echo_n "(cached) " >&6
Owen Andersonde8aed22009-06-16 18:20:20 +000010461else
10462 ac_func_search_save_LIBS=$LIBS
Torok Edwin871384f2010-01-26 08:50:50 +000010463cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Owen Andersonde8aed22009-06-16 18:20:20 +000010464/* end confdefs.h. */
10465
10466/* Override any GCC internal prototype to avoid an error.
10467 Use char because int might match the return type of a GCC
10468 builtin and then its argument prototype would still apply. */
10469#ifdef __cplusplus
10470extern "C"
10471#endif
10472char pthread_rwlock_init ();
10473int
10474main ()
10475{
10476return pthread_rwlock_init ();
10477 ;
10478 return 0;
10479}
10480_ACEOF
10481for ac_lib in '' pthread; do
10482 if test -z "$ac_lib"; then
10483 ac_res="none required"
10484 else
10485 ac_res=-l$ac_lib
10486 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10487 fi
Torok Edwin871384f2010-01-26 08:50:50 +000010488 if ac_fn_c_try_link "$LINENO"; then :
Owen Andersonde8aed22009-06-16 18:20:20 +000010489 ac_cv_search_pthread_rwlock_init=$ac_res
Owen Andersonde8aed22009-06-16 18:20:20 +000010490fi
Owen Andersonde8aed22009-06-16 18:20:20 +000010491rm -f core conftest.err conftest.$ac_objext \
Torok Edwin871384f2010-01-26 08:50:50 +000010492 conftest$ac_exeext
10493 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then :
Owen Andersonde8aed22009-06-16 18:20:20 +000010494 break
10495fi
10496done
Torok Edwin871384f2010-01-26 08:50:50 +000010497if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then :
10498
Owen Andersonde8aed22009-06-16 18:20:20 +000010499else
10500 ac_cv_search_pthread_rwlock_init=no
10501fi
10502rm conftest.$ac_ext
10503LIBS=$ac_func_search_save_LIBS
10504fi
Torok Edwin871384f2010-01-26 08:50:50 +000010505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_rwlock_init" >&5
10506$as_echo "$ac_cv_search_pthread_rwlock_init" >&6; }
Owen Andersonde8aed22009-06-16 18:20:20 +000010507ac_res=$ac_cv_search_pthread_rwlock_init
Torok Edwin871384f2010-01-26 08:50:50 +000010508if test "$ac_res" != no; then :
Owen Andersonde8aed22009-06-16 18:20:20 +000010509 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10510
Torok Edwin871384f2010-01-26 08:50:50 +000010511$as_echo "#define HAVE_PTHREAD_RWLOCK_INIT 1" >>confdefs.h
Owen Andersonde8aed22009-06-16 18:20:20 +000010512
10513fi
10514
Torok Edwin871384f2010-01-26 08:50:50 +000010515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_getspecific" >&5
10516$as_echo_n "checking for library containing pthread_getspecific... " >&6; }
10517if test "${ac_cv_search_pthread_getspecific+set}" = set; then :
10518 $as_echo_n "(cached) " >&6
Owen Anderson27fcfe12009-06-25 23:10:26 +000010519else
10520 ac_func_search_save_LIBS=$LIBS
Torok Edwin871384f2010-01-26 08:50:50 +000010521cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Owen Anderson27fcfe12009-06-25 23:10:26 +000010522/* end confdefs.h. */
10523
10524/* Override any GCC internal prototype to avoid an error.
10525 Use char because int might match the return type of a GCC
10526 builtin and then its argument prototype would still apply. */
10527#ifdef __cplusplus
10528extern "C"
10529#endif
10530char pthread_getspecific ();
10531int
10532main ()
10533{
10534return pthread_getspecific ();
10535 ;
10536 return 0;
10537}
10538_ACEOF
10539for ac_lib in '' pthread; do
10540 if test -z "$ac_lib"; then
10541 ac_res="none required"
10542 else
10543 ac_res=-l$ac_lib
10544 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10545 fi
Torok Edwin871384f2010-01-26 08:50:50 +000010546 if ac_fn_c_try_link "$LINENO"; then :
Owen Anderson27fcfe12009-06-25 23:10:26 +000010547 ac_cv_search_pthread_getspecific=$ac_res
Owen Anderson27fcfe12009-06-25 23:10:26 +000010548fi
Owen Anderson27fcfe12009-06-25 23:10:26 +000010549rm -f core conftest.err conftest.$ac_objext \
Torok Edwin871384f2010-01-26 08:50:50 +000010550 conftest$ac_exeext
10551 if test "${ac_cv_search_pthread_getspecific+set}" = set; then :
Owen Anderson27fcfe12009-06-25 23:10:26 +000010552 break
10553fi
10554done
Torok Edwin871384f2010-01-26 08:50:50 +000010555if test "${ac_cv_search_pthread_getspecific+set}" = set; then :
10556
Owen Anderson27fcfe12009-06-25 23:10:26 +000010557else
10558 ac_cv_search_pthread_getspecific=no
10559fi
10560rm conftest.$ac_ext
10561LIBS=$ac_func_search_save_LIBS
10562fi
Torok Edwin871384f2010-01-26 08:50:50 +000010563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_getspecific" >&5
10564$as_echo "$ac_cv_search_pthread_getspecific" >&6; }
Owen Anderson27fcfe12009-06-25 23:10:26 +000010565ac_res=$ac_cv_search_pthread_getspecific
Torok Edwin871384f2010-01-26 08:50:50 +000010566if test "$ac_res" != no; then :
Owen Anderson27fcfe12009-06-25 23:10:26 +000010567 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10568
Torok Edwin871384f2010-01-26 08:50:50 +000010569$as_echo "#define HAVE_PTHREAD_GETSPECIFIC 1" >>confdefs.h
Owen Anderson27fcfe12009-06-25 23:10:26 +000010570
10571fi
10572
Reid Spencer0a262ba2005-08-24 10:07:20 +000010573fi
Brian Gaekec9a410c2004-02-23 21:30:37 +000010574
Reid Spencer5e1d9a52004-11-25 04:51:04 +000010575
Reid Spencerb6a7aa72007-01-19 17:41:47 +000010576# Check whether --with-udis86 was given.
Torok Edwin871384f2010-01-26 08:50:50 +000010577if test "${with_udis86+set}" = set; then :
Reid Spencerb6a7aa72007-01-19 17:41:47 +000010578 withval=$with_udis86;
10579 USE_UDIS86=1
10580
10581 case "$withval" in
Reid Spencer30fe5262007-01-20 07:48:49 +000010582 /usr/lib|yes) ;;
Reid Spencerb6a7aa72007-01-19 17:41:47 +000010583 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
10584 esac
Torok Edwin871384f2010-01-26 08:50:50 +000010585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ud_init in -ludis86" >&5
10586$as_echo_n "checking for ud_init in -ludis86... " >&6; }
10587if test "${ac_cv_lib_udis86_ud_init+set}" = set; then :
10588 $as_echo_n "(cached) " >&6
Reid Spencerb6a7aa72007-01-19 17:41:47 +000010589else
10590 ac_check_lib_save_LIBS=$LIBS
10591LIBS="-ludis86 $LIBS"
Torok Edwin871384f2010-01-26 08:50:50 +000010592cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Reid Spencerb6a7aa72007-01-19 17:41:47 +000010593/* end confdefs.h. */
10594
10595/* Override any GCC internal prototype to avoid an error.
10596 Use char because int might match the return type of a GCC
10597 builtin and then its argument prototype would still apply. */
10598#ifdef __cplusplus
10599extern "C"
10600#endif
10601char ud_init ();
10602int
10603main ()
10604{
10605return ud_init ();
10606 ;
10607 return 0;
10608}
10609_ACEOF
Torok Edwin871384f2010-01-26 08:50:50 +000010610if ac_fn_c_try_link "$LINENO"; then :
Reid Spencerb6a7aa72007-01-19 17:41:47 +000010611 ac_cv_lib_udis86_ud_init=yes
10612else
Torok Edwin871384f2010-01-26 08:50:50 +000010613 ac_cv_lib_udis86_ud_init=no
Reid Spencerb6a7aa72007-01-19 17:41:47 +000010614fi
Bill Wendlingebcceee2009-04-18 11:20:33 +000010615rm -f core conftest.err conftest.$ac_objext \
Torok Edwin871384f2010-01-26 08:50:50 +000010616 conftest$ac_exeext conftest.$ac_ext
Reid Spencerb6a7aa72007-01-19 17:41:47 +000010617LIBS=$ac_check_lib_save_LIBS
10618fi
Torok Edwin871384f2010-01-26 08:50:50 +000010619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_udis86_ud_init" >&5
10620$as_echo "$ac_cv_lib_udis86_ud_init" >&6; }
10621if test "x$ac_cv_lib_udis86_ud_init" = x""yes; then :
Reid Spencerb6a7aa72007-01-19 17:41:47 +000010622 cat >>confdefs.h <<_ACEOF
10623#define HAVE_LIBUDIS86 1
10624_ACEOF
10625
10626 LIBS="-ludis86 $LIBS"
10627
10628else
10629
10630 echo "Error! You need to have libudis86 around."
10631 exit -1
10632
10633fi
10634
10635
10636else
10637 USE_UDIS86=0
10638
10639fi
10640
10641
10642cat >>confdefs.h <<_ACEOF
10643#define USE_UDIS86 $USE_UDIS86
10644_ACEOF
10645
10646
10647
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000010648# Check whether --with-oprofile was given.
Torok Edwin871384f2010-01-26 08:50:50 +000010649if test "${with_oprofile+set}" = set; then :
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000010650 withval=$with_oprofile;
10651 USE_OPROFILE=1
10652
10653 case "$withval" in
10654 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000010655 no) llvm_cv_oppath=
10656 USE_OPROFILE=0
10657 ;;
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000010658 *) llvm_cv_oppath="${withval}/lib/oprofile"
10659 CPPFLAGS="-I${withval}/include";;
10660 esac
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000010661 if test -n "$llvm_cv_oppath" ; then
10662 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
Torok Edwin871384f2010-01-26 08:50:50 +000010663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing bfd_init" >&5
10664$as_echo_n "checking for library containing bfd_init... " >&6; }
10665if test "${ac_cv_search_bfd_init+set}" = set; then :
10666 $as_echo_n "(cached) " >&6
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000010667else
10668 ac_func_search_save_LIBS=$LIBS
Torok Edwin871384f2010-01-26 08:50:50 +000010669cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000010670/* end confdefs.h. */
10671
10672/* Override any GCC internal prototype to avoid an error.
10673 Use char because int might match the return type of a GCC
10674 builtin and then its argument prototype would still apply. */
10675#ifdef __cplusplus
10676extern "C"
10677#endif
10678char bfd_init ();
10679int
10680main ()
10681{
10682return bfd_init ();
10683 ;
10684 return 0;
10685}
10686_ACEOF
10687for ac_lib in '' bfd; do
10688 if test -z "$ac_lib"; then
10689 ac_res="none required"
10690 else
10691 ac_res=-l$ac_lib
10692 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10693 fi
Torok Edwin871384f2010-01-26 08:50:50 +000010694 if ac_fn_c_try_link "$LINENO"; then :
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000010695 ac_cv_search_bfd_init=$ac_res
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000010696fi
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000010697rm -f core conftest.err conftest.$ac_objext \
Torok Edwin871384f2010-01-26 08:50:50 +000010698 conftest$ac_exeext
10699 if test "${ac_cv_search_bfd_init+set}" = set; then :
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000010700 break
10701fi
10702done
Torok Edwin871384f2010-01-26 08:50:50 +000010703if test "${ac_cv_search_bfd_init+set}" = set; then :
10704
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000010705else
10706 ac_cv_search_bfd_init=no
10707fi
10708rm conftest.$ac_ext
10709LIBS=$ac_func_search_save_LIBS
10710fi
Torok Edwin871384f2010-01-26 08:50:50 +000010711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_bfd_init" >&5
10712$as_echo "$ac_cv_search_bfd_init" >&6; }
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000010713ac_res=$ac_cv_search_bfd_init
Torok Edwin871384f2010-01-26 08:50:50 +000010714if test "$ac_res" != no; then :
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000010715 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10716
10717fi
10718
Torok Edwin871384f2010-01-26 08:50:50 +000010719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing op_open_agent" >&5
10720$as_echo_n "checking for library containing op_open_agent... " >&6; }
10721if test "${ac_cv_search_op_open_agent+set}" = set; then :
10722 $as_echo_n "(cached) " >&6
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000010723else
10724 ac_func_search_save_LIBS=$LIBS
Torok Edwin871384f2010-01-26 08:50:50 +000010725cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000010726/* end confdefs.h. */
10727
10728/* Override any GCC internal prototype to avoid an error.
10729 Use char because int might match the return type of a GCC
10730 builtin and then its argument prototype would still apply. */
10731#ifdef __cplusplus
10732extern "C"
10733#endif
10734char op_open_agent ();
10735int
10736main ()
10737{
10738return op_open_agent ();
10739 ;
10740 return 0;
10741}
10742_ACEOF
10743for ac_lib in '' opagent; do
10744 if test -z "$ac_lib"; then
10745 ac_res="none required"
10746 else
10747 ac_res=-l$ac_lib
10748 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10749 fi
Torok Edwin871384f2010-01-26 08:50:50 +000010750 if ac_fn_c_try_link "$LINENO"; then :
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000010751 ac_cv_search_op_open_agent=$ac_res
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000010752fi
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000010753rm -f core conftest.err conftest.$ac_objext \
Torok Edwin871384f2010-01-26 08:50:50 +000010754 conftest$ac_exeext
10755 if test "${ac_cv_search_op_open_agent+set}" = set; then :
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000010756 break
10757fi
10758done
Torok Edwin871384f2010-01-26 08:50:50 +000010759if test "${ac_cv_search_op_open_agent+set}" = set; then :
10760
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000010761else
10762 ac_cv_search_op_open_agent=no
10763fi
10764rm conftest.$ac_ext
10765LIBS=$ac_func_search_save_LIBS
10766fi
Torok Edwin871384f2010-01-26 08:50:50 +000010767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_op_open_agent" >&5
10768$as_echo "$ac_cv_search_op_open_agent" >&6; }
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000010769ac_res=$ac_cv_search_op_open_agent
Torok Edwin871384f2010-01-26 08:50:50 +000010770if test "$ac_res" != no; then :
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000010771 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10772
10773else
10774
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000010775 echo "Error! You need to have libopagent around."
10776 exit -1
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000010777
10778fi
10779
Torok Edwin871384f2010-01-26 08:50:50 +000010780 ac_fn_c_check_header_mongrel "$LINENO" "opagent.h" "ac_cv_header_opagent_h" "$ac_includes_default"
10781if test "x$ac_cv_header_opagent_h" = x""yes; then :
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000010782
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000010783else
10784
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000010785 echo "Error! You need to have opagent.h around."
10786 exit -1
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000010787
10788fi
10789
10790
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000010791 fi
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000010792
10793else
10794
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000010795 USE_OPROFILE=0
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000010796
10797
10798fi
10799
10800
10801cat >>confdefs.h <<_ACEOF
10802#define USE_OPROFILE $USE_OPROFILE
10803_ACEOF
10804
10805
10806
Reid Spencer59473af2004-12-25 07:31:29 +000010807ac_header_dirent=no
10808for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Torok Edwin871384f2010-01-26 08:50:50 +000010809 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
10810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
10811$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
10812if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
10813 $as_echo_n "(cached) " >&6
Reid Spencer59473af2004-12-25 07:31:29 +000010814else
Torok Edwin871384f2010-01-26 08:50:50 +000010815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000010816/* end confdefs.h. */
10817#include <sys/types.h>
10818#include <$ac_hdr>
10819
10820int
10821main ()
10822{
10823if ((DIR *) 0)
10824return 0;
10825 ;
10826 return 0;
10827}
10828_ACEOF
Torok Edwin871384f2010-01-26 08:50:50 +000010829if ac_fn_c_try_compile "$LINENO"; then :
Reid Spencer59473af2004-12-25 07:31:29 +000010830 eval "$as_ac_Header=yes"
10831else
Torok Edwin871384f2010-01-26 08:50:50 +000010832 eval "$as_ac_Header=no"
Reid Spencer59473af2004-12-25 07:31:29 +000010833fi
Reid Spencera773bd52006-08-04 18:18:08 +000010834rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000010835fi
Torok Edwin871384f2010-01-26 08:50:50 +000010836eval ac_res=\$$as_ac_Header
10837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10838$as_echo "$ac_res" >&6; }
10839eval as_val=\$$as_ac_Header
10840 if test "x$as_val" = x""yes; then :
Reid Spencer59473af2004-12-25 07:31:29 +000010841 cat >>confdefs.h <<_ACEOF
Torok Edwin871384f2010-01-26 08:50:50 +000010842#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Reid Spencer59473af2004-12-25 07:31:29 +000010843_ACEOF
10844
10845ac_header_dirent=$ac_hdr; break
10846fi
10847
10848done
10849# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
10850if test $ac_header_dirent = dirent.h; then
Torok Edwin871384f2010-01-26 08:50:50 +000010851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
10852$as_echo_n "checking for library containing opendir... " >&6; }
10853if test "${ac_cv_search_opendir+set}" = set; then :
10854 $as_echo_n "(cached) " >&6
Reid Spencer59473af2004-12-25 07:31:29 +000010855else
10856 ac_func_search_save_LIBS=$LIBS
Torok Edwin871384f2010-01-26 08:50:50 +000010857cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000010858/* end confdefs.h. */
10859
Reid Spencera773bd52006-08-04 18:18:08 +000010860/* Override any GCC internal prototype to avoid an error.
10861 Use char because int might match the return type of a GCC
10862 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000010863#ifdef __cplusplus
10864extern "C"
10865#endif
Reid Spencer59473af2004-12-25 07:31:29 +000010866char opendir ();
10867int
10868main ()
10869{
Reid Spencera773bd52006-08-04 18:18:08 +000010870return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000010871 ;
10872 return 0;
10873}
10874_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000010875for ac_lib in '' dir; do
10876 if test -z "$ac_lib"; then
10877 ac_res="none required"
10878 else
10879 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000010880 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000010881 fi
Torok Edwin871384f2010-01-26 08:50:50 +000010882 if ac_fn_c_try_link "$LINENO"; then :
Reid Spencera773bd52006-08-04 18:18:08 +000010883 ac_cv_search_opendir=$ac_res
Reid Spencer59473af2004-12-25 07:31:29 +000010884fi
Bill Wendlingebcceee2009-04-18 11:20:33 +000010885rm -f core conftest.err conftest.$ac_objext \
Torok Edwin871384f2010-01-26 08:50:50 +000010886 conftest$ac_exeext
10887 if test "${ac_cv_search_opendir+set}" = set; then :
Reid Spencera773bd52006-08-04 18:18:08 +000010888 break
Reid Spencer59473af2004-12-25 07:31:29 +000010889fi
Reid Spencera773bd52006-08-04 18:18:08 +000010890done
Torok Edwin871384f2010-01-26 08:50:50 +000010891if test "${ac_cv_search_opendir+set}" = set; then :
10892
Reid Spencera773bd52006-08-04 18:18:08 +000010893else
10894 ac_cv_search_opendir=no
10895fi
10896rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000010897LIBS=$ac_func_search_save_LIBS
10898fi
Torok Edwin871384f2010-01-26 08:50:50 +000010899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
10900$as_echo "$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000010901ac_res=$ac_cv_search_opendir
Torok Edwin871384f2010-01-26 08:50:50 +000010902if test "$ac_res" != no; then :
Reid Spencera773bd52006-08-04 18:18:08 +000010903 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000010904
10905fi
10906
10907else
Torok Edwin871384f2010-01-26 08:50:50 +000010908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
10909$as_echo_n "checking for library containing opendir... " >&6; }
10910if test "${ac_cv_search_opendir+set}" = set; then :
10911 $as_echo_n "(cached) " >&6
Reid Spencer59473af2004-12-25 07:31:29 +000010912else
10913 ac_func_search_save_LIBS=$LIBS
Torok Edwin871384f2010-01-26 08:50:50 +000010914cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000010915/* end confdefs.h. */
10916
Reid Spencera773bd52006-08-04 18:18:08 +000010917/* Override any GCC internal prototype to avoid an error.
10918 Use char because int might match the return type of a GCC
10919 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000010920#ifdef __cplusplus
10921extern "C"
10922#endif
Reid Spencer59473af2004-12-25 07:31:29 +000010923char opendir ();
10924int
10925main ()
10926{
Reid Spencera773bd52006-08-04 18:18:08 +000010927return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000010928 ;
10929 return 0;
10930}
10931_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000010932for ac_lib in '' x; do
10933 if test -z "$ac_lib"; then
10934 ac_res="none required"
10935 else
10936 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000010937 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000010938 fi
Torok Edwin871384f2010-01-26 08:50:50 +000010939 if ac_fn_c_try_link "$LINENO"; then :
Reid Spencera773bd52006-08-04 18:18:08 +000010940 ac_cv_search_opendir=$ac_res
Reid Spencer59473af2004-12-25 07:31:29 +000010941fi
Bill Wendlingebcceee2009-04-18 11:20:33 +000010942rm -f core conftest.err conftest.$ac_objext \
Torok Edwin871384f2010-01-26 08:50:50 +000010943 conftest$ac_exeext
10944 if test "${ac_cv_search_opendir+set}" = set; then :
Reid Spencera773bd52006-08-04 18:18:08 +000010945 break
Reid Spencer59473af2004-12-25 07:31:29 +000010946fi
Reid Spencera773bd52006-08-04 18:18:08 +000010947done
Torok Edwin871384f2010-01-26 08:50:50 +000010948if test "${ac_cv_search_opendir+set}" = set; then :
10949
Reid Spencera773bd52006-08-04 18:18:08 +000010950else
10951 ac_cv_search_opendir=no
10952fi
10953rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000010954LIBS=$ac_func_search_save_LIBS
10955fi
Torok Edwin871384f2010-01-26 08:50:50 +000010956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
10957$as_echo "$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000010958ac_res=$ac_cv_search_opendir
Torok Edwin871384f2010-01-26 08:50:50 +000010959if test "$ac_res" != no; then :
Reid Spencera773bd52006-08-04 18:18:08 +000010960 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000010961
10962fi
10963
10964fi
10965
Torok Edwin871384f2010-01-26 08:50:50 +000010966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
10967$as_echo_n "checking for MAP_ANONYMOUS vs. MAP_ANON... " >&6; }
10968if test "${ac_cv_header_mmap_anon+set}" = set; then :
10969 $as_echo_n "(cached) " >&6
Reid Spencer59473af2004-12-25 07:31:29 +000010970else
10971 ac_ext=c
10972ac_cpp='$CPP $CPPFLAGS'
10973ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10974ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10975ac_compiler_gnu=$ac_cv_c_compiler_gnu
10976
Torok Edwin871384f2010-01-26 08:50:50 +000010977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000010978/* end confdefs.h. */
10979#include <sys/mman.h>
10980#include <unistd.h>
10981#include <fcntl.h>
10982int
10983main ()
10984{
10985mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
10986 ;
10987 return 0;
10988}
10989_ACEOF
Torok Edwin871384f2010-01-26 08:50:50 +000010990if ac_fn_c_try_compile "$LINENO"; then :
Reid Spencer59473af2004-12-25 07:31:29 +000010991 ac_cv_header_mmap_anon=yes
10992else
Torok Edwin871384f2010-01-26 08:50:50 +000010993 ac_cv_header_mmap_anon=no
Reid Spencer59473af2004-12-25 07:31:29 +000010994fi
Reid Spencera773bd52006-08-04 18:18:08 +000010995rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000010996 ac_ext=c
10997ac_cpp='$CPP $CPPFLAGS'
10998ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10999ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11000ac_compiler_gnu=$ac_cv_c_compiler_gnu
11001
11002
11003fi
Torok Edwin871384f2010-01-26 08:50:50 +000011004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_mmap_anon" >&5
11005$as_echo "$ac_cv_header_mmap_anon" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000011006if test "$ac_cv_header_mmap_anon" = yes; then
11007
Torok Edwin871384f2010-01-26 08:50:50 +000011008$as_echo "#define HAVE_MMAP_ANONYMOUS 1" >>confdefs.h
Reid Spencer59473af2004-12-25 07:31:29 +000011009
11010fi
11011
Torok Edwin871384f2010-01-26 08:50:50 +000011012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
11013$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
11014if test "${ac_cv_header_stat_broken+set}" = set; then :
11015 $as_echo_n "(cached) " >&6
Reid Spencer59473af2004-12-25 07:31:29 +000011016else
Torok Edwin871384f2010-01-26 08:50:50 +000011017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000011018/* end confdefs.h. */
11019#include <sys/types.h>
11020#include <sys/stat.h>
11021
Reid Spencera773bd52006-08-04 18:18:08 +000011022#if defined S_ISBLK && defined S_IFDIR
Torok Edwin871384f2010-01-26 08:50:50 +000011023extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
Reid Spencer59473af2004-12-25 07:31:29 +000011024#endif
11025
Reid Spencera773bd52006-08-04 18:18:08 +000011026#if defined S_ISBLK && defined S_IFCHR
Torok Edwin871384f2010-01-26 08:50:50 +000011027extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
Reid Spencer59473af2004-12-25 07:31:29 +000011028#endif
11029
Reid Spencera773bd52006-08-04 18:18:08 +000011030#if defined S_ISLNK && defined S_IFREG
Torok Edwin871384f2010-01-26 08:50:50 +000011031extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
Reid Spencer59473af2004-12-25 07:31:29 +000011032#endif
11033
Reid Spencera773bd52006-08-04 18:18:08 +000011034#if defined S_ISSOCK && defined S_IFREG
Torok Edwin871384f2010-01-26 08:50:50 +000011035extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
Reid Spencer59473af2004-12-25 07:31:29 +000011036#endif
11037
11038_ACEOF
Torok Edwin871384f2010-01-26 08:50:50 +000011039if ac_fn_c_try_compile "$LINENO"; then :
Bill Wendlingebcceee2009-04-18 11:20:33 +000011040 ac_cv_header_stat_broken=no
Torok Edwin871384f2010-01-26 08:50:50 +000011041else
11042 ac_cv_header_stat_broken=yes
Mikhail Glushenkove8501462009-04-18 09:59:26 +000011043fi
Torok Edwin871384f2010-01-26 08:50:50 +000011044rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000011045fi
Torok Edwin871384f2010-01-26 08:50:50 +000011046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
11047$as_echo "$ac_cv_header_stat_broken" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000011048if test $ac_cv_header_stat_broken = yes; then
11049
Torok Edwin871384f2010-01-26 08:50:50 +000011050$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
Reid Spencer59473af2004-12-25 07:31:29 +000011051
11052fi
11053
Torok Edwin871384f2010-01-26 08:50:50 +000011054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
11055$as_echo_n "checking for ANSI C header files... " >&6; }
11056if test "${ac_cv_header_stdc+set}" = set; then :
11057 $as_echo_n "(cached) " >&6
John Criswell7a73b802003-06-30 21:59:07 +000011058else
Torok Edwin871384f2010-01-26 08:50:50 +000011059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
John Criswell0c38eaf2003-09-10 15:17:25 +000011060/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000011061#include <stdlib.h>
11062#include <stdarg.h>
11063#include <string.h>
11064#include <float.h>
11065
John Criswell0c38eaf2003-09-10 15:17:25 +000011066int
11067main ()
11068{
11069
11070 ;
11071 return 0;
11072}
John Criswell7a73b802003-06-30 21:59:07 +000011073_ACEOF
Torok Edwin871384f2010-01-26 08:50:50 +000011074if ac_fn_c_try_compile "$LINENO"; then :
John Criswell7a73b802003-06-30 21:59:07 +000011075 ac_cv_header_stdc=yes
11076else
Torok Edwin871384f2010-01-26 08:50:50 +000011077 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000011078fi
Reid Spencera773bd52006-08-04 18:18:08 +000011079rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000011080
11081if test $ac_cv_header_stdc = yes; then
11082 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Torok Edwin871384f2010-01-26 08:50:50 +000011083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
John Criswell0c38eaf2003-09-10 15:17:25 +000011084/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000011085#include <string.h>
11086
11087_ACEOF
11088if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Torok Edwin871384f2010-01-26 08:50:50 +000011089 $EGREP "memchr" >/dev/null 2>&1; then :
11090
John Criswell7a73b802003-06-30 21:59:07 +000011091else
11092 ac_cv_header_stdc=no
11093fi
11094rm -f conftest*
11095
11096fi
11097
11098if test $ac_cv_header_stdc = yes; then
11099 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Torok Edwin871384f2010-01-26 08:50:50 +000011100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
John Criswell0c38eaf2003-09-10 15:17:25 +000011101/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000011102#include <stdlib.h>
11103
11104_ACEOF
11105if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Torok Edwin871384f2010-01-26 08:50:50 +000011106 $EGREP "free" >/dev/null 2>&1; then :
11107
John Criswell7a73b802003-06-30 21:59:07 +000011108else
11109 ac_cv_header_stdc=no
11110fi
11111rm -f conftest*
11112
11113fi
11114
11115if test $ac_cv_header_stdc = yes; then
11116 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Torok Edwin871384f2010-01-26 08:50:50 +000011117 if test "$cross_compiling" = yes; then :
John Criswell7a73b802003-06-30 21:59:07 +000011118 :
11119else
Torok Edwin871384f2010-01-26 08:50:50 +000011120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
John Criswell0c38eaf2003-09-10 15:17:25 +000011121/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000011122#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +000011123#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +000011124#if ((' ' & 0x0FF) == 0x020)
11125# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11126# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11127#else
John Criswell0c38eaf2003-09-10 15:17:25 +000011128# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +000011129 (('a' <= (c) && (c) <= 'i') \
11130 || ('j' <= (c) && (c) <= 'r') \
11131 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +000011132# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11133#endif
11134
11135#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11136int
11137main ()
11138{
11139 int i;
11140 for (i = 0; i < 256; i++)
11141 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +000011142 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +000011143 return 2;
11144 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000011145}
11146_ACEOF
Torok Edwin871384f2010-01-26 08:50:50 +000011147if ac_fn_c_try_run "$LINENO"; then :
11148
John Criswell7a73b802003-06-30 21:59:07 +000011149else
Torok Edwin871384f2010-01-26 08:50:50 +000011150 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000011151fi
Torok Edwin871384f2010-01-26 08:50:50 +000011152rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11153 conftest.$ac_objext conftest.beam conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000011154fi
11155
John Criswell7a73b802003-06-30 21:59:07 +000011156fi
11157fi
Torok Edwin871384f2010-01-26 08:50:50 +000011158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
11159$as_echo "$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000011160if test $ac_cv_header_stdc = yes; then
11161
Torok Edwin871384f2010-01-26 08:50:50 +000011162$as_echo "#define STDC_HEADERS 1" >>confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +000011163
11164fi
11165
Torok Edwin871384f2010-01-26 08:50:50 +000011166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
11167$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
11168if test "${ac_cv_header_sys_wait_h+set}" = set; then :
11169 $as_echo_n "(cached) " >&6
John Criswell7a73b802003-06-30 21:59:07 +000011170else
Torok Edwin871384f2010-01-26 08:50:50 +000011171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
John Criswell0c38eaf2003-09-10 15:17:25 +000011172/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000011173#include <sys/types.h>
11174#include <sys/wait.h>
11175#ifndef WEXITSTATUS
Reid Spencera773bd52006-08-04 18:18:08 +000011176# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
John Criswell7a73b802003-06-30 21:59:07 +000011177#endif
11178#ifndef WIFEXITED
11179# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
11180#endif
11181
John Criswell7a73b802003-06-30 21:59:07 +000011182int
11183main ()
11184{
11185 int s;
11186 wait (&s);
11187 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
11188 ;
11189 return 0;
11190}
11191_ACEOF
Torok Edwin871384f2010-01-26 08:50:50 +000011192if ac_fn_c_try_compile "$LINENO"; then :
John Criswell7a73b802003-06-30 21:59:07 +000011193 ac_cv_header_sys_wait_h=yes
11194else
Torok Edwin871384f2010-01-26 08:50:50 +000011195 ac_cv_header_sys_wait_h=no
John Criswell7a73b802003-06-30 21:59:07 +000011196fi
Reid Spencera773bd52006-08-04 18:18:08 +000011197rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000011198fi
Torok Edwin871384f2010-01-26 08:50:50 +000011199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
11200$as_echo "$ac_cv_header_sys_wait_h" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000011201if test $ac_cv_header_sys_wait_h = yes; then
11202
Torok Edwin871384f2010-01-26 08:50:50 +000011203$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +000011204
11205fi
11206
Torok Edwin871384f2010-01-26 08:50:50 +000011207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
11208$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
11209if test "${ac_cv_header_time+set}" = set; then :
11210 $as_echo_n "(cached) " >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000011211else
Torok Edwin871384f2010-01-26 08:50:50 +000011212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000011213/* end confdefs.h. */
Brian Gaeke6c3fd812004-02-23 22:07:00 +000011214#include <sys/types.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000011215#include <sys/time.h>
11216#include <time.h>
11217
11218int
11219main ()
11220{
11221if ((struct tm *) 0)
11222return 0;
11223 ;
11224 return 0;
11225}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000011226_ACEOF
Torok Edwin871384f2010-01-26 08:50:50 +000011227if ac_fn_c_try_compile "$LINENO"; then :
Reid Spencer5e1d9a52004-11-25 04:51:04 +000011228 ac_cv_header_time=yes
Brian Gaeke6c3fd812004-02-23 22:07:00 +000011229else
Torok Edwin871384f2010-01-26 08:50:50 +000011230 ac_cv_header_time=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000011231fi
Reid Spencera773bd52006-08-04 18:18:08 +000011232rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000011233fi
Torok Edwin871384f2010-01-26 08:50:50 +000011234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
11235$as_echo "$ac_cv_header_time" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000011236if test $ac_cv_header_time = yes; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000011237
Torok Edwin871384f2010-01-26 08:50:50 +000011238$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000011239
11240fi
11241
Reid Spencer5e1d9a52004-11-25 04:51:04 +000011242
Reid Spencer59473af2004-12-25 07:31:29 +000011243for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
Torok Edwin871384f2010-01-26 08:50:50 +000011244do :
11245 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11246ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11247eval as_val=\$$as_ac_Header
11248 if test "x$as_val" = x""yes; then :
Reid Spencer59473af2004-12-25 07:31:29 +000011249 cat >>confdefs.h <<_ACEOF
Torok Edwin871384f2010-01-26 08:50:50 +000011250#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000011251_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000011252
11253fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000011254
Reid Spencer59473af2004-12-25 07:31:29 +000011255done
Brian Gaeke6c3fd812004-02-23 22:07:00 +000011256
Douglas Gregor071d73d2009-05-18 17:21:34 +000011257for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
Torok Edwin871384f2010-01-26 08:50:50 +000011258do :
11259 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11260ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11261eval as_val=\$$as_ac_Header
11262 if test "x$as_val" = x""yes; then :
Reid Spencer59473af2004-12-25 07:31:29 +000011263 cat >>confdefs.h <<_ACEOF
Torok Edwin871384f2010-01-26 08:50:50 +000011264#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer59473af2004-12-25 07:31:29 +000011265_ACEOF
11266
11267fi
11268
11269done
11270
Douglas Gregor071d73d2009-05-18 17:21:34 +000011271for ac_header in utime.h windows.h
Torok Edwin871384f2010-01-26 08:50:50 +000011272do :
11273 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11274ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11275eval as_val=\$$as_ac_Header
11276 if test "x$as_val" = x""yes; then :
Reid Spencerbe3e4192007-08-17 05:45:26 +000011277 cat >>confdefs.h <<_ACEOF
Torok Edwin871384f2010-01-26 08:50:50 +000011278#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencerbe3e4192007-08-17 05:45:26 +000011279_ACEOF
11280
11281fi
11282
11283done
Reid Spencer59473af2004-12-25 07:31:29 +000011284
Reid Spencerbe3e4192007-08-17 05:45:26 +000011285for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
Torok Edwin871384f2010-01-26 08:50:50 +000011286do :
11287 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11288ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11289eval as_val=\$$as_ac_Header
11290 if test "x$as_val" = x""yes; then :
Reid Spencer5e1d9a52004-11-25 04:51:04 +000011291 cat >>confdefs.h <<_ACEOF
Torok Edwin871384f2010-01-26 08:50:50 +000011292#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7ed43ad2004-07-19 16:12:29 +000011293_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000011294
11295fi
John Criswell7ed43ad2004-07-19 16:12:29 +000011296
Reid Spencer5e1d9a52004-11-25 04:51:04 +000011297done
11298
Douglas Gregor01746742009-05-11 18:05:52 +000011299for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
Torok Edwin871384f2010-01-26 08:50:50 +000011300do :
11301 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11302ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11303eval as_val=\$$as_ac_Header
11304 if test "x$as_val" = x""yes; then :
Chris Lattner0b142592005-11-14 06:57:34 +000011305 cat >>confdefs.h <<_ACEOF
Torok Edwin871384f2010-01-26 08:50:50 +000011306#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Chris Lattner0b142592005-11-14 06:57:34 +000011307_ACEOF
11308
11309fi
11310
11311done
11312
Reid Spencer0a262ba2005-08-24 10:07:20 +000011313if test "$ENABLE_THREADS" -eq 1 ; then
Torok Edwin871384f2010-01-26 08:50:50 +000011314 for ac_header in pthread.h
11315do :
11316 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
11317if test "x$ac_cv_header_pthread_h" = x""yes; then :
Reid Spencerbe3e4192007-08-17 05:45:26 +000011318 cat >>confdefs.h <<_ACEOF
Torok Edwin871384f2010-01-26 08:50:50 +000011319#define HAVE_PTHREAD_H 1
Reid Spencerbe3e4192007-08-17 05:45:26 +000011320_ACEOF
11321 HAVE_PTHREAD=1
Reid Spencer1000b732006-12-01 00:37:14 +000011322
11323else
11324 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000011325
11326fi
11327
Reid Spencerbe3e4192007-08-17 05:45:26 +000011328done
Reid Spencer1000b732006-12-01 00:37:14 +000011329
11330else
11331 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000011332
11333fi
Reid Spencer8085cff2005-01-16 02:58:39 +000011334
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000011335if test "$llvm_cv_enable_libffi" = "yes" ; then
Torok Edwin871384f2010-01-26 08:50:50 +000011336 for ac_header in ffi.h ffi/ffi.h
11337do :
11338 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11339ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11340eval as_val=\$$as_ac_Header
11341 if test "x$as_val" = x""yes; then :
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000011342 cat >>confdefs.h <<_ACEOF
Torok Edwin871384f2010-01-26 08:50:50 +000011343#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000011344_ACEOF
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000011345
11346fi
11347
11348done
11349
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000011350fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000011351
Nick Lewycky2ab1d862009-01-20 00:52:24 +000011352
Reid Spencer8085cff2005-01-16 02:58:39 +000011353
Torok Edwin871384f2010-01-26 08:50:50 +000011354
11355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HUGE_VAL sanity" >&5
11356$as_echo_n "checking for HUGE_VAL sanity... " >&6; }
11357if test "${ac_cv_huge_val_sanity+set}" = set; then :
11358 $as_echo_n "(cached) " >&6
Reid Spencerb2ed05262006-11-03 18:04:08 +000011359else
11360
Reid Spencer6a7c0b72006-11-03 19:49:16 +000011361 ac_ext=cpp
11362ac_cpp='$CXXCPP $CPPFLAGS'
11363ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11364ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11365ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencerb2ed05262006-11-03 18:04:08 +000011366
Reid Spencer6a7c0b72006-11-03 19:49:16 +000011367 CXXFLAGS=-pedantic
Torok Edwin871384f2010-01-26 08:50:50 +000011368 if test "$cross_compiling" = yes; then :
Reid Spencerb2ed05262006-11-03 18:04:08 +000011369 ac_cv_huge_val_sanity=yes
11370else
Torok Edwin871384f2010-01-26 08:50:50 +000011371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Reid Spencerb2ed05262006-11-03 18:04:08 +000011372/* end confdefs.h. */
11373#include <math.h>
11374int
11375main ()
11376{
11377double x = HUGE_VAL; return x != x;
11378 ;
11379 return 0;
11380}
11381_ACEOF
Torok Edwin871384f2010-01-26 08:50:50 +000011382if ac_fn_cxx_try_run "$LINENO"; then :
Reid Spencerb2ed05262006-11-03 18:04:08 +000011383 ac_cv_huge_val_sanity=yes
11384else
Torok Edwin871384f2010-01-26 08:50:50 +000011385 ac_cv_huge_val_sanity=no
Reid Spencerb2ed05262006-11-03 18:04:08 +000011386fi
Torok Edwin871384f2010-01-26 08:50:50 +000011387rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11388 conftest.$ac_objext conftest.beam conftest.$ac_ext
Reid Spencerb2ed05262006-11-03 18:04:08 +000011389fi
11390
Reid Spencerb2ed05262006-11-03 18:04:08 +000011391 ac_ext=c
11392ac_cpp='$CPP $CPPFLAGS'
11393ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11394ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11395ac_compiler_gnu=$ac_cv_c_compiler_gnu
11396
11397
11398fi
Torok Edwin871384f2010-01-26 08:50:50 +000011399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_huge_val_sanity" >&5
11400$as_echo "$ac_cv_huge_val_sanity" >&6; }
Reid Spencerb2ed05262006-11-03 18:04:08 +000011401 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
11402
11403
Torok Edwin871384f2010-01-26 08:50:50 +000011404ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
11405if test "x$ac_cv_type_pid_t" = x""yes; then :
John Criswell0c38eaf2003-09-10 15:17:25 +000011406
John Criswell7a73b802003-06-30 21:59:07 +000011407else
11408
11409cat >>confdefs.h <<_ACEOF
11410#define pid_t int
11411_ACEOF
11412
11413fi
11414
Torok Edwin871384f2010-01-26 08:50:50 +000011415ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
11416if test "x$ac_cv_type_size_t" = x""yes; then :
John Criswell0c38eaf2003-09-10 15:17:25 +000011417
John Criswell7a73b802003-06-30 21:59:07 +000011418else
11419
11420cat >>confdefs.h <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000011421#define size_t unsigned int
John Criswell7a73b802003-06-30 21:59:07 +000011422_ACEOF
11423
11424fi
11425
Reid Spencer5e1d9a52004-11-25 04:51:04 +000011426
11427cat >>confdefs.h <<_ACEOF
Torok Edwin871384f2010-01-26 08:50:50 +000011428#define RETSIGTYPE void
Reid Spencer5e1d9a52004-11-25 04:51:04 +000011429_ACEOF
11430
Torok Edwin871384f2010-01-26 08:50:50 +000011431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
11432$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
11433if test "${ac_cv_struct_tm+set}" = set; then :
11434 $as_echo_n "(cached) " >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000011435else
Torok Edwin871384f2010-01-26 08:50:50 +000011436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000011437/* end confdefs.h. */
11438#include <sys/types.h>
11439#include <time.h>
11440
11441int
11442main ()
11443{
Torok Edwin871384f2010-01-26 08:50:50 +000011444struct tm tm;
11445 int *p = &tm.tm_sec;
11446 return !p;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000011447 ;
11448 return 0;
11449}
11450_ACEOF
Torok Edwin871384f2010-01-26 08:50:50 +000011451if ac_fn_c_try_compile "$LINENO"; then :
Reid Spencer5e1d9a52004-11-25 04:51:04 +000011452 ac_cv_struct_tm=time.h
11453else
Torok Edwin871384f2010-01-26 08:50:50 +000011454 ac_cv_struct_tm=sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000011455fi
Reid Spencera773bd52006-08-04 18:18:08 +000011456rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000011457fi
Torok Edwin871384f2010-01-26 08:50:50 +000011458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
11459$as_echo "$ac_cv_struct_tm" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000011460if test $ac_cv_struct_tm = sys/time.h; then
11461
Torok Edwin871384f2010-01-26 08:50:50 +000011462$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000011463
11464fi
11465
Torok Edwin871384f2010-01-26 08:50:50 +000011466ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default"
11467if test "x$ac_cv_type_int64_t" = x""yes; then :
John Criswell7a73b802003-06-30 21:59:07 +000011468
11469cat >>confdefs.h <<_ACEOF
11470#define HAVE_INT64_T 1
11471_ACEOF
11472
11473
11474else
Torok Edwin871384f2010-01-26 08:50:50 +000011475 as_fn_error "Type int64_t required but not found" "$LINENO" 5
John Criswell7a73b802003-06-30 21:59:07 +000011476fi
11477
Torok Edwin871384f2010-01-26 08:50:50 +000011478ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
11479if test "x$ac_cv_type_uint64_t" = x""yes; then :
John Criswell7a73b802003-06-30 21:59:07 +000011480
11481cat >>confdefs.h <<_ACEOF
11482#define HAVE_UINT64_T 1
11483_ACEOF
11484
11485
11486else
Torok Edwin871384f2010-01-26 08:50:50 +000011487 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "$ac_includes_default"
11488if test "x$ac_cv_type_u_int64_t" = x""yes; then :
John Criswell679ff312004-09-02 18:44:44 +000011489
11490cat >>confdefs.h <<_ACEOF
11491#define HAVE_U_INT64_T 1
11492_ACEOF
11493
11494
Misha Brukmanceca9042004-09-02 23:02:30 +000011495else
Torok Edwin871384f2010-01-26 08:50:50 +000011496 as_fn_error "Type uint64_t or u_int64_t required but not found" "$LINENO" 5
Misha Brukmanceca9042004-09-02 23:02:30 +000011497fi
11498
John Criswell679ff312004-09-02 18:44:44 +000011499fi
11500
Reid Spencer5e1d9a52004-11-25 04:51:04 +000011501
11502
Reid Spencerdf3be822006-01-23 08:15:53 +000011503for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
Torok Edwin871384f2010-01-26 08:50:50 +000011504do :
11505 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11506ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11507eval as_val=\$$as_ac_var
11508 if test "x$as_val" = x""yes; then :
Reid Spencer5e1d9a52004-11-25 04:51:04 +000011509 cat >>confdefs.h <<_ACEOF
Torok Edwin871384f2010-01-26 08:50:50 +000011510#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000011511_ACEOF
11512
11513fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000011514done
John Criswell7a73b802003-06-30 21:59:07 +000011515
Reid Spencer96cf5872007-07-13 10:05:30 +000011516for ac_func in powf fmodf strtof round
Torok Edwin871384f2010-01-26 08:50:50 +000011517do :
11518 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11519ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11520eval as_val=\$$as_ac_var
11521 if test "x$as_val" = x""yes; then :
Reid Spencer96cf5872007-07-13 10:05:30 +000011522 cat >>confdefs.h <<_ACEOF
Torok Edwin871384f2010-01-26 08:50:50 +000011523#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer96cf5872007-07-13 10:05:30 +000011524_ACEOF
11525
11526fi
11527done
11528
Reid Spencerb90645c2007-02-16 19:17:20 +000011529for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
Torok Edwin871384f2010-01-26 08:50:50 +000011530do :
11531 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11532ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11533eval as_val=\$$as_ac_var
11534 if test "x$as_val" = x""yes; then :
Reid Spencerb90645c2007-02-16 19:17:20 +000011535 cat >>confdefs.h <<_ACEOF
Torok Edwin871384f2010-01-26 08:50:50 +000011536#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencerb90645c2007-02-16 19:17:20 +000011537_ACEOF
11538
11539fi
11540done
11541
Reid Spencerb90645c2007-02-16 19:17:20 +000011542for ac_func in isatty mkdtemp mkstemp
Torok Edwin871384f2010-01-26 08:50:50 +000011543do :
11544 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11545ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11546eval as_val=\$$as_ac_var
11547 if test "x$as_val" = x""yes; then :
Reid Spencerdf3be822006-01-23 08:15:53 +000011548 cat >>confdefs.h <<_ACEOF
Torok Edwin871384f2010-01-26 08:50:50 +000011549#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencerdf3be822006-01-23 08:15:53 +000011550_ACEOF
11551
11552fi
11553done
11554
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000011555for ac_func in mktemp realpath sbrk setrlimit strdup
Torok Edwin871384f2010-01-26 08:50:50 +000011556do :
11557 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11558ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11559eval as_val=\$$as_ac_var
11560 if test "x$as_val" = x""yes; then :
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000011561 cat >>confdefs.h <<_ACEOF
Torok Edwin871384f2010-01-26 08:50:50 +000011562#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000011563_ACEOF
11564
11565fi
11566done
Reid Spencerdf3be822006-01-23 08:15:53 +000011567
Jeffrey Yasskinb7a8d402009-09-25 21:07:20 +000011568for ac_func in strerror strerror_r strerror_s setenv
Torok Edwin871384f2010-01-26 08:50:50 +000011569do :
11570 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11571ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11572eval as_val=\$$as_ac_var
11573 if test "x$as_val" = x""yes; then :
Reid Spencer7931a782004-12-27 06:15:02 +000011574 cat >>confdefs.h <<_ACEOF
Torok Edwin871384f2010-01-26 08:50:50 +000011575#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer7931a782004-12-27 06:15:02 +000011576_ACEOF
11577
11578fi
11579done
11580
Chris Lattner511f11d2005-11-14 07:25:50 +000011581for ac_func in strtoll strtoq sysconf malloc_zone_statistics
Torok Edwin871384f2010-01-26 08:50:50 +000011582do :
11583 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11584ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11585eval as_val=\$$as_ac_var
11586 if test "x$as_val" = x""yes; then :
Reid Spencer5e1d9a52004-11-25 04:51:04 +000011587 cat >>confdefs.h <<_ACEOF
Torok Edwin871384f2010-01-26 08:50:50 +000011588#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000011589_ACEOF
11590
11591fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000011592done
John Criswell7a73b802003-06-30 21:59:07 +000011593
Reid Spencerafa22e22006-12-10 23:29:19 +000011594for ac_func in setjmp longjmp sigsetjmp siglongjmp
Torok Edwin871384f2010-01-26 08:50:50 +000011595do :
11596 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11597ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11598eval as_val=\$$as_ac_var
11599 if test "x$as_val" = x""yes; then :
Reid Spencercdb08a32006-06-05 16:11:07 +000011600 cat >>confdefs.h <<_ACEOF
Torok Edwin871384f2010-01-26 08:50:50 +000011601#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencercdb08a32006-06-05 16:11:07 +000011602_ACEOF
11603
11604fi
11605done
11606
Torok Edwin871384f2010-01-26 08:50:50 +000011607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if printf has the %a format character" >&5
11608$as_echo_n "checking if printf has the %a format character... " >&6; }
11609if test "${llvm_cv_c_printf_a+set}" = set; then :
11610 $as_echo_n "(cached) " >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000011611else
Reid Spencer2706f8c2004-09-19 23:53:36 +000011612 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000011613ac_cpp='$CPP $CPPFLAGS'
11614ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11615ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11616ac_compiler_gnu=$ac_cv_c_compiler_gnu
11617
Torok Edwin871384f2010-01-26 08:50:50 +000011618 if test "$cross_compiling" = yes; then :
Reid Spencer3be58f92004-11-27 22:01:43 +000011619 llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000011620else
Torok Edwin871384f2010-01-26 08:50:50 +000011621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
John Criswella0137d32003-10-13 16:22:01 +000011622/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000011623
Torok Edwin871384f2010-01-26 08:50:50 +000011624
John Criswella0137d32003-10-13 16:22:01 +000011625#include <stdio.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000011626#include <stdlib.h>
11627
John Criswella0137d32003-10-13 16:22:01 +000011628int
11629main ()
11630{
11631
Reid Spencer2706f8c2004-09-19 23:53:36 +000011632volatile double A, B;
11633char Buffer[100];
11634A = 1;
11635A /= 10.0;
11636sprintf(Buffer, "%a", A);
11637B = atof(Buffer);
11638if (A != B)
11639 return (1);
11640if (A != 0x1.999999999999ap-4)
11641 return (1);
11642return (0);
John Criswella0137d32003-10-13 16:22:01 +000011643 ;
11644 return 0;
11645}
11646_ACEOF
Torok Edwin871384f2010-01-26 08:50:50 +000011647if ac_fn_c_try_run "$LINENO"; then :
Reid Spencer3be58f92004-11-27 22:01:43 +000011648 llvm_cv_c_printf_a=yes
John Criswella0137d32003-10-13 16:22:01 +000011649else
Torok Edwin871384f2010-01-26 08:50:50 +000011650 llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000011651fi
Torok Edwin871384f2010-01-26 08:50:50 +000011652rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11653 conftest.$ac_objext conftest.beam conftest.$ac_ext
John Criswella0137d32003-10-13 16:22:01 +000011654fi
Reid Spencera773bd52006-08-04 18:18:08 +000011655
Reid Spencer2706f8c2004-09-19 23:53:36 +000011656 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000011657ac_cpp='$CPP $CPPFLAGS'
11658ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11659ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11660ac_compiler_gnu=$ac_cv_c_compiler_gnu
11661
Reid Spencer5e1d9a52004-11-25 04:51:04 +000011662fi
Torok Edwin871384f2010-01-26 08:50:50 +000011663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $llvm_cv_c_printf_a" >&5
11664$as_echo "$llvm_cv_c_printf_a" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000011665 if test "$llvm_cv_c_printf_a" = "yes"; then
John Criswella0137d32003-10-13 16:22:01 +000011666
Torok Edwin871384f2010-01-26 08:50:50 +000011667$as_echo "#define HAVE_PRINTF_A 1" >>confdefs.h
John Criswella0137d32003-10-13 16:22:01 +000011668
Reid Spencer2706f8c2004-09-19 23:53:36 +000011669 fi
John Criswella0137d32003-10-13 16:22:01 +000011670
Reid Spencer5e1d9a52004-11-25 04:51:04 +000011671
Torok Edwin871384f2010-01-26 08:50:50 +000011672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
11673$as_echo_n "checking for srand48/lrand48/drand48 in <stdlib.h>... " >&6; }
11674if test "${ac_cv_func_rand48+set}" = set; then :
11675 $as_echo_n "(cached) " >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000011676else
Reid Spencera773bd52006-08-04 18:18:08 +000011677 ac_ext=cpp
Reid Spencer5e1d9a52004-11-25 04:51:04 +000011678ac_cpp='$CXXCPP $CPPFLAGS'
11679ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11680ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11681ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11682
Torok Edwin871384f2010-01-26 08:50:50 +000011683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000011684/* end confdefs.h. */
11685#include <stdlib.h>
11686int
11687main ()
11688{
11689srand48(0);lrand48();drand48();
11690 ;
11691 return 0;
11692}
11693_ACEOF
Torok Edwin871384f2010-01-26 08:50:50 +000011694if ac_fn_cxx_try_compile "$LINENO"; then :
Reid Spencer5e1d9a52004-11-25 04:51:04 +000011695 ac_cv_func_rand48=yes
11696else
Torok Edwin871384f2010-01-26 08:50:50 +000011697 ac_cv_func_rand48=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000011698fi
Reid Spencera773bd52006-08-04 18:18:08 +000011699rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000011700 ac_ext=c
11701ac_cpp='$CPP $CPPFLAGS'
11702ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11703ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11704ac_compiler_gnu=$ac_cv_c_compiler_gnu
11705
11706fi
Torok Edwin871384f2010-01-26 08:50:50 +000011707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_rand48" >&5
11708$as_echo "$ac_cv_func_rand48" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000011709
11710if test "$ac_cv_func_rand48" = "yes" ; then
11711
Torok Edwin871384f2010-01-26 08:50:50 +000011712$as_echo "#define HAVE_RAND48 1" >>confdefs.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000011713
11714fi
John Criswell0021c312004-02-13 21:57:29 +000011715
11716
Torok Edwin871384f2010-01-26 08:50:50 +000011717
11718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnan in <math.h>" >&5
11719$as_echo_n "checking for isnan in <math.h>... " >&6; }
11720if test "${ac_cv_func_isnan_in_math_h+set}" = set; then :
11721 $as_echo_n "(cached) " >&6
John Criswell7a73b802003-06-30 21:59:07 +000011722else
Reid Spencera773bd52006-08-04 18:18:08 +000011723 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000011724ac_cpp='$CXXCPP $CPPFLAGS'
11725ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11726ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11727ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11728
Torok Edwin871384f2010-01-26 08:50:50 +000011729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Brian Gaeke6f5b6212004-06-22 23:47:13 +000011730/* end confdefs.h. */
11731#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000011732int
11733main ()
11734{
11735float f; isnan(f);
11736 ;
11737 return 0;
11738}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000011739_ACEOF
Torok Edwin871384f2010-01-26 08:50:50 +000011740if ac_fn_cxx_try_compile "$LINENO"; then :
Brian Gaeke6f5b6212004-06-22 23:47:13 +000011741 ac_cv_func_isnan_in_math_h=yes
11742else
Torok Edwin871384f2010-01-26 08:50:50 +000011743 ac_cv_func_isnan_in_math_h=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000011744fi
Reid Spencera773bd52006-08-04 18:18:08 +000011745rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000011746 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000011747ac_cpp='$CPP $CPPFLAGS'
11748ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11749ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11750ac_compiler_gnu=$ac_cv_c_compiler_gnu
11751
11752fi
Torok Edwin871384f2010-01-26 08:50:50 +000011753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_isnan_in_math_h" >&5
11754$as_echo "$ac_cv_func_isnan_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000011755
11756
11757if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000011758
Torok Edwin871384f2010-01-26 08:50:50 +000011759$as_echo "#define HAVE_ISNAN_IN_MATH_H 1" >>confdefs.h
Brian Gaeke6f5b6212004-06-22 23:47:13 +000011760
Reid Spencerabec8f92004-10-27 23:03:44 +000011761fi
11762
Torok Edwin871384f2010-01-26 08:50:50 +000011763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnan in <cmath>" >&5
11764$as_echo_n "checking for isnan in <cmath>... " >&6; }
11765if test "${ac_cv_func_isnan_in_cmath+set}" = set; then :
11766 $as_echo_n "(cached) " >&6
Brian Gaeke6f5b6212004-06-22 23:47:13 +000011767else
Reid Spencera773bd52006-08-04 18:18:08 +000011768 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000011769ac_cpp='$CXXCPP $CPPFLAGS'
11770ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11771ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11772ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11773
Torok Edwin871384f2010-01-26 08:50:50 +000011774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Brian Gaeke6f5b6212004-06-22 23:47:13 +000011775/* end confdefs.h. */
11776#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000011777int
11778main ()
11779{
11780float f; isnan(f);
11781 ;
11782 return 0;
11783}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000011784_ACEOF
Torok Edwin871384f2010-01-26 08:50:50 +000011785if ac_fn_cxx_try_compile "$LINENO"; then :
Brian Gaeke6f5b6212004-06-22 23:47:13 +000011786 ac_cv_func_isnan_in_cmath=yes
11787else
Torok Edwin871384f2010-01-26 08:50:50 +000011788 ac_cv_func_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000011789fi
Reid Spencera773bd52006-08-04 18:18:08 +000011790rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000011791 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000011792ac_cpp='$CPP $CPPFLAGS'
11793ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11794ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11795ac_compiler_gnu=$ac_cv_c_compiler_gnu
11796
11797fi
Torok Edwin871384f2010-01-26 08:50:50 +000011798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_isnan_in_cmath" >&5
11799$as_echo "$ac_cv_func_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000011800
11801if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000011802
Torok Edwin871384f2010-01-26 08:50:50 +000011803$as_echo "#define HAVE_ISNAN_IN_CMATH 1" >>confdefs.h
Brian Gaeke6f5b6212004-06-22 23:47:13 +000011804
Reid Spencerabec8f92004-10-27 23:03:44 +000011805fi
11806
Torok Edwin871384f2010-01-26 08:50:50 +000011807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::isnan in <cmath>" >&5
11808$as_echo_n "checking for std::isnan in <cmath>... " >&6; }
11809if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then :
11810 $as_echo_n "(cached) " >&6
Brian Gaeke6f5b6212004-06-22 23:47:13 +000011811else
Reid Spencera773bd52006-08-04 18:18:08 +000011812 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000011813ac_cpp='$CXXCPP $CPPFLAGS'
11814ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11815ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11816ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11817
Torok Edwin871384f2010-01-26 08:50:50 +000011818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Brian Gaeke6f5b6212004-06-22 23:47:13 +000011819/* end confdefs.h. */
11820#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000011821int
11822main ()
11823{
11824float f; std::isnan(f);
11825 ;
11826 return 0;
11827}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000011828_ACEOF
Torok Edwin871384f2010-01-26 08:50:50 +000011829if ac_fn_cxx_try_compile "$LINENO"; then :
Brian Gaeke6f5b6212004-06-22 23:47:13 +000011830 ac_cv_func_std_isnan_in_cmath=yes
11831else
Torok Edwin871384f2010-01-26 08:50:50 +000011832 ac_cv_func_std_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000011833fi
Reid Spencera773bd52006-08-04 18:18:08 +000011834rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000011835 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000011836ac_cpp='$CPP $CPPFLAGS'
11837ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11838ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11839ac_compiler_gnu=$ac_cv_c_compiler_gnu
11840
11841fi
Torok Edwin871384f2010-01-26 08:50:50 +000011842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_std_isnan_in_cmath" >&5
11843$as_echo "$ac_cv_func_std_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000011844
11845if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000011846
Torok Edwin871384f2010-01-26 08:50:50 +000011847$as_echo "#define HAVE_STD_ISNAN_IN_CMATH 1" >>confdefs.h
Brian Gaeke6f5b6212004-06-22 23:47:13 +000011848
Reid Spencerabec8f92004-10-27 23:03:44 +000011849fi
Brian Gaeke6f5b6212004-06-22 23:47:13 +000011850
11851
Torok Edwin871384f2010-01-26 08:50:50 +000011852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinf in <math.h>" >&5
11853$as_echo_n "checking for isinf in <math.h>... " >&6; }
11854if test "${ac_cv_func_isinf_in_math_h+set}" = set; then :
11855 $as_echo_n "(cached) " >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000011856else
Reid Spencera773bd52006-08-04 18:18:08 +000011857 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000011858ac_cpp='$CXXCPP $CPPFLAGS'
11859ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11860ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11861ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11862
Torok Edwin871384f2010-01-26 08:50:50 +000011863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Brian Gaeke52a551d2004-07-21 03:14:12 +000011864/* end confdefs.h. */
11865#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000011866int
11867main ()
11868{
11869float f; isinf(f);
11870 ;
11871 return 0;
11872}
Brian Gaeke52a551d2004-07-21 03:14:12 +000011873_ACEOF
Torok Edwin871384f2010-01-26 08:50:50 +000011874if ac_fn_cxx_try_compile "$LINENO"; then :
Brian Gaeke52a551d2004-07-21 03:14:12 +000011875 ac_cv_func_isinf_in_math_h=yes
11876else
Torok Edwin871384f2010-01-26 08:50:50 +000011877 ac_cv_func_isinf_in_math_h=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000011878fi
Reid Spencera773bd52006-08-04 18:18:08 +000011879rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000011880 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000011881ac_cpp='$CPP $CPPFLAGS'
11882ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11883ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11884ac_compiler_gnu=$ac_cv_c_compiler_gnu
11885
11886fi
Torok Edwin871384f2010-01-26 08:50:50 +000011887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_isinf_in_math_h" >&5
11888$as_echo "$ac_cv_func_isinf_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000011889
11890if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000011891
Torok Edwin871384f2010-01-26 08:50:50 +000011892$as_echo "#define HAVE_ISINF_IN_MATH_H 1" >>confdefs.h
Brian Gaeke52a551d2004-07-21 03:14:12 +000011893
Reid Spencerabec8f92004-10-27 23:03:44 +000011894fi
11895
Torok Edwin871384f2010-01-26 08:50:50 +000011896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinf in <cmath>" >&5
11897$as_echo_n "checking for isinf in <cmath>... " >&6; }
11898if test "${ac_cv_func_isinf_in_cmath+set}" = set; then :
11899 $as_echo_n "(cached) " >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000011900else
Reid Spencera773bd52006-08-04 18:18:08 +000011901 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000011902ac_cpp='$CXXCPP $CPPFLAGS'
11903ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11904ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11905ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11906
Torok Edwin871384f2010-01-26 08:50:50 +000011907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Brian Gaeke52a551d2004-07-21 03:14:12 +000011908/* end confdefs.h. */
11909#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000011910int
11911main ()
11912{
11913float f; isinf(f);
11914 ;
11915 return 0;
11916}
Brian Gaeke52a551d2004-07-21 03:14:12 +000011917_ACEOF
Torok Edwin871384f2010-01-26 08:50:50 +000011918if ac_fn_cxx_try_compile "$LINENO"; then :
Brian Gaeke52a551d2004-07-21 03:14:12 +000011919 ac_cv_func_isinf_in_cmath=yes
11920else
Torok Edwin871384f2010-01-26 08:50:50 +000011921 ac_cv_func_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000011922fi
Reid Spencera773bd52006-08-04 18:18:08 +000011923rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000011924 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000011925ac_cpp='$CPP $CPPFLAGS'
11926ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11927ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11928ac_compiler_gnu=$ac_cv_c_compiler_gnu
11929
11930fi
Torok Edwin871384f2010-01-26 08:50:50 +000011931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_isinf_in_cmath" >&5
11932$as_echo "$ac_cv_func_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000011933
11934if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000011935
Torok Edwin871384f2010-01-26 08:50:50 +000011936$as_echo "#define HAVE_ISINF_IN_CMATH 1" >>confdefs.h
Brian Gaeke52a551d2004-07-21 03:14:12 +000011937
Reid Spencerabec8f92004-10-27 23:03:44 +000011938fi
11939
Torok Edwin871384f2010-01-26 08:50:50 +000011940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::isinf in <cmath>" >&5
11941$as_echo_n "checking for std::isinf in <cmath>... " >&6; }
11942if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then :
11943 $as_echo_n "(cached) " >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000011944else
Reid Spencera773bd52006-08-04 18:18:08 +000011945 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000011946ac_cpp='$CXXCPP $CPPFLAGS'
11947ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11948ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11949ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11950
Torok Edwin871384f2010-01-26 08:50:50 +000011951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Brian Gaeke52a551d2004-07-21 03:14:12 +000011952/* end confdefs.h. */
11953#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000011954int
11955main ()
11956{
11957float f; std::isinf(f)}
11958 ;
11959 return 0;
11960}
Brian Gaeke52a551d2004-07-21 03:14:12 +000011961_ACEOF
Torok Edwin871384f2010-01-26 08:50:50 +000011962if ac_fn_cxx_try_compile "$LINENO"; then :
Brian Gaeke52a551d2004-07-21 03:14:12 +000011963 ac_cv_func_std_isinf_in_cmath=yes
11964else
Torok Edwin871384f2010-01-26 08:50:50 +000011965 ac_cv_func_std_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000011966fi
Reid Spencera773bd52006-08-04 18:18:08 +000011967rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000011968 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000011969ac_cpp='$CPP $CPPFLAGS'
11970ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11971ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11972ac_compiler_gnu=$ac_cv_c_compiler_gnu
11973
11974fi
Torok Edwin871384f2010-01-26 08:50:50 +000011975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_std_isinf_in_cmath" >&5
11976$as_echo "$ac_cv_func_std_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000011977
11978if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000011979
Torok Edwin871384f2010-01-26 08:50:50 +000011980$as_echo "#define HAVE_STD_ISINF_IN_CMATH 1" >>confdefs.h
Brian Gaeke52a551d2004-07-21 03:14:12 +000011981
Reid Spencerabec8f92004-10-27 23:03:44 +000011982fi
11983
Torok Edwin871384f2010-01-26 08:50:50 +000011984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for finite in <ieeefp.h>" >&5
11985$as_echo_n "checking for finite in <ieeefp.h>... " >&6; }
11986if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then :
11987 $as_echo_n "(cached) " >&6
Brian Gaeked59a6472004-07-21 03:33:58 +000011988else
Reid Spencera773bd52006-08-04 18:18:08 +000011989 ac_ext=cpp
Brian Gaeked59a6472004-07-21 03:33:58 +000011990ac_cpp='$CXXCPP $CPPFLAGS'
11991ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11992ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11993ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11994
Torok Edwin871384f2010-01-26 08:50:50 +000011995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Brian Gaeked59a6472004-07-21 03:33:58 +000011996/* end confdefs.h. */
11997#include <ieeefp.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000011998int
11999main ()
12000{
12001float f; finite(f);
12002 ;
12003 return 0;
12004}
Brian Gaeked59a6472004-07-21 03:33:58 +000012005_ACEOF
Torok Edwin871384f2010-01-26 08:50:50 +000012006if ac_fn_cxx_try_compile "$LINENO"; then :
Brian Gaeked59a6472004-07-21 03:33:58 +000012007 ac_cv_func_finite_in_ieeefp_h=yes
12008else
Torok Edwin871384f2010-01-26 08:50:50 +000012009 ac_cv_func_finite_in_ieeefp_h=no
Brian Gaeked59a6472004-07-21 03:33:58 +000012010fi
Reid Spencera773bd52006-08-04 18:18:08 +000012011rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000012012 ac_ext=c
Brian Gaeked59a6472004-07-21 03:33:58 +000012013ac_cpp='$CPP $CPPFLAGS'
12014ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12015ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12016ac_compiler_gnu=$ac_cv_c_compiler_gnu
12017
12018fi
Torok Edwin871384f2010-01-26 08:50:50 +000012019{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_finite_in_ieeefp_h" >&5
12020$as_echo "$ac_cv_func_finite_in_ieeefp_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000012021
Brian Gaeke6802b552004-10-28 05:06:45 +000012022if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
Brian Gaeked59a6472004-07-21 03:33:58 +000012023
Torok Edwin871384f2010-01-26 08:50:50 +000012024$as_echo "#define HAVE_FINITE_IN_IEEEFP_H 1" >>confdefs.h
Brian Gaeked59a6472004-07-21 03:33:58 +000012025
Reid Spencerabec8f92004-10-27 23:03:44 +000012026fi
12027
12028
12029
Reid Spencer30fe5262007-01-20 07:48:49 +000012030if test "$llvm_cv_platform_type" = "Unix" ; then
John Criswell7a73b802003-06-30 21:59:07 +000012031
12032
John Criswell0c38eaf2003-09-10 15:17:25 +000012033
Torok Edwin871384f2010-01-26 08:50:50 +000012034 for ac_header in $ac_header_list
12035do :
12036 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12037ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
12038"
12039eval as_val=\$$as_ac_Header
12040 if test "x$as_val" = x""yes; then :
John Criswell7a73b802003-06-30 21:59:07 +000012041 cat >>confdefs.h <<_ACEOF
Torok Edwin871384f2010-01-26 08:50:50 +000012042#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000012043_ACEOF
12044
12045fi
12046
12047done
12048
12049
Torok Edwin871384f2010-01-26 08:50:50 +000012050
12051
12052
12053
12054
12055
John Criswell7a73b802003-06-30 21:59:07 +000012056for ac_func in getpagesize
Torok Edwin871384f2010-01-26 08:50:50 +000012057do :
12058 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
12059if test "x$ac_cv_func_getpagesize" = x""yes; then :
John Criswell7a73b802003-06-30 21:59:07 +000012060 cat >>confdefs.h <<_ACEOF
Torok Edwin871384f2010-01-26 08:50:50 +000012061#define HAVE_GETPAGESIZE 1
John Criswell7a73b802003-06-30 21:59:07 +000012062_ACEOF
12063
12064fi
12065done
12066
Torok Edwin871384f2010-01-26 08:50:50 +000012067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
12068$as_echo_n "checking for working mmap... " >&6; }
12069if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
12070 $as_echo_n "(cached) " >&6
John Criswell7a73b802003-06-30 21:59:07 +000012071else
Torok Edwin871384f2010-01-26 08:50:50 +000012072 if test "$cross_compiling" = yes; then :
John Criswell7a73b802003-06-30 21:59:07 +000012073 ac_cv_func_mmap_fixed_mapped=no
12074else
Torok Edwin871384f2010-01-26 08:50:50 +000012075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
John Criswell0c38eaf2003-09-10 15:17:25 +000012076/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000012077$ac_includes_default
12078/* malloc might have been renamed as rpl_malloc. */
12079#undef malloc
12080
12081/* Thanks to Mike Haertel and Jim Avera for this test.
12082 Here is a matrix of mmap possibilities:
12083 mmap private not fixed
12084 mmap private fixed at somewhere currently unmapped
12085 mmap private fixed at somewhere already mapped
12086 mmap shared not fixed
12087 mmap shared fixed at somewhere currently unmapped
12088 mmap shared fixed at somewhere already mapped
12089 For private mappings, we should verify that changes cannot be read()
12090 back from the file, nor mmap's back from the file at a different
12091 address. (There have been systems where private was not correctly
12092 implemented like the infamous i386 svr4.0, and systems where the
12093 VM page cache was not coherent with the file system buffer cache
12094 like early versions of FreeBSD and possibly contemporary NetBSD.)
12095 For shared mappings, we should conversely verify that changes get
12096 propagated back to all the places they're supposed to be.
12097
12098 Grep wants private fixed already mapped.
12099 The main things grep needs to know about mmap are:
12100 * does it exist and is it safe to write into the mmap'd area
12101 * how to use it (BSD variants) */
12102
12103#include <fcntl.h>
12104#include <sys/mman.h>
12105
Torok Edwin871384f2010-01-26 08:50:50 +000012106#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
John Criswell7a73b802003-06-30 21:59:07 +000012107char *malloc ();
12108#endif
12109
12110/* This mess was copied from the GNU getpagesize.h. */
Torok Edwin871384f2010-01-26 08:50:50 +000012111#ifndef HAVE_GETPAGESIZE
John Criswell7a73b802003-06-30 21:59:07 +000012112# ifdef _SC_PAGESIZE
12113# define getpagesize() sysconf(_SC_PAGESIZE)
12114# else /* no _SC_PAGESIZE */
Torok Edwin871384f2010-01-26 08:50:50 +000012115# ifdef HAVE_SYS_PARAM_H
John Criswell7a73b802003-06-30 21:59:07 +000012116# include <sys/param.h>
12117# ifdef EXEC_PAGESIZE
12118# define getpagesize() EXEC_PAGESIZE
12119# else /* no EXEC_PAGESIZE */
12120# ifdef NBPG
12121# define getpagesize() NBPG * CLSIZE
12122# ifndef CLSIZE
12123# define CLSIZE 1
12124# endif /* no CLSIZE */
12125# else /* no NBPG */
12126# ifdef NBPC
12127# define getpagesize() NBPC
12128# else /* no NBPC */
12129# ifdef PAGESIZE
12130# define getpagesize() PAGESIZE
12131# endif /* PAGESIZE */
12132# endif /* no NBPC */
12133# endif /* no NBPG */
12134# endif /* no EXEC_PAGESIZE */
12135# else /* no HAVE_SYS_PARAM_H */
12136# define getpagesize() 8192 /* punt totally */
12137# endif /* no HAVE_SYS_PARAM_H */
12138# endif /* no _SC_PAGESIZE */
12139
12140#endif /* no HAVE_GETPAGESIZE */
12141
12142int
12143main ()
12144{
12145 char *data, *data2, *data3;
Torok Edwin871384f2010-01-26 08:50:50 +000012146 const char *cdata2;
John Criswell7a73b802003-06-30 21:59:07 +000012147 int i, pagesize;
Torok Edwin871384f2010-01-26 08:50:50 +000012148 int fd, fd2;
John Criswell7a73b802003-06-30 21:59:07 +000012149
12150 pagesize = getpagesize ();
12151
12152 /* First, make a file with some known garbage in it. */
12153 data = (char *) malloc (pagesize);
12154 if (!data)
Reid Spencera773bd52006-08-04 18:18:08 +000012155 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000012156 for (i = 0; i < pagesize; ++i)
12157 *(data + i) = rand ();
12158 umask (0);
12159 fd = creat ("conftest.mmap", 0600);
12160 if (fd < 0)
Torok Edwin871384f2010-01-26 08:50:50 +000012161 return 2;
John Criswell7a73b802003-06-30 21:59:07 +000012162 if (write (fd, data, pagesize) != pagesize)
Torok Edwin871384f2010-01-26 08:50:50 +000012163 return 3;
John Criswell7a73b802003-06-30 21:59:07 +000012164 close (fd);
12165
Torok Edwin871384f2010-01-26 08:50:50 +000012166 /* Next, check that the tail of a page is zero-filled. File must have
12167 non-zero length, otherwise we risk SIGBUS for entire page. */
12168 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
12169 if (fd2 < 0)
12170 return 4;
12171 cdata2 = "";
12172 if (write (fd2, cdata2, 1) != 1)
12173 return 5;
12174 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
12175 if (data2 == MAP_FAILED)
12176 return 6;
12177 for (i = 0; i < pagesize; ++i)
12178 if (*(data2 + i))
12179 return 7;
12180 close (fd2);
12181 if (munmap (data2, pagesize))
12182 return 8;
12183
John Criswell7a73b802003-06-30 21:59:07 +000012184 /* Next, try to mmap the file at a fixed address which already has
12185 something else allocated at it. If we can, also make sure that
12186 we see the same garbage. */
12187 fd = open ("conftest.mmap", O_RDWR);
12188 if (fd < 0)
Torok Edwin871384f2010-01-26 08:50:50 +000012189 return 9;
John Criswell7a73b802003-06-30 21:59:07 +000012190 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2706f8c2004-09-19 23:53:36 +000012191 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Torok Edwin871384f2010-01-26 08:50:50 +000012192 return 10;
John Criswell7a73b802003-06-30 21:59:07 +000012193 for (i = 0; i < pagesize; ++i)
12194 if (*(data + i) != *(data2 + i))
Torok Edwin871384f2010-01-26 08:50:50 +000012195 return 11;
John Criswell7a73b802003-06-30 21:59:07 +000012196
12197 /* Finally, make sure that changes to the mapped area do not
12198 percolate back to the file as seen by read(). (This is a bug on
12199 some variants of i386 svr4.0.) */
12200 for (i = 0; i < pagesize; ++i)
12201 *(data2 + i) = *(data2 + i) + 1;
12202 data3 = (char *) malloc (pagesize);
12203 if (!data3)
Torok Edwin871384f2010-01-26 08:50:50 +000012204 return 12;
John Criswell7a73b802003-06-30 21:59:07 +000012205 if (read (fd, data3, pagesize) != pagesize)
Torok Edwin871384f2010-01-26 08:50:50 +000012206 return 13;
John Criswell7a73b802003-06-30 21:59:07 +000012207 for (i = 0; i < pagesize; ++i)
12208 if (*(data + i) != *(data3 + i))
Torok Edwin871384f2010-01-26 08:50:50 +000012209 return 14;
John Criswell7a73b802003-06-30 21:59:07 +000012210 close (fd);
Reid Spencera773bd52006-08-04 18:18:08 +000012211 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000012212}
12213_ACEOF
Torok Edwin871384f2010-01-26 08:50:50 +000012214if ac_fn_c_try_run "$LINENO"; then :
John Criswell7a73b802003-06-30 21:59:07 +000012215 ac_cv_func_mmap_fixed_mapped=yes
12216else
Torok Edwin871384f2010-01-26 08:50:50 +000012217 ac_cv_func_mmap_fixed_mapped=no
John Criswell7a73b802003-06-30 21:59:07 +000012218fi
Torok Edwin871384f2010-01-26 08:50:50 +000012219rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12220 conftest.$ac_objext conftest.beam conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000012221fi
Reid Spencera773bd52006-08-04 18:18:08 +000012222
John Criswell7a73b802003-06-30 21:59:07 +000012223fi
Torok Edwin871384f2010-01-26 08:50:50 +000012224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
12225$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000012226if test $ac_cv_func_mmap_fixed_mapped = yes; then
12227
Torok Edwin871384f2010-01-26 08:50:50 +000012228$as_echo "#define HAVE_MMAP 1" >>confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +000012229
12230fi
Torok Edwin871384f2010-01-26 08:50:50 +000012231rm -f conftest.mmap conftest.txt
John Criswell7a73b802003-06-30 21:59:07 +000012232
Torok Edwin871384f2010-01-26 08:50:50 +000012233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mmap of files" >&5
12234$as_echo_n "checking for mmap of files... " >&6; }
12235if test "${ac_cv_func_mmap_file+set}" = set; then :
12236 $as_echo_n "(cached) " >&6
John Criswell7a73b802003-06-30 21:59:07 +000012237else
Reid Spencer2706f8c2004-09-19 23:53:36 +000012238 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000012239ac_cpp='$CPP $CPPFLAGS'
12240ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12241ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12242ac_compiler_gnu=$ac_cv_c_compiler_gnu
12243
Torok Edwin871384f2010-01-26 08:50:50 +000012244 if test "$cross_compiling" = yes; then :
Reid Spencer8b93e7a2004-09-21 17:14:44 +000012245 ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000012246else
Torok Edwin871384f2010-01-26 08:50:50 +000012247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Reid Spencer777ce172004-09-20 04:09:56 +000012248/* end confdefs.h. */
12249
Torok Edwin871384f2010-01-26 08:50:50 +000012250
John Criswell7a73b802003-06-30 21:59:07 +000012251#include <sys/types.h>
John Criswell5ab73462003-10-09 15:44:28 +000012252#include <sys/mman.h>
John Criswell7a73b802003-06-30 21:59:07 +000012253#include <fcntl.h>
Reid Spencer777ce172004-09-20 04:09:56 +000012254
12255int
12256main ()
12257{
John Criswell7a73b802003-06-30 21:59:07 +000012258
12259 int fd;
Reid Spencer777ce172004-09-20 04:09:56 +000012260 fd = creat ("foo",0777);
12261 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
12262 unlink ("foo");
Reid Spencer8b93e7a2004-09-21 17:14:44 +000012263 return (fd != (int) MAP_FAILED);
Reid Spencer777ce172004-09-20 04:09:56 +000012264 ;
12265 return 0;
12266}
John Criswell7a73b802003-06-30 21:59:07 +000012267_ACEOF
Torok Edwin871384f2010-01-26 08:50:50 +000012268if ac_fn_c_try_run "$LINENO"; then :
John Criswell7a73b802003-06-30 21:59:07 +000012269 ac_cv_func_mmap_file=yes
12270else
Torok Edwin871384f2010-01-26 08:50:50 +000012271 ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000012272fi
Torok Edwin871384f2010-01-26 08:50:50 +000012273rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12274 conftest.$ac_objext conftest.beam conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000012275fi
Reid Spencera773bd52006-08-04 18:18:08 +000012276
John Criswell7a73b802003-06-30 21:59:07 +000012277 ac_ext=c
12278ac_cpp='$CPP $CPPFLAGS'
12279ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12280ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12281ac_compiler_gnu=$ac_cv_c_compiler_gnu
12282
12283
12284fi
Torok Edwin871384f2010-01-26 08:50:50 +000012285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_file" >&5
12286$as_echo "$ac_cv_func_mmap_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000012287if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000012288
Torok Edwin871384f2010-01-26 08:50:50 +000012289$as_echo "#define HAVE_MMAP_FILE /**/" >>confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +000012290
12291 MMAP_FILE=yes
12292
12293fi
12294
Torok Edwin871384f2010-01-26 08:50:50 +000012295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if /dev/zero is needed for mmap" >&5
12296$as_echo_n "checking if /dev/zero is needed for mmap... " >&6; }
12297if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then :
12298 $as_echo_n "(cached) " >&6
Reid Spencer7931a782004-12-27 06:15:02 +000012299else
Reid Spencer582a23c2004-12-29 07:07:57 +000012300 if test "$llvm_cv_os_type" = "Interix" ; then
Reid Spencer7931a782004-12-27 06:15:02 +000012301 ac_cv_need_dev_zero_for_mmap=yes
12302 else
12303 ac_cv_need_dev_zero_for_mmap=no
12304 fi
12305
12306fi
Torok Edwin871384f2010-01-26 08:50:50 +000012307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_need_dev_zero_for_mmap" >&5
12308$as_echo "$ac_cv_need_dev_zero_for_mmap" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000012309if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
12310
Torok Edwin871384f2010-01-26 08:50:50 +000012311$as_echo "#define NEED_DEV_ZERO_FOR_MMAP 1" >>confdefs.h
Reid Spencer7931a782004-12-27 06:15:02 +000012312
12313fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000012314
Reid Spencer30fe5262007-01-20 07:48:49 +000012315 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
12316 then
Torok Edwin871384f2010-01-26 08:50:50 +000012317 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: mmap() of a fixed address required but not supported" >&5
12318$as_echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000012319 fi
12320 if test "$ac_cv_func_mmap_file" = "no"
12321 then
Torok Edwin871384f2010-01-26 08:50:50 +000012322 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: mmap() of files required but not found" >&5
12323$as_echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000012324 fi
John Criswellb13092b2003-07-22 21:00:24 +000012325fi
John Criswell7a73b802003-06-30 21:59:07 +000012326
Torok Edwin871384f2010-01-26 08:50:50 +000012327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC atomic builtins" >&5
12328$as_echo_n "checking for GCC atomic builtins... " >&6; }
12329cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Owen Andersond4b272b2009-05-18 23:58:51 +000012330/* end confdefs.h. */
12331int main() {
Owen Andersona8603702009-05-19 22:18:56 +000012332 volatile unsigned long val = 1;
12333 __sync_synchronize();
12334 __sync_val_compare_and_swap(&val, 1, 0);
Owen Anderson9a3df672009-06-17 00:13:00 +000012335 __sync_add_and_fetch(&val, 1);
12336 __sync_sub_and_fetch(&val, 1);
Owen Andersona8603702009-05-19 22:18:56 +000012337 return 0;
12338 }
Owen Andersond4b272b2009-05-18 23:58:51 +000012339
12340_ACEOF
Torok Edwin871384f2010-01-26 08:50:50 +000012341if ac_fn_c_try_link "$LINENO"; then :
12342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12343$as_echo "yes" >&6; }
Owen Andersona8603702009-05-19 22:18:56 +000012344
Torok Edwin871384f2010-01-26 08:50:50 +000012345$as_echo "#define LLVM_MULTITHREADED 1" >>confdefs.h
Owen Andersona8603702009-05-19 22:18:56 +000012346
Owen Andersond4b272b2009-05-18 23:58:51 +000012347else
Torok Edwin871384f2010-01-26 08:50:50 +000012348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12349$as_echo "no" >&6; }
Owen Andersond4b272b2009-05-18 23:58:51 +000012350
Torok Edwin871384f2010-01-26 08:50:50 +000012351$as_echo "#define LLVM_MULTITHREADED 0" >>confdefs.h
Owen Andersond4b272b2009-05-18 23:58:51 +000012352
Torok Edwin871384f2010-01-26 08:50:50 +000012353 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
12354$as_echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
Owen Andersond4b272b2009-05-18 23:58:51 +000012355fi
Owen Andersond4b272b2009-05-18 23:58:51 +000012356rm -f core conftest.err conftest.$ac_objext \
Torok Edwin871384f2010-01-26 08:50:50 +000012357 conftest$ac_exeext conftest.$ac_ext
Owen Andersond4b272b2009-05-18 23:58:51 +000012358
12359
John Criswell7a73b802003-06-30 21:59:07 +000012360
Nick Lewycky4372e692009-09-29 06:18:23 +000012361if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
Torok Edwin871384f2010-01-26 08:50:50 +000012362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 32-bit userspace on 64-bit system" >&5
12363$as_echo_n "checking for 32-bit userspace on 64-bit system... " >&6; }
12364if test "${llvm_cv_linux_mixed+set}" = set; then :
12365 $as_echo_n "(cached) " >&6
Nick Lewycky4372e692009-09-29 06:18:23 +000012366else
12367 ac_ext=c
12368ac_cpp='$CPP $CPPFLAGS'
12369ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12370ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12371ac_compiler_gnu=$ac_cv_c_compiler_gnu
12372
Torok Edwin871384f2010-01-26 08:50:50 +000012373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Nick Lewycky4372e692009-09-29 06:18:23 +000012374/* end confdefs.h. */
12375#ifndef __x86_64__
12376 error: Not x86-64 even if uname says so!
12377 #endif
12378
12379int
12380main ()
12381{
12382
12383 ;
12384 return 0;
12385}
12386_ACEOF
Torok Edwin871384f2010-01-26 08:50:50 +000012387if ac_fn_c_try_compile "$LINENO"; then :
Nick Lewycky4372e692009-09-29 06:18:23 +000012388 llvm_cv_linux_mixed=no
12389else
Torok Edwin871384f2010-01-26 08:50:50 +000012390 llvm_cv_linux_mixed=yes
Nick Lewycky4372e692009-09-29 06:18:23 +000012391fi
Nick Lewycky4372e692009-09-29 06:18:23 +000012392rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12393 ac_ext=c
12394ac_cpp='$CPP $CPPFLAGS'
12395ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12396ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12397ac_compiler_gnu=$ac_cv_c_compiler_gnu
12398
12399
12400fi
Torok Edwin871384f2010-01-26 08:50:50 +000012401{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $llvm_cv_linux_mixed" >&5
12402$as_echo "$llvm_cv_linux_mixed" >&6; }
Nick Lewycky4372e692009-09-29 06:18:23 +000012403
12404 if test "$llvm_cv_linux_mixed" = "yes"; then
12405 llvm_cv_target_arch="x86"
12406 ARCH="x86"
12407 fi
12408fi
12409
Reid Spencer9372f152007-07-30 20:13:24 +000012410for ac_func in __dso_handle
Torok Edwin871384f2010-01-26 08:50:50 +000012411do :
12412 ac_fn_c_check_func "$LINENO" "__dso_handle" "ac_cv_func___dso_handle"
12413if test "x$ac_cv_func___dso_handle" = x""yes; then :
Reid Spencer9372f152007-07-30 20:13:24 +000012414 cat >>confdefs.h <<_ACEOF
Torok Edwin871384f2010-01-26 08:50:50 +000012415#define HAVE___DSO_HANDLE 1
Reid Spencer9372f152007-07-30 20:13:24 +000012416_ACEOF
12417
12418fi
12419done
12420
12421
Torok Edwin871384f2010-01-26 08:50:50 +000012422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether llvm-gcc is sane" >&5
12423$as_echo_n "checking whether llvm-gcc is sane... " >&6; }
12424if test "${llvm_cv_llvmgcc_sanity+set}" = set; then :
12425 $as_echo_n "(cached) " >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000012426else
12427 llvm_cv_llvmgcc_sanity="no"
Reid Spencer502935f2004-12-22 05:56:56 +000012428if test -x "$LLVMGCC" ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000012429 cp /dev/null conftest.c
Reid Spencer585e0882007-03-29 15:38:33 +000012430 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
12431 grep 'target datalayout =' > /dev/null 2>&1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000012432 if test $? -eq 0 ; then
12433 llvm_cv_llvmgcc_sanity="yes"
12434 fi
12435 rm conftest.c
Brian Gaekef3b24102003-11-16 18:38:14 +000012436fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000012437fi
Torok Edwin871384f2010-01-26 08:50:50 +000012438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $llvm_cv_llvmgcc_sanity" >&5
12439$as_echo "$llvm_cv_llvmgcc_sanity" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000012440
12441if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
Torok Edwin871384f2010-01-26 08:50:50 +000012442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking llvm-gcc component support" >&5
12443$as_echo_n "checking llvm-gcc component support... " >&6; }
Reid Spencer502935f2004-12-22 05:56:56 +000012444 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000012445 LLVMCC1=$llvmcc1path
12446
Reid Spencer502935f2004-12-22 05:56:56 +000012447 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000012448 LLVMCC1PLUS=$llvmcc1pluspath
12449
Reid Spencer502935f2004-12-22 05:56:56 +000012450 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
12451 LLVMGCCDIR=$llvmgccdir
12452
Reid Spencer282d8c12006-12-21 22:55:41 +000012453 llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
12454 LLVMGCCLIBEXEC=$llvmgcclibexec
12455
Reid Spencerb5d75b82006-05-09 00:31:01 +000012456 llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
Reid Spencer7917d3a2006-04-06 22:00:36 +000012457 llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
12458 LLVMGCC_VERSION=$llvmgccversion
12459
12460 LLVMGCC_MAJVERS=$llvmgccmajvers
12461
Tanya Lattnerf85e74c2008-10-07 22:21:03 +000012462 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
Reid Spencer0d238182007-04-21 21:28:52 +000012463 LLVMGCC_LANGS=$llvmgcclangs
12464
Torok Edwin871384f2010-01-26 08:50:50 +000012465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12466$as_echo "ok" >&6; }
Brian Gaekef3b24102003-11-16 18:38:14 +000012467fi
12468
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012469SHLIBEXT=$libltdl_cv_shlibext
Brian Gaeke554831c2004-01-21 19:39:29 +000012470
12471
Reid Spencere9de0912004-08-20 09:03:57 +000012472# Translate the various configuration directories and other basic
Reid Spencer5e1d9a52004-11-25 04:51:04 +000012473# information into substitutions that will end up in Makefile.config.in
12474# that these configured values can be used by the makefiles
Jeff Cohen28783c32007-01-12 18:22:38 +000012475if test "${prefix}" = "NONE" ; then
Reid Spencer05828872006-05-16 08:53:32 +000012476 prefix="/usr/local"
12477fi
Reid Spencere9de0912004-08-20 09:03:57 +000012478eval LLVM_PREFIX="${prefix}";
12479eval LLVM_BINDIR="${prefix}/bin";
12480eval LLVM_LIBDIR="${prefix}/lib";
Reid Spencer1f319422004-11-29 04:56:35 +000012481eval LLVM_DATADIR="${prefix}/share/llvm";
12482eval LLVM_DOCSDIR="${prefix}/docs/llvm";
12483eval LLVM_ETCDIR="${prefix}/etc/llvm";
Reid Spencere9de0912004-08-20 09:03:57 +000012484eval LLVM_INCLUDEDIR="${prefix}/include";
12485eval LLVM_INFODIR="${prefix}/info";
12486eval LLVM_MANDIR="${prefix}/man";
12487LLVM_CONFIGTIME=`date`
12488
12489
12490
12491
12492
12493
12494
12495
12496
12497
12498
Reid Spencer5e1d9a52004-11-25 04:51:04 +000012499# Place the various directores into the config.h file as #defines so that we
12500# can know about the installation paths within LLVM.
12501
Reid Spencere9de0912004-08-20 09:03:57 +000012502cat >>confdefs.h <<_ACEOF
12503#define LLVM_PREFIX "$LLVM_PREFIX"
12504_ACEOF
12505
12506
12507cat >>confdefs.h <<_ACEOF
12508#define LLVM_BINDIR "$LLVM_BINDIR"
12509_ACEOF
12510
12511
12512cat >>confdefs.h <<_ACEOF
12513#define LLVM_LIBDIR "$LLVM_LIBDIR"
12514_ACEOF
12515
12516
12517cat >>confdefs.h <<_ACEOF
12518#define LLVM_DATADIR "$LLVM_DATADIR"
12519_ACEOF
12520
12521
12522cat >>confdefs.h <<_ACEOF
Gordon Henriksen0abe1162007-10-03 12:07:14 +000012523#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000012524_ACEOF
12525
12526
12527cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000012528#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000012529_ACEOF
12530
12531
12532cat >>confdefs.h <<_ACEOF
12533#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
12534_ACEOF
12535
12536
12537cat >>confdefs.h <<_ACEOF
12538#define LLVM_INFODIR "$LLVM_INFODIR"
12539_ACEOF
12540
12541
12542cat >>confdefs.h <<_ACEOF
12543#define LLVM_MANDIR "$LLVM_MANDIR"
12544_ACEOF
12545
12546
12547cat >>confdefs.h <<_ACEOF
12548#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
12549_ACEOF
12550
12551
Eric Christopher790e11c2007-12-01 00:34:39 +000012552cat >>confdefs.h <<_ACEOF
12553#define LLVM_HOSTTRIPLE "$host"
12554_ACEOF
12555
12556
Gordon Henriksenc0efff82007-10-02 09:50:32 +000012557# Determine which bindings to build.
12558if test "$BINDINGS_TO_BUILD" = auto ; then
12559 BINDINGS_TO_BUILD=""
12560 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
12561 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
12562 fi
12563fi
12564BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
12565
12566
12567# This isn't really configurey, but it avoids having to repeat the list in
12568# other files.
12569ALL_BINDINGS=ocaml
12570
12571
Gordon Henriksenf0915682007-10-02 16:42:22 +000012572# Do any work necessary to ensure that bindings have what they need.
12573binding_prereqs_failed=0
12574for a_binding in $BINDINGS_TO_BUILD ; do
12575 case "$a_binding" in
12576 ocaml)
12577 if test "x$OCAMLC" = x ; then
Torok Edwin871384f2010-01-26 08:50:50 +000012578 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
12579$as_echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
Gordon Henriksenf0915682007-10-02 16:42:22 +000012580 binding_prereqs_failed=1
12581 fi
12582 if test "x$OCAMLDEP" = x ; then
Torok Edwin871384f2010-01-26 08:50:50 +000012583 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
12584$as_echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
Gordon Henriksenf0915682007-10-02 16:42:22 +000012585 binding_prereqs_failed=1
12586 fi
12587 if test "x$OCAMLOPT" = x ; then
Torok Edwin871384f2010-01-26 08:50:50 +000012588 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
12589$as_echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
Gordon Henriksenf0915682007-10-02 16:42:22 +000012590 fi
12591 if test "x$with_ocaml_libdir" != xauto ; then
12592 OCAML_LIBDIR=$with_ocaml_libdir
12593
12594 else
12595 ocaml_stdlib="`"$OCAMLC" -where`"
12596 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
12597 then
12598 # ocaml stdlib is beneath our prefix; use stdlib
12599 OCAML_LIBDIR=$ocaml_stdlib
12600
12601 else
12602 # ocaml stdlib is outside our prefix; use libdir/ocaml
12603 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
12604
12605 fi
12606 fi
12607 ;;
12608 esac
12609done
12610if test "$binding_prereqs_failed" = 1 ; then
Torok Edwin871384f2010-01-26 08:50:50 +000012611 as_fn_error "Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." "$LINENO" 5
Gordon Henriksenf0915682007-10-02 16:42:22 +000012612fi
12613
Torok Edwin871384f2010-01-26 08:50:50 +000012614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler -fvisibility-inlines-hidden option" >&5
12615$as_echo_n "checking for compiler -fvisibility-inlines-hidden option... " >&6; }
12616if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then :
12617 $as_echo_n "(cached) " >&6
Daniel Dunbardcf114e2008-08-30 01:16:19 +000012618else
12619 ac_ext=cpp
12620ac_cpp='$CXXCPP $CPPFLAGS'
12621ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12622ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12623ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12624
12625 oldcxxflags="$CXXFLAGS"
12626 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
Torok Edwin871384f2010-01-26 08:50:50 +000012627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Daniel Dunbardcf114e2008-08-30 01:16:19 +000012628/* end confdefs.h. */
12629
12630int
12631main ()
12632{
12633
12634 ;
12635 return 0;
12636}
12637_ACEOF
Torok Edwin871384f2010-01-26 08:50:50 +000012638if ac_fn_cxx_try_compile "$LINENO"; then :
Daniel Dunbardcf114e2008-08-30 01:16:19 +000012639 llvm_cv_cxx_visibility_inlines_hidden=yes
12640else
Torok Edwin871384f2010-01-26 08:50:50 +000012641 llvm_cv_cxx_visibility_inlines_hidden=no
Daniel Dunbardcf114e2008-08-30 01:16:19 +000012642fi
Daniel Dunbardcf114e2008-08-30 01:16:19 +000012643rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12644 CXXFLAGS="$oldcxxflags"
12645 ac_ext=c
12646ac_cpp='$CPP $CPPFLAGS'
12647ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12648ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12649ac_compiler_gnu=$ac_cv_c_compiler_gnu
12650
12651
12652fi
Torok Edwin871384f2010-01-26 08:50:50 +000012653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
12654$as_echo "$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
Daniel Dunbardcf114e2008-08-30 01:16:19 +000012655if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
12656 ENABLE_VISIBILITY_INLINES_HIDDEN=1
12657
12658else
12659 ENABLE_VISIBILITY_INLINES_HIDDEN=0
12660
12661fi
12662
Gordon Henriksenf0915682007-10-02 16:42:22 +000012663
Nick Lewycky731c6ab2009-03-05 08:20:44 +000012664if test "$llvm_cv_link_use_r" = "yes" ; then
12665 RPATH="-Wl,-R"
12666else
12667 RPATH="-Wl,-rpath"
12668fi
12669
12670
12671if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
12672 RDYNAMIC="-Wl,-export-dynamic"
12673else
12674 RDYNAMIC=""
12675fi
Nick Lewyckye9821dc2009-03-03 04:55:29 +000012676
12677
Reid Spencer5e1d9a52004-11-25 04:51:04 +000012678
Reid Spencera773bd52006-08-04 18:18:08 +000012679ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000012680
Douglas Gregor1555a232009-06-16 20:12:29 +000012681ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
12682
12683ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
12684
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000012685ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
12686
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000012687ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
12688
Chandler Carruth8b67f772009-10-26 01:35:46 +000012689ac_config_headers="$ac_config_headers include/llvm/System/DataTypes.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000012690
Reid Spencer5e1d9a52004-11-25 04:51:04 +000012691
Reid Spencera773bd52006-08-04 18:18:08 +000012692ac_config_files="$ac_config_files Makefile.config"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000012693
12694
Reid Spencerea949cf2006-08-16 00:45:38 +000012695ac_config_files="$ac_config_files llvm.spec"
12696
12697
Reid Spencera773bd52006-08-04 18:18:08 +000012698ac_config_files="$ac_config_files docs/doxygen.cfg"
Reid Spencer1f319422004-11-29 04:56:35 +000012699
12700
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000012701ac_config_files="$ac_config_files tools/llvmc/plugins/Base/Base.td"
12702
12703
Reid Spencera773bd52006-08-04 18:18:08 +000012704ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
Reid Spencerf2722ca2006-03-22 15:59:55 +000012705
12706
Reid Spencera773bd52006-08-04 18:18:08 +000012707ac_config_commands="$ac_config_commands setup"
Reid Spencerc0682832005-02-24 19:05:19 +000012708
Reid Spencera773bd52006-08-04 18:18:08 +000012709ac_config_commands="$ac_config_commands Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000012710
12711
Reid Spencera773bd52006-08-04 18:18:08 +000012712ac_config_commands="$ac_config_commands Makefile.common"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000012713
12714
Reid Spencera773bd52006-08-04 18:18:08 +000012715ac_config_commands="$ac_config_commands examples/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000012716
12717
Reid Spencera773bd52006-08-04 18:18:08 +000012718ac_config_commands="$ac_config_commands lib/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000012719
12720
Reid Spencer8b2e1412006-11-17 03:32:33 +000012721ac_config_commands="$ac_config_commands runtime/Makefile"
12722
12723
Reid Spencera773bd52006-08-04 18:18:08 +000012724ac_config_commands="$ac_config_commands test/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000012725
12726
Reid Spencera773bd52006-08-04 18:18:08 +000012727ac_config_commands="$ac_config_commands test/Makefile.tests"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000012728
12729
Bill Wendlingf24eb392009-01-04 23:12:30 +000012730ac_config_commands="$ac_config_commands unittests/Makefile"
12731
12732
Reid Spencera773bd52006-08-04 18:18:08 +000012733ac_config_commands="$ac_config_commands tools/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000012734
12735
Reid Spencera773bd52006-08-04 18:18:08 +000012736ac_config_commands="$ac_config_commands utils/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000012737
12738
Reid Spencera773bd52006-08-04 18:18:08 +000012739ac_config_commands="$ac_config_commands projects/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000012740
12741
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000012742ac_config_commands="$ac_config_commands bindings/Makefile"
12743
12744
12745ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
12746
12747
Reid Spencer5e1d9a52004-11-25 04:51:04 +000012748
John Criswell7a73b802003-06-30 21:59:07 +000012749cat >confcache <<\_ACEOF
12750# This file is a shell script that caches the results of configure
12751# tests run on this system so they can be shared between configure
12752# scripts and configure runs, see configure's option --config-cache.
12753# It is not useful on other systems. If it contains results you don't
12754# want to keep, you may remove or edit it.
12755#
12756# config.status only pays attention to the cache file if you give it
12757# the --recheck option to rerun configure.
12758#
John Criswell0c38eaf2003-09-10 15:17:25 +000012759# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000012760# loading this file, other *unset* `ac_cv_foo' will be assigned the
12761# following values.
12762
12763_ACEOF
12764
12765# The following way of writing the cache mishandles newlines in values,
12766# but we know of no workaround that is simple, portable, and efficient.
Reid Spencera773bd52006-08-04 18:18:08 +000012767# So, we kill variables containing newlines.
John Criswell7a73b802003-06-30 21:59:07 +000012768# Ultrix sh set writes to stderr and can't be redirected directly,
12769# and sets the high bit in the cache file unless we assign to the vars.
Reid Spencera773bd52006-08-04 18:18:08 +000012770(
12771 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12772 eval ac_val=\$$ac_var
12773 case $ac_val in #(
12774 *${as_nl}*)
12775 case $ac_var in #(
Torok Edwin871384f2010-01-26 08:50:50 +000012776 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12777$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
Reid Spencera773bd52006-08-04 18:18:08 +000012778 esac
12779 case $ac_var in #(
12780 _ | IFS | as_nl) ;; #(
Torok Edwin871384f2010-01-26 08:50:50 +000012781 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12782 *) { eval $ac_var=; unset $ac_var;} ;;
Reid Spencera773bd52006-08-04 18:18:08 +000012783 esac ;;
12784 esac
12785 done
12786
John Criswell7a73b802003-06-30 21:59:07 +000012787 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +000012788 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12789 *${as_nl}ac_space=\ *)
Torok Edwin871384f2010-01-26 08:50:50 +000012790 # `set' does not quote correctly, so add quotes: double-quote
12791 # substitution turns \\\\ into \\, and sed turns \\ into \.
John Criswell7a73b802003-06-30 21:59:07 +000012792 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000012793 "s/'/'\\\\''/g;
12794 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Reid Spencera773bd52006-08-04 18:18:08 +000012795 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +000012796 *)
12797 # `set' quotes correctly as required by POSIX, so do not add quotes.
Reid Spencera773bd52006-08-04 18:18:08 +000012798 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +000012799 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000012800 esac |
12801 sort
12802) |
John Criswell7a73b802003-06-30 21:59:07 +000012803 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000012804 /^ac_cv_env_/b end
John Criswell7a73b802003-06-30 21:59:07 +000012805 t clear
Reid Spencera773bd52006-08-04 18:18:08 +000012806 :clear
John Criswell7a73b802003-06-30 21:59:07 +000012807 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12808 t end
Reid Spencera773bd52006-08-04 18:18:08 +000012809 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12810 :end' >>confcache
12811if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12812 if test -w "$cache_file"; then
12813 test "x$cache_file" != "x/dev/null" &&
Torok Edwin871384f2010-01-26 08:50:50 +000012814 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12815$as_echo "$as_me: updating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000012816 cat confcache >$cache_file
12817 else
Torok Edwin871384f2010-01-26 08:50:50 +000012818 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12819$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000012820 fi
12821fi
12822rm -f confcache
12823
12824test "x$prefix" = xNONE && prefix=$ac_default_prefix
12825# Let make expand exec_prefix.
12826test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12827
John Criswell7a73b802003-06-30 21:59:07 +000012828DEFS=-DHAVE_CONFIG_H
12829
John Criswell0c38eaf2003-09-10 15:17:25 +000012830ac_libobjs=
12831ac_ltlibobjs=
12832for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12833 # 1. Remove the extension, and $U if already installed.
Reid Spencera773bd52006-08-04 18:18:08 +000012834 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Torok Edwin871384f2010-01-26 08:50:50 +000012835 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
Reid Spencera773bd52006-08-04 18:18:08 +000012836 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12837 # will be set to the directory where LIBOBJS objects are built.
Torok Edwin871384f2010-01-26 08:50:50 +000012838 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12839 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
John Criswell0c38eaf2003-09-10 15:17:25 +000012840done
12841LIBOBJS=$ac_libobjs
12842
12843LTLIBOBJS=$ac_ltlibobjs
12844
12845
Torok Edwin871384f2010-01-26 08:50:50 +000012846
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012847if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
Torok Edwin871384f2010-01-26 08:50:50 +000012848 as_fn_error "conditional \"INSTALL_LTDL\" was never defined.
12849Usually this means the macro was only invoked conditionally." "$LINENO" 5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012850fi
12851if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
Torok Edwin871384f2010-01-26 08:50:50 +000012852 as_fn_error "conditional \"CONVENIENCE_LTDL\" was never defined.
12853Usually this means the macro was only invoked conditionally." "$LINENO" 5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012854fi
John Criswell7a73b802003-06-30 21:59:07 +000012855
12856: ${CONFIG_STATUS=./config.status}
Torok Edwin871384f2010-01-26 08:50:50 +000012857ac_write_fail=0
John Criswell7a73b802003-06-30 21:59:07 +000012858ac_clean_files_save=$ac_clean_files
12859ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Torok Edwin871384f2010-01-26 08:50:50 +000012860{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12861$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12862as_write_fail=0
12863cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
John Criswell7a73b802003-06-30 21:59:07 +000012864#! $SHELL
12865# Generated by $as_me.
12866# Run this file to recreate the current configuration.
12867# Compiler output produced by configure, useful for debugging
12868# configure, is in config.log if it exists.
12869
12870debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000012871ac_cs_recheck=false
12872ac_cs_silent=false
Torok Edwin871384f2010-01-26 08:50:50 +000012873
John Criswell7a73b802003-06-30 21:59:07 +000012874SHELL=\${CONFIG_SHELL-$SHELL}
Torok Edwin871384f2010-01-26 08:50:50 +000012875export SHELL
12876_ASEOF
12877cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12878## -------------------- ##
12879## M4sh Initialization. ##
12880## -------------------- ##
John Criswell7a73b802003-06-30 21:59:07 +000012881
Torok Edwin871384f2010-01-26 08:50:50 +000012882# Be more Bourne compatible
12883DUALCASE=1; export DUALCASE # for MKS sh
12884if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
John Criswell7a73b802003-06-30 21:59:07 +000012885 emulate sh
12886 NULLCMD=:
Torok Edwin871384f2010-01-26 08:50:50 +000012887 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
John Criswell0c38eaf2003-09-10 15:17:25 +000012888 # is contrary to our usage. Disable this feature.
12889 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000012890 setopt NO_GLOB_SUBST
12891else
Torok Edwin871384f2010-01-26 08:50:50 +000012892 case `(set -o) 2>/dev/null` in #(
12893 *posix*) :
12894 set -o posix ;; #(
12895 *) :
12896 ;;
12897esac
John Criswell7a73b802003-06-30 21:59:07 +000012898fi
12899
John Criswell7a73b802003-06-30 21:59:07 +000012900
Torok Edwin871384f2010-01-26 08:50:50 +000012901as_nl='
12902'
12903export as_nl
12904# Printing a long string crashes Solaris 7 /usr/bin/printf.
12905as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12906as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12907as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12908# Prefer a ksh shell builtin over an external printf program on Solaris,
12909# but without wasting forks for bash or zsh.
12910if test -z "$BASH_VERSION$ZSH_VERSION" \
12911 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12912 as_echo='print -r --'
12913 as_echo_n='print -rn --'
12914elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12915 as_echo='printf %s\n'
12916 as_echo_n='printf %s'
12917else
12918 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12919 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12920 as_echo_n='/usr/ucb/echo -n'
12921 else
12922 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12923 as_echo_n_body='eval
12924 arg=$1;
12925 case $arg in #(
12926 *"$as_nl"*)
12927 expr "X$arg" : "X\\(.*\\)$as_nl";
12928 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12929 esac;
12930 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12931 '
12932 export as_echo_n_body
12933 as_echo_n='sh -c $as_echo_n_body as_echo'
12934 fi
12935 export as_echo_body
12936 as_echo='sh -c $as_echo_body as_echo'
12937fi
John Criswell7a73b802003-06-30 21:59:07 +000012938
12939# The user is always right.
12940if test "${PATH_SEPARATOR+set}" != set; then
Torok Edwin871384f2010-01-26 08:50:50 +000012941 PATH_SEPARATOR=:
12942 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12943 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12944 PATH_SEPARATOR=';'
12945 }
Reid Spencera773bd52006-08-04 18:18:08 +000012946fi
John Criswell7a73b802003-06-30 21:59:07 +000012947
Reid Spencera773bd52006-08-04 18:18:08 +000012948
12949# IFS
12950# We need space, tab and new line, in precisely that order. Quoting is
12951# there to prevent editors from complaining about space-tab.
12952# (If _AS_PATH_WALK were called with IFS unset, it would disable word
12953# splitting by setting IFS to empty value.)
Reid Spencera773bd52006-08-04 18:18:08 +000012954IFS=" "" $as_nl"
12955
12956# Find who we are. Look in the path if we contain no directory separator.
Torok Edwin871384f2010-01-26 08:50:50 +000012957case $0 in #((
Reid Spencera773bd52006-08-04 18:18:08 +000012958 *[\\/]* ) as_myself=$0 ;;
12959 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +000012960for as_dir in $PATH
12961do
12962 IFS=$as_save_IFS
12963 test -z "$as_dir" && as_dir=.
Torok Edwin871384f2010-01-26 08:50:50 +000012964 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12965 done
Reid Spencera773bd52006-08-04 18:18:08 +000012966IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000012967
Reid Spencera773bd52006-08-04 18:18:08 +000012968 ;;
12969esac
12970# We did not find ourselves, most probably we were run as `sh COMMAND'
12971# in which case we are not to be found in the path.
12972if test "x$as_myself" = x; then
12973 as_myself=$0
12974fi
12975if test ! -f "$as_myself"; then
Torok Edwin871384f2010-01-26 08:50:50 +000012976 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12977 exit 1
Reid Spencera773bd52006-08-04 18:18:08 +000012978fi
12979
Torok Edwin871384f2010-01-26 08:50:50 +000012980# Unset variables that we do not need and which cause bugs (e.g. in
12981# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12982# suppresses any "Segmentation fault" message there. '((' could
12983# trigger a bug in pdksh 5.2.14.
12984for as_var in BASH_ENV ENV MAIL MAILPATH
12985do eval test x\${$as_var+set} = xset \
12986 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
Reid Spencera773bd52006-08-04 18:18:08 +000012987done
12988PS1='$ '
12989PS2='> '
12990PS4='+ '
12991
12992# NLS nuisances.
Torok Edwin871384f2010-01-26 08:50:50 +000012993LC_ALL=C
12994export LC_ALL
12995LANGUAGE=C
12996export LANGUAGE
Reid Spencera773bd52006-08-04 18:18:08 +000012997
Torok Edwin871384f2010-01-26 08:50:50 +000012998# CDPATH.
12999(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13000
13001
13002# as_fn_error ERROR [LINENO LOG_FD]
13003# ---------------------------------
13004# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13005# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13006# script with status $?, using 1 if that was 0.
13007as_fn_error ()
13008{
13009 as_status=$?; test $as_status -eq 0 && as_status=1
13010 if test "$3"; then
13011 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13012 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
13013 fi
13014 $as_echo "$as_me: error: $1" >&2
13015 as_fn_exit $as_status
13016} # as_fn_error
13017
13018
13019# as_fn_set_status STATUS
13020# -----------------------
13021# Set $? to STATUS, without forking.
13022as_fn_set_status ()
13023{
13024 return $1
13025} # as_fn_set_status
13026
13027# as_fn_exit STATUS
13028# -----------------
13029# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13030as_fn_exit ()
13031{
13032 set +e
13033 as_fn_set_status $1
13034 exit $1
13035} # as_fn_exit
13036
13037# as_fn_unset VAR
13038# ---------------
13039# Portably unset VAR.
13040as_fn_unset ()
13041{
13042 { eval $1=; unset $1;}
13043}
13044as_unset=as_fn_unset
13045# as_fn_append VAR VALUE
13046# ----------------------
13047# Append the text in VALUE to the end of the definition contained in VAR. Take
13048# advantage of any shell optimizations that allow amortized linear growth over
13049# repeated appends, instead of the typical quadratic growth present in naive
13050# implementations.
13051if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13052 eval 'as_fn_append ()
13053 {
13054 eval $1+=\$2
13055 }'
13056else
13057 as_fn_append ()
13058 {
13059 eval $1=\$$1\$2
13060 }
13061fi # as_fn_append
13062
13063# as_fn_arith ARG...
13064# ------------------
13065# Perform arithmetic evaluation on the ARGs, and store the result in the
13066# global $as_val. Take advantage of shells that can avoid forks. The arguments
13067# must be portable across $(()) and expr.
13068if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13069 eval 'as_fn_arith ()
13070 {
13071 as_val=$(( $* ))
13072 }'
13073else
13074 as_fn_arith ()
13075 {
13076 as_val=`expr "$@" || test $? -eq 1`
13077 }
13078fi # as_fn_arith
13079
13080
Reid Spencera773bd52006-08-04 18:18:08 +000013081if expr a : '\(a\)' >/dev/null 2>&1 &&
13082 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13083 as_expr=expr
13084else
13085 as_expr=false
13086fi
13087
13088if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13089 as_basename=basename
13090else
13091 as_basename=false
13092fi
13093
Torok Edwin871384f2010-01-26 08:50:50 +000013094if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13095 as_dirname=dirname
13096else
13097 as_dirname=false
13098fi
Reid Spencera773bd52006-08-04 18:18:08 +000013099
Reid Spencera773bd52006-08-04 18:18:08 +000013100as_me=`$as_basename -- "$0" ||
13101$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13102 X"$0" : 'X\(//\)$' \| \
13103 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Torok Edwin871384f2010-01-26 08:50:50 +000013104$as_echo X/"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +000013105 sed '/^.*\/\([^/][^/]*\)\/*$/{
13106 s//\1/
13107 q
13108 }
13109 /^X\/\(\/\/\)$/{
13110 s//\1/
13111 q
13112 }
13113 /^X\/\(\/\).*/{
13114 s//\1/
13115 q
13116 }
13117 s/.*/./; q'`
13118
Torok Edwin871384f2010-01-26 08:50:50 +000013119# Avoid depending upon Character Ranges.
13120as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13121as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13122as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13123as_cr_digits='0123456789'
13124as_cr_alnum=$as_cr_Letters$as_cr_digits
Reid Spencera773bd52006-08-04 18:18:08 +000013125
13126ECHO_C= ECHO_N= ECHO_T=
Torok Edwin871384f2010-01-26 08:50:50 +000013127case `echo -n x` in #(((((
Reid Spencera773bd52006-08-04 18:18:08 +000013128-n*)
Torok Edwin871384f2010-01-26 08:50:50 +000013129 case `echo 'xy\c'` in
Reid Spencera773bd52006-08-04 18:18:08 +000013130 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Torok Edwin871384f2010-01-26 08:50:50 +000013131 xy) ECHO_C='\c';;
13132 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13133 ECHO_T=' ';;
Reid Spencera773bd52006-08-04 18:18:08 +000013134 esac;;
13135*)
13136 ECHO_N='-n';;
John Criswell7a73b802003-06-30 21:59:07 +000013137esac
13138
John Criswell7a73b802003-06-30 21:59:07 +000013139rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +000013140if test -d conf$$.dir; then
13141 rm -f conf$$.dir/conf$$.file
13142else
13143 rm -f conf$$.dir
Torok Edwin871384f2010-01-26 08:50:50 +000013144 mkdir conf$$.dir 2>/dev/null
Reid Spencera773bd52006-08-04 18:18:08 +000013145fi
Torok Edwin871384f2010-01-26 08:50:50 +000013146if (echo >conf$$.file) 2>/dev/null; then
13147 if ln -s conf$$.file conf$$ 2>/dev/null; then
13148 as_ln_s='ln -s'
13149 # ... but there are two gotchas:
13150 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13151 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13152 # In both cases, we have to default to `cp -p'.
13153 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13154 as_ln_s='cp -p'
13155 elif ln conf$$.file conf$$ 2>/dev/null; then
13156 as_ln_s=ln
13157 else
John Criswell7a73b802003-06-30 21:59:07 +000013158 as_ln_s='cp -p'
Torok Edwin871384f2010-01-26 08:50:50 +000013159 fi
John Criswell7a73b802003-06-30 21:59:07 +000013160else
13161 as_ln_s='cp -p'
13162fi
Reid Spencera773bd52006-08-04 18:18:08 +000013163rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13164rmdir conf$$.dir 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000013165
Torok Edwin871384f2010-01-26 08:50:50 +000013166
13167# as_fn_mkdir_p
13168# -------------
13169# Create "$as_dir" as a directory, including parents if necessary.
13170as_fn_mkdir_p ()
13171{
13172
13173 case $as_dir in #(
13174 -*) as_dir=./$as_dir;;
13175 esac
13176 test -d "$as_dir" || eval $as_mkdir_p || {
13177 as_dirs=
13178 while :; do
13179 case $as_dir in #(
13180 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13181 *) as_qdir=$as_dir;;
13182 esac
13183 as_dirs="'$as_qdir' $as_dirs"
13184 as_dir=`$as_dirname -- "$as_dir" ||
13185$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13186 X"$as_dir" : 'X\(//\)[^/]' \| \
13187 X"$as_dir" : 'X\(//\)$' \| \
13188 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13189$as_echo X"$as_dir" |
13190 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13191 s//\1/
13192 q
13193 }
13194 /^X\(\/\/\)[^/].*/{
13195 s//\1/
13196 q
13197 }
13198 /^X\(\/\/\)$/{
13199 s//\1/
13200 q
13201 }
13202 /^X\(\/\).*/{
13203 s//\1/
13204 q
13205 }
13206 s/.*/./; q'`
13207 test -d "$as_dir" && break
13208 done
13209 test -z "$as_dirs" || eval "mkdir $as_dirs"
13210 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
13211
13212
13213} # as_fn_mkdir_p
John Criswell0c38eaf2003-09-10 15:17:25 +000013214if mkdir -p . 2>/dev/null; then
Torok Edwin871384f2010-01-26 08:50:50 +000013215 as_mkdir_p='mkdir -p "$as_dir"'
John Criswell0c38eaf2003-09-10 15:17:25 +000013216else
Reid Spencer2706f8c2004-09-19 23:53:36 +000013217 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000013218 as_mkdir_p=false
13219fi
13220
Torok Edwin871384f2010-01-26 08:50:50 +000013221if test -x / >/dev/null 2>&1; then
13222 as_test_x='test -x'
Reid Spencera773bd52006-08-04 18:18:08 +000013223else
Torok Edwin871384f2010-01-26 08:50:50 +000013224 if ls -dL / >/dev/null 2>&1; then
13225 as_ls_L_option=L
13226 else
13227 as_ls_L_option=
13228 fi
13229 as_test_x='
13230 eval sh -c '\''
13231 if test -d "$1"; then
13232 test -d "$1/.";
13233 else
13234 case $1 in #(
13235 -*)set "./$1";;
13236 esac;
13237 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
13238 ???[sx]*):;;*)false;;esac;fi
13239 '\'' sh
13240 '
Reid Spencera773bd52006-08-04 18:18:08 +000013241fi
Torok Edwin871384f2010-01-26 08:50:50 +000013242as_executable_p=$as_test_x
John Criswell7a73b802003-06-30 21:59:07 +000013243
13244# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000013245as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000013246
13247# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000013248as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000013249
13250
John Criswell7a73b802003-06-30 21:59:07 +000013251exec 6>&1
Torok Edwin871384f2010-01-26 08:50:50 +000013252## ----------------------------------- ##
13253## Main body of $CONFIG_STATUS script. ##
13254## ----------------------------------- ##
13255_ASEOF
13256test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
John Criswell7a73b802003-06-30 21:59:07 +000013257
Torok Edwin871384f2010-01-26 08:50:50 +000013258cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13259# Save the log message, to keep $0 and so on meaningful, and to
John Criswell7a73b802003-06-30 21:59:07 +000013260# report actual input values of CONFIG_FILES etc. instead of their
Reid Spencera773bd52006-08-04 18:18:08 +000013261# values after options handling.
13262ac_log="
Tanya Lattner953042b2009-08-22 04:37:30 +000013263This file was extended by llvm $as_me 2.7svn, which was
Torok Edwin871384f2010-01-26 08:50:50 +000013264generated by GNU Autoconf 2.65. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000013265
13266 CONFIG_FILES = $CONFIG_FILES
13267 CONFIG_HEADERS = $CONFIG_HEADERS
13268 CONFIG_LINKS = $CONFIG_LINKS
13269 CONFIG_COMMANDS = $CONFIG_COMMANDS
13270 $ $0 $@
13271
Reid Spencera773bd52006-08-04 18:18:08 +000013272on `(hostname || uname -n) 2>/dev/null | sed 1q`
13273"
13274
John Criswell7a73b802003-06-30 21:59:07 +000013275_ACEOF
13276
Torok Edwin871384f2010-01-26 08:50:50 +000013277case $ac_config_files in *"
13278"*) set x $ac_config_files; shift; ac_config_files=$*;;
13279esac
13280
13281case $ac_config_headers in *"
13282"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13283esac
13284
13285
13286cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
John Criswell7a73b802003-06-30 21:59:07 +000013287# Files that config.status was made for.
Reid Spencera773bd52006-08-04 18:18:08 +000013288config_files="$ac_config_files"
13289config_headers="$ac_config_headers"
13290config_commands="$ac_config_commands"
John Criswell7a73b802003-06-30 21:59:07 +000013291
Reid Spencera773bd52006-08-04 18:18:08 +000013292_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000013293
Torok Edwin871384f2010-01-26 08:50:50 +000013294cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
John Criswell7a73b802003-06-30 21:59:07 +000013295ac_cs_usage="\
Torok Edwin871384f2010-01-26 08:50:50 +000013296\`$as_me' instantiates files and other configuration actions
13297from templates according to the current configuration. Unless the files
13298and actions are specified as TAGs, all are instantiated by default.
John Criswell7a73b802003-06-30 21:59:07 +000013299
Torok Edwin871384f2010-01-26 08:50:50 +000013300Usage: $0 [OPTION]... [TAG]...
John Criswell7a73b802003-06-30 21:59:07 +000013301
13302 -h, --help print this help, then exit
Torok Edwin871384f2010-01-26 08:50:50 +000013303 -V, --version print version number and configuration settings, then exit
13304 --config print configuration, then exit
13305 -q, --quiet, --silent
13306 do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000013307 -d, --debug don't remove temporary files
13308 --recheck update $as_me by reconfiguring in the same conditions
Torok Edwin871384f2010-01-26 08:50:50 +000013309 --file=FILE[:TEMPLATE]
13310 instantiate the configuration file FILE
13311 --header=FILE[:TEMPLATE]
13312 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000013313
13314Configuration files:
13315$config_files
13316
13317Configuration headers:
13318$config_headers
13319
John Criswellc764fbc2003-09-06 15:17:13 +000013320Configuration commands:
13321$config_commands
13322
Torok Edwin871384f2010-01-26 08:50:50 +000013323Report bugs to <llvmbugs@cs.uiuc.edu>."
John Criswell7a73b802003-06-30 21:59:07 +000013324
Reid Spencera773bd52006-08-04 18:18:08 +000013325_ACEOF
Torok Edwin871384f2010-01-26 08:50:50 +000013326cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13327ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
John Criswell7a73b802003-06-30 21:59:07 +000013328ac_cs_version="\\
Tanya Lattner953042b2009-08-22 04:37:30 +000013329llvm config.status 2.7svn
Torok Edwin871384f2010-01-26 08:50:50 +000013330configured by $0, generated by GNU Autoconf 2.65,
13331 with options \\"\$ac_cs_config\\"
John Criswell7a73b802003-06-30 21:59:07 +000013332
Torok Edwin871384f2010-01-26 08:50:50 +000013333Copyright (C) 2009 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000013334This config.status script is free software; the Free Software Foundation
13335gives unlimited permission to copy, distribute and modify it."
Reid Spencera773bd52006-08-04 18:18:08 +000013336
13337ac_pwd='$ac_pwd'
13338srcdir='$srcdir'
13339INSTALL='$INSTALL'
Torok Edwin871384f2010-01-26 08:50:50 +000013340test -n "\$AWK" || AWK=awk
John Criswell7a73b802003-06-30 21:59:07 +000013341_ACEOF
13342
Torok Edwin871384f2010-01-26 08:50:50 +000013343cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13344# The default lists apply if the user does not specify any file.
John Criswell7a73b802003-06-30 21:59:07 +000013345ac_need_defaults=:
13346while test $# != 0
13347do
13348 case $1 in
13349 --*=*)
Reid Spencera773bd52006-08-04 18:18:08 +000013350 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13351 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000013352 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000013353 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000013354 *)
John Criswell0c38eaf2003-09-10 15:17:25 +000013355 ac_option=$1
13356 ac_optarg=$2
13357 ac_shift=shift
13358 ;;
John Criswell7a73b802003-06-30 21:59:07 +000013359 esac
13360
John Criswell0c38eaf2003-09-10 15:17:25 +000013361 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000013362 # Handling of the options.
John Criswell0c38eaf2003-09-10 15:17:25 +000013363 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13364 ac_cs_recheck=: ;;
Reid Spencera773bd52006-08-04 18:18:08 +000013365 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Torok Edwin871384f2010-01-26 08:50:50 +000013366 $as_echo "$ac_cs_version"; exit ;;
13367 --config | --confi | --conf | --con | --co | --c )
13368 $as_echo "$ac_cs_config"; exit ;;
Reid Spencera773bd52006-08-04 18:18:08 +000013369 --debug | --debu | --deb | --de | --d | -d )
John Criswell7a73b802003-06-30 21:59:07 +000013370 debug=: ;;
13371 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000013372 $ac_shift
Torok Edwin871384f2010-01-26 08:50:50 +000013373 case $ac_optarg in
13374 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13375 esac
13376 as_fn_append CONFIG_FILES " '$ac_optarg'"
John Criswell7a73b802003-06-30 21:59:07 +000013377 ac_need_defaults=false;;
13378 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000013379 $ac_shift
Torok Edwin871384f2010-01-26 08:50:50 +000013380 case $ac_optarg in
13381 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13382 esac
13383 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
John Criswell7a73b802003-06-30 21:59:07 +000013384 ac_need_defaults=false;;
Reid Spencera773bd52006-08-04 18:18:08 +000013385 --he | --h)
13386 # Conflict between --help and --header
Torok Edwin871384f2010-01-26 08:50:50 +000013387 as_fn_error "ambiguous option: \`$1'
13388Try \`$0 --help' for more information.";;
Reid Spencera773bd52006-08-04 18:18:08 +000013389 --help | --hel | -h )
Torok Edwin871384f2010-01-26 08:50:50 +000013390 $as_echo "$ac_cs_usage"; exit ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000013391 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13392 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13393 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000013394
13395 # This is an error.
Torok Edwin871384f2010-01-26 08:50:50 +000013396 -*) as_fn_error "unrecognized option: \`$1'
13397Try \`$0 --help' for more information." ;;
John Criswell7a73b802003-06-30 21:59:07 +000013398
Torok Edwin871384f2010-01-26 08:50:50 +000013399 *) as_fn_append ac_config_targets " $1"
Reid Spencera773bd52006-08-04 18:18:08 +000013400 ac_need_defaults=false ;;
John Criswell7a73b802003-06-30 21:59:07 +000013401
13402 esac
13403 shift
13404done
13405
John Criswell0c38eaf2003-09-10 15:17:25 +000013406ac_configure_extra_args=
13407
13408if $ac_cs_silent; then
13409 exec 6>/dev/null
13410 ac_configure_extra_args="$ac_configure_extra_args --silent"
13411fi
13412
13413_ACEOF
Torok Edwin871384f2010-01-26 08:50:50 +000013414cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
John Criswell0c38eaf2003-09-10 15:17:25 +000013415if \$ac_cs_recheck; then
Torok Edwin871384f2010-01-26 08:50:50 +000013416 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13417 shift
13418 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13419 CONFIG_SHELL='$SHELL'
Reid Spencera773bd52006-08-04 18:18:08 +000013420 export CONFIG_SHELL
Torok Edwin871384f2010-01-26 08:50:50 +000013421 exec "\$@"
John Criswell0c38eaf2003-09-10 15:17:25 +000013422fi
13423
John Criswell7a73b802003-06-30 21:59:07 +000013424_ACEOF
Torok Edwin871384f2010-01-26 08:50:50 +000013425cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Reid Spencera773bd52006-08-04 18:18:08 +000013426exec 5>>config.log
13427{
13428 echo
13429 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13430## Running $as_me. ##
13431_ASBOX
Torok Edwin871384f2010-01-26 08:50:50 +000013432 $as_echo "$ac_log"
Reid Spencera773bd52006-08-04 18:18:08 +000013433} >&5
John Criswell7a73b802003-06-30 21:59:07 +000013434
Reid Spencera773bd52006-08-04 18:18:08 +000013435_ACEOF
Torok Edwin871384f2010-01-26 08:50:50 +000013436cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
John Criswellc764fbc2003-09-06 15:17:13 +000013437#
Reid Spencera773bd52006-08-04 18:18:08 +000013438# INIT-COMMANDS
John Criswellc764fbc2003-09-06 15:17:13 +000013439#
Reid Spencerc0682832005-02-24 19:05:19 +000013440llvm_src="${srcdir}"
John Criswellc764fbc2003-09-06 15:17:13 +000013441
13442_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000013443
Torok Edwin871384f2010-01-26 08:50:50 +000013444cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Reid Spencera773bd52006-08-04 18:18:08 +000013445
13446# Handling of arguments.
John Criswell7a73b802003-06-30 21:59:07 +000013447for ac_config_target in $ac_config_targets
13448do
Reid Spencera773bd52006-08-04 18:18:08 +000013449 case $ac_config_target in
13450 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
Douglas Gregor1555a232009-06-16 20:12:29 +000013451 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
13452 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000013453 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000013454 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
Chandler Carruth8b67f772009-10-26 01:35:46 +000013455 "include/llvm/System/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/System/DataTypes.h" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000013456 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencerea949cf2006-08-16 00:45:38 +000013457 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000013458 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013459 "tools/llvmc/plugins/Base/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/plugins/Base/Base.td" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000013460 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
13461 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
13462 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
13463 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
13464 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
13465 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000013466 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000013467 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
13468 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000013469 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000013470 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
13471 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
13472 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000013473 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
13474 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000013475
Torok Edwin871384f2010-01-26 08:50:50 +000013476 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
John Criswell7a73b802003-06-30 21:59:07 +000013477 esac
13478done
13479
Reid Spencera773bd52006-08-04 18:18:08 +000013480
John Criswell7a73b802003-06-30 21:59:07 +000013481# If the user did not use the arguments to specify the items to instantiate,
13482# then the envvar interface is used. Set only those that are not.
13483# We use the long form for the default assignment because of an extremely
13484# bizarre bug on SunOS 4.1.3.
13485if $ac_need_defaults; then
13486 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13487 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000013488 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000013489fi
13490
John Criswell0c38eaf2003-09-10 15:17:25 +000013491# Have a temporary directory for convenience. Make it in the build tree
Reid Spencera773bd52006-08-04 18:18:08 +000013492# simply because there is no reason against having it here, and in addition,
John Criswell0c38eaf2003-09-10 15:17:25 +000013493# creating and moving files from /tmp can sometimes cause problems.
Reid Spencera773bd52006-08-04 18:18:08 +000013494# Hook for its removal unless debugging.
13495# Note that there is a small window in which the directory will not be cleaned:
13496# after its creation but before its name has been assigned to `$tmp'.
John Criswell7a73b802003-06-30 21:59:07 +000013497$debug ||
13498{
Reid Spencera773bd52006-08-04 18:18:08 +000013499 tmp=
13500 trap 'exit_status=$?
13501 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13502' 0
Torok Edwin871384f2010-01-26 08:50:50 +000013503 trap 'as_fn_exit 1' 1 2 13 15
John Criswell7a73b802003-06-30 21:59:07 +000013504}
John Criswell7a73b802003-06-30 21:59:07 +000013505# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000013506
John Criswell7a73b802003-06-30 21:59:07 +000013507{
Reid Spencera773bd52006-08-04 18:18:08 +000013508 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000013509 test -n "$tmp" && test -d "$tmp"
13510} ||
13511{
Reid Spencera773bd52006-08-04 18:18:08 +000013512 tmp=./conf$$-$RANDOM
13513 (umask 077 && mkdir "$tmp")
Torok Edwin871384f2010-01-26 08:50:50 +000013514} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
John Criswell7a73b802003-06-30 21:59:07 +000013515
Torok Edwin871384f2010-01-26 08:50:50 +000013516# Set up the scripts for CONFIG_FILES section.
13517# No need to generate them if there are no CONFIG_FILES.
13518# This happens for instance with `./config.status config.h'.
Reid Spencera773bd52006-08-04 18:18:08 +000013519if test -n "$CONFIG_FILES"; then
John Criswell7a73b802003-06-30 21:59:07 +000013520
Torok Edwin871384f2010-01-26 08:50:50 +000013521
13522ac_cr=`echo X | tr X '\015'`
13523# On cygwin, bash can eat \r inside `` if the user requested igncr.
13524# But we know of no other shell where ac_cr would be empty at this
13525# point, so we can use a bashism as a fallback.
13526if test "x$ac_cr" = x; then
13527 eval ac_cr=\$\'\\r\'
13528fi
13529ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13530if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13531 ac_cs_awk_cr='\r'
13532else
13533 ac_cs_awk_cr=$ac_cr
13534fi
13535
13536echo 'BEGIN {' >"$tmp/subs1.awk" &&
John Criswell7a73b802003-06-30 21:59:07 +000013537_ACEOF
13538
Reid Spencera773bd52006-08-04 18:18:08 +000013539
Torok Edwin871384f2010-01-26 08:50:50 +000013540{
13541 echo "cat >conf$$subs.awk <<_ACEOF" &&
13542 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13543 echo "_ACEOF"
13544} >conf$$subs.sh ||
13545 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
13546ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
Reid Spencera773bd52006-08-04 18:18:08 +000013547ac_delim='%!_!# '
13548for ac_last_try in false false false false false :; do
Torok Edwin871384f2010-01-26 08:50:50 +000013549 . ./conf$$subs.sh ||
13550 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
Reid Spencera773bd52006-08-04 18:18:08 +000013551
Torok Edwin871384f2010-01-26 08:50:50 +000013552 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13553 if test $ac_delim_n = $ac_delim_num; then
Reid Spencera773bd52006-08-04 18:18:08 +000013554 break
13555 elif $ac_last_try; then
Torok Edwin871384f2010-01-26 08:50:50 +000013556 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
Reid Spencera773bd52006-08-04 18:18:08 +000013557 else
13558 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
John Criswell7a73b802003-06-30 21:59:07 +000013559 fi
Reid Spencera773bd52006-08-04 18:18:08 +000013560done
Torok Edwin871384f2010-01-26 08:50:50 +000013561rm -f conf$$subs.sh
Reid Spencera773bd52006-08-04 18:18:08 +000013562
Torok Edwin871384f2010-01-26 08:50:50 +000013563cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13564cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
Reid Spencera773bd52006-08-04 18:18:08 +000013565_ACEOF
Torok Edwin871384f2010-01-26 08:50:50 +000013566sed -n '
13567h
13568s/^/S["/; s/!.*/"]=/
13569p
13570g
13571s/^[^!]*!//
13572:repl
13573t repl
13574s/'"$ac_delim"'$//
13575t delim
13576:nl
13577h
13578s/\(.\{148\}\)..*/\1/
13579t more1
13580s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13581p
13582n
13583b repl
13584:more1
13585s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13586p
13587g
13588s/.\{148\}//
13589t nl
13590:delim
13591h
13592s/\(.\{148\}\)..*/\1/
13593t more2
13594s/["\\]/\\&/g; s/^/"/; s/$/"/
13595p
13596b
13597:more2
13598s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13599p
13600g
13601s/.\{148\}//
13602t delim
13603' <conf$$subs.awk | sed '
13604/^[^""]/{
13605 N
13606 s/\n//
13607}
13608' >>$CONFIG_STATUS || ac_write_fail=1
13609rm -f conf$$subs.awk
13610cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13611_ACAWK
13612cat >>"\$tmp/subs1.awk" <<_ACAWK &&
13613 for (key in S) S_is_set[key] = 1
13614 FS = ""
13615
13616}
13617{
13618 line = $ 0
13619 nfields = split(line, field, "@")
13620 substed = 0
13621 len = length(field[1])
13622 for (i = 2; i < nfields; i++) {
13623 key = field[i]
13624 keylen = length(key)
13625 if (S_is_set[key]) {
13626 value = S[key]
13627 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13628 len += length(value) + length(field[++i])
13629 substed = 1
13630 } else
13631 len += 1 + keylen
13632 }
13633
13634 print line
13635}
13636
13637_ACAWK
Reid Spencera773bd52006-08-04 18:18:08 +000013638_ACEOF
Torok Edwin871384f2010-01-26 08:50:50 +000013639cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13640if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13641 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13642else
13643 cat
13644fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
13645 || as_fn_error "could not setup config files machinery" "$LINENO" 5
Reid Spencera773bd52006-08-04 18:18:08 +000013646_ACEOF
13647
Reid Spencera773bd52006-08-04 18:18:08 +000013648# VPATH may cause trouble with some makes, so we remove $(srcdir),
13649# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13650# trailing colons and then remove the whole line if VPATH becomes empty
13651# (actually we leave an empty line to preserve line numbers).
13652if test "x$srcdir" = x.; then
13653 ac_vpsub='/^[ ]*VPATH[ ]*=/{
13654s/:*\$(srcdir):*/:/
13655s/:*\${srcdir}:*/:/
13656s/:*@srcdir@:*/:/
13657s/^\([^=]*=[ ]*\):*/\1/
13658s/:*$//
13659s/^[^=]*=[ ]*$//
13660}'
13661fi
13662
Torok Edwin871384f2010-01-26 08:50:50 +000013663cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
John Criswell7a73b802003-06-30 21:59:07 +000013664fi # test -n "$CONFIG_FILES"
13665
Torok Edwin871384f2010-01-26 08:50:50 +000013666# Set up the scripts for CONFIG_HEADERS section.
13667# No need to generate them if there are no CONFIG_HEADERS.
13668# This happens for instance with `./config.status Makefile'.
13669if test -n "$CONFIG_HEADERS"; then
13670cat >"$tmp/defines.awk" <<\_ACAWK ||
13671BEGIN {
13672_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013673
Torok Edwin871384f2010-01-26 08:50:50 +000013674# Transform confdefs.h into an awk script `defines.awk', embedded as
13675# here-document in config.status, that substitutes the proper values into
13676# config.h.in to produce config.h.
13677
13678# Create a delimiter string that does not exist in confdefs.h, to ease
13679# handling of long lines.
13680ac_delim='%!_!# '
13681for ac_last_try in false false :; do
13682 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
13683 if test -z "$ac_t"; then
13684 break
13685 elif $ac_last_try; then
13686 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
13687 else
13688 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13689 fi
13690done
13691
13692# For the awk script, D is an array of macro values keyed by name,
13693# likewise P contains macro parameters if any. Preserve backslash
13694# newline sequences.
13695
13696ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13697sed -n '
13698s/.\{148\}/&'"$ac_delim"'/g
13699t rset
13700:rset
13701s/^[ ]*#[ ]*define[ ][ ]*/ /
13702t def
13703d
13704:def
13705s/\\$//
13706t bsnl
13707s/["\\]/\\&/g
13708s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13709D["\1"]=" \3"/p
13710s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13711d
13712:bsnl
13713s/["\\]/\\&/g
13714s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13715D["\1"]=" \3\\\\\\n"\\/p
13716t cont
13717s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13718t cont
13719d
13720:cont
13721n
13722s/.\{148\}/&'"$ac_delim"'/g
13723t clear
13724:clear
13725s/\\$//
13726t bsnlc
13727s/["\\]/\\&/g; s/^/"/; s/$/"/p
13728d
13729:bsnlc
13730s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13731b cont
13732' <confdefs.h | sed '
13733s/'"$ac_delim"'/"\\\
13734"/g' >>$CONFIG_STATUS || ac_write_fail=1
13735
13736cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13737 for (key in D) D_is_set[key] = 1
13738 FS = ""
13739}
13740/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13741 line = \$ 0
13742 split(line, arg, " ")
13743 if (arg[1] == "#") {
13744 defundef = arg[2]
13745 mac1 = arg[3]
13746 } else {
13747 defundef = substr(arg[1], 2)
13748 mac1 = arg[2]
13749 }
13750 split(mac1, mac2, "(") #)
13751 macro = mac2[1]
13752 prefix = substr(line, 1, index(line, defundef) - 1)
13753 if (D_is_set[macro]) {
13754 # Preserve the white space surrounding the "#".
13755 print prefix "define", macro P[macro] D[macro]
13756 next
13757 } else {
13758 # Replace #undef with comments. This is necessary, for example,
13759 # in the case of _POSIX_SOURCE, which is predefined and required
13760 # on some systems where configure will not decide to define it.
13761 if (defundef == "undef") {
13762 print "/*", prefix defundef, macro, "*/"
13763 next
13764 }
13765 }
13766}
13767{ print }
13768_ACAWK
13769_ACEOF
13770cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13771 as_fn_error "could not setup config headers machinery" "$LINENO" 5
13772fi # test -n "$CONFIG_HEADERS"
13773
13774
13775eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13776shift
13777for ac_tag
Reid Spencera773bd52006-08-04 18:18:08 +000013778do
13779 case $ac_tag in
13780 :[FHLC]) ac_mode=$ac_tag; continue;;
13781 esac
13782 case $ac_mode$ac_tag in
13783 :[FHL]*:*);;
Torok Edwin871384f2010-01-26 08:50:50 +000013784 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
Reid Spencera773bd52006-08-04 18:18:08 +000013785 :[FH]-) ac_tag=-:-;;
13786 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13787 esac
13788 ac_save_IFS=$IFS
13789 IFS=:
13790 set x $ac_tag
13791 IFS=$ac_save_IFS
13792 shift
13793 ac_file=$1
13794 shift
13795
13796 case $ac_mode in
13797 :L) ac_source=$1;;
13798 :[FH])
13799 ac_file_inputs=
13800 for ac_f
13801 do
13802 case $ac_f in
13803 -) ac_f="$tmp/stdin";;
13804 *) # Look for the file first in the build tree, then in the source tree
13805 # (if the path is not absolute). The absolute path cannot be DOS-style,
13806 # because $ac_f cannot contain `:'.
13807 test -f "$ac_f" ||
13808 case $ac_f in
13809 [\\/$]*) false;;
13810 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13811 esac ||
Torok Edwin871384f2010-01-26 08:50:50 +000013812 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
Reid Spencera773bd52006-08-04 18:18:08 +000013813 esac
Torok Edwin871384f2010-01-26 08:50:50 +000013814 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13815 as_fn_append ac_file_inputs " '$ac_f'"
Reid Spencera773bd52006-08-04 18:18:08 +000013816 done
13817
13818 # Let's still pretend it is `configure' which instantiates (i.e., don't
13819 # use $as_me), people would be surprised to read:
13820 # /* config.h. Generated by config.status. */
Torok Edwin871384f2010-01-26 08:50:50 +000013821 configure_input='Generated from '`
13822 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13823 `' by configure.'
Reid Spencera773bd52006-08-04 18:18:08 +000013824 if test x"$ac_file" != x-; then
13825 configure_input="$ac_file. $configure_input"
Torok Edwin871384f2010-01-26 08:50:50 +000013826 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13827$as_echo "$as_me: creating $ac_file" >&6;}
Reid Spencera773bd52006-08-04 18:18:08 +000013828 fi
Torok Edwin871384f2010-01-26 08:50:50 +000013829 # Neutralize special characters interpreted by sed in replacement strings.
13830 case $configure_input in #(
13831 *\&* | *\|* | *\\* )
13832 ac_sed_conf_input=`$as_echo "$configure_input" |
13833 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13834 *) ac_sed_conf_input=$configure_input;;
13835 esac
Reid Spencera773bd52006-08-04 18:18:08 +000013836
13837 case $ac_tag in
Torok Edwin871384f2010-01-26 08:50:50 +000013838 *:-:* | *:-) cat >"$tmp/stdin" \
13839 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000013840 esac
13841 ;;
John Criswell7a73b802003-06-30 21:59:07 +000013842 esac
13843
Reid Spencera773bd52006-08-04 18:18:08 +000013844 ac_dir=`$as_dirname -- "$ac_file" ||
John Criswell7a73b802003-06-30 21:59:07 +000013845$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000013846 X"$ac_file" : 'X\(//\)[^/]' \| \
13847 X"$ac_file" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000013848 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Torok Edwin871384f2010-01-26 08:50:50 +000013849$as_echo X"$ac_file" |
Reid Spencera773bd52006-08-04 18:18:08 +000013850 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13851 s//\1/
13852 q
13853 }
13854 /^X\(\/\/\)[^/].*/{
13855 s//\1/
13856 q
13857 }
13858 /^X\(\/\/\)$/{
13859 s//\1/
13860 q
13861 }
13862 /^X\(\/\).*/{
13863 s//\1/
13864 q
13865 }
13866 s/.*/./; q'`
Torok Edwin871384f2010-01-26 08:50:50 +000013867 as_dir="$ac_dir"; as_fn_mkdir_p
John Criswell7a73b802003-06-30 21:59:07 +000013868 ac_builddir=.
13869
Reid Spencera773bd52006-08-04 18:18:08 +000013870case "$ac_dir" in
13871.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13872*)
Torok Edwin871384f2010-01-26 08:50:50 +000013873 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Reid Spencera773bd52006-08-04 18:18:08 +000013874 # A ".." for each directory in $ac_dir_suffix.
Torok Edwin871384f2010-01-26 08:50:50 +000013875 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Reid Spencera773bd52006-08-04 18:18:08 +000013876 case $ac_top_builddir_sub in
13877 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13878 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13879 esac ;;
13880esac
13881ac_abs_top_builddir=$ac_pwd
13882ac_abs_builddir=$ac_pwd$ac_dir_suffix
13883# for backward compatibility:
13884ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +000013885
13886case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000013887 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +000013888 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000013889 ac_top_srcdir=$ac_top_builddir_sub
13890 ac_abs_top_srcdir=$ac_pwd ;;
13891 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +000013892 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000013893 ac_top_srcdir=$srcdir
13894 ac_abs_top_srcdir=$srcdir ;;
13895 *) # Relative name.
13896 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13897 ac_top_srcdir=$ac_top_build_prefix$srcdir
13898 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +000013899esac
Reid Spencera773bd52006-08-04 18:18:08 +000013900ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +000013901
John Criswell7a73b802003-06-30 21:59:07 +000013902
Reid Spencera773bd52006-08-04 18:18:08 +000013903 case $ac_mode in
13904 :F)
13905 #
13906 # CONFIG_FILE
13907 #
John Criswell7a73b802003-06-30 21:59:07 +000013908
13909 case $INSTALL in
13910 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Reid Spencera773bd52006-08-04 18:18:08 +000013911 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
John Criswell7a73b802003-06-30 21:59:07 +000013912 esac
John Criswell7a73b802003-06-30 21:59:07 +000013913_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013914
Torok Edwin871384f2010-01-26 08:50:50 +000013915cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Reid Spencera773bd52006-08-04 18:18:08 +000013916# If the template does not know about datarootdir, expand it.
13917# FIXME: This hack should be removed a few years after 2.60.
13918ac_datarootdir_hack=; ac_datarootdir_seen=
Torok Edwin871384f2010-01-26 08:50:50 +000013919ac_sed_dataroot='
13920/datarootdir/ {
Reid Spencera773bd52006-08-04 18:18:08 +000013921 p
13922 q
13923}
13924/@datadir@/p
13925/@docdir@/p
13926/@infodir@/p
13927/@localedir@/p
Torok Edwin871384f2010-01-26 08:50:50 +000013928/@mandir@/p'
13929case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
Reid Spencera773bd52006-08-04 18:18:08 +000013930*datarootdir*) ac_datarootdir_seen=yes;;
13931*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Torok Edwin871384f2010-01-26 08:50:50 +000013932 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13933$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000013934_ACEOF
Torok Edwin871384f2010-01-26 08:50:50 +000013935cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Reid Spencera773bd52006-08-04 18:18:08 +000013936 ac_datarootdir_hack='
13937 s&@datadir@&$datadir&g
13938 s&@docdir@&$docdir&g
13939 s&@infodir@&$infodir&g
13940 s&@localedir@&$localedir&g
13941 s&@mandir@&$mandir&g
Torok Edwin871384f2010-01-26 08:50:50 +000013942 s&\\\${datarootdir}&$datarootdir&g' ;;
Reid Spencera773bd52006-08-04 18:18:08 +000013943esac
13944_ACEOF
13945
13946# Neutralize VPATH when `$srcdir' = `.'.
13947# Shell code in configure.ac might set extrasub.
13948# FIXME: do we really want to maintain this feature?
Torok Edwin871384f2010-01-26 08:50:50 +000013949cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13950ac_sed_extra="$ac_vpsub
John Criswell7a73b802003-06-30 21:59:07 +000013951$extrasub
13952_ACEOF
Torok Edwin871384f2010-01-26 08:50:50 +000013953cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
John Criswell7a73b802003-06-30 21:59:07 +000013954:t
13955/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Torok Edwin871384f2010-01-26 08:50:50 +000013956s|@configure_input@|$ac_sed_conf_input|;t t
Reid Spencera773bd52006-08-04 18:18:08 +000013957s&@top_builddir@&$ac_top_builddir_sub&;t t
Torok Edwin871384f2010-01-26 08:50:50 +000013958s&@top_build_prefix@&$ac_top_build_prefix&;t t
Reid Spencera773bd52006-08-04 18:18:08 +000013959s&@srcdir@&$ac_srcdir&;t t
13960s&@abs_srcdir@&$ac_abs_srcdir&;t t
13961s&@top_srcdir@&$ac_top_srcdir&;t t
13962s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13963s&@builddir@&$ac_builddir&;t t
13964s&@abs_builddir@&$ac_abs_builddir&;t t
13965s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13966s&@INSTALL@&$ac_INSTALL&;t t
13967$ac_datarootdir_hack
Torok Edwin871384f2010-01-26 08:50:50 +000013968"
13969eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
13970 || as_fn_error "could not create $ac_file" "$LINENO" 5
John Criswell7a73b802003-06-30 21:59:07 +000013971
Reid Spencera773bd52006-08-04 18:18:08 +000013972test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13973 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
13974 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
Torok Edwin871384f2010-01-26 08:50:50 +000013975 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Reid Spencera773bd52006-08-04 18:18:08 +000013976which seems to be undefined. Please make sure it is defined." >&5
Torok Edwin871384f2010-01-26 08:50:50 +000013977$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Reid Spencera773bd52006-08-04 18:18:08 +000013978which seems to be undefined. Please make sure it is defined." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000013979
Reid Spencera773bd52006-08-04 18:18:08 +000013980 rm -f "$tmp/stdin"
John Criswell7a73b802003-06-30 21:59:07 +000013981 case $ac_file in
Torok Edwin871384f2010-01-26 08:50:50 +000013982 -) cat "$tmp/out" && rm -f "$tmp/out";;
13983 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
13984 esac \
13985 || as_fn_error "could not create $ac_file" "$LINENO" 5
Reid Spencera773bd52006-08-04 18:18:08 +000013986 ;;
13987 :H)
13988 #
13989 # CONFIG_HEADER
13990 #
John Criswell7a73b802003-06-30 21:59:07 +000013991 if test x"$ac_file" != x-; then
Torok Edwin871384f2010-01-26 08:50:50 +000013992 {
13993 $as_echo "/* $configure_input */" \
13994 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
13995 } >"$tmp/config.h" \
13996 || as_fn_error "could not create $ac_file" "$LINENO" 5
13997 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
13998 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13999$as_echo "$as_me: $ac_file is unchanged" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000014000 else
Torok Edwin871384f2010-01-26 08:50:50 +000014001 rm -f "$ac_file"
14002 mv "$tmp/config.h" "$ac_file" \
14003 || as_fn_error "could not create $ac_file" "$LINENO" 5
John Criswell7a73b802003-06-30 21:59:07 +000014004 fi
14005 else
Torok Edwin871384f2010-01-26 08:50:50 +000014006 $as_echo "/* $configure_input */" \
14007 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
14008 || as_fn_error "could not create -" "$LINENO" 5
John Criswell7a73b802003-06-30 21:59:07 +000014009 fi
Reid Spencera773bd52006-08-04 18:18:08 +000014010 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000014011
Torok Edwin871384f2010-01-26 08:50:50 +000014012 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14013$as_echo "$as_me: executing $ac_file commands" >&6;}
Reid Spencera773bd52006-08-04 18:18:08 +000014014 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000014015 esac
John Criswell7a73b802003-06-30 21:59:07 +000014016
Reid Spencera773bd52006-08-04 18:18:08 +000014017
14018 case $ac_file$ac_mode in
14019 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000014020 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000014021 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
Torok Edwin64937982009-08-28 16:12:48 +000014022 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
Reid Spencera773bd52006-08-04 18:18:08 +000014023 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000014024 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000014025 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000014026 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000014027 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000014028 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000014029 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000014030 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000014031 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
Torok Edwin64937982009-08-28 16:12:48 +000014032 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000014033 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000014034 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000014035 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000014036 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000014037 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000014038 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000014039 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000014040 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000014041 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000014042 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000014043 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
Torok Edwin64937982009-08-28 16:12:48 +000014044 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
Reid Spencera773bd52006-08-04 18:18:08 +000014045
14046 esac
14047done # for ac_tag
14048
John Criswell7a73b802003-06-30 21:59:07 +000014049
Torok Edwin871384f2010-01-26 08:50:50 +000014050as_fn_exit 0
John Criswell7a73b802003-06-30 21:59:07 +000014051_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000014052ac_clean_files=$ac_clean_files_save
14053
Torok Edwin871384f2010-01-26 08:50:50 +000014054test $ac_write_fail = 0 ||
14055 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
14056
John Criswell7a73b802003-06-30 21:59:07 +000014057
14058# configure is writing to config.log, and then calls config.status.
14059# config.status does its own redirection, appending to config.log.
14060# Unfortunately, on DOS this fails, as config.log is still kept open
14061# by configure, so config.status won't be able to write to it; its
14062# output is simply discarded. So we exec the FD to /dev/null,
14063# effectively closing config.log, so it can be properly (re)opened and
14064# appended to by config.status. When coming back to configure, we
14065# need to make the FD available again.
14066if test "$no_create" != yes; then
14067 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000014068 ac_config_status_args=
14069 test "$silent" = yes &&
14070 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000014071 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000014072 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000014073 exec 5>>config.log
14074 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14075 # would make configure fail if this is the last instruction.
Torok Edwin871384f2010-01-26 08:50:50 +000014076 $ac_cs_success || as_fn_exit $?
John Criswell7a73b802003-06-30 21:59:07 +000014077fi
14078
John Criswell12399a12003-09-30 15:55:44 +000014079#
14080# CONFIG_SUBDIRS section.
14081#
14082if test "$no_recursion" != yes; then
14083
Torok Edwin871384f2010-01-26 08:50:50 +000014084 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
14085 # so they do not pile up.
John Criswell12399a12003-09-30 15:55:44 +000014086 ac_sub_configure_args=
14087 ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +000014088 eval "set x $ac_configure_args"
14089 shift
14090 for ac_arg
14091 do
John Criswell12399a12003-09-30 15:55:44 +000014092 if test -n "$ac_prev"; then
14093 ac_prev=
14094 continue
14095 fi
14096 case $ac_arg in
14097 -cache-file | --cache-file | --cache-fil | --cache-fi \
14098 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
14099 ac_prev=cache_file ;;
14100 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
14101 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
14102 | --c=*)
14103 ;;
14104 --config-cache | -C)
14105 ;;
14106 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
14107 ac_prev=srcdir ;;
14108 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
14109 ;;
14110 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
14111 ac_prev=prefix ;;
14112 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
14113 ;;
Torok Edwin871384f2010-01-26 08:50:50 +000014114 --disable-option-checking)
14115 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000014116 *)
14117 case $ac_arg in
Torok Edwin871384f2010-01-26 08:50:50 +000014118 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Reid Spencera773bd52006-08-04 18:18:08 +000014119 esac
Torok Edwin871384f2010-01-26 08:50:50 +000014120 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
John Criswell12399a12003-09-30 15:55:44 +000014121 esac
14122 done
14123
14124 # Always prepend --prefix to ensure using the same prefix
14125 # in subdir configurations.
Reid Spencera773bd52006-08-04 18:18:08 +000014126 ac_arg="--prefix=$prefix"
14127 case $ac_arg in
Torok Edwin871384f2010-01-26 08:50:50 +000014128 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Reid Spencera773bd52006-08-04 18:18:08 +000014129 esac
Torok Edwin871384f2010-01-26 08:50:50 +000014130 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
14131
14132 # Pass --silent
14133 if test "$silent" = yes; then
14134 ac_sub_configure_args="--silent $ac_sub_configure_args"
14135 fi
14136
14137 # Always prepend --disable-option-checking to silence warnings, since
14138 # different subdirs can have different --enable and --with options.
14139 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
John Criswell12399a12003-09-30 15:55:44 +000014140
14141 ac_popdir=`pwd`
14142 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
14143
14144 # Do not complain, so a configure script can configure whichever
14145 # parts of a large source tree are present.
Reid Spencera773bd52006-08-04 18:18:08 +000014146 test -d "$srcdir/$ac_dir" || continue
John Criswell12399a12003-09-30 15:55:44 +000014147
Reid Spencera773bd52006-08-04 18:18:08 +000014148 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
Torok Edwin871384f2010-01-26 08:50:50 +000014149 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
14150 $as_echo "$ac_msg" >&6
14151 as_dir="$ac_dir"; as_fn_mkdir_p
John Criswell12399a12003-09-30 15:55:44 +000014152 ac_builddir=.
14153
Reid Spencera773bd52006-08-04 18:18:08 +000014154case "$ac_dir" in
14155.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14156*)
Torok Edwin871384f2010-01-26 08:50:50 +000014157 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Reid Spencera773bd52006-08-04 18:18:08 +000014158 # A ".." for each directory in $ac_dir_suffix.
Torok Edwin871384f2010-01-26 08:50:50 +000014159 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Reid Spencera773bd52006-08-04 18:18:08 +000014160 case $ac_top_builddir_sub in
14161 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14162 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14163 esac ;;
14164esac
14165ac_abs_top_builddir=$ac_pwd
14166ac_abs_builddir=$ac_pwd$ac_dir_suffix
14167# for backward compatibility:
14168ac_top_builddir=$ac_top_build_prefix
John Criswell12399a12003-09-30 15:55:44 +000014169
14170case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000014171 .) # We are building in place.
John Criswell12399a12003-09-30 15:55:44 +000014172 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000014173 ac_top_srcdir=$ac_top_builddir_sub
14174 ac_abs_top_srcdir=$ac_pwd ;;
14175 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell12399a12003-09-30 15:55:44 +000014176 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000014177 ac_top_srcdir=$srcdir
14178 ac_abs_top_srcdir=$srcdir ;;
14179 *) # Relative name.
14180 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14181 ac_top_srcdir=$ac_top_build_prefix$srcdir
14182 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell12399a12003-09-30 15:55:44 +000014183esac
Reid Spencera773bd52006-08-04 18:18:08 +000014184ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
John Criswell12399a12003-09-30 15:55:44 +000014185
14186
Reid Spencera773bd52006-08-04 18:18:08 +000014187 cd "$ac_dir"
John Criswell12399a12003-09-30 15:55:44 +000014188
14189 # Check for guested configure; otherwise get Cygnus style configure.
Reid Spencera773bd52006-08-04 18:18:08 +000014190 if test -f "$ac_srcdir/configure.gnu"; then
14191 ac_sub_configure=$ac_srcdir/configure.gnu
14192 elif test -f "$ac_srcdir/configure"; then
14193 ac_sub_configure=$ac_srcdir/configure
14194 elif test -f "$ac_srcdir/configure.in"; then
14195 # This should be Cygnus configure.
14196 ac_sub_configure=$ac_aux_dir/configure
John Criswell12399a12003-09-30 15:55:44 +000014197 else
Torok Edwin871384f2010-01-26 08:50:50 +000014198 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
14199$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
John Criswell12399a12003-09-30 15:55:44 +000014200 ac_sub_configure=
14201 fi
14202
14203 # The recursion is here.
14204 if test -n "$ac_sub_configure"; then
14205 # Make the cache file name correct relative to the subdirectory.
14206 case $cache_file in
14207 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
Reid Spencera773bd52006-08-04 18:18:08 +000014208 *) # Relative name.
14209 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000014210 esac
14211
Torok Edwin871384f2010-01-26 08:50:50 +000014212 { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
14213$as_echo "$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 +000014214 # The eval makes quoting arguments work.
Reid Spencera773bd52006-08-04 18:18:08 +000014215 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
14216 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
Torok Edwin871384f2010-01-26 08:50:50 +000014217 as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
John Criswell12399a12003-09-30 15:55:44 +000014218 fi
14219
Reid Spencera773bd52006-08-04 18:18:08 +000014220 cd "$ac_popdir"
John Criswell12399a12003-09-30 15:55:44 +000014221 done
14222fi
Torok Edwin871384f2010-01-26 08:50:50 +000014223if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14224 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14225$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14226fi
John Criswell12399a12003-09-30 15:55:44 +000014227