]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - sim/cr16/configure
Generated files
[thirdparty/binutils-gdb.git] / sim / cr16 / configure
CommitLineData
fee8ec00
SR
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
63a9e923
SM
3# Generated by GNU Autoconf 2.69.
4#
5#
6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
81ecdfbb 7#
fee8ec00 8#
fee8ec00
SR
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
81ecdfbb
RW
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
fee8ec00 14
81ecdfbb
RW
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
fee8ec00
SR
18 emulate sh
19 NULLCMD=:
81ecdfbb 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
fee8ec00
SR
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
23 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30esac
fee8ec00 31fi
fee8ec00 32
81ecdfbb
RW
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
fee8ec00
SR
79fi
80
81
81ecdfbb
RW
82# IFS
83# We need space, tab and new line, in precisely that order. Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" "" $as_nl"
88
89# Find who we are. Look in the path if we contain no directory separator.
63a9e923 90as_myself=
81ecdfbb
RW
91case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94for as_dir in $PATH
95do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100IFS=$as_save_IFS
101
102 ;;
103esac
104# We did not find ourselves, most probably we were run as `sh COMMAND'
105# in which case we are not to be found in the path.
106if test "x$as_myself" = x; then
107 as_myself=$0
108fi
109if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112fi
113
114# Unset variables that we do not need and which cause bugs (e.g. in
115# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116# suppresses any "Segmentation fault" message there. '((' could
117# trigger a bug in pdksh 5.2.14.
118for as_var in BASH_ENV ENV MAIL MAILPATH
119do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121done
fee8ec00
SR
122PS1='$ '
123PS2='> '
124PS4='+ '
125
126# NLS nuisances.
81ecdfbb
RW
127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export LANGUAGE
131
132# CDPATH.
133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
63a9e923
SM
135# Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140# neutralization value for shells without unset; and this also
141# works around shells that cannot unset nonexistent variables.
142# Preserve -v and -x to the replacement shell.
143BASH_ENV=/dev/null
144ENV=/dev/null
145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151esac
152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153# Admittedly, this is quite paranoid, since all the known shells bail
154# out after a failed `exec'.
155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
81ecdfbb
RW
160if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174esac
175fi
176"
177 as_required="as_fn_return () { (exit \$1); }
178as_fn_success () { as_fn_return 0; }
179as_fn_failure () { as_fn_return 1; }
180as_fn_ret_success () { return 0; }
181as_fn_ret_failure () { return 1; }
182
183exitcode=0
184as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190else
191 exitcode=1; echo positional parameters were not saved.
192fi
63a9e923
SM
193test x\$exitcode = x0 || exit 1
194test -x / || exit 1"
81ecdfbb
RW
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
6bb11ab3
L
199test \$(( 1 + 1 )) = 2 || exit 1
200
201 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 PATH=/empty FPATH=/empty; export PATH FPATH
206 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
207 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
81ecdfbb
RW
208 if (eval "$as_required") 2>/dev/null; then :
209 as_have_required=yes
210else
211 as_have_required=no
212fi
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215else
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217as_found=false
218for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
fee8ec00 219do
81ecdfbb
RW
220 IFS=$as_save_IFS
221 test -z "$as_dir" && as_dir=.
222 as_found=:
223 case $as_dir in #(
224 /*)
225 for as_base in sh bash ksh sh5; do
226 # Try only shells that exist, to save several forks.
227 as_shell=$as_dir/$as_base
228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230 CONFIG_SHELL=$as_shell as_have_required=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 break 2
233fi
234fi
235 done;;
236 esac
237 as_found=false
238done
239$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241 CONFIG_SHELL=$SHELL as_have_required=yes
242fi; }
243IFS=$as_save_IFS
244
245
246 if test "x$CONFIG_SHELL" != x; then :
63a9e923
SM
247 export CONFIG_SHELL
248 # We cannot yet assume a decent shell, so we have to provide a
249# neutralization value for shells without unset; and this also
250# works around shells that cannot unset nonexistent variables.
251# Preserve -v and -x to the replacement shell.
252BASH_ENV=/dev/null
253ENV=/dev/null
254(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255case $- in # ((((
256 *v*x* | *x*v* ) as_opts=-vx ;;
257 *v* ) as_opts=-v ;;
258 *x* ) as_opts=-x ;;
259 * ) as_opts= ;;
260esac
261exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262# Admittedly, this is quite paranoid, since all the known shells bail
263# out after a failed `exec'.
264$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265exit 255
81ecdfbb
RW
266fi
267
268 if test x$as_have_required = xno; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x${ZSH_VERSION+set} = xset ; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
fee8ec00 274 else
81ecdfbb
RW
275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276$0: including any error possibly output before this
277$0: message. Then install a modern shell, or manually run
278$0: the script under such a shell if you do have one."
fee8ec00 279 fi
81ecdfbb
RW
280 exit 1
281fi
282fi
283fi
284SHELL=${CONFIG_SHELL-/bin/sh}
285export SHELL
286# Unset more variables known to interfere with behavior of common tools.
287CLICOLOR_FORCE= GREP_OPTIONS=
288unset CLICOLOR_FORCE GREP_OPTIONS
289
290## --------------------- ##
291## M4sh Shell Functions. ##
292## --------------------- ##
293# as_fn_unset VAR
294# ---------------
295# Portably unset VAR.
296as_fn_unset ()
297{
298 { eval $1=; unset $1;}
299}
300as_unset=as_fn_unset
301
302# as_fn_set_status STATUS
303# -----------------------
304# Set $? to STATUS, without forking.
305as_fn_set_status ()
306{
307 return $1
308} # as_fn_set_status
309
310# as_fn_exit STATUS
311# -----------------
312# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313as_fn_exit ()
314{
315 set +e
316 as_fn_set_status $1
317 exit $1
318} # as_fn_exit
319
320# as_fn_mkdir_p
321# -------------
322# Create "$as_dir" as a directory, including parents if necessary.
323as_fn_mkdir_p ()
324{
325
326 case $as_dir in #(
327 -*) as_dir=./$as_dir;;
328 esac
329 test -d "$as_dir" || eval $as_mkdir_p || {
330 as_dirs=
331 while :; do
332 case $as_dir in #(
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334 *) as_qdir=$as_dir;;
335 esac
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342$as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\/\)[^/].*/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)$/{
352 s//\1/
353 q
354 }
355 /^X\(\/\).*/{
356 s//\1/
357 q
358 }
359 s/.*/./; q'`
360 test -d "$as_dir" && break
361 done
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
63a9e923 363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
81ecdfbb
RW
364
365
366} # as_fn_mkdir_p
63a9e923
SM
367
368# as_fn_executable_p FILE
369# -----------------------
370# Test if FILE is an executable regular file.
371as_fn_executable_p ()
372{
373 test -f "$1" && test -x "$1"
374} # as_fn_executable_p
81ecdfbb
RW
375# as_fn_append VAR VALUE
376# ----------------------
377# Append the text in VALUE to the end of the definition contained in VAR. Take
378# advantage of any shell optimizations that allow amortized linear growth over
379# repeated appends, instead of the typical quadratic growth present in naive
380# implementations.
381if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
383 {
384 eval $1+=\$2
385 }'
386else
387 as_fn_append ()
388 {
389 eval $1=\$$1\$2
390 }
391fi # as_fn_append
392
393# as_fn_arith ARG...
394# ------------------
395# Perform arithmetic evaluation on the ARGs, and store the result in the
396# global $as_val. Take advantage of shells that can avoid forks. The arguments
397# must be portable across $(()) and expr.
398if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399 eval 'as_fn_arith ()
400 {
401 as_val=$(( $* ))
402 }'
403else
404 as_fn_arith ()
405 {
406 as_val=`expr "$@" || test $? -eq 1`
407 }
408fi # as_fn_arith
409
fee8ec00 410
63a9e923
SM
411# as_fn_error STATUS ERROR [LINENO LOG_FD]
412# ----------------------------------------
81ecdfbb
RW
413# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
63a9e923 415# script with STATUS, using 1 if that was 0.
81ecdfbb
RW
416as_fn_error ()
417{
63a9e923
SM
418 as_status=$1; test $as_status -eq 0 && as_status=1
419 if test "$4"; then
420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
81ecdfbb 422 fi
63a9e923 423 $as_echo "$as_me: error: $2" >&2
81ecdfbb
RW
424 as_fn_exit $as_status
425} # as_fn_error
426
427if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
fee8ec00
SR
429 as_expr=expr
430else
431 as_expr=false
432fi
433
81ecdfbb 434if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
fee8ec00
SR
435 as_basename=basename
436else
437 as_basename=false
438fi
439
81ecdfbb
RW
440if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_dirname=dirname
442else
443 as_dirname=false
444fi
fee8ec00 445
81ecdfbb 446as_me=`$as_basename -- "$0" ||
fee8ec00
SR
447$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450$as_echo X/"$0" |
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
452 s//\1/
453 q
454 }
455 /^X\/\(\/\/\)$/{
456 s//\1/
457 q
458 }
459 /^X\/\(\/\).*/{
460 s//\1/
461 q
462 }
463 s/.*/./; q'`
fee8ec00 464
fee8ec00
SR
465# Avoid depending upon Character Ranges.
466as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469as_cr_digits='0123456789'
470as_cr_alnum=$as_cr_Letters$as_cr_digits
471
fee8ec00 472
81ecdfbb
RW
473 as_lineno_1=$LINENO as_lineno_1a=$LINENO
474 as_lineno_2=$LINENO as_lineno_2a=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
478 sed -n '
479 p
480 /[$]LINENO/=
481 ' <$as_myself |
fee8ec00 482 sed '
81ecdfbb
RW
483 s/[$]LINENO.*/&-/
484 t lineno
485 b
486 :lineno
fee8ec00 487 N
81ecdfbb
RW
488 :loop
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
fee8ec00 490 t loop
81ecdfbb 491 s/-\n.*//
fee8ec00 492 ' >$as_me.lineno &&
81ecdfbb
RW
493 chmod +x "$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
fee8ec00 495
63a9e923
SM
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec=no; export _as_can_reexec
fee8ec00
SR
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
81ecdfbb
RW
502 # original and so on. Autoconf is especially sensitive to this).
503 . "./$as_me.lineno"
fee8ec00
SR
504 # Exit status is that of the last command.
505 exit
506}
507
81ecdfbb
RW
508ECHO_C= ECHO_N= ECHO_T=
509case `echo -n x` in #(((((
510-n*)
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
513 xy) ECHO_C='\c';;
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
515 ECHO_T=' ';;
516 esac;;
517*)
518 ECHO_N='-n';;
fee8ec00
SR
519esac
520
81ecdfbb
RW
521rm -f conf$$ conf$$.exe conf$$.file
522if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
fee8ec00 524else
81ecdfbb
RW
525 rm -f conf$$.dir
526 mkdir conf$$.dir 2>/dev/null
fee8ec00 527fi
81ecdfbb
RW
528if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
fee8ec00 530 as_ln_s='ln -s'
81ecdfbb
RW
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
63a9e923 534 # In both cases, we have to default to `cp -pR'.
81ecdfbb 535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
63a9e923 536 as_ln_s='cp -pR'
81ecdfbb
RW
537 elif ln conf$$.file conf$$ 2>/dev/null; then
538 as_ln_s=ln
539 else
63a9e923 540 as_ln_s='cp -pR'
fee8ec00 541 fi
fee8ec00 542else
63a9e923 543 as_ln_s='cp -pR'
fee8ec00 544fi
81ecdfbb
RW
545rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546rmdir conf$$.dir 2>/dev/null
fee8ec00
SR
547
548if mkdir -p . 2>/dev/null; then
81ecdfbb 549 as_mkdir_p='mkdir -p "$as_dir"'
fee8ec00
SR
550else
551 test -d ./-p && rmdir ./-p
552 as_mkdir_p=false
553fi
554
63a9e923
SM
555as_test_x='test -x'
556as_executable_p=as_fn_executable_p
fee8ec00
SR
557
558# Sed expression to map a string onto a valid CPP name.
559as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560
561# Sed expression to map a string onto a valid variable name.
562as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
6bb11ab3
L
564SHELL=${CONFIG_SHELL-/bin/sh}
565
fee8ec00 566
63a9e923
SM
567test -n "$DJDIR" || exec 7<&0 </dev/null
568exec 6>&1
fee8ec00
SR
569
570# Name of the host.
63a9e923 571# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
fee8ec00
SR
572# so uname gets run too.
573ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
fee8ec00
SR
575#
576# Initializations.
577#
578ac_default_prefix=/usr/local
81ecdfbb 579ac_clean_files=
fee8ec00 580ac_config_libobj_dir=.
81ecdfbb 581LIBOBJS=
fee8ec00
SR
582cross_compiling=no
583subdirs=
584MFLAGS=
585MAKEFLAGS=
fee8ec00
SR
586
587# Identity of this package.
588PACKAGE_NAME=
589PACKAGE_TARNAME=
590PACKAGE_VERSION=
591PACKAGE_STRING=
592PACKAGE_BUGREPORT=
81ecdfbb 593PACKAGE_URL=
fee8ec00
SR
594
595ac_unique_file="Makefile.in"
596# Factoring default headers for most tests.
597ac_includes_default="\
598#include <stdio.h>
81ecdfbb 599#ifdef HAVE_SYS_TYPES_H
fee8ec00
SR
600# include <sys/types.h>
601#endif
81ecdfbb 602#ifdef HAVE_SYS_STAT_H
fee8ec00
SR
603# include <sys/stat.h>
604#endif
81ecdfbb 605#ifdef STDC_HEADERS
fee8ec00
SR
606# include <stdlib.h>
607# include <stddef.h>
608#else
81ecdfbb 609# ifdef HAVE_STDLIB_H
fee8ec00
SR
610# include <stdlib.h>
611# endif
612#endif
81ecdfbb
RW
613#ifdef HAVE_STRING_H
614# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
fee8ec00
SR
615# include <memory.h>
616# endif
617# include <string.h>
618#endif
81ecdfbb 619#ifdef HAVE_STRINGS_H
fee8ec00
SR
620# include <strings.h>
621#endif
81ecdfbb 622#ifdef HAVE_INTTYPES_H
fee8ec00 623# include <inttypes.h>
fee8ec00 624#endif
81ecdfbb
RW
625#ifdef HAVE_STDINT_H
626# include <stdint.h>
627#endif
628#ifdef HAVE_UNISTD_H
fee8ec00
SR
629# include <unistd.h>
630#endif"
631
81ecdfbb
RW
632ac_subst_vars='LTLIBOBJS
633LIBOBJS
634cgen_breaks
635REPORT_BUGS_TEXI
636REPORT_BUGS_TO
637PKGVERSION
81ecdfbb 638MAINT
31e6ad7d
MF
639MAINTAINER_MODE_FALSE
640MAINTAINER_MODE_TRUE
6bb11ab3
L
641lt_cv_dlopen_libs
642OTOOL64
643OTOOL
644LIPO
645NMEDIT
646DSYMUTIL
647AWK
648STRIP
649OBJDUMP
650LN_S
651NM
652ac_ct_DUMPBIN
653DUMPBIN
654LD
655FGREP
656SED
657LIBTOOL
658PLUGINS_FALSE
659PLUGINS_TRUE
aadc9410
MF
660zlibinc
661zlibdir
81ecdfbb
RW
662CATOBJEXT
663GENCAT
664INSTOBJEXT
665DATADIRNAME
666CATALOGS
667POSUB
668GMSGFMT
669XGETTEXT
670INCINTL
671LIBINTL_DEP
672LIBINTL
673USE_NLS
db2e4d67
MF
674GMAKE_FALSE
675GMAKE_TRUE
676MAKE
677CCDEPMODE
678DEPDIR
679am__leading_dot
5f3ef9d0 680PACKAGE
81ecdfbb
RW
681RANLIB
682AR
683HDEFINES
684CC_FOR_BUILD
685INSTALL_DATA
686INSTALL_SCRIPT
687INSTALL_PROGRAM
2232061b
MF
688EGREP
689GREP
690CPP
81ecdfbb
RW
691target_os
692target_vendor
693target_cpu
694target
695host_os
696host_vendor
697host_cpu
698host
699build_os
700build_vendor
701build_cpu
702build
6ffe910a
MF
703OBJEXT
704EXEEXT
705ac_ct_CC
706CPPFLAGS
707LDFLAGS
708CFLAGS
709CC
81ecdfbb
RW
710WERROR_CFLAGS
711WARN_CFLAGS
81ecdfbb 712sim_reserved_bits
81ecdfbb
RW
713sim_inline
714sim_hw
715sim_hw_objs
716sim_hw_cflags
717sim_default_model
718sim_scache
719sim_float
81ecdfbb
RW
720sim_endian
721sim_bitsize
81ecdfbb 722sim_alignment
81ecdfbb
RW
723target_alias
724host_alias
725build_alias
726LIBS
727ECHO_T
728ECHO_N
729ECHO_C
730DEFS
731mandir
732localedir
733libdir
734psdir
735pdfdir
736dvidir
737htmldir
738infodir
739docdir
740oldincludedir
741includedir
742localstatedir
743sharedstatedir
744sysconfdir
745datadir
746datarootdir
747libexecdir
748sbindir
749bindir
750program_transform_name
751prefix
752exec_prefix
753PACKAGE_URL
754PACKAGE_BUGREPORT
755PACKAGE_STRING
756PACKAGE_VERSION
757PACKAGE_TARNAME
758PACKAGE_NAME
759PATH_SEPARATOR
760SHELL'
fee8ec00 761ac_subst_files=''
81ecdfbb
RW
762ac_user_opts='
763enable_option_checking
aadc9410 764with_system_zlib
6bb11ab3
L
765enable_plugins
766enable_shared
767enable_static
768with_pic
769enable_fast_install
770with_gnu_ld
771enable_libtool_lock
81ecdfbb 772enable_maintainer_mode
81ecdfbb
RW
773enable_sim_debug
774enable_sim_stdio
775enable_sim_trace
776enable_sim_profile
35656e95 777enable_sim_assert
16f7876d 778enable_sim_environment
347fe5bb 779enable_sim_inline
81ecdfbb
RW
780with_pkgversion
781with_bugurl
ca968da4
MF
782enable_sim_endian
783enable_sim_alignment
2232061b 784enable_werror
81ecdfbb
RW
785enable_build_warnings
786enable_sim_build_warnings
787'
788 ac_precious_vars='build_alias
789host_alias
790target_alias
791CC
792CFLAGS
793LDFLAGS
794LIBS
795CPPFLAGS
796CPP'
797
fee8ec00
SR
798
799# Initialize some variables set by options.
800ac_init_help=
801ac_init_version=false
81ecdfbb
RW
802ac_unrecognized_opts=
803ac_unrecognized_sep=
fee8ec00
SR
804# The variables have the same names as the options, with
805# dashes changed to underlines.
806cache_file=/dev/null
807exec_prefix=NONE
808no_create=
809no_recursion=
810prefix=NONE
811program_prefix=NONE
812program_suffix=NONE
813program_transform_name=s,x,x,
814silent=
815site=
816srcdir=
817verbose=
818x_includes=NONE
819x_libraries=NONE
820
821# Installation directory options.
822# These are left unexpanded so users can "make install exec_prefix=/foo"
823# and all the variables that are supposed to be based on exec_prefix
824# by default will actually change.
825# Use braces instead of parens because sh, perl, etc. also accept them.
81ecdfbb 826# (The list follows the same order as the GNU Coding Standards.)
fee8ec00
SR
827bindir='${exec_prefix}/bin'
828sbindir='${exec_prefix}/sbin'
829libexecdir='${exec_prefix}/libexec'
81ecdfbb
RW
830datarootdir='${prefix}/share'
831datadir='${datarootdir}'
fee8ec00
SR
832sysconfdir='${prefix}/etc'
833sharedstatedir='${prefix}/com'
834localstatedir='${prefix}/var'
fee8ec00
SR
835includedir='${prefix}/include'
836oldincludedir='/usr/include'
81ecdfbb
RW
837docdir='${datarootdir}/doc/${PACKAGE}'
838infodir='${datarootdir}/info'
839htmldir='${docdir}'
840dvidir='${docdir}'
841pdfdir='${docdir}'
842psdir='${docdir}'
843libdir='${exec_prefix}/lib'
844localedir='${datarootdir}/locale'
845mandir='${datarootdir}/man'
fee8ec00
SR
846
847ac_prev=
81ecdfbb 848ac_dashdash=
fee8ec00
SR
849for ac_option
850do
851 # If the previous option needs an argument, assign it.
852 if test -n "$ac_prev"; then
81ecdfbb 853 eval $ac_prev=\$ac_option
fee8ec00
SR
854 ac_prev=
855 continue
856 fi
857
81ecdfbb 858 case $ac_option in
63a9e923
SM
859 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
860 *=) ac_optarg= ;;
861 *) ac_optarg=yes ;;
81ecdfbb 862 esac
fee8ec00
SR
863
864 # Accept the important Cygnus configure options, so we can diagnose typos.
865
81ecdfbb
RW
866 case $ac_dashdash$ac_option in
867 --)
868 ac_dashdash=yes ;;
fee8ec00
SR
869
870 -bindir | --bindir | --bindi | --bind | --bin | --bi)
871 ac_prev=bindir ;;
872 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
873 bindir=$ac_optarg ;;
874
875 -build | --build | --buil | --bui | --bu)
876 ac_prev=build_alias ;;
877 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
878 build_alias=$ac_optarg ;;
879
880 -cache-file | --cache-file | --cache-fil | --cache-fi \
881 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
882 ac_prev=cache_file ;;
883 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
884 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
885 cache_file=$ac_optarg ;;
886
887 --config-cache | -C)
888 cache_file=config.cache ;;
889
81ecdfbb 890 -datadir | --datadir | --datadi | --datad)
fee8ec00 891 ac_prev=datadir ;;
81ecdfbb 892 -datadir=* | --datadir=* | --datadi=* | --datad=*)
fee8ec00
SR
893 datadir=$ac_optarg ;;
894
81ecdfbb
RW
895 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
896 | --dataroo | --dataro | --datar)
897 ac_prev=datarootdir ;;
898 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
899 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
900 datarootdir=$ac_optarg ;;
901
fee8ec00 902 -disable-* | --disable-*)
81ecdfbb 903 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
fee8ec00 904 # Reject names that are not valid shell variable names.
81ecdfbb 905 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
63a9e923 906 as_fn_error $? "invalid feature name: $ac_useropt"
81ecdfbb
RW
907 ac_useropt_orig=$ac_useropt
908 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
909 case $ac_user_opts in
910 *"
911"enable_$ac_useropt"
912"*) ;;
913 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
914 ac_unrecognized_sep=', ';;
915 esac
916 eval enable_$ac_useropt=no ;;
917
918 -docdir | --docdir | --docdi | --doc | --do)
919 ac_prev=docdir ;;
920 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
921 docdir=$ac_optarg ;;
922
923 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
924 ac_prev=dvidir ;;
925 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
926 dvidir=$ac_optarg ;;
fee8ec00
SR
927
928 -enable-* | --enable-*)
81ecdfbb 929 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
fee8ec00 930 # Reject names that are not valid shell variable names.
81ecdfbb 931 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
63a9e923 932 as_fn_error $? "invalid feature name: $ac_useropt"
81ecdfbb
RW
933 ac_useropt_orig=$ac_useropt
934 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
935 case $ac_user_opts in
936 *"
937"enable_$ac_useropt"
938"*) ;;
939 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
940 ac_unrecognized_sep=', ';;
fee8ec00 941 esac
81ecdfbb 942 eval enable_$ac_useropt=\$ac_optarg ;;
fee8ec00
SR
943
944 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
945 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
946 | --exec | --exe | --ex)
947 ac_prev=exec_prefix ;;
948 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
949 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
950 | --exec=* | --exe=* | --ex=*)
951 exec_prefix=$ac_optarg ;;
952
953 -gas | --gas | --ga | --g)
954 # Obsolete; use --with-gas.
955 with_gas=yes ;;
956
957 -help | --help | --hel | --he | -h)
958 ac_init_help=long ;;
959 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
960 ac_init_help=recursive ;;
961 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
962 ac_init_help=short ;;
963
964 -host | --host | --hos | --ho)
965 ac_prev=host_alias ;;
966 -host=* | --host=* | --hos=* | --ho=*)
967 host_alias=$ac_optarg ;;
968
81ecdfbb
RW
969 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
970 ac_prev=htmldir ;;
971 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
972 | --ht=*)
973 htmldir=$ac_optarg ;;
974
fee8ec00
SR
975 -includedir | --includedir | --includedi | --included | --include \
976 | --includ | --inclu | --incl | --inc)
977 ac_prev=includedir ;;
978 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
979 | --includ=* | --inclu=* | --incl=* | --inc=*)
980 includedir=$ac_optarg ;;
981
982 -infodir | --infodir | --infodi | --infod | --info | --inf)
983 ac_prev=infodir ;;
984 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
985 infodir=$ac_optarg ;;
986
987 -libdir | --libdir | --libdi | --libd)
988 ac_prev=libdir ;;
989 -libdir=* | --libdir=* | --libdi=* | --libd=*)
990 libdir=$ac_optarg ;;
991
992 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
993 | --libexe | --libex | --libe)
994 ac_prev=libexecdir ;;
995 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
996 | --libexe=* | --libex=* | --libe=*)
997 libexecdir=$ac_optarg ;;
998
81ecdfbb
RW
999 -localedir | --localedir | --localedi | --localed | --locale)
1000 ac_prev=localedir ;;
1001 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1002 localedir=$ac_optarg ;;
1003
fee8ec00 1004 -localstatedir | --localstatedir | --localstatedi | --localstated \
81ecdfbb 1005 | --localstate | --localstat | --localsta | --localst | --locals)
fee8ec00
SR
1006 ac_prev=localstatedir ;;
1007 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
81ecdfbb 1008 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
fee8ec00
SR
1009 localstatedir=$ac_optarg ;;
1010
1011 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1012 ac_prev=mandir ;;
1013 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1014 mandir=$ac_optarg ;;
1015
1016 -nfp | --nfp | --nf)
1017 # Obsolete; use --without-fp.
1018 with_fp=no ;;
1019
1020 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1021 | --no-cr | --no-c | -n)
1022 no_create=yes ;;
1023
1024 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1025 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1026 no_recursion=yes ;;
1027
1028 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1029 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1030 | --oldin | --oldi | --old | --ol | --o)
1031 ac_prev=oldincludedir ;;
1032 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1033 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1034 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1035 oldincludedir=$ac_optarg ;;
1036
1037 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1038 ac_prev=prefix ;;
1039 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1040 prefix=$ac_optarg ;;
1041
1042 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1043 | --program-pre | --program-pr | --program-p)
1044 ac_prev=program_prefix ;;
1045 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1046 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1047 program_prefix=$ac_optarg ;;
1048
1049 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1050 | --program-suf | --program-su | --program-s)
1051 ac_prev=program_suffix ;;
1052 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1053 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1054 program_suffix=$ac_optarg ;;
1055
1056 -program-transform-name | --program-transform-name \
1057 | --program-transform-nam | --program-transform-na \
1058 | --program-transform-n | --program-transform- \
1059 | --program-transform | --program-transfor \
1060 | --program-transfo | --program-transf \
1061 | --program-trans | --program-tran \
1062 | --progr-tra | --program-tr | --program-t)
1063 ac_prev=program_transform_name ;;
1064 -program-transform-name=* | --program-transform-name=* \
1065 | --program-transform-nam=* | --program-transform-na=* \
1066 | --program-transform-n=* | --program-transform-=* \
1067 | --program-transform=* | --program-transfor=* \
1068 | --program-transfo=* | --program-transf=* \
1069 | --program-trans=* | --program-tran=* \
1070 | --progr-tra=* | --program-tr=* | --program-t=*)
1071 program_transform_name=$ac_optarg ;;
1072
81ecdfbb
RW
1073 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1074 ac_prev=pdfdir ;;
1075 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1076 pdfdir=$ac_optarg ;;
1077
1078 -psdir | --psdir | --psdi | --psd | --ps)
1079 ac_prev=psdir ;;
1080 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1081 psdir=$ac_optarg ;;
1082
fee8ec00
SR
1083 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1084 | -silent | --silent | --silen | --sile | --sil)
1085 silent=yes ;;
1086
1087 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1088 ac_prev=sbindir ;;
1089 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1090 | --sbi=* | --sb=*)
1091 sbindir=$ac_optarg ;;
1092
1093 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1094 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1095 | --sharedst | --shareds | --shared | --share | --shar \
1096 | --sha | --sh)
1097 ac_prev=sharedstatedir ;;
1098 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1099 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1100 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1101 | --sha=* | --sh=*)
1102 sharedstatedir=$ac_optarg ;;
1103
1104 -site | --site | --sit)
1105 ac_prev=site ;;
1106 -site=* | --site=* | --sit=*)
1107 site=$ac_optarg ;;
1108
1109 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1110 ac_prev=srcdir ;;
1111 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1112 srcdir=$ac_optarg ;;
1113
1114 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1115 | --syscon | --sysco | --sysc | --sys | --sy)
1116 ac_prev=sysconfdir ;;
1117 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1118 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1119 sysconfdir=$ac_optarg ;;
1120
1121 -target | --target | --targe | --targ | --tar | --ta | --t)
1122 ac_prev=target_alias ;;
1123 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1124 target_alias=$ac_optarg ;;
1125
1126 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1127 verbose=yes ;;
1128
1129 -version | --version | --versio | --versi | --vers | -V)
1130 ac_init_version=: ;;
1131
1132 -with-* | --with-*)
81ecdfbb 1133 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
fee8ec00 1134 # Reject names that are not valid shell variable names.
81ecdfbb 1135 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
63a9e923 1136 as_fn_error $? "invalid package name: $ac_useropt"
81ecdfbb
RW
1137 ac_useropt_orig=$ac_useropt
1138 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1139 case $ac_user_opts in
1140 *"
1141"with_$ac_useropt"
1142"*) ;;
1143 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1144 ac_unrecognized_sep=', ';;
fee8ec00 1145 esac
81ecdfbb 1146 eval with_$ac_useropt=\$ac_optarg ;;
fee8ec00
SR
1147
1148 -without-* | --without-*)
81ecdfbb 1149 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
fee8ec00 1150 # Reject names that are not valid shell variable names.
81ecdfbb 1151 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
63a9e923 1152 as_fn_error $? "invalid package name: $ac_useropt"
81ecdfbb
RW
1153 ac_useropt_orig=$ac_useropt
1154 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1155 case $ac_user_opts in
1156 *"
1157"with_$ac_useropt"
1158"*) ;;
1159 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1160 ac_unrecognized_sep=', ';;
1161 esac
1162 eval with_$ac_useropt=no ;;
fee8ec00
SR
1163
1164 --x)
1165 # Obsolete; use --with-x.
1166 with_x=yes ;;
1167
1168 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1169 | --x-incl | --x-inc | --x-in | --x-i)
1170 ac_prev=x_includes ;;
1171 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1172 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1173 x_includes=$ac_optarg ;;
1174
1175 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1176 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1177 ac_prev=x_libraries ;;
1178 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1179 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1180 x_libraries=$ac_optarg ;;
1181
63a9e923
SM
1182 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1183Try \`$0 --help' for more information"
fee8ec00
SR
1184 ;;
1185
1186 *=*)
1187 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1188 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1189 case $ac_envvar in #(
1190 '' | [0-9]* | *[!_$as_cr_alnum]* )
63a9e923 1191 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
81ecdfbb
RW
1192 esac
1193 eval $ac_envvar=\$ac_optarg
fee8ec00
SR
1194 export $ac_envvar ;;
1195
1196 *)
1197 # FIXME: should be removed in autoconf 3.0.
81ecdfbb 1198 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
fee8ec00 1199 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
81ecdfbb 1200 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
63a9e923 1201 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
fee8ec00
SR
1202 ;;
1203
1204 esac
1205done
1206
1207if test -n "$ac_prev"; then
1208 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
63a9e923 1209 as_fn_error $? "missing argument to $ac_option"
fee8ec00
SR
1210fi
1211
81ecdfbb
RW
1212if test -n "$ac_unrecognized_opts"; then
1213 case $enable_option_checking in
1214 no) ;;
63a9e923 1215 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
81ecdfbb 1216 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
fee8ec00 1217 esac
81ecdfbb 1218fi
fee8ec00 1219
81ecdfbb
RW
1220# Check all directory arguments for consistency.
1221for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1222 datadir sysconfdir sharedstatedir localstatedir includedir \
1223 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1224 libdir localedir mandir
fee8ec00 1225do
81ecdfbb
RW
1226 eval ac_val=\$$ac_var
1227 # Remove trailing slashes.
1228 case $ac_val in
1229 */ )
1230 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1231 eval $ac_var=\$ac_val;;
1232 esac
1233 # Be sure to have absolute directory names.
fee8ec00 1234 case $ac_val in
81ecdfbb
RW
1235 [\\/$]* | ?:[\\/]* ) continue;;
1236 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
fee8ec00 1237 esac
63a9e923 1238 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
fee8ec00
SR
1239done
1240
1241# There might be people who depend on the old broken behavior: `$host'
1242# used to hold the argument of --host etc.
1243# FIXME: To remove some day.
1244build=$build_alias
1245host=$host_alias
1246target=$target_alias
1247
1248# FIXME: To remove some day.
1249if test "x$host_alias" != x; then
1250 if test "x$build_alias" = x; then
1251 cross_compiling=maybe
fee8ec00
SR
1252 elif test "x$build_alias" != "x$host_alias"; then
1253 cross_compiling=yes
1254 fi
1255fi
1256
1257ac_tool_prefix=
1258test -n "$host_alias" && ac_tool_prefix=$host_alias-
1259
1260test "$silent" = yes && exec 6>/dev/null
1261
1262
81ecdfbb
RW
1263ac_pwd=`pwd` && test -n "$ac_pwd" &&
1264ac_ls_di=`ls -di .` &&
1265ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
63a9e923 1266 as_fn_error $? "working directory cannot be determined"
81ecdfbb 1267test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
63a9e923 1268 as_fn_error $? "pwd does not report name of working directory"
81ecdfbb
RW
1269
1270
fee8ec00
SR
1271# Find the source files, if location was not specified.
1272if test -z "$srcdir"; then
1273 ac_srcdir_defaulted=yes
81ecdfbb
RW
1274 # Try the directory containing this script, then the parent directory.
1275 ac_confdir=`$as_dirname -- "$as_myself" ||
1276$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1277 X"$as_myself" : 'X\(//\)[^/]' \| \
1278 X"$as_myself" : 'X\(//\)$' \| \
1279 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1280$as_echo X"$as_myself" |
1281 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1282 s//\1/
1283 q
1284 }
1285 /^X\(\/\/\)[^/].*/{
1286 s//\1/
1287 q
1288 }
1289 /^X\(\/\/\)$/{
1290 s//\1/
1291 q
1292 }
1293 /^X\(\/\).*/{
1294 s//\1/
1295 q
1296 }
1297 s/.*/./; q'`
fee8ec00 1298 srcdir=$ac_confdir
81ecdfbb 1299 if test ! -r "$srcdir/$ac_unique_file"; then
fee8ec00
SR
1300 srcdir=..
1301 fi
1302else
1303 ac_srcdir_defaulted=no
1304fi
81ecdfbb
RW
1305if test ! -r "$srcdir/$ac_unique_file"; then
1306 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
63a9e923 1307 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
81ecdfbb
RW
1308fi
1309ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1310ac_abs_confdir=`(
63a9e923 1311 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
81ecdfbb
RW
1312 pwd)`
1313# When building in place, set srcdir=.
1314if test "$ac_abs_confdir" = "$ac_pwd"; then
1315 srcdir=.
1316fi
1317# Remove unnecessary trailing slashes from srcdir.
1318# Double slashes in file names in object file debugging info
1319# mess up M-x gdb in Emacs.
1320case $srcdir in
1321*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1322esac
1323for ac_var in $ac_precious_vars; do
1324 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1325 eval ac_env_${ac_var}_value=\$${ac_var}
1326 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1327 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1328done
fee8ec00
SR
1329
1330#
1331# Report the --help message.
1332#
1333if test "$ac_init_help" = "long"; then
1334 # Omit some internal or obsolete options to make the list less imposing.
1335 # This message is too long to be a string in the A/UX 3.1 sh.
1336 cat <<_ACEOF
1337\`configure' configures this package to adapt to many kinds of systems.
1338
1339Usage: $0 [OPTION]... [VAR=VALUE]...
1340
1341To assign environment variables (e.g., CC, CFLAGS...), specify them as
1342VAR=VALUE. See below for descriptions of some of the useful variables.
1343
1344Defaults for the options are specified in brackets.
1345
1346Configuration:
1347 -h, --help display this help and exit
1348 --help=short display options specific to this package
1349 --help=recursive display the short help of all the included packages
1350 -V, --version display version information and exit
63a9e923 1351 -q, --quiet, --silent do not print \`checking ...' messages
fee8ec00
SR
1352 --cache-file=FILE cache test results in FILE [disabled]
1353 -C, --config-cache alias for \`--cache-file=config.cache'
1354 -n, --no-create do not create output files
1355 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1356
fee8ec00
SR
1357Installation directories:
1358 --prefix=PREFIX install architecture-independent files in PREFIX
81ecdfbb 1359 [$ac_default_prefix]
fee8ec00 1360 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
81ecdfbb 1361 [PREFIX]
fee8ec00
SR
1362
1363By default, \`make install' will install all the files in
1364\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1365an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1366for instance \`--prefix=\$HOME'.
1367
1368For better control, use the options below.
1369
1370Fine tuning of the installation directories:
81ecdfbb
RW
1371 --bindir=DIR user executables [EPREFIX/bin]
1372 --sbindir=DIR system admin executables [EPREFIX/sbin]
1373 --libexecdir=DIR program executables [EPREFIX/libexec]
1374 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1375 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1376 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1377 --libdir=DIR object code libraries [EPREFIX/lib]
1378 --includedir=DIR C header files [PREFIX/include]
1379 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1380 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1381 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1382 --infodir=DIR info documentation [DATAROOTDIR/info]
1383 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1384 --mandir=DIR man documentation [DATAROOTDIR/man]
1385 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1386 --htmldir=DIR html documentation [DOCDIR]
1387 --dvidir=DIR dvi documentation [DOCDIR]
1388 --pdfdir=DIR pdf documentation [DOCDIR]
1389 --psdir=DIR ps documentation [DOCDIR]
fee8ec00
SR
1390_ACEOF
1391
1392 cat <<\_ACEOF
1393
1394Program names:
1395 --program-prefix=PREFIX prepend PREFIX to installed program names
1396 --program-suffix=SUFFIX append SUFFIX to installed program names
1397 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1398
1399System types:
1400 --build=BUILD configure for building on BUILD [guessed]
1401 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1402 --target=TARGET configure for building compilers for TARGET [HOST]
1403_ACEOF
1404fi
1405
1406if test -n "$ac_init_help"; then
1407
1408 cat <<\_ACEOF
1409
1410Optional Features:
81ecdfbb 1411 --disable-option-checking ignore unrecognized --enable/--with options
fee8ec00
SR
1412 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1413 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
faa743bb 1414 --enable-plugins Enable support for plugins
6bb11ab3
L
1415 --enable-shared[=PKGS] build shared libraries [default=yes]
1416 --enable-static[=PKGS] build static libraries [default=yes]
1417 --enable-fast-install[=PKGS]
1418 optimize for fast installation [default=yes]
1419 --disable-libtool-lock avoid locking (might break parallel builds)
63a9e923
SM
1420 --enable-maintainer-mode
1421 enable make rules and dependencies not useful (and
1422 sometimes confusing) to the casual installer
8d0978fb
MF
1423 --enable-sim-debug=opts Enable debugging flags (for developers of the sim
1424 itself)
1425 --enable-sim-stdio Specify whether to use stdio for console
1426 input/output
1427 --enable-sim-trace=opts Enable tracing of simulated programs
1428 --enable-sim-profile=opts
1429 Enable profiling flags
35656e95 1430 --enable-sim-assert Specify whether to perform random assertions
16f7876d
MF
1431 --enable-sim-environment=environment
1432 Specify mixed, user, virtual or operating
1433 environment
347fe5bb
MF
1434 --enable-sim-inline=inlines
1435 Specify which functions should be inlined
8d0978fb
MF
1436 --enable-sim-endian=endian
1437 Specify target byte endian orientation
1438 --enable-sim-alignment=align
1439 Specify strict, nonstrict or forced alignment of
1440 memory accesses
2232061b
MF
1441 --enable-werror treat compile warnings as errors
1442 --enable-build-warnings enable build-time compiler warnings if gcc is used
1443 --enable-sim-build-warnings
1444 enable SIM specific build-time compiler warnings if
1445 gcc is used
fee8ec00 1446
6efef468
JM
1447Optional Packages:
1448 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1449 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
aadc9410 1450 --with-system-zlib use installed libz
6bb11ab3
L
1451 --with-pic try to use only PIC/non-PIC objects [default=use
1452 both]
1453 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
bf12d44e 1454 --with-pkgversion=PKG Use PKG in the version string in place of "SIM"
6efef468
JM
1455 --with-bugurl=URL Direct users to URL to report a bug
1456
fee8ec00
SR
1457Some influential environment variables:
1458 CC C compiler command
1459 CFLAGS C compiler flags
1460 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1461 nonstandard directory <lib dir>
81ecdfbb 1462 LIBS libraries to pass to the linker, e.g. -l<library>
63a9e923 1463 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
81ecdfbb 1464 you have headers in a nonstandard directory <include dir>
fee8ec00
SR
1465 CPP C preprocessor
1466
1467Use these variables to override the choices made by `configure' or to help
1468it to find libraries and programs with nonstandard names/locations.
1469
81ecdfbb 1470Report bugs to the package provider.
fee8ec00 1471_ACEOF
81ecdfbb 1472ac_status=$?
fee8ec00
SR
1473fi
1474
1475if test "$ac_init_help" = "recursive"; then
1476 # If there are subdirs, report their specific --help.
fee8ec00 1477 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
81ecdfbb
RW
1478 test -d "$ac_dir" ||
1479 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1480 continue
fee8ec00
SR
1481 ac_builddir=.
1482
81ecdfbb
RW
1483case "$ac_dir" in
1484.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1485*)
1486 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1487 # A ".." for each directory in $ac_dir_suffix.
1488 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1489 case $ac_top_builddir_sub in
1490 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1491 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1492 esac ;;
1493esac
1494ac_abs_top_builddir=$ac_pwd
1495ac_abs_builddir=$ac_pwd$ac_dir_suffix
1496# for backward compatibility:
1497ac_top_builddir=$ac_top_build_prefix
fee8ec00
SR
1498
1499case $srcdir in
81ecdfbb 1500 .) # We are building in place.
fee8ec00 1501 ac_srcdir=.
81ecdfbb
RW
1502 ac_top_srcdir=$ac_top_builddir_sub
1503 ac_abs_top_srcdir=$ac_pwd ;;
1504 [\\/]* | ?:[\\/]* ) # Absolute name.
fee8ec00 1505 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
1506 ac_top_srcdir=$srcdir
1507 ac_abs_top_srcdir=$srcdir ;;
1508 *) # Relative name.
1509 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1510 ac_top_srcdir=$ac_top_build_prefix$srcdir
1511 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
fee8ec00 1512esac
81ecdfbb
RW
1513ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1514
1515 cd "$ac_dir" || { ac_status=$?; continue; }
1516 # Check for guested configure.
1517 if test -f "$ac_srcdir/configure.gnu"; then
1518 echo &&
1519 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1520 elif test -f "$ac_srcdir/configure"; then
1521 echo &&
1522 $SHELL "$ac_srcdir/configure" --help=recursive
fee8ec00 1523 else
81ecdfbb
RW
1524 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1525 fi || ac_status=$?
1526 cd "$ac_pwd" || { ac_status=$?; break; }
fee8ec00
SR
1527 done
1528fi
1529
81ecdfbb 1530test -n "$ac_init_help" && exit $ac_status
fee8ec00
SR
1531if $ac_init_version; then
1532 cat <<\_ACEOF
81ecdfbb 1533configure
63a9e923 1534generated by GNU Autoconf 2.69
fee8ec00 1535
63a9e923 1536Copyright (C) 2012 Free Software Foundation, Inc.
fee8ec00
SR
1537This configure script is free software; the Free Software Foundation
1538gives unlimited permission to copy, distribute and modify it.
1539_ACEOF
81ecdfbb 1540 exit
fee8ec00 1541fi
fee8ec00 1542
81ecdfbb
RW
1543## ------------------------ ##
1544## Autoconf initialization. ##
1545## ------------------------ ##
fee8ec00 1546
81ecdfbb
RW
1547# ac_fn_c_try_compile LINENO
1548# --------------------------
1549# Try to compile conftest.$ac_ext, and return whether this succeeded.
1550ac_fn_c_try_compile ()
fee8ec00 1551{
81ecdfbb
RW
1552 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1553 rm -f conftest.$ac_objext
1554 if { { ac_try="$ac_compile"
1555case "(($ac_try" in
1556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1557 *) ac_try_echo=$ac_try;;
1558esac
1559eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1560$as_echo "$ac_try_echo"; } >&5
1561 (eval "$ac_compile") 2>conftest.err
1562 ac_status=$?
1563 if test -s conftest.err; then
1564 grep -v '^ *+' conftest.err >conftest.er1
1565 cat conftest.er1 >&5
1566 mv -f conftest.er1 conftest.err
1567 fi
1568 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1569 test $ac_status = 0; } && {
1570 test -z "$ac_c_werror_flag" ||
1571 test ! -s conftest.err
1572 } && test -s conftest.$ac_objext; then :
1573 ac_retval=0
1574else
1575 $as_echo "$as_me: failed program was:" >&5
1576sed 's/^/| /' conftest.$ac_ext >&5
fee8ec00 1577
81ecdfbb
RW
1578 ac_retval=1
1579fi
63a9e923
SM
1580 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1581 as_fn_set_status $ac_retval
fee8ec00 1582
81ecdfbb 1583} # ac_fn_c_try_compile
fee8ec00 1584
81ecdfbb
RW
1585# ac_fn_c_try_cpp LINENO
1586# ----------------------
1587# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1588ac_fn_c_try_cpp ()
1589{
1590 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1591 if { { ac_try="$ac_cpp conftest.$ac_ext"
1592case "(($ac_try" in
1593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1594 *) ac_try_echo=$ac_try;;
1595esac
1596eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1597$as_echo "$ac_try_echo"; } >&5
1598 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1599 ac_status=$?
1600 if test -s conftest.err; then
1601 grep -v '^ *+' conftest.err >conftest.er1
1602 cat conftest.er1 >&5
1603 mv -f conftest.er1 conftest.err
1604 fi
1605 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
63a9e923 1606 test $ac_status = 0; } > conftest.i && {
81ecdfbb
RW
1607 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1608 test ! -s conftest.err
1609 }; then :
1610 ac_retval=0
1611else
1612 $as_echo "$as_me: failed program was:" >&5
1613sed 's/^/| /' conftest.$ac_ext >&5
fee8ec00 1614
81ecdfbb
RW
1615 ac_retval=1
1616fi
63a9e923
SM
1617 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1618 as_fn_set_status $ac_retval
fee8ec00 1619
81ecdfbb 1620} # ac_fn_c_try_cpp
fee8ec00 1621
81ecdfbb
RW
1622# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1623# -------------------------------------------------------
1624# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1625# the include files in INCLUDES and setting the cache variable VAR
1626# accordingly.
1627ac_fn_c_check_header_mongrel ()
1628{
1629 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
63a9e923 1630 if eval \${$3+:} false; then :
81ecdfbb
RW
1631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1632$as_echo_n "checking for $2... " >&6; }
63a9e923 1633if eval \${$3+:} false; then :
81ecdfbb
RW
1634 $as_echo_n "(cached) " >&6
1635fi
1636eval ac_res=\$$3
1637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1638$as_echo "$ac_res" >&6; }
1639else
1640 # Is the header compilable?
1641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1642$as_echo_n "checking $2 usability... " >&6; }
1643cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1644/* end confdefs.h. */
1645$4
1646#include <$2>
1647_ACEOF
1648if ac_fn_c_try_compile "$LINENO"; then :
1649 ac_header_compiler=yes
1650else
1651 ac_header_compiler=no
1652fi
1653rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1655$as_echo "$ac_header_compiler" >&6; }
1656
1657# Is the header present?
1658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1659$as_echo_n "checking $2 presence... " >&6; }
1660cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1661/* end confdefs.h. */
1662#include <$2>
1663_ACEOF
1664if ac_fn_c_try_cpp "$LINENO"; then :
1665 ac_header_preproc=yes
1666else
1667 ac_header_preproc=no
1668fi
63a9e923 1669rm -f conftest.err conftest.i conftest.$ac_ext
81ecdfbb
RW
1670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1671$as_echo "$ac_header_preproc" >&6; }
1672
1673# So? What about this header?
1674case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1675 yes:no: )
1676 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1677$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1678 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1679$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1680 ;;
1681 no:yes:* )
1682 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1683$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1684 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1685$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1686 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1687$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1688 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1689$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1690 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1691$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1692 ;;
1693esac
1694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1695$as_echo_n "checking for $2... " >&6; }
63a9e923 1696if eval \${$3+:} false; then :
81ecdfbb
RW
1697 $as_echo_n "(cached) " >&6
1698else
1699 eval "$3=\$ac_header_compiler"
1700fi
1701eval ac_res=\$$3
1702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1703$as_echo "$ac_res" >&6; }
1704fi
63a9e923 1705 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
81ecdfbb
RW
1706
1707} # ac_fn_c_check_header_mongrel
1708
1709# ac_fn_c_try_run LINENO
1710# ----------------------
1711# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1712# that executables *can* be run.
1713ac_fn_c_try_run ()
1714{
1715 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1716 if { { ac_try="$ac_link"
1717case "(($ac_try" in
1718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1719 *) ac_try_echo=$ac_try;;
1720esac
1721eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1722$as_echo "$ac_try_echo"; } >&5
1723 (eval "$ac_link") 2>&5
1724 ac_status=$?
1725 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1726 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1727 { { case "(($ac_try" in
1728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1729 *) ac_try_echo=$ac_try;;
1730esac
1731eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1732$as_echo "$ac_try_echo"; } >&5
1733 (eval "$ac_try") 2>&5
1734 ac_status=$?
1735 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1736 test $ac_status = 0; }; }; then :
1737 ac_retval=0
1738else
1739 $as_echo "$as_me: program exited with status $ac_status" >&5
1740 $as_echo "$as_me: failed program was:" >&5
1741sed 's/^/| /' conftest.$ac_ext >&5
1742
1743 ac_retval=$ac_status
1744fi
1745 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
63a9e923
SM
1746 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1747 as_fn_set_status $ac_retval
81ecdfbb
RW
1748
1749} # ac_fn_c_try_run
1750
1751# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1752# -------------------------------------------------------
1753# Tests whether HEADER exists and can be compiled using the include files in
1754# INCLUDES, setting the cache variable VAR accordingly.
1755ac_fn_c_check_header_compile ()
1756{
1757 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1759$as_echo_n "checking for $2... " >&6; }
63a9e923 1760if eval \${$3+:} false; then :
81ecdfbb
RW
1761 $as_echo_n "(cached) " >&6
1762else
1763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1764/* end confdefs.h. */
1765$4
1766#include <$2>
1767_ACEOF
1768if ac_fn_c_try_compile "$LINENO"; then :
1769 eval "$3=yes"
1770else
1771 eval "$3=no"
1772fi
1773rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1774fi
1775eval ac_res=\$$3
1776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1777$as_echo "$ac_res" >&6; }
63a9e923 1778 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
81ecdfbb
RW
1779
1780} # ac_fn_c_check_header_compile
1781
1782# ac_fn_c_try_link LINENO
1783# -----------------------
1784# Try to link conftest.$ac_ext, and return whether this succeeded.
1785ac_fn_c_try_link ()
1786{
1787 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1788 rm -f conftest.$ac_objext conftest$ac_exeext
1789 if { { ac_try="$ac_link"
1790case "(($ac_try" in
1791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1792 *) ac_try_echo=$ac_try;;
1793esac
1794eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1795$as_echo "$ac_try_echo"; } >&5
1796 (eval "$ac_link") 2>conftest.err
1797 ac_status=$?
1798 if test -s conftest.err; then
1799 grep -v '^ *+' conftest.err >conftest.er1
1800 cat conftest.er1 >&5
1801 mv -f conftest.er1 conftest.err
1802 fi
1803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1804 test $ac_status = 0; } && {
1805 test -z "$ac_c_werror_flag" ||
1806 test ! -s conftest.err
1807 } && test -s conftest$ac_exeext && {
1808 test "$cross_compiling" = yes ||
63a9e923 1809 test -x conftest$ac_exeext
81ecdfbb
RW
1810 }; then :
1811 ac_retval=0
1812else
1813 $as_echo "$as_me: failed program was:" >&5
1814sed 's/^/| /' conftest.$ac_ext >&5
1815
1816 ac_retval=1
1817fi
1818 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1819 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1820 # interfere with the next link command; also delete a directory that is
1821 # left behind by Apple's compiler. We do this before executing the actions.
1822 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
63a9e923
SM
1823 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1824 as_fn_set_status $ac_retval
81ecdfbb
RW
1825
1826} # ac_fn_c_try_link
1827
1828# ac_fn_c_check_func LINENO FUNC VAR
1829# ----------------------------------
1830# Tests whether FUNC exists, setting the cache variable VAR accordingly
1831ac_fn_c_check_func ()
1832{
1833 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1835$as_echo_n "checking for $2... " >&6; }
63a9e923 1836if eval \${$3+:} false; then :
81ecdfbb
RW
1837 $as_echo_n "(cached) " >&6
1838else
1839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1840/* end confdefs.h. */
1841/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1842 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1843#define $2 innocuous_$2
1844
1845/* System header to define __stub macros and hopefully few prototypes,
1846 which can conflict with char $2 (); below.
1847 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1848 <limits.h> exists even on freestanding compilers. */
1849
1850#ifdef __STDC__
1851# include <limits.h>
1852#else
1853# include <assert.h>
1854#endif
1855
1856#undef $2
1857
1858/* Override any GCC internal prototype to avoid an error.
1859 Use char because int might match the return type of a GCC
1860 builtin and then its argument prototype would still apply. */
1861#ifdef __cplusplus
1862extern "C"
1863#endif
1864char $2 ();
1865/* The GNU C library defines this for functions which it implements
1866 to always fail with ENOSYS. Some functions are actually named
1867 something starting with __ and the normal name is an alias. */
1868#if defined __stub_$2 || defined __stub___$2
1869choke me
1870#endif
1871
1872int
1873main ()
1874{
1875return $2 ();
1876 ;
1877 return 0;
1878}
1879_ACEOF
1880if ac_fn_c_try_link "$LINENO"; then :
1881 eval "$3=yes"
1882else
1883 eval "$3=no"
1884fi
1885rm -f core conftest.err conftest.$ac_objext \
1886 conftest$ac_exeext conftest.$ac_ext
1887fi
1888eval ac_res=\$$3
1889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1890$as_echo "$ac_res" >&6; }
63a9e923 1891 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
81ecdfbb
RW
1892
1893} # ac_fn_c_check_func
936df756
MF
1894
1895# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1896# ----------------------------------------------------
1897# Tries to find if the field MEMBER exists in type AGGR, after including
1898# INCLUDES, setting cache variable VAR accordingly.
1899ac_fn_c_check_member ()
1900{
1901 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1903$as_echo_n "checking for $2.$3... " >&6; }
63a9e923 1904if eval \${$4+:} false; then :
936df756
MF
1905 $as_echo_n "(cached) " >&6
1906else
1907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1908/* end confdefs.h. */
1909$5
1910int
1911main ()
1912{
1913static $2 ac_aggr;
1914if (ac_aggr.$3)
1915return 0;
1916 ;
1917 return 0;
1918}
1919_ACEOF
1920if ac_fn_c_try_compile "$LINENO"; then :
1921 eval "$4=yes"
1922else
1923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1924/* end confdefs.h. */
1925$5
1926int
1927main ()
1928{
1929static $2 ac_aggr;
1930if (sizeof ac_aggr.$3)
1931return 0;
1932 ;
1933 return 0;
1934}
1935_ACEOF
1936if ac_fn_c_try_compile "$LINENO"; then :
1937 eval "$4=yes"
1938else
1939 eval "$4=no"
1940fi
1941rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1942fi
1943rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1944fi
1945eval ac_res=\$$4
1946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1947$as_echo "$ac_res" >&6; }
63a9e923 1948 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
936df756
MF
1949
1950} # ac_fn_c_check_member
1951
1952# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1953# -------------------------------------------
1954# Tests whether TYPE exists after having included INCLUDES, setting cache
1955# variable VAR accordingly.
1956ac_fn_c_check_type ()
1957{
1958 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1960$as_echo_n "checking for $2... " >&6; }
63a9e923 1961if eval \${$3+:} false; then :
936df756
MF
1962 $as_echo_n "(cached) " >&6
1963else
1964 eval "$3=no"
1965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1966/* end confdefs.h. */
1967$4
1968int
1969main ()
1970{
1971if (sizeof ($2))
1972 return 0;
1973 ;
1974 return 0;
1975}
1976_ACEOF
1977if ac_fn_c_try_compile "$LINENO"; then :
1978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1979/* end confdefs.h. */
1980$4
1981int
1982main ()
1983{
1984if (sizeof (($2)))
1985 return 0;
1986 ;
1987 return 0;
1988}
1989_ACEOF
1990if ac_fn_c_try_compile "$LINENO"; then :
1991
1992else
1993 eval "$3=yes"
1994fi
1995rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1996fi
1997rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1998fi
1999eval ac_res=\$$3
2000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2001$as_echo "$ac_res" >&6; }
63a9e923 2002 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
936df756
MF
2003
2004} # ac_fn_c_check_type
81ecdfbb
RW
2005cat >config.log <<_ACEOF
2006This file contains any messages produced by compilers while
2007running configure, to aid debugging if configure makes a mistake.
2008
2009It was created by $as_me, which was
63a9e923 2010generated by GNU Autoconf 2.69. Invocation command line was
81ecdfbb
RW
2011
2012 $ $0 $@
2013
2014_ACEOF
2015exec 5>>config.log
2016{
2017cat <<_ASUNAME
2018## --------- ##
2019## Platform. ##
2020## --------- ##
2021
2022hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2023uname -m = `(uname -m) 2>/dev/null || echo unknown`
2024uname -r = `(uname -r) 2>/dev/null || echo unknown`
2025uname -s = `(uname -s) 2>/dev/null || echo unknown`
2026uname -v = `(uname -v) 2>/dev/null || echo unknown`
2027
2028/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2029/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2030
2031/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2032/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2033/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2034/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2035/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2036/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2037/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2038
2039_ASUNAME
2040
2041as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2042for as_dir in $PATH
2043do
2044 IFS=$as_save_IFS
2045 test -z "$as_dir" && as_dir=.
2046 $as_echo "PATH: $as_dir"
2047 done
2048IFS=$as_save_IFS
2049
2050} >&5
2051
2052cat >&5 <<_ACEOF
fee8ec00
SR
2053
2054
2055## ----------- ##
2056## Core tests. ##
2057## ----------- ##
2058
2059_ACEOF
2060
2061
2062# Keep a trace of the command line.
2063# Strip out --no-create and --no-recursion so they do not pile up.
2064# Strip out --silent because we don't want to record it for future runs.
2065# Also quote any args containing shell meta-characters.
2066# Make two passes to allow for proper duplicate-argument suppression.
2067ac_configure_args=
2068ac_configure_args0=
2069ac_configure_args1=
fee8ec00
SR
2070ac_must_keep_next=false
2071for ac_pass in 1 2
2072do
2073 for ac_arg
2074 do
2075 case $ac_arg in
2076 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2077 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2078 | -silent | --silent | --silen | --sile | --sil)
2079 continue ;;
81ecdfbb
RW
2080 *\'*)
2081 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
fee8ec00
SR
2082 esac
2083 case $ac_pass in
81ecdfbb 2084 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
fee8ec00 2085 2)
81ecdfbb 2086 as_fn_append ac_configure_args1 " '$ac_arg'"
fee8ec00
SR
2087 if test $ac_must_keep_next = true; then
2088 ac_must_keep_next=false # Got value, back to normal.
2089 else
2090 case $ac_arg in
2091 *=* | --config-cache | -C | -disable-* | --disable-* \
2092 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2093 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2094 | -with-* | --with-* | -without-* | --without-* | --x)
2095 case "$ac_configure_args0 " in
2096 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2097 esac
2098 ;;
2099 -* ) ac_must_keep_next=true ;;
2100 esac
2101 fi
81ecdfbb 2102 as_fn_append ac_configure_args " '$ac_arg'"
fee8ec00
SR
2103 ;;
2104 esac
2105 done
2106done
81ecdfbb
RW
2107{ ac_configure_args0=; unset ac_configure_args0;}
2108{ ac_configure_args1=; unset ac_configure_args1;}
fee8ec00
SR
2109
2110# When interrupted or exit'd, cleanup temporary files, and complete
2111# config.log. We remove comments because anyway the quotes in there
2112# would cause problems or look ugly.
81ecdfbb
RW
2113# WARNING: Use '\'' to represent an apostrophe within the trap.
2114# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
fee8ec00
SR
2115trap 'exit_status=$?
2116 # Save into config.log some information that might help in debugging.
2117 {
2118 echo
2119
63a9e923 2120 $as_echo "## ---------------- ##
fee8ec00 2121## Cache variables. ##
63a9e923 2122## ---------------- ##"
fee8ec00
SR
2123 echo
2124 # The following way of writing the cache mishandles newlines in values,
81ecdfbb
RW
2125(
2126 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2127 eval ac_val=\$$ac_var
2128 case $ac_val in #(
2129 *${as_nl}*)
2130 case $ac_var in #(
2131 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2132$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2133 esac
2134 case $ac_var in #(
2135 _ | IFS | as_nl) ;; #(
2136 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2137 *) { eval $ac_var=; unset $ac_var;} ;;
2138 esac ;;
2139 esac
2140 done
fee8ec00 2141 (set) 2>&1 |
81ecdfbb
RW
2142 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2143 *${as_nl}ac_space=\ *)
fee8ec00 2144 sed -n \
81ecdfbb
RW
2145 "s/'\''/'\''\\\\'\'''\''/g;
2146 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2147 ;; #(
fee8ec00 2148 *)
81ecdfbb 2149 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
fee8ec00 2150 ;;
81ecdfbb
RW
2151 esac |
2152 sort
2153)
fee8ec00
SR
2154 echo
2155
63a9e923 2156 $as_echo "## ----------------- ##
fee8ec00 2157## Output variables. ##
63a9e923 2158## ----------------- ##"
fee8ec00
SR
2159 echo
2160 for ac_var in $ac_subst_vars
2161 do
81ecdfbb
RW
2162 eval ac_val=\$$ac_var
2163 case $ac_val in
2164 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2165 esac
2166 $as_echo "$ac_var='\''$ac_val'\''"
fee8ec00
SR
2167 done | sort
2168 echo
2169
2170 if test -n "$ac_subst_files"; then
63a9e923 2171 $as_echo "## ------------------- ##
81ecdfbb 2172## File substitutions. ##
63a9e923 2173## ------------------- ##"
fee8ec00
SR
2174 echo
2175 for ac_var in $ac_subst_files
2176 do
81ecdfbb
RW
2177 eval ac_val=\$$ac_var
2178 case $ac_val in
2179 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2180 esac
2181 $as_echo "$ac_var='\''$ac_val'\''"
fee8ec00
SR
2182 done | sort
2183 echo
2184 fi
2185
2186 if test -s confdefs.h; then
63a9e923 2187 $as_echo "## ----------- ##
fee8ec00 2188## confdefs.h. ##
63a9e923 2189## ----------- ##"
fee8ec00 2190 echo
81ecdfbb 2191 cat confdefs.h
fee8ec00
SR
2192 echo
2193 fi
2194 test "$ac_signal" != 0 &&
81ecdfbb
RW
2195 $as_echo "$as_me: caught signal $ac_signal"
2196 $as_echo "$as_me: exit $exit_status"
fee8ec00 2197 } >&5
81ecdfbb
RW
2198 rm -f core *.core core.conftest.* &&
2199 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
fee8ec00 2200 exit $exit_status
81ecdfbb 2201' 0
fee8ec00 2202for ac_signal in 1 2 13 15; do
81ecdfbb 2203 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
fee8ec00
SR
2204done
2205ac_signal=0
2206
2207# confdefs.h avoids OS command line length limits that DEFS can exceed.
81ecdfbb
RW
2208rm -f -r conftest* confdefs.h
2209
2210$as_echo "/* confdefs.h */" > confdefs.h
fee8ec00
SR
2211
2212# Predefined preprocessor variables.
2213
2214cat >>confdefs.h <<_ACEOF
2215#define PACKAGE_NAME "$PACKAGE_NAME"
2216_ACEOF
2217
fee8ec00
SR
2218cat >>confdefs.h <<_ACEOF
2219#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2220_ACEOF
2221
fee8ec00
SR
2222cat >>confdefs.h <<_ACEOF
2223#define PACKAGE_VERSION "$PACKAGE_VERSION"
2224_ACEOF
2225
fee8ec00
SR
2226cat >>confdefs.h <<_ACEOF
2227#define PACKAGE_STRING "$PACKAGE_STRING"
2228_ACEOF
2229
fee8ec00
SR
2230cat >>confdefs.h <<_ACEOF
2231#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2232_ACEOF
2233
81ecdfbb
RW
2234cat >>confdefs.h <<_ACEOF
2235#define PACKAGE_URL "$PACKAGE_URL"
2236_ACEOF
2237
fee8ec00
SR
2238
2239# Let the site file select an alternate cache file if it wants to.
81ecdfbb
RW
2240# Prefer an explicitly selected file to automatically selected ones.
2241ac_site_file1=NONE
2242ac_site_file2=NONE
2243if test -n "$CONFIG_SITE"; then
63a9e923
SM
2244 # We do not want a PATH search for config.site.
2245 case $CONFIG_SITE in #((
2246 -*) ac_site_file1=./$CONFIG_SITE;;
2247 */*) ac_site_file1=$CONFIG_SITE;;
2248 *) ac_site_file1=./$CONFIG_SITE;;
2249 esac
81ecdfbb
RW
2250elif test "x$prefix" != xNONE; then
2251 ac_site_file1=$prefix/share/config.site
2252 ac_site_file2=$prefix/etc/config.site
2253else
2254 ac_site_file1=$ac_default_prefix/share/config.site
2255 ac_site_file2=$ac_default_prefix/etc/config.site
2256fi
2257for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2258do
2259 test "x$ac_site_file" = xNONE && continue
63a9e923 2260 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
81ecdfbb
RW
2261 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2262$as_echo "$as_me: loading site script $ac_site_file" >&6;}
fee8ec00 2263 sed 's/^/| /' "$ac_site_file" >&5
63a9e923
SM
2264 . "$ac_site_file" \
2265 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2266$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2267as_fn_error $? "failed to load site script $ac_site_file
2268See \`config.log' for more details" "$LINENO" 5; }
fee8ec00
SR
2269 fi
2270done
2271
2272if test -r "$cache_file"; then
63a9e923
SM
2273 # Some versions of bash will fail to source /dev/null (special files
2274 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2275 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
81ecdfbb
RW
2276 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2277$as_echo "$as_me: loading cache $cache_file" >&6;}
fee8ec00 2278 case $cache_file in
81ecdfbb
RW
2279 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2280 *) . "./$cache_file";;
fee8ec00
SR
2281 esac
2282 fi
2283else
81ecdfbb
RW
2284 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2285$as_echo "$as_me: creating cache $cache_file" >&6;}
fee8ec00
SR
2286 >$cache_file
2287fi
2288
2289# Check that the precious variables saved in the cache have kept the same
2290# value.
2291ac_cache_corrupted=false
81ecdfbb 2292for ac_var in $ac_precious_vars; do
fee8ec00
SR
2293 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2294 eval ac_new_set=\$ac_env_${ac_var}_set
81ecdfbb
RW
2295 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2296 eval ac_new_val=\$ac_env_${ac_var}_value
fee8ec00
SR
2297 case $ac_old_set,$ac_new_set in
2298 set,)
81ecdfbb
RW
2299 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2300$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
fee8ec00
SR
2301 ac_cache_corrupted=: ;;
2302 ,set)
81ecdfbb
RW
2303 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2304$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
fee8ec00
SR
2305 ac_cache_corrupted=: ;;
2306 ,);;
2307 *)
2308 if test "x$ac_old_val" != "x$ac_new_val"; then
81ecdfbb
RW
2309 # differences in whitespace do not lead to failure.
2310 ac_old_val_w=`echo x $ac_old_val`
2311 ac_new_val_w=`echo x $ac_new_val`
2312 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2313 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2314$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2315 ac_cache_corrupted=:
2316 else
2317 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2318$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2319 eval $ac_var=\$ac_old_val
2320 fi
2321 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2322$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2323 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2324$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
fee8ec00
SR
2325 fi;;
2326 esac
2327 # Pass precious variables to config.status.
2328 if test "$ac_new_set" = set; then
2329 case $ac_new_val in
81ecdfbb 2330 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
fee8ec00
SR
2331 *) ac_arg=$ac_var=$ac_new_val ;;
2332 esac
2333 case " $ac_configure_args " in
2334 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
81ecdfbb 2335 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
fee8ec00
SR
2336 esac
2337 fi
2338done
2339if $ac_cache_corrupted; then
81ecdfbb
RW
2340 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2341$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2342 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2343$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
63a9e923 2344 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
fee8ec00 2345fi
81ecdfbb
RW
2346## -------------------- ##
2347## Main body of script. ##
2348## -------------------- ##
fee8ec00
SR
2349
2350ac_ext=c
2351ac_cpp='$CPP $CPPFLAGS'
2352ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2353ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2354ac_compiler_gnu=$ac_cv_c_compiler_gnu
2355
2356
fee8ec00
SR
2357# This file contains common code used by all simulators.
2358#
2359# SIM_AC_COMMON invokes AC macros used by all simulators and by the common
2360# directory. It is intended to be invoked before any target specific stuff.
2361# SIM_AC_OUTPUT is a cover function to AC_OUTPUT to generate the Makefile.
2362# It is intended to be invoked last.
2363#
306f4178 2364# The simulator's configure.ac should look like:
fee8ec00
SR
2365#
2366# dnl Process this file with autoconf to produce a configure script.
6ffe910a 2367# AC_PREREQ(2.64)dnl
fee8ec00 2368# AC_INIT(Makefile.in)
6ffe910a 2369# sinclude(../common/aclocal.m4)
fee8ec00
SR
2370#
2371# SIM_AC_COMMON
2372#
2373# ... target specific stuff ...
2374#
2375# SIM_AC_OUTPUT
2376
d6416cdc
RW
2377# Include global overrides and fixes for Autoconf.
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
d6416cdc
RW
2400
2401
2402
2403
2404
2405
2406
fee8ec00
SR
2407
2408
2409
db2e4d67 2410
5c887dd5
JB
2411
2412
6bb11ab3 2413# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
db2e4d67 2414#
6bb11ab3
L
2415# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
2416# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
2417# Written by Gordon Matzigkeit, 1996
2418#
2419# This file is free software; the Free Software Foundation gives
2420# unlimited permission to copy and/or distribute it, with or without
2421# modifications, as long as this notice is preserved.
db2e4d67 2422
db2e4d67 2423
db2e4d67 2424
6bb11ab3 2425# serial 56 LT_INIT
db2e4d67
MF
2426
2427
6bb11ab3
L
2428# LT_PREREQ(VERSION)
2429# ------------------
2430# Complain and exit if this libtool version is less that VERSION.
db2e4d67 2431
db2e4d67
MF
2432
2433
6bb11ab3
L
2434# _LT_CHECK_BUILDDIR
2435# ------------------
2436# Complain if the absolute build directory name contains unusual characters
db2e4d67
MF
2437
2438
fee8ec00 2439
6bb11ab3
L
2440# LT_INIT([OPTIONS])
2441# ------------------
2442# LT_INIT
fee8ec00 2443
6bb11ab3
L
2444# Old names:
2445# This is what autoupdate's m4 run will expand. It fires
2446# the warning (with _au_warn_XXX), outputs it into the
2447# updated configure.ac (with AC_DIAGNOSE), and then outputs
2448# the replacement expansion.
fee8ec00
SR
2449
2450
6bb11ab3
L
2451# This is an auxiliary macro that is also run when
2452# autoupdate runs m4. It simply calls m4_warning, but
2453# we need a wrapper so that each warning is emitted only
2454# once. We break the quoting in m4_warning's argument in
2455# order to expand this macro's arguments, not AU_DEFUN's.
fee8ec00
SR
2456
2457
6bb11ab3
L
2458# Finally, this is the expansion that is picked up by
2459# autoconf. It tells the user to run autoupdate, and
2460# then outputs the replacement expansion. We do not care
2461# about autoupdate's warning because that contains
2462# information on what to do *after* running autoupdate.
fee8ec00 2463
6bb11ab3
L
2464# This is what autoupdate's m4 run will expand. It fires
2465# the warning (with _au_warn_XXX), outputs it into the
2466# updated configure.ac (with AC_DIAGNOSE), and then outputs
2467# the replacement expansion.
fee8ec00
SR
2468
2469
6bb11ab3
L
2470# This is an auxiliary macro that is also run when
2471# autoupdate runs m4. It simply calls m4_warning, but
2472# we need a wrapper so that each warning is emitted only
2473# once. We break the quoting in m4_warning's argument in
2474# order to expand this macro's arguments, not AU_DEFUN's.
fee8ec00
SR
2475
2476
6bb11ab3
L
2477# Finally, this is the expansion that is picked up by
2478# autoconf. It tells the user to run autoupdate, and
2479# then outputs the replacement expansion. We do not care
2480# about autoupdate's warning because that contains
2481# information on what to do *after* running autoupdate.
fee8ec00
SR
2482
2483
2484
6bb11ab3
L
2485# _LT_CC_BASENAME(CC)
2486# -------------------
2487# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
fee8ec00
SR
2488
2489
2490
6bb11ab3
L
2491# _LT_FILEUTILS_DEFAULTS
2492# ----------------------
2493# It is okay to use these file commands and assume they have been set
2494# sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
2495# _LT_FILEUTILS_DEFAULTS
fee8ec00
SR
2496
2497
6bb11ab3
L
2498# _LT_SETUP
2499# ---------
2500# _LT_SETUP
fee8ec00
SR
2501
2502
6bb11ab3
L
2503# _LT_PREPARE_SED_QUOTE_VARS
2504# --------------------------
2505# Define a few sed substitution that help us do robust quoting.
fee8ec00
SR
2506
2507
6bb11ab3
L
2508# _LT_PROG_LTMAIN
2509# ---------------
2510# Note that this code is called both from `configure', and `config.status'
2511# now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,
2512# `config.status' has no value for ac_aux_dir unless we are using Automake,
2513# so we pass a copy along to make sure it has a sensible value anyway.
2514# _LT_PROG_LTMAIN
fee8ec00
SR
2515
2516
6bb11ab3
L
2517## ------------------------------------- ##
2518## Accumulate code for creating libtool. ##
2519## ------------------------------------- ##
fee8ec00 2520
6bb11ab3
L
2521# So that we can recreate a full libtool script including additional
2522# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
2523# in macros and then make a single call at the end using the `libtool'
2524# label.
fee8ec00
SR
2525
2526
6bb11ab3
L
2527# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
2528# ----------------------------------------
2529# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
fee8ec00
SR
2530
2531
6bb11ab3 2532# Initialize.
fee8ec00
SR
2533
2534
2535
6bb11ab3
L
2536# _LT_CONFIG_LIBTOOL([COMMANDS])
2537# ------------------------------
2538# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
fee8ec00
SR
2539
2540
6bb11ab3 2541# Initialize.
fee8ec00
SR
2542
2543
2544
6bb11ab3
L
2545# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
2546# -----------------------------------------------------
fee8ec00 2547
5912fadd
JB
2548
2549
6bb11ab3
L
2550# _LT_FORMAT_COMMENT([COMMENT])
2551# -----------------------------
2552# Add leading comment marks to the start of each line, and a trailing
2553# full-stop to the whole comment if one is not present already.
5912fadd
JB
2554
2555
fee8ec00
SR
2556
2557
6bb11ab3
L
2558## ------------------------ ##
2559## FIXME: Eliminate VARNAME ##
2560## ------------------------ ##
fee8ec00
SR
2561
2562
6bb11ab3
L
2563# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
2564# -------------------------------------------------------------------
2565# CONFIGNAME is the name given to the value in the libtool script.
2566# VARNAME is the (base) name used in the configure script.
2567# VALUE may be 0, 1 or 2 for a computed quote escaped value based on
2568# VARNAME. Any other value will be used directly.
fee8ec00 2569
fee8ec00
SR
2570
2571
6bb11ab3
L
2572# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
2573# --------------------------------------------------------
fee8ec00
SR
2574
2575
2576
6bb11ab3
L
2577# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
2578# ------------------------------------------------
fee8ec00
SR
2579
2580
2581
6bb11ab3
L
2582# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
2583# ---------------------------------------------------------
fee8ec00
SR
2584
2585
2586
6bb11ab3
L
2587# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
2588# --------------------------------------------------
fee8ec00
SR
2589
2590
2591
6bb11ab3
L
2592# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
2593# ---------------------------------------------------
fee8ec00
SR
2594
2595
2596
6bb11ab3
L
2597# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
2598# ---------------------------------------------------
fee8ec00
SR
2599
2600
2601
2602
6bb11ab3
L
2603# lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
2604# ------------------------------------------------
fee8ec00
SR
2605
2606
2607
2608
6bb11ab3
L
2609# _LT_CONFIG_STATUS_DECLARE([VARNAME])
2610# ------------------------------------
2611# Quote a variable value, and forward it to `config.status' so that its
2612# declaration there will have the same value as in `configure'. VARNAME
2613# must have a single quote delimited value for this to work.
fee8ec00
SR
2614
2615
2616
6bb11ab3
L
2617# _LT_CONFIG_STATUS_DECLARATIONS
2618# ------------------------------
2619# We delimit libtool config variables with single quotes, so when
2620# we write them to config.status, we have to be sure to quote all
2621# embedded single quotes properly. In configure, this macro expands
2622# each variable declared with _LT_DECL (and _LT_TAGDECL) into:
2623#
2624# <var>='`$ECHO "$<var>" | $SED "$delay_single_quote_subst"`'
fee8ec00
SR
2625
2626
2627
6bb11ab3
L
2628# _LT_LIBTOOL_TAGS
2629# ----------------
2630# Output comment and list of tags supported by the script
fee8ec00
SR
2631
2632
2633
6bb11ab3
L
2634# _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
2635# -----------------------------------
2636# Extract the dictionary values for VARNAME (optionally with TAG) and
2637# expand to a commented shell variable setting:
2638#
2639# # Some comment about what VAR is for.
2640# visible_name=$lt_internal_name
fee8ec00
SR
2641
2642
fee8ec00 2643
6bb11ab3
L
2644# _LT_LIBTOOL_CONFIG_VARS
2645# -----------------------
2646# Produce commented declarations of non-tagged libtool config variables
2647# suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
2648# script. Tagged libtool config variables (even for the LIBTOOL CONFIG
2649# section) are produced by _LT_LIBTOOL_TAG_VARS.
fee8ec00
SR
2650
2651
6efef468 2652
6bb11ab3
L
2653# _LT_LIBTOOL_TAG_VARS(TAG)
2654# -------------------------
6efef468
JM
2655
2656
2657
6bb11ab3
L
2658# _LT_TAGVAR(VARNAME, [TAGNAME])
2659# ------------------------------
6efef468
JM
2660
2661
2662
6bb11ab3
L
2663# _LT_CONFIG_COMMANDS
2664# -------------------
2665# Send accumulated output to $CONFIG_STATUS. Thanks to the lists of
2666# variables for single and double quote escaping we saved from calls
2667# to _LT_DECL, we can put quote escaped variables declarations
2668# into `config.status', and then the shell code to quote escape them in
2669# for loops in `config.status'. Finally, any additional code accumulated
2670# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
2671#_LT_CONFIG_COMMANDS
2672
2673
2674# Initialize.
2675
2676
2677# _LT_GENERATED_FILE_INIT(FILE, [COMMENT])
2678# ------------------------------------
2679# Generate a child script FILE with all initialization necessary to
2680# reuse the environment learned by the parent script, and make the
2681# file executable. If COMMENT is supplied, it is inserted after the
2682# `#!' sequence but before initialization text begins. After this
2683# macro, additional text can be appended to FILE to form the body of
2684# the child script. The macro ends with non-zero status if the
2685# file could not be fully written (such as if the disk is full).
2686# _LT_GENERATED_FILE_INIT
2687
2688# LT_OUTPUT
2689# ---------
2690# This macro allows early generation of the libtool script (before
2691# AC_OUTPUT is called), incase it is used in configure for compilation
2692# tests.
2693# LT_OUTPUT
2694
2695
2696# _LT_CONFIG(TAG)
2697# ---------------
2698# If TAG is the built-in tag, create an initial libtool script with a
2699# default configuration from the untagged config vars. Otherwise add code
2700# to config.status for appending the configuration named by TAG from the
2701# matching tagged config vars.
2702# _LT_CONFIG
6efef468
JM
2703
2704
6bb11ab3
L
2705# LT_SUPPORTED_TAG(TAG)
2706# ---------------------
2707# Trace this macro to discover what tags are supported by the libtool
2708# --tag option, using:
2709# autoconf --trace 'LT_SUPPORTED_TAG:$1'
6efef468 2710
6efef468 2711
6efef468 2712
6bb11ab3 2713# C support is built-in for now
6efef468 2714
6efef468
JM
2715
2716
2717
6bb11ab3
L
2718# LT_LANG(LANG)
2719# -------------
2720# Enable libtool support for the given language if not already enabled.
2721# LT_LANG
6efef468
JM
2722
2723
6bb11ab3
L
2724# _LT_LANG(LANGNAME)
2725# ------------------
2726# _LT_LANG
6efef468
JM
2727
2728
6bb11ab3
L
2729# _LT_LANG_DEFAULT_CONFIG
2730# -----------------------
2731# _LT_LANG_DEFAULT_CONFIG
6efef468 2732
6bb11ab3
L
2733# Obsolete macros:
2734# This is what autoupdate's m4 run will expand. It fires
2735# the warning (with _au_warn_XXX), outputs it into the
2736# updated configure.ac (with AC_DIAGNOSE), and then outputs
2737# the replacement expansion.
6efef468 2738
6efef468 2739
6bb11ab3
L
2740# This is an auxiliary macro that is also run when
2741# autoupdate runs m4. It simply calls m4_warning, but
2742# we need a wrapper so that each warning is emitted only
2743# once. We break the quoting in m4_warning's argument in
2744# order to expand this macro's arguments, not AU_DEFUN's.
6efef468 2745
6efef468 2746
6bb11ab3
L
2747# Finally, this is the expansion that is picked up by
2748# autoconf. It tells the user to run autoupdate, and
2749# then outputs the replacement expansion. We do not care
2750# about autoupdate's warning because that contains
2751# information on what to do *after* running autoupdate.
6efef468 2752
6bb11ab3
L
2753# This is what autoupdate's m4 run will expand. It fires
2754# the warning (with _au_warn_XXX), outputs it into the
2755# updated configure.ac (with AC_DIAGNOSE), and then outputs
2756# the replacement expansion.
6efef468
JM
2757
2758
6bb11ab3
L
2759# This is an auxiliary macro that is also run when
2760# autoupdate runs m4. It simply calls m4_warning, but
2761# we need a wrapper so that each warning is emitted only
2762# once. We break the quoting in m4_warning's argument in
2763# order to expand this macro's arguments, not AU_DEFUN's.
6efef468
JM
2764
2765
6bb11ab3
L
2766# Finally, this is the expansion that is picked up by
2767# autoconf. It tells the user to run autoupdate, and
2768# then outputs the replacement expansion. We do not care
2769# about autoupdate's warning because that contains
2770# information on what to do *after* running autoupdate.
6efef468 2771
6bb11ab3
L
2772# This is what autoupdate's m4 run will expand. It fires
2773# the warning (with _au_warn_XXX), outputs it into the
2774# updated configure.ac (with AC_DIAGNOSE), and then outputs
2775# the replacement expansion.
6efef468
JM
2776
2777
6bb11ab3
L
2778# This is an auxiliary macro that is also run when
2779# autoupdate runs m4. It simply calls m4_warning, but
2780# we need a wrapper so that each warning is emitted only
2781# once. We break the quoting in m4_warning's argument in
2782# order to expand this macro's arguments, not AU_DEFUN's.
6efef468
JM
2783
2784
6bb11ab3
L
2785# Finally, this is the expansion that is picked up by
2786# autoconf. It tells the user to run autoupdate, and
2787# then outputs the replacement expansion. We do not care
2788# about autoupdate's warning because that contains
2789# information on what to do *after* running autoupdate.
6efef468 2790
6bb11ab3
L
2791# This is what autoupdate's m4 run will expand. It fires
2792# the warning (with _au_warn_XXX), outputs it into the
2793# updated configure.ac (with AC_DIAGNOSE), and then outputs
2794# the replacement expansion.
6efef468
JM
2795
2796
6bb11ab3
L
2797# This is an auxiliary macro that is also run when
2798# autoupdate runs m4. It simply calls m4_warning, but
2799# we need a wrapper so that each warning is emitted only
2800# once. We break the quoting in m4_warning's argument in
2801# order to expand this macro's arguments, not AU_DEFUN's.
6efef468
JM
2802
2803
6bb11ab3
L
2804# Finally, this is the expansion that is picked up by
2805# autoconf. It tells the user to run autoupdate, and
2806# then outputs the replacement expansion. We do not care
2807# about autoupdate's warning because that contains
2808# information on what to do *after* running autoupdate.
6efef468 2809
6bb11ab3
L
2810# This is what autoupdate's m4 run will expand. It fires
2811# the warning (with _au_warn_XXX), outputs it into the
2812# updated configure.ac (with AC_DIAGNOSE), and then outputs
2813# the replacement expansion.
6efef468
JM
2814
2815
6bb11ab3
L
2816# This is an auxiliary macro that is also run when
2817# autoupdate runs m4. It simply calls m4_warning, but
2818# we need a wrapper so that each warning is emitted only
2819# once. We break the quoting in m4_warning's argument in
2820# order to expand this macro's arguments, not AU_DEFUN's.
6efef468
JM
2821
2822
6bb11ab3
L
2823# Finally, this is the expansion that is picked up by
2824# autoconf. It tells the user to run autoupdate, and
2825# then outputs the replacement expansion. We do not care
2826# about autoupdate's warning because that contains
2827# information on what to do *after* running autoupdate.
6efef468 2828
fee8ec00
SR
2829
2830
6bb11ab3
L
2831# _LT_TAG_COMPILER
2832# ----------------
2833# _LT_TAG_COMPILER
fee8ec00
SR
2834
2835
6bb11ab3
L
2836# _LT_COMPILER_BOILERPLATE
2837# ------------------------
2838# Check for compiler boilerplate output or warnings with
2839# the simple compiler test code.
2840# _LT_COMPILER_BOILERPLATE
fee8ec00 2841
fee8ec00 2842
6bb11ab3
L
2843# _LT_LINKER_BOILERPLATE
2844# ----------------------
2845# Check for linker boilerplate output or warnings with
2846# the simple link test code.
2847# _LT_LINKER_BOILERPLATE
fee8ec00 2848
6bb11ab3
L
2849# _LT_REQUIRED_DARWIN_CHECKS
2850# -------------------------
81ecdfbb 2851
fee8ec00 2852
fee8ec00 2853
6bb11ab3
L
2854# _LT_DARWIN_LINKER_FEATURES
2855# --------------------------
2856# Checks for linker and compiler features on darwin
fee8ec00 2857
fee8ec00 2858
6bb11ab3
L
2859# _LT_SYS_MODULE_PATH_AIX
2860# -----------------------
2861# Links a minimal program and checks the executable
2862# for the system default hardcoded library path. In most cases,
2863# this is /usr/lib:/lib, but when the MPI compilers are used
2864# the location of the communication and MPI libs are included too.
2865# If we don't find anything, use the default library path according
2866# to the aix ld manual.
2867# _LT_SYS_MODULE_PATH_AIX
fee8ec00 2868
fee8ec00 2869
6bb11ab3
L
2870# _LT_SHELL_INIT(ARG)
2871# -------------------
2872# _LT_SHELL_INIT
fee8ec00 2873
fee8ec00 2874
81ecdfbb 2875
6bb11ab3
L
2876# _LT_PROG_ECHO_BACKSLASH
2877# -----------------------
2878# Find how we can fake an echo command that does not interpret backslash.
2879# In particular, with Autoconf 2.60 or later we add some code to the start
2880# of the generated configure script which will find a shell with a builtin
2881# printf (which we can use as an echo command).
2882# _LT_PROG_ECHO_BACKSLASH
fee8ec00 2883
fee8ec00 2884
6bb11ab3
L
2885# _LT_ENABLE_LOCK
2886# ---------------
2887# _LT_ENABLE_LOCK
81ecdfbb 2888
fee8ec00 2889
6bb11ab3
L
2890# _LT_CMD_OLD_ARCHIVE
2891# -------------------
2892# _LT_CMD_OLD_ARCHIVE
fee8ec00 2893
81ecdfbb 2894
6bb11ab3
L
2895# _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
2896# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
2897# ----------------------------------------------------------------
2898# Check whether the given compiler option works
2899# _LT_COMPILER_OPTION
fee8ec00 2900
6bb11ab3
L
2901# Old name:
2902# This is what autoupdate's m4 run will expand. It fires
2903# the warning (with _au_warn_XXX), outputs it into the
2904# updated configure.ac (with AC_DIAGNOSE), and then outputs
2905# the replacement expansion.
fee8ec00 2906
fee8ec00 2907
6bb11ab3
L
2908# This is an auxiliary macro that is also run when
2909# autoupdate runs m4. It simply calls m4_warning, but
2910# we need a wrapper so that each warning is emitted only
2911# once. We break the quoting in m4_warning's argument in
2912# order to expand this macro's arguments, not AU_DEFUN's.
fee8ec00 2913
fee8ec00 2914
6bb11ab3
L
2915# Finally, this is the expansion that is picked up by
2916# autoconf. It tells the user to run autoupdate, and
2917# then outputs the replacement expansion. We do not care
2918# about autoupdate's warning because that contains
2919# information on what to do *after* running autoupdate.
fee8ec00 2920
fee8ec00 2921
fee8ec00 2922
6bb11ab3
L
2923# _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
2924# [ACTION-SUCCESS], [ACTION-FAILURE])
2925# ----------------------------------------------------
2926# Check whether the given linker option works
2927# _LT_LINKER_OPTION
81ecdfbb 2928
6bb11ab3
L
2929# Old name:
2930# This is what autoupdate's m4 run will expand. It fires
2931# the warning (with _au_warn_XXX), outputs it into the
2932# updated configure.ac (with AC_DIAGNOSE), and then outputs
2933# the replacement expansion.
81ecdfbb 2934
81ecdfbb 2935
6bb11ab3
L
2936# This is an auxiliary macro that is also run when
2937# autoupdate runs m4. It simply calls m4_warning, but
2938# we need a wrapper so that each warning is emitted only
2939# once. We break the quoting in m4_warning's argument in
2940# order to expand this macro's arguments, not AU_DEFUN's.
81ecdfbb 2941
fee8ec00 2942
6bb11ab3
L
2943# Finally, this is the expansion that is picked up by
2944# autoconf. It tells the user to run autoupdate, and
2945# then outputs the replacement expansion. We do not care
2946# about autoupdate's warning because that contains
2947# information on what to do *after* running autoupdate.
2948
2949
2950
2951# LT_CMD_MAX_LEN
2952#---------------
2953# LT_CMD_MAX_LEN
2954
2955# Old name:
2956# This is what autoupdate's m4 run will expand. It fires
2957# the warning (with _au_warn_XXX), outputs it into the
2958# updated configure.ac (with AC_DIAGNOSE), and then outputs
2959# the replacement expansion.
2960
2961
2962# This is an auxiliary macro that is also run when
2963# autoupdate runs m4. It simply calls m4_warning, but
2964# we need a wrapper so that each warning is emitted only
2965# once. We break the quoting in m4_warning's argument in
2966# order to expand this macro's arguments, not AU_DEFUN's.
2967
2968
2969# Finally, this is the expansion that is picked up by
2970# autoconf. It tells the user to run autoupdate, and
2971# then outputs the replacement expansion. We do not care
2972# about autoupdate's warning because that contains
2973# information on what to do *after* running autoupdate.
2974
2975
2976
2977# _LT_HEADER_DLFCN
2978# ----------------
2979# _LT_HEADER_DLFCN
2980
2981
2982# _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
2983# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
2984# ----------------------------------------------------------------
2985# _LT_TRY_DLOPEN_SELF
2986
2987
2988# LT_SYS_DLOPEN_SELF
2989# ------------------
2990# LT_SYS_DLOPEN_SELF
2991
2992# Old name:
2993# This is what autoupdate's m4 run will expand. It fires
2994# the warning (with _au_warn_XXX), outputs it into the
2995# updated configure.ac (with AC_DIAGNOSE), and then outputs
2996# the replacement expansion.
2997
2998
2999# This is an auxiliary macro that is also run when
3000# autoupdate runs m4. It simply calls m4_warning, but
3001# we need a wrapper so that each warning is emitted only
3002# once. We break the quoting in m4_warning's argument in
3003# order to expand this macro's arguments, not AU_DEFUN's.
3004
3005
3006# Finally, this is the expansion that is picked up by
3007# autoconf. It tells the user to run autoupdate, and
3008# then outputs the replacement expansion. We do not care
3009# about autoupdate's warning because that contains
3010# information on what to do *after* running autoupdate.
3011
3012
3013
3014# _LT_COMPILER_C_O([TAGNAME])
3015# ---------------------------
3016# Check to see if options -c and -o are simultaneously supported by compiler.
3017# This macro does not hard code the compiler like AC_PROG_CC_C_O.
3018# _LT_COMPILER_C_O
3019
3020
3021# _LT_COMPILER_FILE_LOCKS([TAGNAME])
3022# ----------------------------------
3023# Check to see if we can do hard links to lock some files if needed
3024# _LT_COMPILER_FILE_LOCKS
3025
3026
3027# _LT_CHECK_OBJDIR
3028# ----------------
3029# _LT_CHECK_OBJDIR
3030
3031
3032# _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
3033# --------------------------------------
3034# Check hardcoding attributes.
3035# _LT_LINKER_HARDCODE_LIBPATH
3036
3037
3038# _LT_CMD_STRIPLIB
3039# ----------------
3040# _LT_CMD_STRIPLIB
3041
3042
3043# _LT_SYS_DYNAMIC_LINKER([TAG])
3044# -----------------------------
3045# PORTME Fill in your ld.so characteristics
3046# _LT_SYS_DYNAMIC_LINKER
3047
3048
3049# _LT_PATH_TOOL_PREFIX(TOOL)
3050# --------------------------
3051# find a file program which can recognize shared library
3052# _LT_PATH_TOOL_PREFIX
3053
3054# Old name:
3055# This is what autoupdate's m4 run will expand. It fires
3056# the warning (with _au_warn_XXX), outputs it into the
3057# updated configure.ac (with AC_DIAGNOSE), and then outputs
3058# the replacement expansion.
3059
3060
3061# This is an auxiliary macro that is also run when
3062# autoupdate runs m4. It simply calls m4_warning, but
3063# we need a wrapper so that each warning is emitted only
3064# once. We break the quoting in m4_warning's argument in
3065# order to expand this macro's arguments, not AU_DEFUN's.
3066
3067
3068# Finally, this is the expansion that is picked up by
3069# autoconf. It tells the user to run autoupdate, and
3070# then outputs the replacement expansion. We do not care
3071# about autoupdate's warning because that contains
3072# information on what to do *after* running autoupdate.
3073
3074
3075
3076# _LT_PATH_MAGIC
3077# --------------
3078# find a file program which can recognize a shared library
3079# _LT_PATH_MAGIC
3080
3081
3082# LT_PATH_LD
3083# ----------
3084# find the pathname to the GNU or non-GNU linker
3085# LT_PATH_LD
3086
3087# Old names:
3088# This is what autoupdate's m4 run will expand. It fires
3089# the warning (with _au_warn_XXX), outputs it into the
3090# updated configure.ac (with AC_DIAGNOSE), and then outputs
3091# the replacement expansion.
3092
3093
3094# This is an auxiliary macro that is also run when
3095# autoupdate runs m4. It simply calls m4_warning, but
3096# we need a wrapper so that each warning is emitted only
3097# once. We break the quoting in m4_warning's argument in
3098# order to expand this macro's arguments, not AU_DEFUN's.
3099
3100
3101# Finally, this is the expansion that is picked up by
3102# autoconf. It tells the user to run autoupdate, and
3103# then outputs the replacement expansion. We do not care
3104# about autoupdate's warning because that contains
3105# information on what to do *after* running autoupdate.
3106
3107# This is what autoupdate's m4 run will expand. It fires
3108# the warning (with _au_warn_XXX), outputs it into the
3109# updated configure.ac (with AC_DIAGNOSE), and then outputs
3110# the replacement expansion.
3111
3112
3113# This is an auxiliary macro that is also run when
3114# autoupdate runs m4. It simply calls m4_warning, but
3115# we need a wrapper so that each warning is emitted only
3116# once. We break the quoting in m4_warning's argument in
3117# order to expand this macro's arguments, not AU_DEFUN's.
3118
3119
3120# Finally, this is the expansion that is picked up by
3121# autoconf. It tells the user to run autoupdate, and
3122# then outputs the replacement expansion. We do not care
3123# about autoupdate's warning because that contains
3124# information on what to do *after* running autoupdate.
3125
3126
3127
3128# _LT_PATH_LD_GNU
3129#- --------------
3130# _LT_PATH_LD_GNU
3131
3132
3133# _LT_CMD_RELOAD
3134# --------------
3135# find reload flag for linker
3136# -- PORTME Some linkers may need a different reload flag.
3137# _LT_CMD_RELOAD
3138
3139
3140# _LT_CHECK_MAGIC_METHOD
3141# ----------------------
3142# how to check for library dependencies
3143# -- PORTME fill in with the dynamic library characteristics
3144# _LT_CHECK_MAGIC_METHOD
3145
3146
3147# LT_PATH_NM
3148# ----------
3149# find the pathname to a BSD- or MS-compatible name lister
3150# LT_PATH_NM
3151
3152# Old names:
3153# This is what autoupdate's m4 run will expand. It fires
3154# the warning (with _au_warn_XXX), outputs it into the
3155# updated configure.ac (with AC_DIAGNOSE), and then outputs
3156# the replacement expansion.
3157
3158
3159# This is an auxiliary macro that is also run when
3160# autoupdate runs m4. It simply calls m4_warning, but
3161# we need a wrapper so that each warning is emitted only
3162# once. We break the quoting in m4_warning's argument in
3163# order to expand this macro's arguments, not AU_DEFUN's.
3164
3165
3166# Finally, this is the expansion that is picked up by
3167# autoconf. It tells the user to run autoupdate, and
3168# then outputs the replacement expansion. We do not care
3169# about autoupdate's warning because that contains
3170# information on what to do *after* running autoupdate.
3171
3172# This is what autoupdate's m4 run will expand. It fires
3173# the warning (with _au_warn_XXX), outputs it into the
3174# updated configure.ac (with AC_DIAGNOSE), and then outputs
3175# the replacement expansion.
3176
3177
3178# This is an auxiliary macro that is also run when
3179# autoupdate runs m4. It simply calls m4_warning, but
3180# we need a wrapper so that each warning is emitted only
3181# once. We break the quoting in m4_warning's argument in
3182# order to expand this macro's arguments, not AU_DEFUN's.
3183
3184
3185# Finally, this is the expansion that is picked up by
3186# autoconf. It tells the user to run autoupdate, and
3187# then outputs the replacement expansion. We do not care
3188# about autoupdate's warning because that contains
3189# information on what to do *after* running autoupdate.
3190
3191
3192
3193# LT_LIB_M
3194# --------
3195# check for math library
3196# LT_LIB_M
3197
3198# Old name:
3199# This is what autoupdate's m4 run will expand. It fires
3200# the warning (with _au_warn_XXX), outputs it into the
3201# updated configure.ac (with AC_DIAGNOSE), and then outputs
3202# the replacement expansion.
3203
3204
3205# This is an auxiliary macro that is also run when
3206# autoupdate runs m4. It simply calls m4_warning, but
3207# we need a wrapper so that each warning is emitted only
3208# once. We break the quoting in m4_warning's argument in
3209# order to expand this macro's arguments, not AU_DEFUN's.
3210
3211
3212# Finally, this is the expansion that is picked up by
3213# autoconf. It tells the user to run autoupdate, and
3214# then outputs the replacement expansion. We do not care
3215# about autoupdate's warning because that contains
3216# information on what to do *after* running autoupdate.
3217
3218
3219
3220# _LT_COMPILER_NO_RTTI([TAGNAME])
3221# -------------------------------
3222# _LT_COMPILER_NO_RTTI
3223
3224
3225# _LT_CMD_GLOBAL_SYMBOLS
3226# ----------------------
3227 # _LT_CMD_GLOBAL_SYMBOLS
3228
3229
3230# _LT_COMPILER_PIC([TAGNAME])
3231# ---------------------------
3232# _LT_COMPILER_PIC
3233
3234
3235# _LT_LINKER_SHLIBS([TAGNAME])
3236# ----------------------------
3237# See if the linker supports building shared libraries.
3238# _LT_LINKER_SHLIBS
3239
3240
3241# _LT_LANG_C_CONFIG([TAG])
3242# ------------------------
3243# Ensure that the configuration variables for a C compiler are suitably
3244# defined. These variables are subsequently used by _LT_CONFIG to write
3245# the compiler configuration to `libtool'.
3246# _LT_LANG_C_CONFIG
3247
3248
3249# _LT_LANG_CXX_CONFIG([TAG])
3250# --------------------------
3251# Ensure that the configuration variables for a C++ compiler are suitably
3252# defined. These variables are subsequently used by _LT_CONFIG to write
3253# the compiler configuration to `libtool'.
3254# _LT_LANG_CXX_CONFIG
3255
3256
3257# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
3258# ---------------------------------
3259# Figure out "hidden" library dependencies from verbose
3260# compiler output when linking a shared library.
3261# Parse the compiler output and extract the necessary
3262# objects, libraries and library flags.
3263# _LT_SYS_HIDDEN_LIBDEPS
3264
3265
3266# _LT_LANG_F77_CONFIG([TAG])
3267# --------------------------
3268# Ensure that the configuration variables for a Fortran 77 compiler are
3269# suitably defined. These variables are subsequently used by _LT_CONFIG
3270# to write the compiler configuration to `libtool'.
3271# _LT_LANG_F77_CONFIG
3272
3273
3274# _LT_LANG_FC_CONFIG([TAG])
3275# -------------------------
3276# Ensure that the configuration variables for a Fortran compiler are
3277# suitably defined. These variables are subsequently used by _LT_CONFIG
3278# to write the compiler configuration to `libtool'.
3279# _LT_LANG_FC_CONFIG
3280
3281
3282# _LT_LANG_GCJ_CONFIG([TAG])
3283# --------------------------
3284# Ensure that the configuration variables for the GNU Java Compiler compiler
3285# are suitably defined. These variables are subsequently used by _LT_CONFIG
3286# to write the compiler configuration to `libtool'.
3287# _LT_LANG_GCJ_CONFIG
3288
3289
3290# _LT_LANG_RC_CONFIG([TAG])
3291# -------------------------
3292# Ensure that the configuration variables for the Windows resource compiler
3293# are suitably defined. These variables are subsequently used by _LT_CONFIG
3294# to write the compiler configuration to `libtool'.
3295# _LT_LANG_RC_CONFIG
3296
3297
3298# LT_PROG_GCJ
3299# -----------
3300
3301
3302# Old name:
3303# This is what autoupdate's m4 run will expand. It fires
3304# the warning (with _au_warn_XXX), outputs it into the
3305# updated configure.ac (with AC_DIAGNOSE), and then outputs
3306# the replacement expansion.
3307
3308
3309# This is an auxiliary macro that is also run when
3310# autoupdate runs m4. It simply calls m4_warning, but
3311# we need a wrapper so that each warning is emitted only
3312# once. We break the quoting in m4_warning's argument in
3313# order to expand this macro's arguments, not AU_DEFUN's.
3314
3315
3316# Finally, this is the expansion that is picked up by
3317# autoconf. It tells the user to run autoupdate, and
3318# then outputs the replacement expansion. We do not care
3319# about autoupdate's warning because that contains
3320# information on what to do *after* running autoupdate.
3321
3322
3323
3324# LT_PROG_RC
3325# ----------
3326
3327
3328# Old name:
3329# This is what autoupdate's m4 run will expand. It fires
3330# the warning (with _au_warn_XXX), outputs it into the
3331# updated configure.ac (with AC_DIAGNOSE), and then outputs
3332# the replacement expansion.
3333
3334
3335# This is an auxiliary macro that is also run when
3336# autoupdate runs m4. It simply calls m4_warning, but
3337# we need a wrapper so that each warning is emitted only
3338# once. We break the quoting in m4_warning's argument in
3339# order to expand this macro's arguments, not AU_DEFUN's.
3340
3341
3342# Finally, this is the expansion that is picked up by
3343# autoconf. It tells the user to run autoupdate, and
3344# then outputs the replacement expansion. We do not care
3345# about autoupdate's warning because that contains
3346# information on what to do *after* running autoupdate.
3347
3348
3349
3350# _LT_DECL_EGREP
3351# --------------
3352# If we don't have a new enough Autoconf to choose the best grep
3353# available, choose the one first in the user's PATH.
3354
3355
3356
3357# _LT_DECL_OBJDUMP
3358# --------------
3359# If we don't have a new enough Autoconf to choose the best objdump
3360# available, choose the one first in the user's PATH.
3361
3362
3363
3364# _LT_DECL_SED
3365# ------------
3366# Check for a fully-functional sed program, that truncates
3367# as few characters as possible. Prefer GNU sed if found.
3368# _LT_DECL_SED
3369
3370#m4_ifndef
3371
3372# Old name:
3373# This is what autoupdate's m4 run will expand. It fires
3374# the warning (with _au_warn_XXX), outputs it into the
3375# updated configure.ac (with AC_DIAGNOSE), and then outputs
3376# the replacement expansion.
3377
3378
3379# This is an auxiliary macro that is also run when
3380# autoupdate runs m4. It simply calls m4_warning, but
3381# we need a wrapper so that each warning is emitted only
3382# once. We break the quoting in m4_warning's argument in
3383# order to expand this macro's arguments, not AU_DEFUN's.
3384
3385
3386# Finally, this is the expansion that is picked up by
3387# autoconf. It tells the user to run autoupdate, and
3388# then outputs the replacement expansion. We do not care
3389# about autoupdate's warning because that contains
3390# information on what to do *after* running autoupdate.
3391
3392
3393
3394# _LT_CHECK_SHELL_FEATURES
3395# ------------------------
3396# Find out whether the shell is Bourne or XSI compatible,
3397# or has some other useful features.
3398# _LT_CHECK_SHELL_FEATURES
3399
3400
3401# _LT_PROG_XSI_SHELLFNS
3402# ---------------------
3403# Bourne and XSI compatible variants of some useful shell functions.
3404
3405
3406# Helper functions for option handling. -*- Autoconf -*-
3407#
3408# Copyright (C) 2004, 2005, 2007, 2008, 2009 Free Software Foundation,
3409# Inc.
3410# Written by Gary V. Vaughan, 2004
3411#
3412# This file is free software; the Free Software Foundation gives
3413# unlimited permission to copy and/or distribute it, with or without
3414# modifications, as long as this notice is preserved.
3415
3416# serial 6 ltoptions.m4
3417
3418# This is to help aclocal find these macros, as it can't see m4_define.
3419
3420
3421
3422# _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
3423# ------------------------------------------
3424
3425
3426
3427# _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
3428# ---------------------------------------
3429# Set option OPTION-NAME for macro MACRO-NAME, and if there is a
3430# matching handler defined, dispatch to it. Other OPTION-NAMEs are
3431# saved as a flag.
3432
3433
3434
3435# _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
3436# ------------------------------------------------------------
3437# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
3438
3439
3440
3441# _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
3442# -------------------------------------------------------
3443# Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
3444# are set.
3445
3446
3447
3448# _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
3449# ----------------------------------------
3450# OPTION-LIST is a space-separated list of Libtool options associated
3451# with MACRO-NAME. If any OPTION has a matching handler declared with
3452# LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
3453# the unknown option and exit.
3454# _LT_SET_OPTIONS
3455
3456
3457## --------------------------------- ##
3458## Macros to handle LT_INIT options. ##
3459## --------------------------------- ##
3460
3461# _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
3462# -----------------------------------------
3463
3464
3465
3466# LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
3467# -----------------------------------------------
3468# LT_OPTION_DEFINE
3469
3470
3471# dlopen
3472# ------
3473
3474
3475# This is what autoupdate's m4 run will expand. It fires
3476# the warning (with _au_warn_XXX), outputs it into the
3477# updated configure.ac (with AC_DIAGNOSE), and then outputs
3478# the replacement expansion.
3479
3480
3481# This is an auxiliary macro that is also run when
3482# autoupdate runs m4. It simply calls m4_warning, but
3483# we need a wrapper so that each warning is emitted only
3484# once. We break the quoting in m4_warning's argument in
3485# order to expand this macro's arguments, not AU_DEFUN's.
3486
3487
3488# Finally, this is the expansion that is picked up by
3489# autoconf. It tells the user to run autoupdate, and
3490# then outputs the replacement expansion. We do not care
3491# about autoupdate's warning because that contains
3492# information on what to do *after* running autoupdate.
3493
3494
3495
3496
3497# win32-dll
3498# ---------
3499# Declare package support for building win32 dll's.
3500# win32-dll
3501
3502# This is what autoupdate's m4 run will expand. It fires
3503# the warning (with _au_warn_XXX), outputs it into the
3504# updated configure.ac (with AC_DIAGNOSE), and then outputs
3505# the replacement expansion.
3506
3507
3508# This is an auxiliary macro that is also run when
3509# autoupdate runs m4. It simply calls m4_warning, but
3510# we need a wrapper so that each warning is emitted only
3511# once. We break the quoting in m4_warning's argument in
3512# order to expand this macro's arguments, not AU_DEFUN's.
3513
3514
3515# Finally, this is the expansion that is picked up by
3516# autoconf. It tells the user to run autoupdate, and
3517# then outputs the replacement expansion. We do not care
3518# about autoupdate's warning because that contains
3519# information on what to do *after* running autoupdate.
3520
3521
3522
3523
3524# _LT_ENABLE_SHARED([DEFAULT])
3525# ----------------------------
3526# implement the --enable-shared flag, and supports the `shared' and
3527# `disable-shared' LT_INIT options.
3528# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
3529# _LT_ENABLE_SHARED
3530
3531
3532
3533
3534# Old names:
3535
3536
3537
3538
3539# This is what autoupdate's m4 run will expand. It fires
3540# the warning (with _au_warn_XXX), outputs it into the
3541# updated configure.ac (with AC_DIAGNOSE), and then outputs
3542# the replacement expansion.
3543
3544
3545# This is an auxiliary macro that is also run when
3546# autoupdate runs m4. It simply calls m4_warning, but
3547# we need a wrapper so that each warning is emitted only
3548# once. We break the quoting in m4_warning's argument in
3549# order to expand this macro's arguments, not AU_DEFUN's.
3550
3551
3552# Finally, this is the expansion that is picked up by
3553# autoconf. It tells the user to run autoupdate, and
3554# then outputs the replacement expansion. We do not care
3555# about autoupdate's warning because that contains
3556# information on what to do *after* running autoupdate.
3557
3558# This is what autoupdate's m4 run will expand. It fires
3559# the warning (with _au_warn_XXX), outputs it into the
3560# updated configure.ac (with AC_DIAGNOSE), and then outputs
3561# the replacement expansion.
3562
3563
3564# This is an auxiliary macro that is also run when
3565# autoupdate runs m4. It simply calls m4_warning, but
3566# we need a wrapper so that each warning is emitted only
3567# once. We break the quoting in m4_warning's argument in
3568# order to expand this macro's arguments, not AU_DEFUN's.
3569
3570
3571# Finally, this is the expansion that is picked up by
3572# autoconf. It tells the user to run autoupdate, and
3573# then outputs the replacement expansion. We do not care
3574# about autoupdate's warning because that contains
3575# information on what to do *after* running autoupdate.
3576
3577
3578
3579
3580
3581# _LT_ENABLE_STATIC([DEFAULT])
3582# ----------------------------
3583# implement the --enable-static flag, and support the `static' and
3584# `disable-static' LT_INIT options.
3585# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
3586# _LT_ENABLE_STATIC
3587
3588
3589
3590
3591# Old names:
3592
3593
3594
3595
3596# This is what autoupdate's m4 run will expand. It fires
3597# the warning (with _au_warn_XXX), outputs it into the
3598# updated configure.ac (with AC_DIAGNOSE), and then outputs
3599# the replacement expansion.
3600
3601
3602# This is an auxiliary macro that is also run when
3603# autoupdate runs m4. It simply calls m4_warning, but
3604# we need a wrapper so that each warning is emitted only
3605# once. We break the quoting in m4_warning's argument in
3606# order to expand this macro's arguments, not AU_DEFUN's.
3607
3608
3609# Finally, this is the expansion that is picked up by
3610# autoconf. It tells the user to run autoupdate, and
3611# then outputs the replacement expansion. We do not care
3612# about autoupdate's warning because that contains
3613# information on what to do *after* running autoupdate.
3614
3615# This is what autoupdate's m4 run will expand. It fires
3616# the warning (with _au_warn_XXX), outputs it into the
3617# updated configure.ac (with AC_DIAGNOSE), and then outputs
3618# the replacement expansion.
3619
3620
3621# This is an auxiliary macro that is also run when
3622# autoupdate runs m4. It simply calls m4_warning, but
3623# we need a wrapper so that each warning is emitted only
3624# once. We break the quoting in m4_warning's argument in
3625# order to expand this macro's arguments, not AU_DEFUN's.
3626
3627
3628# Finally, this is the expansion that is picked up by
3629# autoconf. It tells the user to run autoupdate, and
3630# then outputs the replacement expansion. We do not care
3631# about autoupdate's warning because that contains
3632# information on what to do *after* running autoupdate.
3633
3634
3635
3636
3637
3638# _LT_ENABLE_FAST_INSTALL([DEFAULT])
3639# ----------------------------------
3640# implement the --enable-fast-install flag, and support the `fast-install'
3641# and `disable-fast-install' LT_INIT options.
3642# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
3643# _LT_ENABLE_FAST_INSTALL
3644
3645
3646
3647
3648# Old names:
3649# This is what autoupdate's m4 run will expand. It fires
3650# the warning (with _au_warn_XXX), outputs it into the
3651# updated configure.ac (with AC_DIAGNOSE), and then outputs
3652# the replacement expansion.
3653
3654
3655# This is an auxiliary macro that is also run when
3656# autoupdate runs m4. It simply calls m4_warning, but
3657# we need a wrapper so that each warning is emitted only
3658# once. We break the quoting in m4_warning's argument in
3659# order to expand this macro's arguments, not AU_DEFUN's.
3660
3661
3662# Finally, this is the expansion that is picked up by
3663# autoconf. It tells the user to run autoupdate, and
3664# then outputs the replacement expansion. We do not care
3665# about autoupdate's warning because that contains
3666# information on what to do *after* running autoupdate.
3667
3668
3669# This is what autoupdate's m4 run will expand. It fires
3670# the warning (with _au_warn_XXX), outputs it into the
3671# updated configure.ac (with AC_DIAGNOSE), and then outputs
3672# the replacement expansion.
3673
3674
3675# This is an auxiliary macro that is also run when
3676# autoupdate runs m4. It simply calls m4_warning, but
3677# we need a wrapper so that each warning is emitted only
3678# once. We break the quoting in m4_warning's argument in
3679# order to expand this macro's arguments, not AU_DEFUN's.
3680
3681
3682# Finally, this is the expansion that is picked up by
3683# autoconf. It tells the user to run autoupdate, and
3684# then outputs the replacement expansion. We do not care
3685# about autoupdate's warning because that contains
3686# information on what to do *after* running autoupdate.
3687
3688
3689
3690
3691# _LT_WITH_PIC([MODE])
3692# --------------------
3693# implement the --with-pic flag, and support the `pic-only' and `no-pic'
3694# LT_INIT options.
3695# MODE is either `yes' or `no'. If omitted, it defaults to `both'.
3696# _LT_WITH_PIC
3697
3698
3699
3700
3701# Old name:
3702# This is what autoupdate's m4 run will expand. It fires
3703# the warning (with _au_warn_XXX), outputs it into the
3704# updated configure.ac (with AC_DIAGNOSE), and then outputs
3705# the replacement expansion.
3706
3707
3708# This is an auxiliary macro that is also run when
3709# autoupdate runs m4. It simply calls m4_warning, but
3710# we need a wrapper so that each warning is emitted only
3711# once. We break the quoting in m4_warning's argument in
3712# order to expand this macro's arguments, not AU_DEFUN's.
3713
3714
3715# Finally, this is the expansion that is picked up by
3716# autoconf. It tells the user to run autoupdate, and
3717# then outputs the replacement expansion. We do not care
3718# about autoupdate's warning because that contains
3719# information on what to do *after* running autoupdate.
3720
3721
3722
3723## ----------------- ##
3724## LTDL_INIT Options ##
3725## ----------------- ##
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736# ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*-
3737#
3738# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
3739# Written by Gary V. Vaughan, 2004
3740#
3741# This file is free software; the Free Software Foundation gives
3742# unlimited permission to copy and/or distribute it, with or without
3743# modifications, as long as this notice is preserved.
3744
3745# serial 6 ltsugar.m4
3746
3747# This is to help aclocal find these macros, as it can't see m4_define.
3748
3749
3750
3751# lt_join(SEP, ARG1, [ARG2...])
3752# -----------------------------
3753# Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
3754# associated separator.
3755# Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
3756# versions in m4sugar had bugs.
3757
3758
3759
3760
3761# lt_car(LIST)
3762# lt_cdr(LIST)
3763# ------------
3764# Manipulate m4 lists.
3765# These macros are necessary as long as will still need to support
3766# Autoconf-2.59 which quotes differently.
3767
3768
3769
3770
3771
3772# lt_append(MACRO-NAME, STRING, [SEPARATOR])
3773# ------------------------------------------
3774# Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'.
3775# Note that neither SEPARATOR nor STRING are expanded; they are appended
3776# to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
3777# No SEPARATOR is output if MACRO-NAME was previously undefined (different
3778# than defined and empty).
3779#
3780# This macro is needed until we can rely on Autoconf 2.62, since earlier
3781# versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
3782
3783
3784
3785
3786# lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
3787# ----------------------------------------------------------
3788# Produce a SEP delimited list of all paired combinations of elements of
3789# PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list
3790# has the form PREFIXmINFIXSUFFIXn.
3791# Needed until we can rely on m4_combine added in Autoconf 2.62.
3792
3793
3794
3795# lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
3796# -----------------------------------------------------------------------
3797# Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
3798# by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
3799
3800
3801
3802# lt_dict_add(DICT, KEY, VALUE)
3803# -----------------------------
3804
3805
3806
3807# lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
3808# --------------------------------------------
3809
3810
3811
3812# lt_dict_fetch(DICT, KEY, [SUBKEY])
3813# ----------------------------------
3814
3815
3816
3817# lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
3818# -----------------------------------------------------------------
3819
3820
3821
3822# lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
3823# --------------------------------------------------------------
3824
3825
3826# ltversion.m4 -- version numbers -*- Autoconf -*-
3827#
3828# Copyright (C) 2004 Free Software Foundation, Inc.
3829# Written by Scott James Remnant, 2004
3830#
3831# This file is free software; the Free Software Foundation gives
3832# unlimited permission to copy and/or distribute it, with or without
3833# modifications, as long as this notice is preserved.
3834
3835# Generated from ltversion.in.
3836
3837# serial 3134 ltversion.m4
3838# This file is part of GNU Libtool
3839
3840
3841
3842
3843
3844
3845# lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
3846#
3847# Copyright (C) 2004, 2005, 2007, 2009 Free Software Foundation, Inc.
3848# Written by Scott James Remnant, 2004.
3849#
3850# This file is free software; the Free Software Foundation gives
3851# unlimited permission to copy and/or distribute it, with or without
3852# modifications, as long as this notice is preserved.
3853
3854# serial 4 lt~obsolete.m4
3855
3856# These exist entirely to fool aclocal when bootstrapping libtool.
3857#
3858# In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
3859# which have later been changed to m4_define as they aren't part of the
3860# exported API, or moved to Autoconf or Automake where they belong.
3861#
3862# The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN
3863# in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
3864# using a macro with the same name in our local m4/libtool.m4 it'll
3865# pull the old libtool.m4 in (it doesn't see our shiny new m4_define
3866# and doesn't know about Autoconf macros at all.)
3867#
3868# So we provide this file, which has a silly filename so it's always
3869# included after everything else. This provides aclocal with the
3870# AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
3871# because those macros already exist, or will be overwritten later.
3872# We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
3873#
3874# Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
3875# Yes, that means every name once taken will need to remain here until
3876# we give up compatibility with versions before 1.7, at which point
3877# we need to keep only those names which we still refer to.
3878
3879# This is to help aclocal find these macros, as it can't see m4_define.
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944## -*- Autoconf -*-
3945
3946# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2007
3947# Free Software Foundation, Inc.
3948#
3949# This file is free software; the Free Software Foundation
3950# gives unlimited permission to copy and/or distribute it,
3951# with or without modifications, as long as this notice is preserved.
3952
3953# serial 8
3954
3955# Based on depend.m4 from automake 1.9, modified for standalone use in
3956# an environment where GNU make is required.
3957
3958# ZW_PROG_COMPILER_DEPENDENCIES
3959# -----------------------------
3960# Variant of _AM_DEPENDENCIES which just does the dependency probe and
3961# sets fooDEPMODE accordingly. Cache-variable compatible with
3962# original; not side-effect compatible. As the users of this macro
3963# may require accurate dependencies for correct builds, it does *not*
3964# honor --disable-dependency-checking, and failure to detect a usable
3965# method is an error. depcomp is assumed to be located in
3966# $ac_aux_dir.
3967#
3968# FIXME: Should use the Autoconf 2.5x language-selection mechanism.
3969
3970
3971
3972# AM_SET_DEPDIR
3973# -------------
3974# Choose a directory name for dependency files.
3975
3976
3977# ZW_CREATE_DEPDIR
3978# ----------------
3979# As AM_SET_DEPDIR, but also create the directory at config.status time.
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
6bb11ab3
L
4021
4022
4023
4024
4025
6bb11ab3
L
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
6bb11ab3
L
4041
4042
4043
4044
4045
4046# intl sister-directory configuration rules.
4047#
4048
4049# The idea behind this macro is that there's no need to repeat all the
4050# autoconf probes done by the intl directory - it's already done them
4051# for us. In fact, there's no need even to look at the cache for the
4052# answers. All we need to do is nab a few pieces of information.
4053# The intl directory is set up to make this easy, by generating a
4054# small file which can be sourced as a shell script; then we produce
4055# the necessary substitutions and definitions for this directory.
4056
4057
4058
4059# Autoconf M4 include file defining utility macros for complex Canadian
4060# cross builds.
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070####
4071# _NCN_TOOL_PREFIXES: Some stuff that oughtta be done in AC_CANONICAL_SYSTEM
4072# or AC_INIT.
4073# These demand that AC_CANONICAL_SYSTEM be called beforehand.
4074
4075####
4076# NCN_STRICT_CHECK_TOOLS(variable, progs-to-check-for,[value-if-not-found],[path])
4077# Like plain AC_CHECK_TOOLS, but require prefix if build!=host.
4078
4079
4080####
4081# NCN_STRICT_CHECK_TARGET_TOOLS(variable, progs-to-check-for,[value-if-not-found],[path])
4082# Like CVS Autoconf AC_CHECK_TARGET_TOOLS, but require prefix if build!=target.
4083
4084
4085
4086# Backported from Autoconf 2.5x; can go away when and if
4087# we switch. Put the OS path separator in $PATH_SEPARATOR.
4088
4089
4090
4091
37f980dc
SM
4092
4093
4094
4095
6bb11ab3
L
4096# ACX_HAVE_GCC_FOR_TARGET
4097# Check if the variable GCC_FOR_TARGET really points to a GCC binary.
4098
4099
4100# ACX_CHECK_INSTALLED_TARGET_TOOL(VAR, PROG)
4101# Searching for installed target binutils. We need to take extra care,
4102# else we may find the wrong assembler, linker, etc., and lose.
4103#
4104# First try --with-build-time-tools, if specified.
4105#
4106# For build != host, we ask the installed GCC for the name of the tool it
4107# uses, and accept it if it is an absolute path. This is because the
4108# only good choice for a compiler is the same GCC version that is being
4109# installed (or we couldn't make target libraries), and we assume that
4110# on the host system we'll have not only the same GCC version, but also
4111# the same binutils version.
4112#
4113# For build == host, search the same directories that the installed
4114# compiler will search. We used to do this for the assembler, linker,
4115# and nm only; for simplicity of configuration, however, we extend this
4116# criterion to tools (such as ar and ranlib) that are never invoked by
4117# the compiler, to avoid mismatches.
4118#
4119# Also note we have to check MD_EXEC_PREFIX before checking the user's path
4120# if build == target. This makes the most sense only when bootstrapping,
4121# but we also do so when build != host. In this case, we hope that the
4122# build and host systems will have similar contents of MD_EXEC_PREFIX.
4123#
4124# If we do not find a suitable binary, then try the user's path.
4125
4126
4127###
4128# AC_PROG_CPP_WERROR
4129# Used for autoconf 2.5x to force AC_PREPROC_IFELSE to reject code which
4130# triggers warnings from the preprocessor. Will be in autoconf 2.58.
4131# For now, using this also overrides header checks to use only the
4132# preprocessor (matches 2.13 behavior; matching 2.58's behavior is a
4133# bit harder from here).
4134# Eventually autoconf will default to checking headers with the compiler
4135# instead, and we'll have to do this differently.
4136
4137# AC_PROG_CPP_WERROR
4138
4139# Test for GNAT.
4140# We require the gnatbind & gnatmake programs, as well as a compiler driver
4141# that understands Ada. We use the user's CC setting, already found, and
4142# possibly add $1 to the command-line parameters.
4143#
4144# Sets the shell variable have_gnat to yes or no as appropriate, and
4145# substitutes GNATBIND and GNATMAKE.
4146
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171ac_ext=c
4172ac_cpp='$CPP $CPPFLAGS'
4173ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4174ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4175ac_compiler_gnu=$ac_cv_c_compiler_gnu
4176if test -n "$ac_tool_prefix"; then
4177 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4178set dummy ${ac_tool_prefix}gcc; ac_word=$2
4179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4180$as_echo_n "checking for $ac_word... " >&6; }
63a9e923 4181if ${ac_cv_prog_CC+:} false; then :
6bb11ab3
L
4182 $as_echo_n "(cached) " >&6
4183else
4184 if test -n "$CC"; then
4185 ac_cv_prog_CC="$CC" # Let the user override the test.
4186else
4187as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4188for as_dir in $PATH
4189do
4190 IFS=$as_save_IFS
4191 test -z "$as_dir" && as_dir=.
4192 for ac_exec_ext in '' $ac_executable_extensions; do
63a9e923 4193 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
4194 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4196 break 2
4197 fi
4198done
4199 done
4200IFS=$as_save_IFS
4201
4202fi
4203fi
4204CC=$ac_cv_prog_CC
4205if test -n "$CC"; then
4206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4207$as_echo "$CC" >&6; }
4208else
4209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4210$as_echo "no" >&6; }
4211fi
4212
4213
4214fi
4215if test -z "$ac_cv_prog_CC"; then
4216 ac_ct_CC=$CC
4217 # Extract the first word of "gcc", so it can be a program name with args.
4218set dummy gcc; ac_word=$2
4219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4220$as_echo_n "checking for $ac_word... " >&6; }
63a9e923 4221if ${ac_cv_prog_ac_ct_CC+:} false; then :
6bb11ab3
L
4222 $as_echo_n "(cached) " >&6
4223else
4224 if test -n "$ac_ct_CC"; then
4225 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4226else
4227as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4228for as_dir in $PATH
4229do
4230 IFS=$as_save_IFS
4231 test -z "$as_dir" && as_dir=.
4232 for ac_exec_ext in '' $ac_executable_extensions; do
63a9e923 4233 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
4234 ac_cv_prog_ac_ct_CC="gcc"
4235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4236 break 2
4237 fi
4238done
4239 done
4240IFS=$as_save_IFS
4241
4242fi
4243fi
4244ac_ct_CC=$ac_cv_prog_ac_ct_CC
4245if test -n "$ac_ct_CC"; then
4246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4247$as_echo "$ac_ct_CC" >&6; }
4248else
4249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4250$as_echo "no" >&6; }
4251fi
4252
4253 if test "x$ac_ct_CC" = x; then
4254 CC=""
4255 else
4256 case $cross_compiling:$ac_tool_warned in
4257yes:)
4258{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4259$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4260ac_tool_warned=yes ;;
4261esac
4262 CC=$ac_ct_CC
4263 fi
4264else
4265 CC="$ac_cv_prog_CC"
4266fi
4267
4268if test -z "$CC"; then
4269 if test -n "$ac_tool_prefix"; then
4270 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4271set dummy ${ac_tool_prefix}cc; ac_word=$2
4272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4273$as_echo_n "checking for $ac_word... " >&6; }
63a9e923 4274if ${ac_cv_prog_CC+:} false; then :
6bb11ab3
L
4275 $as_echo_n "(cached) " >&6
4276else
4277 if test -n "$CC"; then
4278 ac_cv_prog_CC="$CC" # Let the user override the test.
4279else
4280as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4281for as_dir in $PATH
4282do
4283 IFS=$as_save_IFS
4284 test -z "$as_dir" && as_dir=.
4285 for ac_exec_ext in '' $ac_executable_extensions; do
63a9e923 4286 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
4287 ac_cv_prog_CC="${ac_tool_prefix}cc"
4288 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4289 break 2
4290 fi
4291done
4292 done
4293IFS=$as_save_IFS
4294
4295fi
4296fi
4297CC=$ac_cv_prog_CC
4298if test -n "$CC"; then
4299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4300$as_echo "$CC" >&6; }
4301else
4302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4303$as_echo "no" >&6; }
4304fi
4305
4306
4307 fi
4308fi
4309if test -z "$CC"; then
4310 # Extract the first word of "cc", so it can be a program name with args.
4311set dummy cc; ac_word=$2
4312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4313$as_echo_n "checking for $ac_word... " >&6; }
63a9e923 4314if ${ac_cv_prog_CC+:} false; then :
6bb11ab3
L
4315 $as_echo_n "(cached) " >&6
4316else
4317 if test -n "$CC"; then
4318 ac_cv_prog_CC="$CC" # Let the user override the test.
4319else
4320 ac_prog_rejected=no
4321as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4322for as_dir in $PATH
4323do
4324 IFS=$as_save_IFS
4325 test -z "$as_dir" && as_dir=.
4326 for ac_exec_ext in '' $ac_executable_extensions; do
63a9e923 4327 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
4328 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4329 ac_prog_rejected=yes
4330 continue
4331 fi
4332 ac_cv_prog_CC="cc"
4333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4334 break 2
4335 fi
4336done
4337 done
4338IFS=$as_save_IFS
4339
4340if test $ac_prog_rejected = yes; then
4341 # We found a bogon in the path, so make sure we never use it.
4342 set dummy $ac_cv_prog_CC
4343 shift
4344 if test $# != 0; then
4345 # We chose a different compiler from the bogus one.
4346 # However, it has the same basename, so the bogon will be chosen
4347 # first if we set CC to just the basename; use the full file name.
4348 shift
4349 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4350 fi
4351fi
4352fi
4353fi
4354CC=$ac_cv_prog_CC
4355if test -n "$CC"; then
4356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4357$as_echo "$CC" >&6; }
4358else
4359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4360$as_echo "no" >&6; }
4361fi
4362
4363
4364fi
4365if test -z "$CC"; then
4366 if test -n "$ac_tool_prefix"; then
4367 for ac_prog in cl.exe
4368 do
4369 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4370set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4372$as_echo_n "checking for $ac_word... " >&6; }
63a9e923 4373if ${ac_cv_prog_CC+:} false; then :
6bb11ab3
L
4374 $as_echo_n "(cached) " >&6
4375else
4376 if test -n "$CC"; then
4377 ac_cv_prog_CC="$CC" # Let the user override the test.
4378else
4379as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4380for as_dir in $PATH
4381do
4382 IFS=$as_save_IFS
4383 test -z "$as_dir" && as_dir=.
4384 for ac_exec_ext in '' $ac_executable_extensions; do
63a9e923 4385 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
4386 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4387 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4388 break 2
4389 fi
4390done
4391 done
4392IFS=$as_save_IFS
4393
4394fi
4395fi
4396CC=$ac_cv_prog_CC
4397if test -n "$CC"; then
4398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4399$as_echo "$CC" >&6; }
4400else
4401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4402$as_echo "no" >&6; }
4403fi
4404
4405
4406 test -n "$CC" && break
4407 done
4408fi
4409if test -z "$CC"; then
4410 ac_ct_CC=$CC
4411 for ac_prog in cl.exe
4412do
4413 # Extract the first word of "$ac_prog", so it can be a program name with args.
4414set dummy $ac_prog; ac_word=$2
4415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4416$as_echo_n "checking for $ac_word... " >&6; }
63a9e923 4417if ${ac_cv_prog_ac_ct_CC+:} false; then :
6bb11ab3
L
4418 $as_echo_n "(cached) " >&6
4419else
4420 if test -n "$ac_ct_CC"; then
4421 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4422else
4423as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4424for as_dir in $PATH
4425do
4426 IFS=$as_save_IFS
4427 test -z "$as_dir" && as_dir=.
4428 for ac_exec_ext in '' $ac_executable_extensions; do
63a9e923 4429 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
4430 ac_cv_prog_ac_ct_CC="$ac_prog"
4431 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4432 break 2
4433 fi
4434done
4435 done
4436IFS=$as_save_IFS
4437
4438fi
4439fi
4440ac_ct_CC=$ac_cv_prog_ac_ct_CC
4441if test -n "$ac_ct_CC"; then
4442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4443$as_echo "$ac_ct_CC" >&6; }
4444else
4445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4446$as_echo "no" >&6; }
4447fi
4448
4449
4450 test -n "$ac_ct_CC" && break
4451done
4452
4453 if test "x$ac_ct_CC" = x; then
4454 CC=""
4455 else
4456 case $cross_compiling:$ac_tool_warned in
4457yes:)
4458{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4459$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4460ac_tool_warned=yes ;;
4461esac
4462 CC=$ac_ct_CC
4463 fi
4464fi
4465
4466fi
4467
4468
4469test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4470$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
63a9e923
SM
4471as_fn_error $? "no acceptable C compiler found in \$PATH
4472See \`config.log' for more details" "$LINENO" 5; }
6bb11ab3
L
4473
4474# Provide some information about the compiler.
4475$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4476set X $ac_compile
4477ac_compiler=$2
4478for ac_option in --version -v -V -qversion; do
4479 { { ac_try="$ac_compiler $ac_option >&5"
4480case "(($ac_try" in
4481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4482 *) ac_try_echo=$ac_try;;
4483esac
4484eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4485$as_echo "$ac_try_echo"; } >&5
4486 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4487 ac_status=$?
4488 if test -s conftest.err; then
4489 sed '10a\
4490... rest of stderr output deleted ...
4491 10q' conftest.err >conftest.er1
4492 cat conftest.er1 >&5
6bb11ab3 4493 fi
63a9e923 4494 rm -f conftest.er1 conftest.err
6bb11ab3
L
4495 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4496 test $ac_status = 0; }
4497done
4498
4499cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4500/* end confdefs.h. */
4501
4502int
4503main ()
4504{
4505
4506 ;
4507 return 0;
4508}
4509_ACEOF
4510ac_clean_files_save=$ac_clean_files
63a9e923 4511ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
6bb11ab3
L
4512# Try to create an executable without -o first, disregard a.out.
4513# It will help us diagnose broken compilers, and finding out an intuition
4514# of exeext.
63a9e923
SM
4515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4516$as_echo_n "checking whether the C compiler works... " >&6; }
6bb11ab3
L
4517ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4518
4519# The possible output files:
4520ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4521
4522ac_rmfiles=
4523for ac_file in $ac_files
4524do
4525 case $ac_file in
4526 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4527 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4528 esac
4529done
4530rm -f $ac_rmfiles
4531
4532if { { ac_try="$ac_link_default"
4533case "(($ac_try" in
4534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4535 *) ac_try_echo=$ac_try;;
4536esac
4537eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4538$as_echo "$ac_try_echo"; } >&5
4539 (eval "$ac_link_default") 2>&5
4540 ac_status=$?
4541 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4542 test $ac_status = 0; }; then :
4543 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4544# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4545# in a Makefile. We should not override ac_cv_exeext if it was cached,
4546# so that the user can short-circuit this test for compilers unknown to
4547# Autoconf.
4548for ac_file in $ac_files ''
4549do
4550 test -f "$ac_file" || continue
4551 case $ac_file in
4552 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4553 ;;
4554 [ab].out )
4555 # We found the default executable, but exeext='' is most
4556 # certainly right.
4557 break;;
4558 *.* )
4559 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4560 then :; else
4561 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4562 fi
4563 # We set ac_cv_exeext here because the later test for it is not
4564 # safe: cross compilers may not add the suffix if given an `-o'
4565 # argument, so we may need to know it at that point already.
4566 # Even if this section looks crufty: it has the advantage of
4567 # actually working.
4568 break;;
4569 * )
4570 break;;
4571 esac
4572done
4573test "$ac_cv_exeext" = no && ac_cv_exeext=
4574
4575else
4576 ac_file=''
4577fi
6bb11ab3 4578if test -z "$ac_file"; then :
63a9e923
SM
4579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4580$as_echo "no" >&6; }
4581$as_echo "$as_me: failed program was:" >&5
6bb11ab3
L
4582sed 's/^/| /' conftest.$ac_ext >&5
4583
4584{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4585$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
63a9e923
SM
4586as_fn_error 77 "C compiler cannot create executables
4587See \`config.log' for more details" "$LINENO" 5; }
4588else
4589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4590$as_echo "yes" >&6; }
6bb11ab3 4591fi
63a9e923
SM
4592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4593$as_echo_n "checking for C compiler default output file name... " >&6; }
4594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4595$as_echo "$ac_file" >&6; }
6bb11ab3
L
4596ac_exeext=$ac_cv_exeext
4597
63a9e923 4598rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
6bb11ab3 4599ac_clean_files=$ac_clean_files_save
6bb11ab3
L
4600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4601$as_echo_n "checking for suffix of executables... " >&6; }
4602if { { ac_try="$ac_link"
4603case "(($ac_try" in
4604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4605 *) ac_try_echo=$ac_try;;
4606esac
4607eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4608$as_echo "$ac_try_echo"; } >&5
4609 (eval "$ac_link") 2>&5
4610 ac_status=$?
4611 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4612 test $ac_status = 0; }; then :
4613 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4614# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4615# work properly (i.e., refer to `conftest.exe'), while it won't with
4616# `rm'.
4617for ac_file in conftest.exe conftest conftest.*; do
4618 test -f "$ac_file" || continue
4619 case $ac_file in
4620 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4621 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4622 break;;
4623 * ) break;;
4624 esac
4625done
4626else
4627 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4628$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
63a9e923
SM
4629as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4630See \`config.log' for more details" "$LINENO" 5; }
6bb11ab3 4631fi
63a9e923 4632rm -f conftest conftest$ac_cv_exeext
6bb11ab3
L
4633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4634$as_echo "$ac_cv_exeext" >&6; }
4635
4636rm -f conftest.$ac_ext
4637EXEEXT=$ac_cv_exeext
4638ac_exeext=$EXEEXT
63a9e923
SM
4639cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4640/* end confdefs.h. */
4641#include <stdio.h>
4642int
4643main ()
4644{
4645FILE *f = fopen ("conftest.out", "w");
4646 return ferror (f) || fclose (f) != 0;
4647
4648 ;
4649 return 0;
4650}
4651_ACEOF
4652ac_clean_files="$ac_clean_files conftest.out"
4653# Check that the compiler produces executables we can run. If not, either
4654# the compiler is broken, or we cross compile.
4655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4656$as_echo_n "checking whether we are cross compiling... " >&6; }
4657if test "$cross_compiling" != yes; then
4658 { { ac_try="$ac_link"
4659case "(($ac_try" in
4660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4661 *) ac_try_echo=$ac_try;;
4662esac
4663eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4664$as_echo "$ac_try_echo"; } >&5
4665 (eval "$ac_link") 2>&5
4666 ac_status=$?
4667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4668 test $ac_status = 0; }
4669 if { ac_try='./conftest$ac_cv_exeext'
4670 { { case "(($ac_try" in
4671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4672 *) ac_try_echo=$ac_try;;
4673esac
4674eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4675$as_echo "$ac_try_echo"; } >&5
4676 (eval "$ac_try") 2>&5
4677 ac_status=$?
4678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4679 test $ac_status = 0; }; }; then
4680 cross_compiling=no
4681 else
4682 if test "$cross_compiling" = maybe; then
4683 cross_compiling=yes
4684 else
4685 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4686$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4687as_fn_error $? "cannot run C compiled programs.
4688If you meant to cross compile, use \`--host'.
4689See \`config.log' for more details" "$LINENO" 5; }
4690 fi
4691 fi
4692fi
4693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4694$as_echo "$cross_compiling" >&6; }
4695
4696rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4697ac_clean_files=$ac_clean_files_save
6bb11ab3
L
4698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4699$as_echo_n "checking for suffix of object files... " >&6; }
63a9e923 4700if ${ac_cv_objext+:} false; then :
6bb11ab3
L
4701 $as_echo_n "(cached) " >&6
4702else
4703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4704/* end confdefs.h. */
4705
4706int
4707main ()
4708{
4709
4710 ;
4711 return 0;
4712}
4713_ACEOF
4714rm -f conftest.o conftest.obj
4715if { { ac_try="$ac_compile"
4716case "(($ac_try" in
4717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4718 *) ac_try_echo=$ac_try;;
4719esac
4720eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4721$as_echo "$ac_try_echo"; } >&5
4722 (eval "$ac_compile") 2>&5
4723 ac_status=$?
4724 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4725 test $ac_status = 0; }; then :
4726 for ac_file in conftest.o conftest.obj conftest.*; do
4727 test -f "$ac_file" || continue;
4728 case $ac_file in
4729 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4730 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4731 break;;
4732 esac
4733done
4734else
4735 $as_echo "$as_me: failed program was:" >&5
4736sed 's/^/| /' conftest.$ac_ext >&5
4737
4738{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4739$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
63a9e923
SM
4740as_fn_error $? "cannot compute suffix of object files: cannot compile
4741See \`config.log' for more details" "$LINENO" 5; }
6bb11ab3
L
4742fi
4743rm -f conftest.$ac_cv_objext conftest.$ac_ext
4744fi
4745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4746$as_echo "$ac_cv_objext" >&6; }
4747OBJEXT=$ac_cv_objext
4748ac_objext=$OBJEXT
4749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4750$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
63a9e923 4751if ${ac_cv_c_compiler_gnu+:} false; then :
6bb11ab3
L
4752 $as_echo_n "(cached) " >&6
4753else
4754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4755/* end confdefs.h. */
4756
4757int
4758main ()
4759{
4760#ifndef __GNUC__
4761 choke me
4762#endif
4763
4764 ;
4765 return 0;
4766}
4767_ACEOF
4768if ac_fn_c_try_compile "$LINENO"; then :
4769 ac_compiler_gnu=yes
4770else
4771 ac_compiler_gnu=no
4772fi
4773rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4774ac_cv_c_compiler_gnu=$ac_compiler_gnu
4775
4776fi
4777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4778$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4779if test $ac_compiler_gnu = yes; then
4780 GCC=yes
4781else
4782 GCC=
4783fi
4784ac_test_CFLAGS=${CFLAGS+set}
4785ac_save_CFLAGS=$CFLAGS
4786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4787$as_echo_n "checking whether $CC accepts -g... " >&6; }
63a9e923 4788if ${ac_cv_prog_cc_g+:} false; then :
6bb11ab3
L
4789 $as_echo_n "(cached) " >&6
4790else
4791 ac_save_c_werror_flag=$ac_c_werror_flag
4792 ac_c_werror_flag=yes
4793 ac_cv_prog_cc_g=no
4794 CFLAGS="-g"
4795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4796/* end confdefs.h. */
4797
4798int
4799main ()
4800{
4801
4802 ;
4803 return 0;
4804}
4805_ACEOF
4806if ac_fn_c_try_compile "$LINENO"; then :
4807 ac_cv_prog_cc_g=yes
4808else
4809 CFLAGS=""
4810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4811/* end confdefs.h. */
4812
4813int
4814main ()
4815{
4816
4817 ;
4818 return 0;
4819}
4820_ACEOF
4821if ac_fn_c_try_compile "$LINENO"; then :
4822
4823else
4824 ac_c_werror_flag=$ac_save_c_werror_flag
4825 CFLAGS="-g"
4826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4827/* end confdefs.h. */
4828
4829int
4830main ()
4831{
4832
4833 ;
4834 return 0;
4835}
4836_ACEOF
4837if ac_fn_c_try_compile "$LINENO"; then :
4838 ac_cv_prog_cc_g=yes
4839fi
4840rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4841fi
4842rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4843fi
4844rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4845 ac_c_werror_flag=$ac_save_c_werror_flag
4846fi
4847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4848$as_echo "$ac_cv_prog_cc_g" >&6; }
4849if test "$ac_test_CFLAGS" = set; then
4850 CFLAGS=$ac_save_CFLAGS
4851elif test $ac_cv_prog_cc_g = yes; then
4852 if test "$GCC" = yes; then
4853 CFLAGS="-g -O2"
4854 else
4855 CFLAGS="-g"
4856 fi
4857else
4858 if test "$GCC" = yes; then
4859 CFLAGS="-O2"
4860 else
4861 CFLAGS=
4862 fi
4863fi
4864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4865$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
63a9e923 4866if ${ac_cv_prog_cc_c89+:} false; then :
6bb11ab3
L
4867 $as_echo_n "(cached) " >&6
4868else
4869 ac_cv_prog_cc_c89=no
4870ac_save_CC=$CC
4871cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4872/* end confdefs.h. */
4873#include <stdarg.h>
4874#include <stdio.h>
63a9e923 4875struct stat;
6bb11ab3
L
4876/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4877struct buf { int x; };
4878FILE * (*rcsopen) (struct buf *, struct stat *, int);
4879static char *e (p, i)
4880 char **p;
4881 int i;
4882{
4883 return p[i];
4884}
4885static char *f (char * (*g) (char **, int), char **p, ...)
4886{
4887 char *s;
4888 va_list v;
4889 va_start (v,p);
4890 s = g (p, va_arg (v,int));
4891 va_end (v);
4892 return s;
4893}
4894
4895/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4896 function prototypes and stuff, but not '\xHH' hex character constants.
4897 These don't provoke an error unfortunately, instead are silently treated
4898 as 'x'. The following induces an error, until -std is added to get
4899 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4900 array size at least. It's necessary to write '\x00'==0 to get something
4901 that's true only with -std. */
4902int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4903
4904/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4905 inside strings and character constants. */
4906#define FOO(x) 'x'
4907int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4908
4909int test (int i, double x);
4910struct s1 {int (*f) (int a);};
4911struct s2 {int (*f) (double a);};
4912int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4913int argc;
4914char **argv;
4915int
4916main ()
4917{
4918return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4919 ;
4920 return 0;
4921}
4922_ACEOF
4923for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4924 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4925do
4926 CC="$ac_save_CC $ac_arg"
4927 if ac_fn_c_try_compile "$LINENO"; then :
4928 ac_cv_prog_cc_c89=$ac_arg
4929fi
4930rm -f core conftest.err conftest.$ac_objext
4931 test "x$ac_cv_prog_cc_c89" != "xno" && break
4932done
4933rm -f conftest.$ac_ext
4934CC=$ac_save_CC
4935
4936fi
4937# AC_CACHE_VAL
4938case "x$ac_cv_prog_cc_c89" in
4939 x)
4940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4941$as_echo "none needed" >&6; } ;;
4942 xno)
4943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4944$as_echo "unsupported" >&6; } ;;
4945 *)
4946 CC="$CC $ac_cv_prog_cc_c89"
4947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4948$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4949esac
4950if test "x$ac_cv_prog_cc_c89" != xno; then :
4951
4952fi
4953
4954ac_ext=c
4955ac_cpp='$CPP $CPPFLAGS'
4956ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4957ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4958ac_compiler_gnu=$ac_cv_c_compiler_gnu
4959
4960ac_aux_dir=
4961for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
63a9e923
SM
4962 if test -f "$ac_dir/install-sh"; then
4963 ac_aux_dir=$ac_dir
4964 ac_install_sh="$ac_aux_dir/install-sh -c"
4965 break
4966 elif test -f "$ac_dir/install.sh"; then
4967 ac_aux_dir=$ac_dir
4968 ac_install_sh="$ac_aux_dir/install.sh -c"
4969 break
4970 elif test -f "$ac_dir/shtool"; then
4971 ac_aux_dir=$ac_dir
4972 ac_install_sh="$ac_aux_dir/shtool install -c"
4973 break
4974 fi
6bb11ab3
L
4975done
4976if test -z "$ac_aux_dir"; then
63a9e923 4977 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
6bb11ab3
L
4978fi
4979
4980# These three variables are undocumented and unsupported,
4981# and are intended to be withdrawn in a future Autoconf release.
4982# They can cause serious problems if a builder's source tree is in a directory
4983# whose full name contains unusual characters.
4984ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4985ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4986ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4987
4988
4989# Make sure we can run config.sub.
4990$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
63a9e923 4991 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
6bb11ab3
L
4992
4993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4994$as_echo_n "checking build system type... " >&6; }
63a9e923 4995if ${ac_cv_build+:} false; then :
6bb11ab3
L
4996 $as_echo_n "(cached) " >&6
4997else
4998 ac_build_alias=$build_alias
4999test "x$ac_build_alias" = x &&
5000 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5001test "x$ac_build_alias" = x &&
63a9e923 5002 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
6bb11ab3 5003ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
63a9e923 5004 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
6bb11ab3
L
5005
5006fi
5007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5008$as_echo "$ac_cv_build" >&6; }
5009case $ac_cv_build in
5010*-*-*) ;;
63a9e923 5011*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
6bb11ab3
L
5012esac
5013build=$ac_cv_build
5014ac_save_IFS=$IFS; IFS='-'
5015set x $ac_cv_build
5016shift
5017build_cpu=$1
5018build_vendor=$2
5019shift; shift
5020# Remember, the first character of IFS is used to create $*,
5021# except with old shells:
5022build_os=$*
5023IFS=$ac_save_IFS
5024case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5025
5026
5027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5028$as_echo_n "checking host system type... " >&6; }
63a9e923 5029if ${ac_cv_host+:} false; then :
6bb11ab3
L
5030 $as_echo_n "(cached) " >&6
5031else
5032 if test "x$host_alias" = x; then
5033 ac_cv_host=$ac_cv_build
5034else
5035 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
63a9e923 5036 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
6bb11ab3
L
5037fi
5038
5039fi
5040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5041$as_echo "$ac_cv_host" >&6; }
5042case $ac_cv_host in
5043*-*-*) ;;
63a9e923 5044*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
6bb11ab3
L
5045esac
5046host=$ac_cv_host
5047ac_save_IFS=$IFS; IFS='-'
5048set x $ac_cv_host
5049shift
5050host_cpu=$1
5051host_vendor=$2
5052shift; shift
5053# Remember, the first character of IFS is used to create $*,
5054# except with old shells:
5055host_os=$*
5056IFS=$ac_save_IFS
5057case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5058
5059
5060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
5061$as_echo_n "checking target system type... " >&6; }
63a9e923 5062if ${ac_cv_target+:} false; then :
6bb11ab3
L
5063 $as_echo_n "(cached) " >&6
5064else
5065 if test "x$target_alias" = x; then
5066 ac_cv_target=$ac_cv_host
5067else
5068 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
63a9e923 5069 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
6bb11ab3
L
5070fi
5071
5072fi
5073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
5074$as_echo "$ac_cv_target" >&6; }
5075case $ac_cv_target in
5076*-*-*) ;;
63a9e923 5077*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
6bb11ab3
L
5078esac
5079target=$ac_cv_target
5080ac_save_IFS=$IFS; IFS='-'
5081set x $ac_cv_target
5082shift
5083target_cpu=$1
5084target_vendor=$2
5085shift; shift
5086# Remember, the first character of IFS is used to create $*,
5087# except with old shells:
5088target_os=$*
5089IFS=$ac_save_IFS
5090case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
5091
5092
5093# The aliases save the names the user supplied, while $host etc.
5094# will get canonicalized.
5095test -n "$target_alias" &&
5096 test "$program_prefix$program_suffix$program_transform_name" = \
5097 NONENONEs,x,x, &&
5098 program_prefix=${target_alias}-
5099
5100ac_ext=c
5101ac_cpp='$CPP $CPPFLAGS'
5102ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5103ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5104ac_compiler_gnu=$ac_cv_c_compiler_gnu
5105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5106$as_echo_n "checking how to run the C preprocessor... " >&6; }
5107# On Suns, sometimes $CPP names a directory.
5108if test -n "$CPP" && test -d "$CPP"; then
5109 CPP=
5110fi
5111if test -z "$CPP"; then
63a9e923 5112 if ${ac_cv_prog_CPP+:} false; then :
6bb11ab3
L
5113 $as_echo_n "(cached) " >&6
5114else
5115 # Double quotes because CPP needs to be expanded
5116 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5117 do
5118 ac_preproc_ok=false
5119for ac_c_preproc_warn_flag in '' yes
5120do
5121 # Use a header file that comes with gcc, so configuring glibc
5122 # with a fresh cross-compiler works.
5123 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5124 # <limits.h> exists even on freestanding compilers.
5125 # On the NeXT, cc -E runs the code through the compiler's parser,
5126 # not just through cpp. "Syntax error" is here to catch this case.
5127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5128/* end confdefs.h. */
5129#ifdef __STDC__
5130# include <limits.h>
5131#else
5132# include <assert.h>
5133#endif
5134 Syntax error
5135_ACEOF
5136if ac_fn_c_try_cpp "$LINENO"; then :
5137
5138else
5139 # Broken: fails on valid input.
5140continue
5141fi
63a9e923 5142rm -f conftest.err conftest.i conftest.$ac_ext
6bb11ab3
L
5143
5144 # OK, works on sane cases. Now check whether nonexistent headers
5145 # can be detected and how.
5146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5147/* end confdefs.h. */
5148#include <ac_nonexistent.h>
5149_ACEOF
5150if ac_fn_c_try_cpp "$LINENO"; then :
5151 # Broken: success on invalid input.
5152continue
5153else
5154 # Passes both tests.
5155ac_preproc_ok=:
5156break
5157fi
63a9e923 5158rm -f conftest.err conftest.i conftest.$ac_ext
6bb11ab3
L
5159
5160done
5161# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
63a9e923 5162rm -f conftest.i conftest.err conftest.$ac_ext
6bb11ab3
L
5163if $ac_preproc_ok; then :
5164 break
5165fi
5166
5167 done
5168 ac_cv_prog_CPP=$CPP
5169
5170fi
5171 CPP=$ac_cv_prog_CPP
5172else
5173 ac_cv_prog_CPP=$CPP
5174fi
5175{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5176$as_echo "$CPP" >&6; }
5177ac_preproc_ok=false
5178for ac_c_preproc_warn_flag in '' yes
5179do
5180 # Use a header file that comes with gcc, so configuring glibc
5181 # with a fresh cross-compiler works.
5182 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5183 # <limits.h> exists even on freestanding compilers.
5184 # On the NeXT, cc -E runs the code through the compiler's parser,
5185 # not just through cpp. "Syntax error" is here to catch this case.
5186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5187/* end confdefs.h. */
5188#ifdef __STDC__
5189# include <limits.h>
5190#else
5191# include <assert.h>
5192#endif
5193 Syntax error
5194_ACEOF
5195if ac_fn_c_try_cpp "$LINENO"; then :
5196
5197else
5198 # Broken: fails on valid input.
5199continue
5200fi
63a9e923 5201rm -f conftest.err conftest.i conftest.$ac_ext
6bb11ab3
L
5202
5203 # OK, works on sane cases. Now check whether nonexistent headers
5204 # can be detected and how.
5205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5206/* end confdefs.h. */
5207#include <ac_nonexistent.h>
5208_ACEOF
5209if ac_fn_c_try_cpp "$LINENO"; then :
5210 # Broken: success on invalid input.
5211continue
5212else
5213 # Passes both tests.
5214ac_preproc_ok=:
5215break
5216fi
63a9e923 5217rm -f conftest.err conftest.i conftest.$ac_ext
6bb11ab3
L
5218
5219done
5220# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
63a9e923 5221rm -f conftest.i conftest.err conftest.$ac_ext
6bb11ab3
L
5222if $ac_preproc_ok; then :
5223
5224else
5225 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5226$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
63a9e923
SM
5227as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5228See \`config.log' for more details" "$LINENO" 5; }
6bb11ab3
L
5229fi
5230
5231ac_ext=c
5232ac_cpp='$CPP $CPPFLAGS'
5233ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5234ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5235ac_compiler_gnu=$ac_cv_c_compiler_gnu
5236
5237
5238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5239$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
63a9e923 5240if ${ac_cv_path_GREP+:} false; then :
6bb11ab3
L
5241 $as_echo_n "(cached) " >&6
5242else
5243 if test -z "$GREP"; then
5244 ac_path_GREP_found=false
5245 # Loop through the user's path and test for each of PROGNAME-LIST
5246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5247for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5248do
5249 IFS=$as_save_IFS
5250 test -z "$as_dir" && as_dir=.
5251 for ac_prog in grep ggrep; do
5252 for ac_exec_ext in '' $ac_executable_extensions; do
5253 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
63a9e923 5254 as_fn_executable_p "$ac_path_GREP" || continue
6bb11ab3
L
5255# Check for GNU ac_path_GREP and select it if it is found.
5256 # Check for GNU $ac_path_GREP
5257case `"$ac_path_GREP" --version 2>&1` in
5258*GNU*)
5259 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5260*)
5261 ac_count=0
5262 $as_echo_n 0123456789 >"conftest.in"
5263 while :
5264 do
5265 cat "conftest.in" "conftest.in" >"conftest.tmp"
5266 mv "conftest.tmp" "conftest.in"
5267 cp "conftest.in" "conftest.nl"
5268 $as_echo 'GREP' >> "conftest.nl"
5269 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5270 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5271 as_fn_arith $ac_count + 1 && ac_count=$as_val
5272 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5273 # Best one so far, save it but keep looking for a better one
5274 ac_cv_path_GREP="$ac_path_GREP"
5275 ac_path_GREP_max=$ac_count
5276 fi
5277 # 10*(2^10) chars as input seems more than enough
5278 test $ac_count -gt 10 && break
5279 done
5280 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5281esac
5282
5283 $ac_path_GREP_found && break 3
5284 done
5285 done
5286 done
5287IFS=$as_save_IFS
5288 if test -z "$ac_cv_path_GREP"; then
63a9e923 5289 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6bb11ab3
L
5290 fi
5291else
5292 ac_cv_path_GREP=$GREP
5293fi
5294
5295fi
5296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5297$as_echo "$ac_cv_path_GREP" >&6; }
5298 GREP="$ac_cv_path_GREP"
5299
5300
5301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5302$as_echo_n "checking for egrep... " >&6; }
63a9e923 5303if ${ac_cv_path_EGREP+:} false; then :
6bb11ab3
L
5304 $as_echo_n "(cached) " >&6
5305else
5306 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5307 then ac_cv_path_EGREP="$GREP -E"
5308 else
5309 if test -z "$EGREP"; then
5310 ac_path_EGREP_found=false
5311 # Loop through the user's path and test for each of PROGNAME-LIST
5312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5313for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5314do
5315 IFS=$as_save_IFS
5316 test -z "$as_dir" && as_dir=.
5317 for ac_prog in egrep; do
5318 for ac_exec_ext in '' $ac_executable_extensions; do
5319 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
63a9e923 5320 as_fn_executable_p "$ac_path_EGREP" || continue
6bb11ab3
L
5321# Check for GNU ac_path_EGREP and select it if it is found.
5322 # Check for GNU $ac_path_EGREP
5323case `"$ac_path_EGREP" --version 2>&1` in
5324*GNU*)
5325 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5326*)
5327 ac_count=0
5328 $as_echo_n 0123456789 >"conftest.in"
5329 while :
5330 do
5331 cat "conftest.in" "conftest.in" >"conftest.tmp"
5332 mv "conftest.tmp" "conftest.in"
5333 cp "conftest.in" "conftest.nl"
5334 $as_echo 'EGREP' >> "conftest.nl"
5335 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5336 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5337 as_fn_arith $ac_count + 1 && ac_count=$as_val
5338 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5339 # Best one so far, save it but keep looking for a better one
5340 ac_cv_path_EGREP="$ac_path_EGREP"
5341 ac_path_EGREP_max=$ac_count
5342 fi
5343 # 10*(2^10) chars as input seems more than enough
5344 test $ac_count -gt 10 && break
5345 done
5346 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5347esac
5348
5349 $ac_path_EGREP_found && break 3
5350 done
5351 done
5352 done
5353IFS=$as_save_IFS
5354 if test -z "$ac_cv_path_EGREP"; then
63a9e923 5355 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6bb11ab3
L
5356 fi
5357else
5358 ac_cv_path_EGREP=$EGREP
5359fi
5360
5361 fi
5362fi
5363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5364$as_echo "$ac_cv_path_EGREP" >&6; }
5365 EGREP="$ac_cv_path_EGREP"
5366
5367
5368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5369$as_echo_n "checking for ANSI C header files... " >&6; }
63a9e923 5370if ${ac_cv_header_stdc+:} false; then :
6bb11ab3
L
5371 $as_echo_n "(cached) " >&6
5372else
5373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5374/* end confdefs.h. */
5375#include <stdlib.h>
5376#include <stdarg.h>
5377#include <string.h>
5378#include <float.h>
5379
5380int
5381main ()
5382{
5383
5384 ;
5385 return 0;
5386}
5387_ACEOF
5388if ac_fn_c_try_compile "$LINENO"; then :
5389 ac_cv_header_stdc=yes
5390else
5391 ac_cv_header_stdc=no
5392fi
5393rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5394
5395if test $ac_cv_header_stdc = yes; then
5396 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5398/* end confdefs.h. */
5399#include <string.h>
5400
5401_ACEOF
5402if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5403 $EGREP "memchr" >/dev/null 2>&1; then :
5404
5405else
5406 ac_cv_header_stdc=no
5407fi
5408rm -f conftest*
5409
5410fi
5411
5412if test $ac_cv_header_stdc = yes; then
5413 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5415/* end confdefs.h. */
5416#include <stdlib.h>
5417
5418_ACEOF
5419if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5420 $EGREP "free" >/dev/null 2>&1; then :
5421
5422else
5423 ac_cv_header_stdc=no
5424fi
5425rm -f conftest*
5426
5427fi
5428
5429if test $ac_cv_header_stdc = yes; then
5430 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5431 if test "$cross_compiling" = yes; then :
5432 :
5433else
5434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5435/* end confdefs.h. */
5436#include <ctype.h>
5437#include <stdlib.h>
5438#if ((' ' & 0x0FF) == 0x020)
5439# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5440# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5441#else
5442# define ISLOWER(c) \
5443 (('a' <= (c) && (c) <= 'i') \
5444 || ('j' <= (c) && (c) <= 'r') \
5445 || ('s' <= (c) && (c) <= 'z'))
5446# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5447#endif
5448
5449#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5450int
5451main ()
5452{
5453 int i;
5454 for (i = 0; i < 256; i++)
5455 if (XOR (islower (i), ISLOWER (i))
5456 || toupper (i) != TOUPPER (i))
5457 return 2;
5458 return 0;
5459}
5460_ACEOF
5461if ac_fn_c_try_run "$LINENO"; then :
5462
5463else
5464 ac_cv_header_stdc=no
5465fi
5466rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5467 conftest.$ac_objext conftest.beam conftest.$ac_ext
5468fi
5469
5470fi
5471fi
5472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5473$as_echo "$ac_cv_header_stdc" >&6; }
5474if test $ac_cv_header_stdc = yes; then
5475
5476$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5477
5478fi
5479
5480# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5481for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5482 inttypes.h stdint.h unistd.h
5483do :
5484 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5485ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5486"
63a9e923 5487if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6bb11ab3
L
5488 cat >>confdefs.h <<_ACEOF
5489#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5490_ACEOF
5491
5492fi
5493
5494done
5495
5496
5497
5498 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
63a9e923 5499if test "x$ac_cv_header_minix_config_h" = xyes; then :
6bb11ab3
L
5500 MINIX=yes
5501else
5502 MINIX=
5503fi
5504
5505
5506 if test "$MINIX" = yes; then
5507
5508$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5509
5510
5511$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5512
5513
5514$as_echo "#define _MINIX 1" >>confdefs.h
5515
5516 fi
5517
5518
5519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5520$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
63a9e923 5521if ${ac_cv_safe_to_define___extensions__+:} false; then :
6bb11ab3
L
5522 $as_echo_n "(cached) " >&6
5523else
5524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5525/* end confdefs.h. */
5526
63a9e923
SM
5527# define __EXTENSIONS__ 1
5528 $ac_includes_default
6bb11ab3
L
5529int
5530main ()
5531{
5532
5533 ;
5534 return 0;
5535}
5536_ACEOF
5537if ac_fn_c_try_compile "$LINENO"; then :
5538 ac_cv_safe_to_define___extensions__=yes
5539else
5540 ac_cv_safe_to_define___extensions__=no
5541fi
5542rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5543fi
5544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5545$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5546 test $ac_cv_safe_to_define___extensions__ = yes &&
5547 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5548
5549 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5550
5551 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5552
5553 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5554
5555 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5556
5557
5558test "$program_prefix" != NONE &&
5559 program_transform_name="s&^&$program_prefix&;$program_transform_name"
5560# Use a double $ so make ignores it.
5561test "$program_suffix" != NONE &&
5562 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
5563# Double any \ or $.
5564# By default was `s,x,x', remove it if useless.
5565ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
5566program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
5567
5568# Find a good install program. We prefer a C program (faster),
5569# so one script is as good as another. But avoid the broken or
5570# incompatible versions:
5571# SysV /etc/install, /usr/sbin/install
5572# SunOS /usr/etc/install
5573# IRIX /sbin/install
5574# AIX /bin/install
5575# AmigaOS /C/install, which installs bootblocks on floppy discs
5576# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5577# AFS /usr/afsws/bin/install, which mishandles nonexistent args
5578# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5579# OS/2's system install, which has a completely different semantic
5580# ./install, which can be erroneously created by make from ./install.sh.
5581# Reject install programs that cannot install multiple files.
5582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
5583$as_echo_n "checking for a BSD-compatible install... " >&6; }
5584if test -z "$INSTALL"; then
63a9e923 5585if ${ac_cv_path_install+:} false; then :
6bb11ab3
L
5586 $as_echo_n "(cached) " >&6
5587else
5588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5589for as_dir in $PATH
5590do
5591 IFS=$as_save_IFS
5592 test -z "$as_dir" && as_dir=.
5593 # Account for people who put trailing slashes in PATH elements.
5594case $as_dir/ in #((
5595 ./ | .// | /[cC]/* | \
5596 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5597 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
5598 /usr/ucb/* ) ;;
5599 *)
5600 # OSF1 and SCO ODT 3.0 have their own names for install.
5601 # Don't use installbsd from OSF since it installs stuff as root
5602 # by default.
5603 for ac_prog in ginstall scoinst install; do
5604 for ac_exec_ext in '' $ac_executable_extensions; do
63a9e923 5605 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
6bb11ab3
L
5606 if test $ac_prog = install &&
5607 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5608 # AIX install. It has an incompatible calling convention.
5609 :
5610 elif test $ac_prog = install &&
5611 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5612 # program-specific install script used by HP pwplus--don't use.
5613 :
5614 else
5615 rm -rf conftest.one conftest.two conftest.dir
5616 echo one > conftest.one
5617 echo two > conftest.two
5618 mkdir conftest.dir
5619 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5620 test -s conftest.one && test -s conftest.two &&
5621 test -s conftest.dir/conftest.one &&
5622 test -s conftest.dir/conftest.two
5623 then
5624 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5625 break 3
5626 fi
5627 fi
5628 fi
5629 done
5630 done
5631 ;;
5632esac
5633
5634 done
5635IFS=$as_save_IFS
5636
5637rm -rf conftest.one conftest.two conftest.dir
5638
5639fi
5640 if test "${ac_cv_path_install+set}" = set; then
5641 INSTALL=$ac_cv_path_install
5642 else
5643 # As a last resort, use the slow shell script. Don't cache a
5644 # value for INSTALL within a source directory, because that will
5645 # break other packages using the cache if that directory is
5646 # removed, or if the value is a relative name.
5647 INSTALL=$ac_install_sh
5648 fi
5649fi
5650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
5651$as_echo "$INSTALL" >&6; }
5652
5653# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5654# It thinks the first close brace ends the variable substitution.
5655test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5656
5657test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5658
5659test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5660
5661rm -rf .tst 2>/dev/null
5662mkdir .tst 2>/dev/null
5663if test -d .tst; then
5664 am__leading_dot=.
5665else
5666 am__leading_dot=_
5667fi
5668rmdir .tst 2>/dev/null
5669
5670DEPDIR="${am__leading_dot}deps"
5671
5672case `pwd` in
5673 *\ * | *\ *)
5674 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5675$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5676esac
5677
5678
5679
5680macro_version='2.2.7a'
5681macro_revision='1.3134'
5682
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695ltmain="$ac_aux_dir/ltmain.sh"
5696
5697# Backslashify metacharacters that are still active within
5698# double-quoted strings.
5699sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5700
5701# Same as above, but do not quote variable references.
5702double_quote_subst='s/\(["`\\]\)/\\\1/g'
5703
5704# Sed substitution to delay expansion of an escaped shell variable in a
5705# double_quote_subst'ed string.
5706delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5707
5708# Sed substitution to delay expansion of an escaped single quote.
5709delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5710
5711# Sed substitution to avoid accidental globbing in evaled expressions
5712no_glob_subst='s/\*/\\\*/g'
5713
5714ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5715ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5716ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5717
5718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5719$as_echo_n "checking how to print strings... " >&6; }
5720# Test print first, because it will be a builtin if present.
5721if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5722 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5723 ECHO='print -r --'
5724elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5725 ECHO='printf %s\n'
5726else
5727 # Use this function as a fallback that always works.
5728 func_fallback_echo ()
5729 {
5730 eval 'cat <<_LTECHO_EOF
5731$1
5732_LTECHO_EOF'
5733 }
5734 ECHO='func_fallback_echo'
5735fi
5736
5737# func_echo_all arg...
5738# Invoke $ECHO with all args, space-separated.
5739func_echo_all ()
5740{
5741 $ECHO ""
5742}
5743
5744case "$ECHO" in
5745 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5746$as_echo "printf" >&6; } ;;
5747 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5748$as_echo "print -r" >&6; } ;;
5749 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5750$as_echo "cat" >&6; } ;;
5751esac
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763
5764
5765
5766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5767$as_echo_n "checking for a sed that does not truncate output... " >&6; }
63a9e923 5768if ${ac_cv_path_SED+:} false; then :
6bb11ab3
L
5769 $as_echo_n "(cached) " >&6
5770else
5771 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5772 for ac_i in 1 2 3 4 5 6 7; do
5773 ac_script="$ac_script$as_nl$ac_script"
5774 done
5775 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5776 { ac_script=; unset ac_script;}
5777 if test -z "$SED"; then
5778 ac_path_SED_found=false
5779 # Loop through the user's path and test for each of PROGNAME-LIST
5780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5781for as_dir in $PATH
5782do
5783 IFS=$as_save_IFS
5784 test -z "$as_dir" && as_dir=.
5785 for ac_prog in sed gsed; do
5786 for ac_exec_ext in '' $ac_executable_extensions; do
5787 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
63a9e923 5788 as_fn_executable_p "$ac_path_SED" || continue
6bb11ab3
L
5789# Check for GNU ac_path_SED and select it if it is found.
5790 # Check for GNU $ac_path_SED
5791case `"$ac_path_SED" --version 2>&1` in
5792*GNU*)
5793 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5794*)
5795 ac_count=0
5796 $as_echo_n 0123456789 >"conftest.in"
5797 while :
5798 do
5799 cat "conftest.in" "conftest.in" >"conftest.tmp"
5800 mv "conftest.tmp" "conftest.in"
5801 cp "conftest.in" "conftest.nl"
5802 $as_echo '' >> "conftest.nl"
5803 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5804 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5805 as_fn_arith $ac_count + 1 && ac_count=$as_val
5806 if test $ac_count -gt ${ac_path_SED_max-0}; then
5807 # Best one so far, save it but keep looking for a better one
5808 ac_cv_path_SED="$ac_path_SED"
5809 ac_path_SED_max=$ac_count
5810 fi
5811 # 10*(2^10) chars as input seems more than enough
5812 test $ac_count -gt 10 && break
5813 done
5814 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5815esac
5816
5817 $ac_path_SED_found && break 3
5818 done
5819 done
5820 done
5821IFS=$as_save_IFS
5822 if test -z "$ac_cv_path_SED"; then
63a9e923 5823 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6bb11ab3
L
5824 fi
5825else
5826 ac_cv_path_SED=$SED
5827fi
5828
5829fi
5830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5831$as_echo "$ac_cv_path_SED" >&6; }
5832 SED="$ac_cv_path_SED"
5833 rm -f conftest.sed
5834
5835test -z "$SED" && SED=sed
5836Xsed="$SED -e 1s/^X//"
5837
5838
5839
5840
5841
5842
5843
5844
5845
5846
5847
5848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5849$as_echo_n "checking for fgrep... " >&6; }
63a9e923 5850if ${ac_cv_path_FGREP+:} false; then :
6bb11ab3
L
5851 $as_echo_n "(cached) " >&6
5852else
5853 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5854 then ac_cv_path_FGREP="$GREP -F"
5855 else
5856 if test -z "$FGREP"; then
5857 ac_path_FGREP_found=false
5858 # Loop through the user's path and test for each of PROGNAME-LIST
5859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5860for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5861do
5862 IFS=$as_save_IFS
5863 test -z "$as_dir" && as_dir=.
5864 for ac_prog in fgrep; do
5865 for ac_exec_ext in '' $ac_executable_extensions; do
5866 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
63a9e923 5867 as_fn_executable_p "$ac_path_FGREP" || continue
6bb11ab3
L
5868# Check for GNU ac_path_FGREP and select it if it is found.
5869 # Check for GNU $ac_path_FGREP
5870case `"$ac_path_FGREP" --version 2>&1` in
5871*GNU*)
5872 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5873*)
5874 ac_count=0
5875 $as_echo_n 0123456789 >"conftest.in"
5876 while :
5877 do
5878 cat "conftest.in" "conftest.in" >"conftest.tmp"
5879 mv "conftest.tmp" "conftest.in"
5880 cp "conftest.in" "conftest.nl"
5881 $as_echo 'FGREP' >> "conftest.nl"
5882 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5883 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5884 as_fn_arith $ac_count + 1 && ac_count=$as_val
5885 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5886 # Best one so far, save it but keep looking for a better one
5887 ac_cv_path_FGREP="$ac_path_FGREP"
5888 ac_path_FGREP_max=$ac_count
5889 fi
5890 # 10*(2^10) chars as input seems more than enough
5891 test $ac_count -gt 10 && break
5892 done
5893 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5894esac
5895
5896 $ac_path_FGREP_found && break 3
5897 done
5898 done
5899 done
5900IFS=$as_save_IFS
5901 if test -z "$ac_cv_path_FGREP"; then
63a9e923 5902 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6bb11ab3
L
5903 fi
5904else
5905 ac_cv_path_FGREP=$FGREP
5906fi
5907
5908 fi
5909fi
5910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5911$as_echo "$ac_cv_path_FGREP" >&6; }
5912 FGREP="$ac_cv_path_FGREP"
5913
5914
5915test -z "$GREP" && GREP=grep
5916
5917
5918
5919
5920
5921
5922
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932
5933
5934
5935# Check whether --with-gnu-ld was given.
5936if test "${with_gnu_ld+set}" = set; then :
5937 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5938else
5939 with_gnu_ld=no
5940fi
5941
5942ac_prog=ld
5943if test "$GCC" = yes; then
5944 # Check if gcc -print-prog-name=ld gives a path.
5945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5946$as_echo_n "checking for ld used by $CC... " >&6; }
5947 case $host in
5948 *-*-mingw*)
5949 # gcc leaves a trailing carriage return which upsets mingw
5950 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5951 *)
5952 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5953 esac
5954 case $ac_prog in
5955 # Accept absolute paths.
5956 [\\/]* | ?:[\\/]*)
5957 re_direlt='/[^/][^/]*/\.\./'
5958 # Canonicalize the pathname of ld
5959 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5960 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5961 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5962 done
5963 test -z "$LD" && LD="$ac_prog"
5964 ;;
5965 "")
5966 # If it fails, then pretend we aren't using GCC.
5967 ac_prog=ld
5968 ;;
5969 *)
5970 # If it is relative, then search for the first ld in PATH.
5971 with_gnu_ld=unknown
5972 ;;
5973 esac
5974elif test "$with_gnu_ld" = yes; then
5975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5976$as_echo_n "checking for GNU ld... " >&6; }
5977else
5978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5979$as_echo_n "checking for non-GNU ld... " >&6; }
5980fi
63a9e923 5981if ${lt_cv_path_LD+:} false; then :
6bb11ab3
L
5982 $as_echo_n "(cached) " >&6
5983else
5984 if test -z "$LD"; then
5985 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5986 for ac_dir in $PATH; do
5987 IFS="$lt_save_ifs"
5988 test -z "$ac_dir" && ac_dir=.
5989 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5990 lt_cv_path_LD="$ac_dir/$ac_prog"
5991 # Check to see if the program is GNU ld. I'd rather use --version,
5992 # but apparently some variants of GNU ld only accept -v.
5993 # Break only if it was the GNU/non-GNU ld that we prefer.
5994 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5995 *GNU* | *'with BFD'*)
5996 test "$with_gnu_ld" != no && break
5997 ;;
5998 *)
5999 test "$with_gnu_ld" != yes && break
6000 ;;
6001 esac
6002 fi
6003 done
6004 IFS="$lt_save_ifs"
6005else
6006 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6007fi
6008fi
6009
6010LD="$lt_cv_path_LD"
6011if test -n "$LD"; then
6012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6013$as_echo "$LD" >&6; }
6014else
6015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6016$as_echo "no" >&6; }
6017fi
63a9e923 6018test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6bb11ab3
L
6019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6020$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
63a9e923 6021if ${lt_cv_prog_gnu_ld+:} false; then :
6bb11ab3
L
6022 $as_echo_n "(cached) " >&6
6023else
6024 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6025case `$LD -v 2>&1 </dev/null` in
6026*GNU* | *'with BFD'*)
6027 lt_cv_prog_gnu_ld=yes
6028 ;;
6029*)
6030 lt_cv_prog_gnu_ld=no
6031 ;;
6032esac
6033fi
6034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6035$as_echo "$lt_cv_prog_gnu_ld" >&6; }
6036with_gnu_ld=$lt_cv_prog_gnu_ld
6037
6038
6039
6040
6041
6042
6043
6044
6045
6046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6047$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
63a9e923 6048if ${lt_cv_path_NM+:} false; then :
6bb11ab3
L
6049 $as_echo_n "(cached) " >&6
6050else
6051 if test -n "$NM"; then
6052 # Let the user override the test.
6053 lt_cv_path_NM="$NM"
6054else
6055 lt_nm_to_check="${ac_tool_prefix}nm"
6056 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6057 lt_nm_to_check="$lt_nm_to_check nm"
6058 fi
6059 for lt_tmp_nm in $lt_nm_to_check; do
6060 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6061 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6062 IFS="$lt_save_ifs"
6063 test -z "$ac_dir" && ac_dir=.
6064 tmp_nm="$ac_dir/$lt_tmp_nm"
6065 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6066 # Check to see if the nm accepts a BSD-compat flag.
6067 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6068 # nm: unknown option "B" ignored
6069 # Tru64's nm complains that /dev/null is an invalid object file
6070 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6071 */dev/null* | *'Invalid file or object type'*)
6072 lt_cv_path_NM="$tmp_nm -B"
6073 break
6074 ;;
6075 *)
6076 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6077 */dev/null*)
6078 lt_cv_path_NM="$tmp_nm -p"
6079 break
6080 ;;
6081 *)
6082 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6083 continue # so that we can try to find one that supports BSD flags
6084 ;;
6085 esac
6086 ;;
6087 esac
6088 fi
6089 done
6090 IFS="$lt_save_ifs"
6091 done
6092 : ${lt_cv_path_NM=no}
6093fi
6094fi
6095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6096$as_echo "$lt_cv_path_NM" >&6; }
6097if test "$lt_cv_path_NM" != "no"; then
6098 NM="$lt_cv_path_NM"
6099else
6100 # Didn't find any BSD compatible name lister, look for dumpbin.
6101 if test -n "$DUMPBIN"; then :
6102 # Let the user override the test.
6103 else
6104 if test -n "$ac_tool_prefix"; then
6105 for ac_prog in dumpbin "link -dump"
6106 do
6107 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6108set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6110$as_echo_n "checking for $ac_word... " >&6; }
63a9e923 6111if ${ac_cv_prog_DUMPBIN+:} false; then :
6bb11ab3
L
6112 $as_echo_n "(cached) " >&6
6113else
6114 if test -n "$DUMPBIN"; then
6115 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6116else
6117as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6118for as_dir in $PATH
6119do
6120 IFS=$as_save_IFS
6121 test -z "$as_dir" && as_dir=.
6122 for ac_exec_ext in '' $ac_executable_extensions; do
63a9e923 6123 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
6124 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6125 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6126 break 2
6127 fi
6128done
6129 done
6130IFS=$as_save_IFS
6131
6132fi
6133fi
6134DUMPBIN=$ac_cv_prog_DUMPBIN
6135if test -n "$DUMPBIN"; then
6136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6137$as_echo "$DUMPBIN" >&6; }
6138else
6139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6140$as_echo "no" >&6; }
6141fi
6142
6143
6144 test -n "$DUMPBIN" && break
6145 done
6146fi
6147if test -z "$DUMPBIN"; then
6148 ac_ct_DUMPBIN=$DUMPBIN
6149 for ac_prog in dumpbin "link -dump"
6150do
6151 # Extract the first word of "$ac_prog", so it can be a program name with args.
6152set dummy $ac_prog; ac_word=$2
6153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6154$as_echo_n "checking for $ac_word... " >&6; }
63a9e923 6155if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6bb11ab3
L
6156 $as_echo_n "(cached) " >&6
6157else
6158 if test -n "$ac_ct_DUMPBIN"; then
6159 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6160else
6161as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6162for as_dir in $PATH
6163do
6164 IFS=$as_save_IFS
6165 test -z "$as_dir" && as_dir=.
6166 for ac_exec_ext in '' $ac_executable_extensions; do
63a9e923 6167 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
6168 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6170 break 2
6171 fi
6172done
6173 done
6174IFS=$as_save_IFS
6175
6176fi
6177fi
6178ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6179if test -n "$ac_ct_DUMPBIN"; then
6180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6181$as_echo "$ac_ct_DUMPBIN" >&6; }
6182else
6183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6184$as_echo "no" >&6; }
6185fi
6186
6187
6188 test -n "$ac_ct_DUMPBIN" && break
6189done
6190
6191 if test "x$ac_ct_DUMPBIN" = x; then
6192 DUMPBIN=":"
6193 else
6194 case $cross_compiling:$ac_tool_warned in
6195yes:)
6196{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6197$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6198ac_tool_warned=yes ;;
6199esac
6200 DUMPBIN=$ac_ct_DUMPBIN
6201 fi
6202fi
6203
6204 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6205 *COFF*)
6206 DUMPBIN="$DUMPBIN -symbols"
6207 ;;
6208 *)
6209 DUMPBIN=:
6210 ;;
6211 esac
6212 fi
6213
6214 if test "$DUMPBIN" != ":"; then
6215 NM="$DUMPBIN"
6216 fi
6217fi
6218test -z "$NM" && NM=nm
6219
6220
6221
6222
6223
6224
6225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6226$as_echo_n "checking the name lister ($NM) interface... " >&6; }
63a9e923 6227if ${lt_cv_nm_interface+:} false; then :
6bb11ab3
L
6228 $as_echo_n "(cached) " >&6
6229else
6230 lt_cv_nm_interface="BSD nm"
6231 echo "int some_variable = 0;" > conftest.$ac_ext
6232 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6233 (eval "$ac_compile" 2>conftest.err)
6234 cat conftest.err >&5
6235 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6236 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6237 cat conftest.err >&5
6238 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6239 cat conftest.out >&5
6240 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6241 lt_cv_nm_interface="MS dumpbin"
6242 fi
6243 rm -f conftest*
6244fi
6245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6246$as_echo "$lt_cv_nm_interface" >&6; }
6247
6248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6249$as_echo_n "checking whether ln -s works... " >&6; }
6250LN_S=$as_ln_s
6251if test "$LN_S" = "ln -s"; then
6252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6253$as_echo "yes" >&6; }
6254else
6255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6256$as_echo "no, using $LN_S" >&6; }
6257fi
6258
6259# find the maximum length of command line arguments
6260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6261$as_echo_n "checking the maximum length of command line arguments... " >&6; }
63a9e923 6262if ${lt_cv_sys_max_cmd_len+:} false; then :
6bb11ab3
L
6263 $as_echo_n "(cached) " >&6
6264else
6265 i=0
6266 teststring="ABCD"
6267
6268 case $build_os in
6269 msdosdjgpp*)
6270 # On DJGPP, this test can blow up pretty badly due to problems in libc
6271 # (any single argument exceeding 2000 bytes causes a buffer overrun
6272 # during glob expansion). Even if it were fixed, the result of this
6273 # check would be larger than it should be.
6274 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6275 ;;
6276
6277 gnu*)
6278 # Under GNU Hurd, this test is not required because there is
6279 # no limit to the length of command line arguments.
6280 # Libtool will interpret -1 as no limit whatsoever
6281 lt_cv_sys_max_cmd_len=-1;
6282 ;;
6283
6284 cygwin* | mingw* | cegcc*)
6285 # On Win9x/ME, this test blows up -- it succeeds, but takes
6286 # about 5 minutes as the teststring grows exponentially.
6287 # Worse, since 9x/ME are not pre-emptively multitasking,
6288 # you end up with a "frozen" computer, even though with patience
6289 # the test eventually succeeds (with a max line length of 256k).
6290 # Instead, let's just punt: use the minimum linelength reported by
6291 # all of the supported platforms: 8192 (on NT/2K/XP).
6292 lt_cv_sys_max_cmd_len=8192;
6293 ;;
6294
6295 mint*)
6296 # On MiNT this can take a long time and run out of memory.
6297 lt_cv_sys_max_cmd_len=8192;
6298 ;;
6299
6300 amigaos*)
6301 # On AmigaOS with pdksh, this test takes hours, literally.
6302 # So we just punt and use a minimum line length of 8192.
6303 lt_cv_sys_max_cmd_len=8192;
6304 ;;
6305
6306 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6307 # This has been around since 386BSD, at least. Likely further.
6308 if test -x /sbin/sysctl; then
6309 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6310 elif test -x /usr/sbin/sysctl; then
6311 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6312 else
6313 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6314 fi
6315 # And add a safety zone
6316 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6317 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6318 ;;
6319
6320 interix*)
6321 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6322 lt_cv_sys_max_cmd_len=196608
6323 ;;
6324
6325 osf*)
6326 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6327 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6328 # nice to cause kernel panics so lets avoid the loop below.
6329 # First set a reasonable default.
6330 lt_cv_sys_max_cmd_len=16384
6331 #
6332 if test -x /sbin/sysconfig; then
6333 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6334 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6335 esac
6336 fi
6337 ;;
6338 sco3.2v5*)
6339 lt_cv_sys_max_cmd_len=102400
6340 ;;
6341 sysv5* | sco5v6* | sysv4.2uw2*)
6342 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6343 if test -n "$kargmax"; then
6344 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6345 else
6346 lt_cv_sys_max_cmd_len=32768
6347 fi
6348 ;;
6349 *)
6350 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6351 if test -n "$lt_cv_sys_max_cmd_len"; then
6352 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6353 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6354 else
6355 # Make teststring a little bigger before we do anything with it.
6356 # a 1K string should be a reasonable start.
6357 for i in 1 2 3 4 5 6 7 8 ; do
6358 teststring=$teststring$teststring
6359 done
6360 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6361 # If test is not a shell built-in, we'll probably end up computing a
6362 # maximum length that is only half of the actual maximum length, but
6363 # we can't tell.
6364 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6365 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6366 test $i != 17 # 1/2 MB should be enough
6367 do
6368 i=`expr $i + 1`
6369 teststring=$teststring$teststring
6370 done
6371 # Only check the string length outside the loop.
6372 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6373 teststring=
6374 # Add a significant safety factor because C++ compilers can tack on
6375 # massive amounts of additional arguments before passing them to the
6376 # linker. It appears as though 1/2 is a usable value.
6377 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6378 fi
6379 ;;
6380 esac
6381
6382fi
6383
6384if test -n $lt_cv_sys_max_cmd_len ; then
6385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6386$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6387else
6388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6389$as_echo "none" >&6; }
6390fi
6391max_cmd_len=$lt_cv_sys_max_cmd_len
6392
6393
6394
6395
6396
6397
6398: ${CP="cp -f"}
6399: ${MV="mv -f"}
6400: ${RM="rm -f"}
6401
6402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6403$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6404# Try some XSI features
6405xsi_shell=no
6406( _lt_dummy="a/b/c"
6407 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6408 = c,a/b,, \
6409 && eval 'test $(( 1 + 1 )) -eq 2 \
6410 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6411 && xsi_shell=yes
6412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6413$as_echo "$xsi_shell" >&6; }
6414
6415
6416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6417$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6418lt_shell_append=no
6419( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6420 >/dev/null 2>&1 \
6421 && lt_shell_append=yes
6422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6423$as_echo "$lt_shell_append" >&6; }
6424
6425
6426if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6427 lt_unset=unset
6428else
6429 lt_unset=false
6430fi
6431
6432
6433
6434
6435
6436# test EBCDIC or ASCII
6437case `echo X|tr X '\101'` in
6438 A) # ASCII based system
6439 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6440 lt_SP2NL='tr \040 \012'
6441 lt_NL2SP='tr \015\012 \040\040'
6442 ;;
6443 *) # EBCDIC based system
6444 lt_SP2NL='tr \100 \n'
6445 lt_NL2SP='tr \r\n \100\100'
6446 ;;
6447esac
6448
6449
6450
6451
6452
6453
6454
6455
6456
6457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6458$as_echo_n "checking for $LD option to reload object files... " >&6; }
63a9e923 6459if ${lt_cv_ld_reload_flag+:} false; then :
6bb11ab3
L
6460 $as_echo_n "(cached) " >&6
6461else
6462 lt_cv_ld_reload_flag='-r'
6463fi
6464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6465$as_echo "$lt_cv_ld_reload_flag" >&6; }
6466reload_flag=$lt_cv_ld_reload_flag
6467case $reload_flag in
6468"" | " "*) ;;
6469*) reload_flag=" $reload_flag" ;;
6470esac
6471reload_cmds='$LD$reload_flag -o $output$reload_objs'
6472case $host_os in
6473 darwin*)
6474 if test "$GCC" = yes; then
6475 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6476 else
6477 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6478 fi
6479 ;;
6480esac
6481
6482
6483
6484
6485
6486
6487
6488
6489
6490if test -n "$ac_tool_prefix"; then
6491 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6492set dummy ${ac_tool_prefix}objdump; ac_word=$2
6493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6494$as_echo_n "checking for $ac_word... " >&6; }
63a9e923 6495if ${ac_cv_prog_OBJDUMP+:} false; then :
6bb11ab3
L
6496 $as_echo_n "(cached) " >&6
6497else
6498 if test -n "$OBJDUMP"; then
6499 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6500else
6501as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6502for as_dir in $PATH
6503do
6504 IFS=$as_save_IFS
6505 test -z "$as_dir" && as_dir=.
6506 for ac_exec_ext in '' $ac_executable_extensions; do
63a9e923 6507 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
6508 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6510 break 2
6511 fi
6512done
6513 done
6514IFS=$as_save_IFS
6515
6516fi
6517fi
6518OBJDUMP=$ac_cv_prog_OBJDUMP
6519if test -n "$OBJDUMP"; then
6520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6521$as_echo "$OBJDUMP" >&6; }
6522else
6523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6524$as_echo "no" >&6; }
6525fi
6526
6527
6528fi
6529if test -z "$ac_cv_prog_OBJDUMP"; then
6530 ac_ct_OBJDUMP=$OBJDUMP
6531 # Extract the first word of "objdump", so it can be a program name with args.
6532set dummy objdump; ac_word=$2
6533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6534$as_echo_n "checking for $ac_word... " >&6; }
63a9e923 6535if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6bb11ab3
L
6536 $as_echo_n "(cached) " >&6
6537else
6538 if test -n "$ac_ct_OBJDUMP"; then
6539 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6540else
6541as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6542for as_dir in $PATH
6543do
6544 IFS=$as_save_IFS
6545 test -z "$as_dir" && as_dir=.
6546 for ac_exec_ext in '' $ac_executable_extensions; do
63a9e923 6547 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
6548 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6550 break 2
6551 fi
6552done
6553 done
6554IFS=$as_save_IFS
6555
6556fi
6557fi
6558ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6559if test -n "$ac_ct_OBJDUMP"; then
6560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6561$as_echo "$ac_ct_OBJDUMP" >&6; }
6562else
6563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6564$as_echo "no" >&6; }
6565fi
6566
6567 if test "x$ac_ct_OBJDUMP" = x; then
6568 OBJDUMP="false"
6569 else
6570 case $cross_compiling:$ac_tool_warned in
6571yes:)
6572{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6573$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6574ac_tool_warned=yes ;;
6575esac
6576 OBJDUMP=$ac_ct_OBJDUMP
6577 fi
6578else
6579 OBJDUMP="$ac_cv_prog_OBJDUMP"
6580fi
6581
6582test -z "$OBJDUMP" && OBJDUMP=objdump
6583
6584
6585
6586
6587
6588
6589
6590
6591
6592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6593$as_echo_n "checking how to recognize dependent libraries... " >&6; }
63a9e923 6594if ${lt_cv_deplibs_check_method+:} false; then :
6bb11ab3
L
6595 $as_echo_n "(cached) " >&6
6596else
6597 lt_cv_file_magic_cmd='$MAGIC_CMD'
6598lt_cv_file_magic_test_file=
6599lt_cv_deplibs_check_method='unknown'
6600# Need to set the preceding variable on all platforms that support
6601# interlibrary dependencies.
6602# 'none' -- dependencies not supported.
6603# `unknown' -- same as none, but documents that we really don't know.
6604# 'pass_all' -- all dependencies passed with no checks.
6605# 'test_compile' -- check by making test program.
6606# 'file_magic [[regex]]' -- check by looking for files in library path
6607# which responds to the $file_magic_cmd with a given extended regex.
6608# If you have `file' or equivalent on your system and you're not sure
6609# whether `pass_all' will *always* work, you probably want this one.
6610
6611case $host_os in
6612aix[4-9]*)
6613 lt_cv_deplibs_check_method=pass_all
6614 ;;
6615
6616beos*)
6617 lt_cv_deplibs_check_method=pass_all
6618 ;;
6619
6620bsdi[45]*)
6621 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6622 lt_cv_file_magic_cmd='/usr/bin/file -L'
6623 lt_cv_file_magic_test_file=/shlib/libc.so
6624 ;;
6625
6626cygwin*)
6627 # func_win32_libid is a shell function defined in ltmain.sh
6628 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6629 lt_cv_file_magic_cmd='func_win32_libid'
6630 ;;
6631
6632mingw* | pw32*)
6633 # Base MSYS/MinGW do not provide the 'file' command needed by
6634 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6635 # unless we find 'file', for example because we are cross-compiling.
6636 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6637 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6638 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6639 lt_cv_file_magic_cmd='func_win32_libid'
6640 else
6641 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6642 lt_cv_file_magic_cmd='$OBJDUMP -f'
6643 fi
6644 ;;
6645
6646cegcc*)
6647 # use the weaker test based on 'objdump'. See mingw*.
6648 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6649 lt_cv_file_magic_cmd='$OBJDUMP -f'
6650 ;;
6651
6652darwin* | rhapsody*)
6653 lt_cv_deplibs_check_method=pass_all
6654 ;;
6655
6656freebsd* | dragonfly*)
6657 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6658 case $host_cpu in
6659 i*86 )
6660 # Not sure whether the presence of OpenBSD here was a mistake.
6661 # Let's accept both of them until this is cleared up.
6662 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6663 lt_cv_file_magic_cmd=/usr/bin/file
6664 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6665 ;;
6666 esac
6667 else
6668 lt_cv_deplibs_check_method=pass_all
6669 fi
6670 ;;
6671
6672gnu*)
6673 lt_cv_deplibs_check_method=pass_all
6674 ;;
6675
6676haiku*)
6677 lt_cv_deplibs_check_method=pass_all
6678 ;;
6679
6680hpux10.20* | hpux11*)
6681 lt_cv_file_magic_cmd=/usr/bin/file
6682 case $host_cpu in
6683 ia64*)
6684 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6685 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6686 ;;
6687 hppa*64*)
6688 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
6689 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6690 ;;
6691 *)
6692 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6693 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6694 ;;
6695 esac
6696 ;;
6697
6698interix[3-9]*)
6699 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6700 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6701 ;;
6702
6703irix5* | irix6* | nonstopux*)
6704 case $LD in
6705 *-32|*"-32 ") libmagic=32-bit;;
6706 *-n32|*"-n32 ") libmagic=N32;;
6707 *-64|*"-64 ") libmagic=64-bit;;
6708 *) libmagic=never-match;;
6709 esac
6710 lt_cv_deplibs_check_method=pass_all
6711 ;;
6712
6713# This must be Linux ELF.
6714linux* | k*bsd*-gnu | kopensolaris*-gnu)
6715 lt_cv_deplibs_check_method=pass_all
6716 ;;
6717
6718netbsd*)
6719 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6720 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6721 else
6722 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6723 fi
6724 ;;
6725
6726newos6*)
6727 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6728 lt_cv_file_magic_cmd=/usr/bin/file
6729 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6730 ;;
6731
6732*nto* | *qnx*)
6733 lt_cv_deplibs_check_method=pass_all
6734 ;;
6735
6736openbsd*)
6737 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6738 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6739 else
6740 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6741 fi
6742 ;;
6743
6744osf3* | osf4* | osf5*)
6745 lt_cv_deplibs_check_method=pass_all
6746 ;;
6747
6748rdos*)
6749 lt_cv_deplibs_check_method=pass_all
6750 ;;
6751
6752solaris*)
6753 lt_cv_deplibs_check_method=pass_all
6754 ;;
6755
6756sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6757 lt_cv_deplibs_check_method=pass_all
6758 ;;
6759
6760sysv4 | sysv4.3*)
6761 case $host_vendor in
6762 motorola)
6763 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
6764 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6765 ;;
6766 ncr)
6767 lt_cv_deplibs_check_method=pass_all
6768 ;;
6769 sequent)
6770 lt_cv_file_magic_cmd='/bin/file'
6771 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6772 ;;
6773 sni)
6774 lt_cv_file_magic_cmd='/bin/file'
6775 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6776 lt_cv_file_magic_test_file=/lib/libc.so
6777 ;;
6778 siemens)
6779 lt_cv_deplibs_check_method=pass_all
6780 ;;
6781 pc)
6782 lt_cv_deplibs_check_method=pass_all
6783 ;;
6784 esac
6785 ;;
6786
6787tpf*)
6788 lt_cv_deplibs_check_method=pass_all
6789 ;;
6790esac
6791
6792fi
6793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6794$as_echo "$lt_cv_deplibs_check_method" >&6; }
6795file_magic_cmd=$lt_cv_file_magic_cmd
6796deplibs_check_method=$lt_cv_deplibs_check_method
6797test -z "$deplibs_check_method" && deplibs_check_method=unknown
6798
6799
6800
6801
6802
6803
6804
6805
6806
6807
6808
6809
6810if test -n "$ac_tool_prefix"; then
6811 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6812set dummy ${ac_tool_prefix}ar; ac_word=$2
6813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6814$as_echo_n "checking for $ac_word... " >&6; }
63a9e923 6815if ${ac_cv_prog_AR+:} false; then :
6bb11ab3
L
6816 $as_echo_n "(cached) " >&6
6817else
6818 if test -n "$AR"; then
6819 ac_cv_prog_AR="$AR" # Let the user override the test.
6820else
6821as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6822for as_dir in $PATH
6823do
6824 IFS=$as_save_IFS
6825 test -z "$as_dir" && as_dir=.
6826 for ac_exec_ext in '' $ac_executable_extensions; do
63a9e923 6827 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
6828 ac_cv_prog_AR="${ac_tool_prefix}ar"
6829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6830 break 2
6831 fi
6832done
6833 done
6834IFS=$as_save_IFS
6835
6836fi
6837fi
6838AR=$ac_cv_prog_AR
6839if test -n "$AR"; then
6840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6841$as_echo "$AR" >&6; }
6842else
6843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6844$as_echo "no" >&6; }
6845fi
6846
6847
6848fi
6849if test -z "$ac_cv_prog_AR"; then
6850 ac_ct_AR=$AR
6851 # Extract the first word of "ar", so it can be a program name with args.
6852set dummy ar; ac_word=$2
6853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6854$as_echo_n "checking for $ac_word... " >&6; }
63a9e923 6855if ${ac_cv_prog_ac_ct_AR+:} false; then :
6bb11ab3
L
6856 $as_echo_n "(cached) " >&6
6857else
6858 if test -n "$ac_ct_AR"; then
6859 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6860else
6861as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6862for as_dir in $PATH
6863do
6864 IFS=$as_save_IFS
6865 test -z "$as_dir" && as_dir=.
6866 for ac_exec_ext in '' $ac_executable_extensions; do
63a9e923 6867 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
6868 ac_cv_prog_ac_ct_AR="ar"
6869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6870 break 2
6871 fi
6872done
6873 done
6874IFS=$as_save_IFS
6875
6876fi
6877fi
6878ac_ct_AR=$ac_cv_prog_ac_ct_AR
6879if test -n "$ac_ct_AR"; then
6880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6881$as_echo "$ac_ct_AR" >&6; }
6882else
6883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6884$as_echo "no" >&6; }
6885fi
6886
6887 if test "x$ac_ct_AR" = x; then
6888 AR="false"
6889 else
6890 case $cross_compiling:$ac_tool_warned in
6891yes:)
6892{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6893$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6894ac_tool_warned=yes ;;
6895esac
6896 AR=$ac_ct_AR
6897 fi
6898else
6899 AR="$ac_cv_prog_AR"
6900fi
6901
6902test -z "$AR" && AR=ar
6903test -z "$AR_FLAGS" && AR_FLAGS=cru
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915if test -n "$ac_tool_prefix"; then
6916 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6917set dummy ${ac_tool_prefix}strip; ac_word=$2
6918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6919$as_echo_n "checking for $ac_word... " >&6; }
63a9e923 6920if ${ac_cv_prog_STRIP+:} false; then :
6bb11ab3
L
6921 $as_echo_n "(cached) " >&6
6922else
6923 if test -n "$STRIP"; then
6924 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6925else
6926as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6927for as_dir in $PATH
6928do
6929 IFS=$as_save_IFS
6930 test -z "$as_dir" && as_dir=.
6931 for ac_exec_ext in '' $ac_executable_extensions; do
63a9e923 6932 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
6933 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6935 break 2
6936 fi
6937done
6938 done
6939IFS=$as_save_IFS
6940
6941fi
6942fi
6943STRIP=$ac_cv_prog_STRIP
6944if test -n "$STRIP"; then
6945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6946$as_echo "$STRIP" >&6; }
6947else
6948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6949$as_echo "no" >&6; }
6950fi
6951
6952
6953fi
6954if test -z "$ac_cv_prog_STRIP"; then
6955 ac_ct_STRIP=$STRIP
6956 # Extract the first word of "strip", so it can be a program name with args.
6957set dummy strip; ac_word=$2
6958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6959$as_echo_n "checking for $ac_word... " >&6; }
63a9e923 6960if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6bb11ab3
L
6961 $as_echo_n "(cached) " >&6
6962else
6963 if test -n "$ac_ct_STRIP"; then
6964 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6965else
6966as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6967for as_dir in $PATH
6968do
6969 IFS=$as_save_IFS
6970 test -z "$as_dir" && as_dir=.
6971 for ac_exec_ext in '' $ac_executable_extensions; do
63a9e923 6972 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
6973 ac_cv_prog_ac_ct_STRIP="strip"
6974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6975 break 2
6976 fi
6977done
6978 done
6979IFS=$as_save_IFS
6980
6981fi
6982fi
6983ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6984if test -n "$ac_ct_STRIP"; then
6985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6986$as_echo "$ac_ct_STRIP" >&6; }
6987else
6988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6989$as_echo "no" >&6; }
6990fi
6991
6992 if test "x$ac_ct_STRIP" = x; then
6993 STRIP=":"
6994 else
6995 case $cross_compiling:$ac_tool_warned in
6996yes:)
6997{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6998$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6999ac_tool_warned=yes ;;
7000esac
7001 STRIP=$ac_ct_STRIP
7002 fi
7003else
7004 STRIP="$ac_cv_prog_STRIP"
7005fi
7006
7007test -z "$STRIP" && STRIP=:
7008
7009
7010
7011
7012
7013
7014if test -n "$ac_tool_prefix"; then
7015 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7016set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7018$as_echo_n "checking for $ac_word... " >&6; }
63a9e923 7019if ${ac_cv_prog_RANLIB+:} false; then :
6bb11ab3
L
7020 $as_echo_n "(cached) " >&6
7021else
7022 if test -n "$RANLIB"; then
7023 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7024else
7025as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7026for as_dir in $PATH
7027do
7028 IFS=$as_save_IFS
7029 test -z "$as_dir" && as_dir=.
7030 for ac_exec_ext in '' $ac_executable_extensions; do
63a9e923 7031 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
7032 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7034 break 2
7035 fi
7036done
7037 done
7038IFS=$as_save_IFS
7039
7040fi
7041fi
7042RANLIB=$ac_cv_prog_RANLIB
7043if test -n "$RANLIB"; then
7044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7045$as_echo "$RANLIB" >&6; }
7046else
7047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7048$as_echo "no" >&6; }
7049fi
7050
7051
7052fi
7053if test -z "$ac_cv_prog_RANLIB"; then
7054 ac_ct_RANLIB=$RANLIB
7055 # Extract the first word of "ranlib", so it can be a program name with args.
7056set dummy ranlib; ac_word=$2
7057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7058$as_echo_n "checking for $ac_word... " >&6; }
63a9e923 7059if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6bb11ab3
L
7060 $as_echo_n "(cached) " >&6
7061else
7062 if test -n "$ac_ct_RANLIB"; then
7063 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7064else
7065as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7066for as_dir in $PATH
7067do
7068 IFS=$as_save_IFS
7069 test -z "$as_dir" && as_dir=.
7070 for ac_exec_ext in '' $ac_executable_extensions; do
63a9e923 7071 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
7072 ac_cv_prog_ac_ct_RANLIB="ranlib"
7073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7074 break 2
7075 fi
7076done
7077 done
7078IFS=$as_save_IFS
7079
7080fi
7081fi
7082ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7083if test -n "$ac_ct_RANLIB"; then
7084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7085$as_echo "$ac_ct_RANLIB" >&6; }
7086else
7087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7088$as_echo "no" >&6; }
7089fi
7090
7091 if test "x$ac_ct_RANLIB" = x; then
7092 RANLIB=":"
7093 else
7094 case $cross_compiling:$ac_tool_warned in
7095yes:)
7096{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7097$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7098ac_tool_warned=yes ;;
7099esac
7100 RANLIB=$ac_ct_RANLIB
7101 fi
7102else
7103 RANLIB="$ac_cv_prog_RANLIB"
7104fi
7105
7106test -z "$RANLIB" && RANLIB=:
7107
7108
7109
7110
7111
7112
7113# Determine commands to create old-style static archives.
7114old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7115old_postinstall_cmds='chmod 644 $oldlib'
7116old_postuninstall_cmds=
7117
7118if test -n "$RANLIB"; then
7119 case $host_os in
7120 openbsd*)
7121 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7122 ;;
7123 *)
7124 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7125 ;;
7126 esac
7127 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7128fi
7129
7130case $host_os in
7131 darwin*)
7132 lock_old_archive_extraction=yes ;;
7133 *)
7134 lock_old_archive_extraction=no ;;
7135esac
7136
7137
7138
7139
7140
7141
7142
7143
7144
7145
7146
7147
7148
7149
7150
7151
7152
7153
7154
7155
7156
7157for ac_prog in gawk mawk nawk awk
7158do
7159 # Extract the first word of "$ac_prog", so it can be a program name with args.
7160set dummy $ac_prog; ac_word=$2
7161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7162$as_echo_n "checking for $ac_word... " >&6; }
63a9e923 7163if ${ac_cv_prog_AWK+:} false; then :
6bb11ab3
L
7164 $as_echo_n "(cached) " >&6
7165else
7166 if test -n "$AWK"; then
7167 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7168else
7169as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7170for as_dir in $PATH
7171do
7172 IFS=$as_save_IFS
7173 test -z "$as_dir" && as_dir=.
7174 for ac_exec_ext in '' $ac_executable_extensions; do
63a9e923 7175 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
7176 ac_cv_prog_AWK="$ac_prog"
7177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7178 break 2
7179 fi
7180done
7181 done
7182IFS=$as_save_IFS
7183
7184fi
7185fi
7186AWK=$ac_cv_prog_AWK
7187if test -n "$AWK"; then
7188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7189$as_echo "$AWK" >&6; }
7190else
7191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7192$as_echo "no" >&6; }
7193fi
7194
7195
7196 test -n "$AWK" && break
7197done
7198
7199
7200
7201
7202
7203
7204
7205
7206
7207
7208
7209
7210
7211
7212
7213
7214
7215
7216
7217# If no C compiler was specified, use CC.
7218LTCC=${LTCC-"$CC"}
7219
7220# If no C compiler flags were specified, use CFLAGS.
7221LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7222
7223# Allow CC to be a program name with arguments.
7224compiler=$CC
7225
7226
7227# Check for command to grab the raw symbol name followed by C symbol from nm.
7228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7229$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
63a9e923 7230if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6bb11ab3
L
7231 $as_echo_n "(cached) " >&6
7232else
7233
7234# These are sane defaults that work on at least a few old systems.
7235# [They come from Ultrix. What could be older than Ultrix?!! ;)]
7236
7237# Character class describing NM global symbol codes.
7238symcode='[BCDEGRST]'
7239
7240# Regexp to match symbols that can be accessed directly from C.
7241sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7242
7243# Define system-specific variables.
7244case $host_os in
7245aix*)
7246 symcode='[BCDT]'
7247 ;;
7248cygwin* | mingw* | pw32* | cegcc*)
7249 symcode='[ABCDGISTW]'
7250 ;;
7251hpux*)
7252 if test "$host_cpu" = ia64; then
7253 symcode='[ABCDEGRST]'
7254 fi
7255 ;;
7256irix* | nonstopux*)
7257 symcode='[BCDEGRST]'
7258 ;;
7259osf*)
7260 symcode='[BCDEGQRST]'
7261 ;;
7262solaris*)
7263 symcode='[BDRT]'
7264 ;;
7265sco3.2v5*)
7266 symcode='[DT]'
7267 ;;
7268sysv4.2uw2*)
7269 symcode='[DT]'
7270 ;;
7271sysv5* | sco5v6* | unixware* | OpenUNIX*)
7272 symcode='[ABDT]'
7273 ;;
7274sysv4)
7275 symcode='[DFNSTU]'
7276 ;;
7277esac
7278
7279# If we're using GNU nm, then use its standard symbol codes.
7280case `$NM -V 2>&1` in
7281*GNU* | *'with BFD'*)
7282 symcode='[ABCDGIRSTW]' ;;
7283esac
7284
7285# Transform an extracted symbol line into a proper C declaration.
7286# Some systems (esp. on ia64) link data and code symbols differently,
7287# so use this general approach.
7288lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7289
7290# Transform an extracted symbol line into symbol name and symbol address
7291lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7292lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
7293
7294# Handle CRLF in mingw tool chain
7295opt_cr=
7296case $build_os in
7297mingw*)
7298 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7299 ;;
7300esac
7301
7302# Try without a prefix underscore, then with it.
7303for ac_symprfx in "" "_"; do
7304
7305 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7306 symxfrm="\\1 $ac_symprfx\\2 \\2"
7307
7308 # Write the raw and C identifiers.
7309 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7310 # Fake it for dumpbin and say T for any non-static function
7311 # and D for any global variable.
7312 # Also find C++ and __fastcall symbols from MSVC++,
7313 # which start with @ or ?.
7314 lt_cv_sys_global_symbol_pipe="$AWK '"\
7315" {last_section=section; section=\$ 3};"\
7316" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7317" \$ 0!~/External *\|/{next};"\
7318" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7319" {if(hide[section]) next};"\
7320" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7321" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7322" s[1]~/^[@?]/{print s[1], s[1]; next};"\
7323" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7324" ' prfx=^$ac_symprfx"
7325 else
7326 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7327 fi
7328
7329 # Check to see that the pipe works correctly.
7330 pipe_works=no
7331
7332 rm -f conftest*
7333 cat > conftest.$ac_ext <<_LT_EOF
7334#ifdef __cplusplus
7335extern "C" {
7336#endif
7337char nm_test_var;
7338void nm_test_func(void);
7339void nm_test_func(void){}
7340#ifdef __cplusplus
7341}
7342#endif
7343int main(){nm_test_var='a';nm_test_func();return(0);}
7344_LT_EOF
7345
7346 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7347 (eval $ac_compile) 2>&5
7348 ac_status=$?
7349 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7350 test $ac_status = 0; }; then
7351 # Now try to grab the symbols.
7352 nlist=conftest.nm
7353 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7354 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7355 ac_status=$?
7356 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7357 test $ac_status = 0; } && test -s "$nlist"; then
7358 # Try sorting and uniquifying the output.
7359 if sort "$nlist" | uniq > "$nlist"T; then
7360 mv -f "$nlist"T "$nlist"
7361 else
7362 rm -f "$nlist"T
7363 fi
7364
7365 # Make sure that we snagged all the symbols we need.
7366 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7367 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7368 cat <<_LT_EOF > conftest.$ac_ext
7369#ifdef __cplusplus
7370extern "C" {
7371#endif
7372
7373_LT_EOF
7374 # Now generate the symbol file.
7375 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7376
7377 cat <<_LT_EOF >> conftest.$ac_ext
7378
7379/* The mapping between symbol names and symbols. */
7380const struct {
7381 const char *name;
7382 void *address;
7383}
7384lt__PROGRAM__LTX_preloaded_symbols[] =
7385{
7386 { "@PROGRAM@", (void *) 0 },
7387_LT_EOF
7388 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7389 cat <<\_LT_EOF >> conftest.$ac_ext
7390 {0, (void *) 0}
7391};
7392
7393/* This works around a problem in FreeBSD linker */
7394#ifdef FREEBSD_WORKAROUND
7395static const void *lt_preloaded_setup() {
7396 return lt__PROGRAM__LTX_preloaded_symbols;
7397}
7398#endif
7399
7400#ifdef __cplusplus
7401}
7402#endif
7403_LT_EOF
7404 # Now try linking the two files.
7405 mv conftest.$ac_objext conftstm.$ac_objext
7406 lt_save_LIBS="$LIBS"
7407 lt_save_CFLAGS="$CFLAGS"
7408 LIBS="conftstm.$ac_objext"
7409 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7410 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7411 (eval $ac_link) 2>&5
7412 ac_status=$?
7413 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7414 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7415 pipe_works=yes
7416 fi
7417 LIBS="$lt_save_LIBS"
7418 CFLAGS="$lt_save_CFLAGS"
7419 else
7420 echo "cannot find nm_test_func in $nlist" >&5
7421 fi
7422 else
7423 echo "cannot find nm_test_var in $nlist" >&5
7424 fi
7425 else
7426 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7427 fi
7428 else
7429 echo "$progname: failed program was:" >&5
7430 cat conftest.$ac_ext >&5
7431 fi
7432 rm -rf conftest* conftst*
7433
7434 # Do not use the global_symbol_pipe unless it works.
7435 if test "$pipe_works" = yes; then
7436 break
7437 else
7438 lt_cv_sys_global_symbol_pipe=
7439 fi
7440done
7441
7442fi
7443
7444if test -z "$lt_cv_sys_global_symbol_pipe"; then
7445 lt_cv_sys_global_symbol_to_cdecl=
7446fi
7447if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7449$as_echo "failed" >&6; }
7450else
7451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7452$as_echo "ok" >&6; }
7453fi
7454
7455
7456
7457
7458
7459
7460
7461
7462
7463
7464
7465
7466
7467
7468
7469
7470
7471
7472
7473
7474
7475
7476# Check whether --enable-libtool-lock was given.
7477if test "${enable_libtool_lock+set}" = set; then :
7478 enableval=$enable_libtool_lock;
7479fi
7480
7481test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7482
7483# Some flags need to be propagated to the compiler or linker for good
7484# libtool support.
7485case $host in
7486ia64-*-hpux*)
7487 # Find out which ABI we are using.
7488 echo 'int i;' > conftest.$ac_ext
7489 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7490 (eval $ac_compile) 2>&5
7491 ac_status=$?
7492 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7493 test $ac_status = 0; }; then
7494 case `/usr/bin/file conftest.$ac_objext` in
7495 *ELF-32*)
7496 HPUX_IA64_MODE="32"
7497 ;;
7498 *ELF-64*)
7499 HPUX_IA64_MODE="64"
7500 ;;
7501 esac
7502 fi
7503 rm -rf conftest*
7504 ;;
7505*-*-irix6*)
7506 # Find out which ABI we are using.
7507 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7508 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7509 (eval $ac_compile) 2>&5
7510 ac_status=$?
7511 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7512 test $ac_status = 0; }; then
7513 if test "$lt_cv_prog_gnu_ld" = yes; then
7514 case `/usr/bin/file conftest.$ac_objext` in
7515 *32-bit*)
7516 LD="${LD-ld} -melf32bsmip"
7517 ;;
7518 *N32*)
7519 LD="${LD-ld} -melf32bmipn32"
7520 ;;
7521 *64-bit*)
7522 LD="${LD-ld} -melf64bmip"
7523 ;;
7524 esac
7525 else
7526 case `/usr/bin/file conftest.$ac_objext` in
7527 *32-bit*)
7528 LD="${LD-ld} -32"
7529 ;;
7530 *N32*)
7531 LD="${LD-ld} -n32"
7532 ;;
7533 *64-bit*)
7534 LD="${LD-ld} -64"
7535 ;;
7536 esac
7537 fi
7538 fi
7539 rm -rf conftest*
7540 ;;
7541
bf3d9781 7542x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6bb11ab3
L
7543s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7544 # Find out which ABI we are using.
7545 echo 'int i;' > conftest.$ac_ext
7546 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7547 (eval $ac_compile) 2>&5
7548 ac_status=$?
7549 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7550 test $ac_status = 0; }; then
7551 case `/usr/bin/file conftest.o` in
7552 *32-bit*)
7553 case $host in
7554 x86_64-*kfreebsd*-gnu)
7555 LD="${LD-ld} -m elf_i386_fbsd"
7556 ;;
7557 x86_64-*linux*)
7558 case `/usr/bin/file conftest.o` in
7559 *x86-64*)
7560 LD="${LD-ld} -m elf32_x86_64"
7561 ;;
7562 *)
7563 LD="${LD-ld} -m elf_i386"
7564 ;;
7565 esac
7566 ;;
bf3d9781
AM
7567 powerpc64le-*linux*)
7568 LD="${LD-ld} -m elf32lppclinux"
7569 ;;
7570 powerpc64-*linux*)
6bb11ab3
L
7571 LD="${LD-ld} -m elf32ppclinux"
7572 ;;
7573 s390x-*linux*)
7574 LD="${LD-ld} -m elf_s390"
7575 ;;
7576 sparc64-*linux*)
7577 LD="${LD-ld} -m elf32_sparc"
7578 ;;
7579 esac
7580 ;;
7581 *64-bit*)
7582 case $host in
7583 x86_64-*kfreebsd*-gnu)
7584 LD="${LD-ld} -m elf_x86_64_fbsd"
7585 ;;
7586 x86_64-*linux*)
7587 LD="${LD-ld} -m elf_x86_64"
7588 ;;
bf3d9781
AM
7589 powerpcle-*linux*)
7590 LD="${LD-ld} -m elf64lppc"
7591 ;;
7592 powerpc-*linux*)
6bb11ab3
L
7593 LD="${LD-ld} -m elf64ppc"
7594 ;;
7595 s390*-*linux*|s390*-*tpf*)
7596 LD="${LD-ld} -m elf64_s390"
7597 ;;
7598 sparc*-*linux*)
7599 LD="${LD-ld} -m elf64_sparc"
7600 ;;
7601 esac
7602 ;;
7603 esac
7604 fi
7605 rm -rf conftest*
7606 ;;
7607
7608*-*-sco3.2v5*)
7609 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7610 SAVE_CFLAGS="$CFLAGS"
7611 CFLAGS="$CFLAGS -belf"
7612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7613$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
63a9e923 7614if ${lt_cv_cc_needs_belf+:} false; then :
6bb11ab3
L
7615 $as_echo_n "(cached) " >&6
7616else
7617 ac_ext=c
7618ac_cpp='$CPP $CPPFLAGS'
7619ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7620ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7621ac_compiler_gnu=$ac_cv_c_compiler_gnu
7622
7623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7624/* end confdefs.h. */
7625
7626int
7627main ()
7628{
7629
7630 ;
7631 return 0;
7632}
7633_ACEOF
7634if ac_fn_c_try_link "$LINENO"; then :
7635 lt_cv_cc_needs_belf=yes
7636else
7637 lt_cv_cc_needs_belf=no
7638fi
7639rm -f core conftest.err conftest.$ac_objext \
7640 conftest$ac_exeext conftest.$ac_ext
7641 ac_ext=c
7642ac_cpp='$CPP $CPPFLAGS'
7643ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7644ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7645ac_compiler_gnu=$ac_cv_c_compiler_gnu
7646
7647fi
7648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7649$as_echo "$lt_cv_cc_needs_belf" >&6; }
7650 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7651 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7652 CFLAGS="$SAVE_CFLAGS"
7653 fi
7654 ;;
7655sparc*-*solaris*)
7656 # Find out which ABI we are using.
7657 echo 'int i;' > conftest.$ac_ext
7658 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7659 (eval $ac_compile) 2>&5
7660 ac_status=$?
7661 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7662 test $ac_status = 0; }; then
7663 case `/usr/bin/file conftest.o` in
7664 *64-bit*)
7665 case $lt_cv_prog_gnu_ld in
7666 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7667 *)
7668 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7669 LD="${LD-ld} -64"
7670 fi
7671 ;;
7672 esac
7673 ;;
7674 esac
7675 fi
7676 rm -rf conftest*
7677 ;;
7678esac
7679
7680need_locks="$enable_libtool_lock"
7681
7682
7683 case $host_os in
7684 rhapsody* | darwin*)
7685 if test -n "$ac_tool_prefix"; then
7686 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7687set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7689$as_echo_n "checking for $ac_word... " >&6; }
63a9e923 7690if ${ac_cv_prog_DSYMUTIL+:} false; then :
6bb11ab3
L
7691 $as_echo_n "(cached) " >&6
7692else
7693 if test -n "$DSYMUTIL"; then
7694 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7695else
7696as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7697for as_dir in $PATH
7698do
7699 IFS=$as_save_IFS
7700 test -z "$as_dir" && as_dir=.
7701 for ac_exec_ext in '' $ac_executable_extensions; do
63a9e923 7702 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
7703 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7705 break 2
7706 fi
7707done
7708 done
7709IFS=$as_save_IFS
7710
7711fi
7712fi
7713DSYMUTIL=$ac_cv_prog_DSYMUTIL
7714if test -n "$DSYMUTIL"; then
7715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7716$as_echo "$DSYMUTIL" >&6; }
7717else
7718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7719$as_echo "no" >&6; }
7720fi
7721
7722
7723fi
7724if test -z "$ac_cv_prog_DSYMUTIL"; then
7725 ac_ct_DSYMUTIL=$DSYMUTIL
7726 # Extract the first word of "dsymutil", so it can be a program name with args.
7727set dummy dsymutil; ac_word=$2
7728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7729$as_echo_n "checking for $ac_word... " >&6; }
63a9e923 7730if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6bb11ab3
L
7731 $as_echo_n "(cached) " >&6
7732else
7733 if test -n "$ac_ct_DSYMUTIL"; then
7734 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7735else
7736as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7737for as_dir in $PATH
7738do
7739 IFS=$as_save_IFS
7740 test -z "$as_dir" && as_dir=.
7741 for ac_exec_ext in '' $ac_executable_extensions; do
63a9e923 7742 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
7743 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7745 break 2
7746 fi
7747done
7748 done
7749IFS=$as_save_IFS
7750
7751fi
7752fi
7753ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7754if test -n "$ac_ct_DSYMUTIL"; then
7755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7756$as_echo "$ac_ct_DSYMUTIL" >&6; }
7757else
7758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7759$as_echo "no" >&6; }
7760fi
7761
7762 if test "x$ac_ct_DSYMUTIL" = x; then
7763 DSYMUTIL=":"
7764 else
7765 case $cross_compiling:$ac_tool_warned in
7766yes:)
7767{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7768$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7769ac_tool_warned=yes ;;
7770esac
7771 DSYMUTIL=$ac_ct_DSYMUTIL
7772 fi
7773else
7774 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7775fi
7776
7777 if test -n "$ac_tool_prefix"; then
7778 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7779set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7781$as_echo_n "checking for $ac_word... " >&6; }
63a9e923 7782if ${ac_cv_prog_NMEDIT+:} false; then :
6bb11ab3
L
7783 $as_echo_n "(cached) " >&6
7784else
7785 if test -n "$NMEDIT"; then
7786 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7787else
7788as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7789for as_dir in $PATH
7790do
7791 IFS=$as_save_IFS
7792 test -z "$as_dir" && as_dir=.
7793 for ac_exec_ext in '' $ac_executable_extensions; do
63a9e923 7794 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
7795 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7797 break 2
7798 fi
7799done
7800 done
7801IFS=$as_save_IFS
7802
7803fi
7804fi
7805NMEDIT=$ac_cv_prog_NMEDIT
7806if test -n "$NMEDIT"; then
7807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7808$as_echo "$NMEDIT" >&6; }
7809else
7810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7811$as_echo "no" >&6; }
7812fi
7813
7814
7815fi
7816if test -z "$ac_cv_prog_NMEDIT"; then
7817 ac_ct_NMEDIT=$NMEDIT
7818 # Extract the first word of "nmedit", so it can be a program name with args.
7819set dummy nmedit; ac_word=$2
7820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7821$as_echo_n "checking for $ac_word... " >&6; }
63a9e923 7822if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6bb11ab3
L
7823 $as_echo_n "(cached) " >&6
7824else
7825 if test -n "$ac_ct_NMEDIT"; then
7826 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7827else
7828as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7829for as_dir in $PATH
7830do
7831 IFS=$as_save_IFS
7832 test -z "$as_dir" && as_dir=.
7833 for ac_exec_ext in '' $ac_executable_extensions; do
63a9e923 7834 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
7835 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7837 break 2
7838 fi
7839done
7840 done
7841IFS=$as_save_IFS
7842
7843fi
7844fi
7845ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7846if test -n "$ac_ct_NMEDIT"; then
7847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7848$as_echo "$ac_ct_NMEDIT" >&6; }
7849else
7850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7851$as_echo "no" >&6; }
7852fi
7853
7854 if test "x$ac_ct_NMEDIT" = x; then
7855 NMEDIT=":"
7856 else
7857 case $cross_compiling:$ac_tool_warned in
7858yes:)
7859{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7860$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7861ac_tool_warned=yes ;;
7862esac
7863 NMEDIT=$ac_ct_NMEDIT
7864 fi
7865else
7866 NMEDIT="$ac_cv_prog_NMEDIT"
7867fi
7868
7869 if test -n "$ac_tool_prefix"; then
7870 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7871set dummy ${ac_tool_prefix}lipo; ac_word=$2
7872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7873$as_echo_n "checking for $ac_word... " >&6; }
63a9e923 7874if ${ac_cv_prog_LIPO+:} false; then :
6bb11ab3
L
7875 $as_echo_n "(cached) " >&6
7876else
7877 if test -n "$LIPO"; then
7878 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7879else
7880as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7881for as_dir in $PATH
7882do
7883 IFS=$as_save_IFS
7884 test -z "$as_dir" && as_dir=.
7885 for ac_exec_ext in '' $ac_executable_extensions; do
63a9e923 7886 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
7887 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7889 break 2
7890 fi
7891done
7892 done
7893IFS=$as_save_IFS
7894
7895fi
7896fi
7897LIPO=$ac_cv_prog_LIPO
7898if test -n "$LIPO"; then
7899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7900$as_echo "$LIPO" >&6; }
7901else
7902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7903$as_echo "no" >&6; }
7904fi
7905
7906
7907fi
7908if test -z "$ac_cv_prog_LIPO"; then
7909 ac_ct_LIPO=$LIPO
7910 # Extract the first word of "lipo", so it can be a program name with args.
7911set dummy lipo; ac_word=$2
7912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7913$as_echo_n "checking for $ac_word... " >&6; }
63a9e923 7914if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6bb11ab3
L
7915 $as_echo_n "(cached) " >&6
7916else
7917 if test -n "$ac_ct_LIPO"; then
7918 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7919else
7920as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7921for as_dir in $PATH
7922do
7923 IFS=$as_save_IFS
7924 test -z "$as_dir" && as_dir=.
7925 for ac_exec_ext in '' $ac_executable_extensions; do
63a9e923 7926 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
7927 ac_cv_prog_ac_ct_LIPO="lipo"
7928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7929 break 2
7930 fi
7931done
7932 done
7933IFS=$as_save_IFS
7934
7935fi
7936fi
7937ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7938if test -n "$ac_ct_LIPO"; then
7939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7940$as_echo "$ac_ct_LIPO" >&6; }
7941else
7942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7943$as_echo "no" >&6; }
7944fi
7945
7946 if test "x$ac_ct_LIPO" = x; then
7947 LIPO=":"
7948 else
7949 case $cross_compiling:$ac_tool_warned in
7950yes:)
7951{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7952$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7953ac_tool_warned=yes ;;
7954esac
7955 LIPO=$ac_ct_LIPO
7956 fi
7957else
7958 LIPO="$ac_cv_prog_LIPO"
7959fi
7960
7961 if test -n "$ac_tool_prefix"; then
7962 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7963set dummy ${ac_tool_prefix}otool; ac_word=$2
7964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7965$as_echo_n "checking for $ac_word... " >&6; }
63a9e923 7966if ${ac_cv_prog_OTOOL+:} false; then :
6bb11ab3
L
7967 $as_echo_n "(cached) " >&6
7968else
7969 if test -n "$OTOOL"; then
7970 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7971else
7972as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7973for as_dir in $PATH
7974do
7975 IFS=$as_save_IFS
7976 test -z "$as_dir" && as_dir=.
7977 for ac_exec_ext in '' $ac_executable_extensions; do
63a9e923 7978 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
7979 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7981 break 2
7982 fi
7983done
7984 done
7985IFS=$as_save_IFS
7986
7987fi
7988fi
7989OTOOL=$ac_cv_prog_OTOOL
7990if test -n "$OTOOL"; then
7991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7992$as_echo "$OTOOL" >&6; }
7993else
7994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7995$as_echo "no" >&6; }
7996fi
7997
7998
7999fi
8000if test -z "$ac_cv_prog_OTOOL"; then
8001 ac_ct_OTOOL=$OTOOL
8002 # Extract the first word of "otool", so it can be a program name with args.
8003set dummy otool; ac_word=$2
8004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8005$as_echo_n "checking for $ac_word... " >&6; }
63a9e923 8006if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6bb11ab3
L
8007 $as_echo_n "(cached) " >&6
8008else
8009 if test -n "$ac_ct_OTOOL"; then
8010 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8011else
8012as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8013for as_dir in $PATH
8014do
8015 IFS=$as_save_IFS
8016 test -z "$as_dir" && as_dir=.
8017 for ac_exec_ext in '' $ac_executable_extensions; do
63a9e923 8018 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
8019 ac_cv_prog_ac_ct_OTOOL="otool"
8020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8021 break 2
8022 fi
8023done
8024 done
8025IFS=$as_save_IFS
8026
8027fi
8028fi
8029ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8030if test -n "$ac_ct_OTOOL"; then
8031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8032$as_echo "$ac_ct_OTOOL" >&6; }
8033else
8034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8035$as_echo "no" >&6; }
8036fi
8037
8038 if test "x$ac_ct_OTOOL" = x; then
8039 OTOOL=":"
8040 else
8041 case $cross_compiling:$ac_tool_warned in
8042yes:)
8043{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8044$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8045ac_tool_warned=yes ;;
8046esac
8047 OTOOL=$ac_ct_OTOOL
8048 fi
8049else
8050 OTOOL="$ac_cv_prog_OTOOL"
8051fi
8052
8053 if test -n "$ac_tool_prefix"; then
8054 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8055set dummy ${ac_tool_prefix}otool64; ac_word=$2
8056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8057$as_echo_n "checking for $ac_word... " >&6; }
63a9e923 8058if ${ac_cv_prog_OTOOL64+:} false; then :
6bb11ab3
L
8059 $as_echo_n "(cached) " >&6
8060else
8061 if test -n "$OTOOL64"; then
8062 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8063else
8064as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8065for as_dir in $PATH
8066do
8067 IFS=$as_save_IFS
8068 test -z "$as_dir" && as_dir=.
8069 for ac_exec_ext in '' $ac_executable_extensions; do
63a9e923 8070 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
8071 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8073 break 2
8074 fi
8075done
8076 done
8077IFS=$as_save_IFS
8078
8079fi
8080fi
8081OTOOL64=$ac_cv_prog_OTOOL64
8082if test -n "$OTOOL64"; then
8083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8084$as_echo "$OTOOL64" >&6; }
8085else
8086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8087$as_echo "no" >&6; }
8088fi
8089
8090
8091fi
8092if test -z "$ac_cv_prog_OTOOL64"; then
8093 ac_ct_OTOOL64=$OTOOL64
8094 # Extract the first word of "otool64", so it can be a program name with args.
8095set dummy otool64; ac_word=$2
8096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8097$as_echo_n "checking for $ac_word... " >&6; }
63a9e923 8098if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6bb11ab3
L
8099 $as_echo_n "(cached) " >&6
8100else
8101 if test -n "$ac_ct_OTOOL64"; then
8102 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8103else
8104as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8105for as_dir in $PATH
8106do
8107 IFS=$as_save_IFS
8108 test -z "$as_dir" && as_dir=.
8109 for ac_exec_ext in '' $ac_executable_extensions; do
63a9e923 8110 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
8111 ac_cv_prog_ac_ct_OTOOL64="otool64"
8112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8113 break 2
8114 fi
8115done
8116 done
8117IFS=$as_save_IFS
8118
8119fi
8120fi
8121ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8122if test -n "$ac_ct_OTOOL64"; then
8123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8124$as_echo "$ac_ct_OTOOL64" >&6; }
8125else
8126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8127$as_echo "no" >&6; }
8128fi
8129
8130 if test "x$ac_ct_OTOOL64" = x; then
8131 OTOOL64=":"
8132 else
8133 case $cross_compiling:$ac_tool_warned in
8134yes:)
8135{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8136$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8137ac_tool_warned=yes ;;
8138esac
8139 OTOOL64=$ac_ct_OTOOL64
8140 fi
8141else
8142 OTOOL64="$ac_cv_prog_OTOOL64"
8143fi
8144
8145
8146
8147
8148
8149
8150
8151
8152
8153
8154
8155
8156
8157
8158
8159
8160
8161
8162
8163
8164
8165
8166
8167
8168
8169
8170
8171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8172$as_echo_n "checking for -single_module linker flag... " >&6; }
63a9e923 8173if ${lt_cv_apple_cc_single_mod+:} false; then :
6bb11ab3
L
8174 $as_echo_n "(cached) " >&6
8175else
8176 lt_cv_apple_cc_single_mod=no
8177 if test -z "${LT_MULTI_MODULE}"; then
8178 # By default we will add the -single_module flag. You can override
8179 # by either setting the environment variable LT_MULTI_MODULE
8180 # non-empty at configure time, or by adding -multi_module to the
8181 # link flags.
8182 rm -rf libconftest.dylib*
8183 echo "int foo(void){return 1;}" > conftest.c
8184 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8185-dynamiclib -Wl,-single_module conftest.c" >&5
8186 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8187 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8188 _lt_result=$?
8189 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8190 lt_cv_apple_cc_single_mod=yes
8191 else
8192 cat conftest.err >&5
8193 fi
8194 rm -rf libconftest.dylib*
8195 rm -f conftest.*
8196 fi
8197fi
8198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8199$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8201$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
63a9e923 8202if ${lt_cv_ld_exported_symbols_list+:} false; then :
6bb11ab3
L
8203 $as_echo_n "(cached) " >&6
8204else
8205 lt_cv_ld_exported_symbols_list=no
8206 save_LDFLAGS=$LDFLAGS
8207 echo "_main" > conftest.sym
8208 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8210/* end confdefs.h. */
8211
8212int
8213main ()
8214{
8215
8216 ;
8217 return 0;
8218}
8219_ACEOF
8220if ac_fn_c_try_link "$LINENO"; then :
8221 lt_cv_ld_exported_symbols_list=yes
8222else
8223 lt_cv_ld_exported_symbols_list=no
8224fi
8225rm -f core conftest.err conftest.$ac_objext \
8226 conftest$ac_exeext conftest.$ac_ext
8227 LDFLAGS="$save_LDFLAGS"
8228
8229fi
8230{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8231$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8233$as_echo_n "checking for -force_load linker flag... " >&6; }
63a9e923 8234if ${lt_cv_ld_force_load+:} false; then :
6bb11ab3
L
8235 $as_echo_n "(cached) " >&6
8236else
8237 lt_cv_ld_force_load=no
8238 cat > conftest.c << _LT_EOF
8239int forced_loaded() { return 2;}
8240_LT_EOF
8241 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8242 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8243 echo "$AR cru libconftest.a conftest.o" >&5
8244 $AR cru libconftest.a conftest.o 2>&5
8245 cat > conftest.c << _LT_EOF
8246int main() { return 0;}
8247_LT_EOF
8248 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8249 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8250 _lt_result=$?
8251 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8252 lt_cv_ld_force_load=yes
8253 else
8254 cat conftest.err >&5
8255 fi
8256 rm -f conftest.err libconftest.a conftest conftest.c
8257 rm -rf conftest.dSYM
8258
8259fi
8260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8261$as_echo "$lt_cv_ld_force_load" >&6; }
8262 case $host_os in
8263 rhapsody* | darwin1.[012])
8264 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8265 darwin1.*)
8266 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8267 darwin*) # darwin 5.x on
8268 # if running on 10.5 or later, the deployment target defaults
8269 # to the OS version, if on x86, and 10.4, the deployment
8270 # target defaults to 10.4. Don't you love it?
8271 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8272 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8273 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
5cddc23a 8274 10.[012][,.]*)
6bb11ab3
L
8275 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8276 10.*)
8277 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8278 esac
8279 ;;
8280 esac
8281 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8282 _lt_dar_single_mod='$single_module'
8283 fi
8284 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8285 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8286 else
8287 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8288 fi
8289 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8290 _lt_dsymutil='~$DSYMUTIL $lib || :'
8291 else
8292 _lt_dsymutil=
8293 fi
8294 ;;
8295 esac
8296
8297for ac_header in dlfcn.h
8298do :
8299 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8300"
63a9e923 8301if test "x$ac_cv_header_dlfcn_h" = xyes; then :
6bb11ab3
L
8302 cat >>confdefs.h <<_ACEOF
8303#define HAVE_DLFCN_H 1
8304_ACEOF
8305
8306fi
8307
8308done
8309
8310
8311
8312# autoconf.info says this should be called right after AC_INIT.
8313ac_config_headers="$ac_config_headers config.h:config.in"
8314
8315
8316
0cb8d851
MF
8317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8318$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
63a9e923 8319if ${ac_cv_c_bigendian+:} false; then :
0cb8d851
MF
8320 $as_echo_n "(cached) " >&6
8321else
8322 ac_cv_c_bigendian=unknown
8323 # See if we're dealing with a universal compiler.
8324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8325/* end confdefs.h. */
8326#ifndef __APPLE_CC__
8327 not a universal capable compiler
8328 #endif
8329 typedef int dummy;
8330
8331_ACEOF
8332if ac_fn_c_try_compile "$LINENO"; then :
8333
8334 # Check for potential -arch flags. It is not universal unless
8335 # there are at least two -arch flags with different values.
8336 ac_arch=
8337 ac_prev=
8338 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8339 if test -n "$ac_prev"; then
8340 case $ac_word in
8341 i?86 | x86_64 | ppc | ppc64)
8342 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8343 ac_arch=$ac_word
8344 else
8345 ac_cv_c_bigendian=universal
8346 break
8347 fi
8348 ;;
8349 esac
8350 ac_prev=
8351 elif test "x$ac_word" = "x-arch"; then
8352 ac_prev=arch
8353 fi
8354 done
8355fi
8356rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8357 if test $ac_cv_c_bigendian = unknown; then
8358 # See if sys/param.h defines the BYTE_ORDER macro.
8359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8360/* end confdefs.h. */
8361#include <sys/types.h>
8362 #include <sys/param.h>
8363
8364int
8365main ()
8366{
8367#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8368 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8369 && LITTLE_ENDIAN)
8370 bogus endian macros
8371 #endif
8372
8373 ;
8374 return 0;
8375}
8376_ACEOF
8377if ac_fn_c_try_compile "$LINENO"; then :
8378 # It does; now see whether it defined to BIG_ENDIAN or not.
8379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8380/* end confdefs.h. */
8381#include <sys/types.h>
8382 #include <sys/param.h>
8383
8384int
8385main ()
8386{
8387#if BYTE_ORDER != BIG_ENDIAN
8388 not big endian
8389 #endif
8390
8391 ;
8392 return 0;
8393}
8394_ACEOF
8395if ac_fn_c_try_compile "$LINENO"; then :
8396 ac_cv_c_bigendian=yes
8397else
8398 ac_cv_c_bigendian=no
8399fi
8400rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8401fi
8402rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8403 fi
8404 if test $ac_cv_c_bigendian = unknown; then
8405 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8407/* end confdefs.h. */
8408#include <limits.h>
8409
8410int
8411main ()
8412{
8413#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8414 bogus endian macros
8415 #endif
8416
8417 ;
8418 return 0;
8419}
8420_ACEOF
8421if ac_fn_c_try_compile "$LINENO"; then :
8422 # It does; now see whether it defined to _BIG_ENDIAN or not.
8423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8424/* end confdefs.h. */
8425#include <limits.h>
8426
8427int
8428main ()
8429{
8430#ifndef _BIG_ENDIAN
8431 not big endian
8432 #endif
8433
8434 ;
8435 return 0;
8436}
8437_ACEOF
8438if ac_fn_c_try_compile "$LINENO"; then :
8439 ac_cv_c_bigendian=yes
8440else
8441 ac_cv_c_bigendian=no
8442fi
8443rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8444fi
8445rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8446 fi
8447 if test $ac_cv_c_bigendian = unknown; then
8448 # Compile a test program.
8449 if test "$cross_compiling" = yes; then :
8450 # Try to guess by grepping values from an object file.
8451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8452/* end confdefs.h. */
8453short int ascii_mm[] =
8454 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8455 short int ascii_ii[] =
8456 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8457 int use_ascii (int i) {
8458 return ascii_mm[i] + ascii_ii[i];
8459 }
8460 short int ebcdic_ii[] =
8461 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8462 short int ebcdic_mm[] =
8463 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8464 int use_ebcdic (int i) {
8465 return ebcdic_mm[i] + ebcdic_ii[i];
8466 }
8467 extern int foo;
8468
8469int
8470main ()
8471{
8472return use_ascii (foo) == use_ebcdic (foo);
8473 ;
8474 return 0;
8475}
8476_ACEOF
8477if ac_fn_c_try_compile "$LINENO"; then :
8478 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8479 ac_cv_c_bigendian=yes
8480 fi
8481 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8482 if test "$ac_cv_c_bigendian" = unknown; then
8483 ac_cv_c_bigendian=no
8484 else
8485 # finding both strings is unlikely to happen, but who knows?
8486 ac_cv_c_bigendian=unknown
8487 fi
8488 fi
8489fi
8490rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8491else
8492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8493/* end confdefs.h. */
8494$ac_includes_default
8495int
8496main ()
8497{
8498
8499 /* Are we little or big endian? From Harbison&Steele. */
8500 union
8501 {
8502 long int l;
8503 char c[sizeof (long int)];
8504 } u;
8505 u.l = 1;
8506 return u.c[sizeof (long int) - 1] == 1;
8507
8508 ;
8509 return 0;
8510}
8511_ACEOF
8512if ac_fn_c_try_run "$LINENO"; then :
8513 ac_cv_c_bigendian=no
8514else
8515 ac_cv_c_bigendian=yes
8516fi
8517rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8518 conftest.$ac_objext conftest.beam conftest.$ac_ext
8519fi
8520
8521 fi
8522fi
8523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8524$as_echo "$ac_cv_c_bigendian" >&6; }
8525 case $ac_cv_c_bigendian in #(
8526 yes)
8527 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8528;; #(
8529 no)
8530 ;; #(
8531 universal)
8532
8533$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8534
8535 ;; #(
8536 *)
63a9e923 8537 as_fn_error $? "unknown endianness
0cb8d851
MF
8538 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8539 esac
8540
6bb11ab3
L
8541
8542
8543
8544# Put a plausible default for CC_FOR_BUILD in Makefile.
5c887dd5
JB
8545if test -z "$CC_FOR_BUILD"; then
8546 if test "x$cross_compiling" = "xno"; then
8547 CC_FOR_BUILD='$(CC)'
8548 else
8549 CC_FOR_BUILD=gcc
8550 fi
6bb11ab3
L
8551fi
8552
8553
8554
8555
8556AR=${AR-ar}
8557
8558if test -n "$ac_tool_prefix"; then
8559 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8560set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8562$as_echo_n "checking for $ac_word... " >&6; }
63a9e923 8563if ${ac_cv_prog_RANLIB+:} false; then :
6bb11ab3
L
8564 $as_echo_n "(cached) " >&6
8565else
8566 if test -n "$RANLIB"; then
8567 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8568else
8569as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8570for as_dir in $PATH
8571do
8572 IFS=$as_save_IFS
8573 test -z "$as_dir" && as_dir=.
8574 for ac_exec_ext in '' $ac_executable_extensions; do
63a9e923 8575 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
8576 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8578 break 2
8579 fi
8580done
8581 done
8582IFS=$as_save_IFS
8583
8584fi
8585fi
8586RANLIB=$ac_cv_prog_RANLIB
8587if test -n "$RANLIB"; then
8588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8589$as_echo "$RANLIB" >&6; }
8590else
8591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8592$as_echo "no" >&6; }
8593fi
8594
8595
8596fi
8597if test -z "$ac_cv_prog_RANLIB"; then
8598 ac_ct_RANLIB=$RANLIB
8599 # Extract the first word of "ranlib", so it can be a program name with args.
8600set dummy ranlib; ac_word=$2
8601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8602$as_echo_n "checking for $ac_word... " >&6; }
63a9e923 8603if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6bb11ab3
L
8604 $as_echo_n "(cached) " >&6
8605else
8606 if test -n "$ac_ct_RANLIB"; then
8607 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8608else
8609as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8610for as_dir in $PATH
8611do
8612 IFS=$as_save_IFS
8613 test -z "$as_dir" && as_dir=.
8614 for ac_exec_ext in '' $ac_executable_extensions; do
63a9e923 8615 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
8616 ac_cv_prog_ac_ct_RANLIB="ranlib"
8617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8618 break 2
8619 fi
8620done
8621 done
8622IFS=$as_save_IFS
8623
8624fi
8625fi
8626ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8627if test -n "$ac_ct_RANLIB"; then
8628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8629$as_echo "$ac_ct_RANLIB" >&6; }
8630else
8631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8632$as_echo "no" >&6; }
8633fi
8634
8635 if test "x$ac_ct_RANLIB" = x; then
8636 RANLIB=":"
8637 else
8638 case $cross_compiling:$ac_tool_warned in
8639yes:)
8640{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8641$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8642ac_tool_warned=yes ;;
8643esac
8644 RANLIB=$ac_ct_RANLIB
8645 fi
8646else
8647 RANLIB="$ac_cv_prog_RANLIB"
8648fi
8649
8650
8651# Some of the common include files depend on bfd.h, and bfd.h checks
8652# that config.h is included first by testing that the PACKAGE macro
8653# is defined.
8654PACKAGE=sim
8655
8656cat >>confdefs.h <<_ACEOF
8657#define PACKAGE "$PACKAGE"
8658_ACEOF
8659
8660
8661
8662# Dependency checking.
8663ac_config_commands="$ac_config_commands depdir"
8664
8665
8666depcc="$CC" am_compiler_list=
8667
8668am_depcomp=$ac_aux_dir/depcomp
8669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
8670$as_echo_n "checking dependency style of $depcc... " >&6; }
63a9e923 8671if ${am_cv_CC_dependencies_compiler_type+:} false; then :
6bb11ab3
L
8672 $as_echo_n "(cached) " >&6
8673else
8674 if test -f "$am_depcomp"; then
8675 # We make a subdir and do the tests there. Otherwise we can end up
8676 # making bogus files that we don't know about and never remove. For
8677 # instance it was reported that on HP-UX the gcc test will end up
8678 # making a dummy file named `D' -- because `-MD' means `put the output
8679 # in D'.
8680 mkdir conftest.dir
8681 # Copy depcomp to subdir because otherwise we won't find it if we're
8682 # using a relative directory.
8683 cp "$am_depcomp" conftest.dir
8684 cd conftest.dir
8685 # We will build objects and dependencies in a subdirectory because
8686 # it helps to detect inapplicable dependency modes. For instance
8687 # both Tru64's cc and ICC support -MD to output dependencies as a
8688 # side effect of compilation, but ICC will put the dependencies in
8689 # the current directory while Tru64 will put them in the object
8690 # directory.
8691 mkdir sub
8692
8693 am_cv_CC_dependencies_compiler_type=none
8694 if test "$am_compiler_list" = ""; then
8695 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
8696 fi
8697 for depmode in $am_compiler_list; do
8698 if test $depmode = none; then break; fi
8699
8700 $as_echo "$as_me:$LINENO: trying $depmode" >&5
8701 # Setup a source with many dependencies, because some compilers
8702 # like to wrap large dependency lists on column 80 (with \), and
8703 # we should not choose a depcomp mode which is confused by this.
8704 #
8705 # We need to recreate these files for each test, as the compiler may
8706 # overwrite some of them when testing with obscure command lines.
8707 # This happens at least with the AIX C compiler.
8708 : > sub/conftest.c
8709 for i in 1 2 3 4 5 6; do
8710 echo '#include "conftst'$i'.h"' >> sub/conftest.c
8711 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
8712 # Solaris 8's {/usr,}/bin/sh.
8713 touch sub/conftst$i.h
8714 done
8715 echo "include sub/conftest.Po" > confmf
8716
8717 # We check with `-c' and `-o' for the sake of the "dashmstdout"
8718 # mode. It turns out that the SunPro C++ compiler does not properly
8719 # handle `-M -o', and we need to detect this.
8720 depcmd="depmode=$depmode \
8721 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
8722 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
8723 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
8724 echo "| $depcmd" | sed -e 's/ */ /g' >&5
8725 if env $depcmd > conftest.err 2>&1 &&
8726 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
8727 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
8728 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
8729 # icc doesn't choke on unknown options, it will just issue warnings
8730 # or remarks (even with -Werror). So we grep stderr for any message
8731 # that says an option was ignored or not supported.
8732 # When given -MP, icc 7.0 and 7.1 complain thusly:
8733 # icc: Command line warning: ignoring option '-M'; no argument required
8734 # The diagnosis changed in icc 8.0:
8735 # icc: Command line remark: option '-MP' not supported
8736 if (grep 'ignoring option' conftest.err ||
8737 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
8738 am_cv_CC_dependencies_compiler_type=$depmode
8739 $as_echo "$as_me:$LINENO: success" >&5
8740 break
8741 fi
8742 fi
8743 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
8744 sed -e 's/^/| /' < conftest.err >&5
8745 done
8746
8747 cd ..
8748 rm -rf conftest.dir
8749else
8750 am_cv_CC_dependencies_compiler_type=none
8751fi
8752
8753fi
8754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
8755$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
8756if test x${am_cv_CC_dependencies_compiler_type-none} = xnone
63a9e923 8757then as_fn_error $? "no usable dependency style found" "$LINENO" 5
6bb11ab3
L
8758else CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
8759
8760fi
8761
8762
8763# Check for the 'make' the user wants to use.
8764for ac_prog in make
8765do
8766 # Extract the first word of "$ac_prog", so it can be a program name with args.
8767set dummy $ac_prog; ac_word=$2
8768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8769$as_echo_n "checking for $ac_word... " >&6; }
63a9e923 8770if ${ac_cv_prog_MAKE+:} false; then :
6bb11ab3
L
8771 $as_echo_n "(cached) " >&6
8772else
8773 if test -n "$MAKE"; then
8774 ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
8775else
8776as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8777for as_dir in $PATH
8778do
8779 IFS=$as_save_IFS
8780 test -z "$as_dir" && as_dir=.
8781 for ac_exec_ext in '' $ac_executable_extensions; do
63a9e923 8782 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
8783 ac_cv_prog_MAKE="$ac_prog"
8784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8785 break 2
8786 fi
8787done
8788 done
8789IFS=$as_save_IFS
8790
8791fi
8792fi
8793MAKE=$ac_cv_prog_MAKE
8794if test -n "$MAKE"; then
8795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
8796$as_echo "$MAKE" >&6; }
8797else
8798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8799$as_echo "no" >&6; }
8800fi
8801
8802
8803 test -n "$MAKE" && break
8804done
8805
8806MAKE_IS_GNU=
8807case "`$MAKE --version 2>&1 | sed 1q`" in
8808 *GNU*)
8809 MAKE_IS_GNU=yes
8810 ;;
8811esac
8812 if test "$MAKE_IS_GNU" = yes; then
8813 GMAKE_TRUE=
8814 GMAKE_FALSE='#'
8815else
8816 GMAKE_TRUE='#'
8817 GMAKE_FALSE=
8818fi
8819
8820
8821ALL_LINGUAS=
8822# If we haven't got the data from the intl directory,
8823# assume NLS is disabled.
8824USE_NLS=no
8825LIBINTL=
8826LIBINTL_DEP=
8827INCINTL=
8828XGETTEXT=
8829GMSGFMT=
8830POSUB=
8831
8832if test -f ../../intl/config.intl; then
8833 . ../../intl/config.intl
8834fi
8835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
8836$as_echo_n "checking whether NLS is requested... " >&6; }
8837if test x"$USE_NLS" != xyes; then
8838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8839$as_echo "no" >&6; }
8840else
8841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8842$as_echo "yes" >&6; }
8843
8844$as_echo "#define ENABLE_NLS 1" >>confdefs.h
8845
8846
8847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
8848$as_echo_n "checking for catalogs to be installed... " >&6; }
8849 # Look for .po and .gmo files in the source directory.
8850 CATALOGS=
8851 XLINGUAS=
8852 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
8853 # If there aren't any .gmo files the shell will give us the
8854 # literal string "../path/to/srcdir/po/*.gmo" which has to be
8855 # weeded out.
8856 case "$cat" in *\**)
8857 continue;;
8858 esac
8859 # The quadruple backslash is collapsed to a double backslash
8860 # by the backticks, then collapsed again by the double quotes,
8861 # leaving us with one backslash in the sed expression (right
8862 # before the dot that mustn't act as a wildcard).
8863 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
8864 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
8865 # The user is allowed to set LINGUAS to a list of languages to
8866 # install catalogs for. If it's empty that means "all of them."
8867 if test "x$LINGUAS" = x; then
8868 CATALOGS="$CATALOGS $cat"
8869 XLINGUAS="$XLINGUAS $lang"
8870 else
8871 case "$LINGUAS" in *$lang*)
8872 CATALOGS="$CATALOGS $cat"
8873 XLINGUAS="$XLINGUAS $lang"
8874 ;;
8875 esac
8876 fi
8877 done
8878 LINGUAS="$XLINGUAS"
8879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
8880$as_echo "$LINGUAS" >&6; }
8881
8882
8883 DATADIRNAME=share
8884
8885 INSTOBJEXT=.mo
8886
8887 GENCAT=gencat
8888
8889 CATOBJEXT=.gmo
8890
8891fi
8892
8893# Check for common headers.
8894# FIXME: Seems to me this can cause problems for i386-windows hosts.
8895# At one point there were hardcoded AC_DEFINE's if ${host} = i386-*-windows*.
8896for ac_header in stdlib.h string.h strings.h unistd.h time.h
8897do :
8898 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8899ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
63a9e923 8900if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6bb11ab3
L
8901 cat >>confdefs.h <<_ACEOF
8902#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8903_ACEOF
8904
8905fi
8906
8907done
8908
936df756 8909for ac_header in sys/time.h sys/times.h sys/resource.h sys/mman.h
6bb11ab3
L
8910do :
8911 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8912ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
63a9e923 8913if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6bb11ab3
L
8914 cat >>confdefs.h <<_ACEOF
8915#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8916_ACEOF
8917
8918fi
8919
8920done
8921
8922for ac_header in fcntl.h fpu_control.h
8923do :
8924 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8925ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
63a9e923 8926if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6bb11ab3
L
8927 cat >>confdefs.h <<_ACEOF
8928#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8929_ACEOF
8930
8931fi
8932
8933done
8934
8935for ac_header in dlfcn.h errno.h sys/stat.h
8936do :
8937 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8938ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
63a9e923 8939if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6bb11ab3
L
8940 cat >>confdefs.h <<_ACEOF
8941#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8942_ACEOF
8943
8944fi
8945
8946done
8947
8948for ac_func in getrusage time sigaction __setfpucw
8949do :
8950 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8951ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
63a9e923 8952if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6bb11ab3
L
8953 cat >>confdefs.h <<_ACEOF
8954#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8955_ACEOF
8956
8957fi
8958done
8959
936df756
MF
8960for ac_func in mmap munmap lstat truncate ftruncate posix_fallocate
8961do :
8962 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8963ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
63a9e923 8964if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
936df756
MF
8965 cat >>confdefs.h <<_ACEOF
8966#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8967_ACEOF
8968
8969fi
8970done
8971
8972ac_fn_c_check_member "$LINENO" "struct stat" "st_dev" "ac_cv_member_struct_stat_st_dev" "#ifdef HAVE_SYS_TYPES_H
8973#include <sys/types.h>
8974#endif
8975#ifdef HAVE_SYS_STAT_H
8976#include <sys/stat.h>
8977#endif
8978"
63a9e923 8979if test "x$ac_cv_member_struct_stat_st_dev" = xyes; then :
936df756
MF
8980
8981cat >>confdefs.h <<_ACEOF
8982#define HAVE_STRUCT_STAT_ST_DEV 1
8983_ACEOF
8984
8985
8986fi
8987ac_fn_c_check_member "$LINENO" "struct stat" "st_ino" "ac_cv_member_struct_stat_st_ino" "#ifdef HAVE_SYS_TYPES_H
8988#include <sys/types.h>
8989#endif
8990#ifdef HAVE_SYS_STAT_H
8991#include <sys/stat.h>
8992#endif
8993"
63a9e923 8994if test "x$ac_cv_member_struct_stat_st_ino" = xyes; then :
936df756
MF
8995
8996cat >>confdefs.h <<_ACEOF
8997#define HAVE_STRUCT_STAT_ST_INO 1
8998_ACEOF
8999
9000
9001fi
9002ac_fn_c_check_member "$LINENO" "struct stat" "st_mode" "ac_cv_member_struct_stat_st_mode" "#ifdef HAVE_SYS_TYPES_H
9003#include <sys/types.h>
9004#endif
9005#ifdef HAVE_SYS_STAT_H
9006#include <sys/stat.h>
9007#endif
9008"
63a9e923 9009if test "x$ac_cv_member_struct_stat_st_mode" = xyes; then :
936df756
MF
9010
9011cat >>confdefs.h <<_ACEOF
9012#define HAVE_STRUCT_STAT_ST_MODE 1
9013_ACEOF
9014
9015
9016fi
9017ac_fn_c_check_member "$LINENO" "struct stat" "st_nlink" "ac_cv_member_struct_stat_st_nlink" "#ifdef HAVE_SYS_TYPES_H
9018#include <sys/types.h>
9019#endif
9020#ifdef HAVE_SYS_STAT_H
9021#include <sys/stat.h>
9022#endif
9023"
63a9e923 9024if test "x$ac_cv_member_struct_stat_st_nlink" = xyes; then :
936df756
MF
9025
9026cat >>confdefs.h <<_ACEOF
9027#define HAVE_STRUCT_STAT_ST_NLINK 1
9028_ACEOF
9029
9030
9031fi
9032ac_fn_c_check_member "$LINENO" "struct stat" "st_uid" "ac_cv_member_struct_stat_st_uid" "#ifdef HAVE_SYS_TYPES_H
9033#include <sys/types.h>
9034#endif
9035#ifdef HAVE_SYS_STAT_H
9036#include <sys/stat.h>
9037#endif
9038"
63a9e923 9039if test "x$ac_cv_member_struct_stat_st_uid" = xyes; then :
936df756
MF
9040
9041cat >>confdefs.h <<_ACEOF
9042#define HAVE_STRUCT_STAT_ST_UID 1
9043_ACEOF
9044
9045
9046fi
9047ac_fn_c_check_member "$LINENO" "struct stat" "st_gid" "ac_cv_member_struct_stat_st_gid" "#ifdef HAVE_SYS_TYPES_H
9048#include <sys/types.h>
9049#endif
9050#ifdef HAVE_SYS_STAT_H
9051#include <sys/stat.h>
9052#endif
9053"
63a9e923 9054if test "x$ac_cv_member_struct_stat_st_gid" = xyes; then :
936df756
MF
9055
9056cat >>confdefs.h <<_ACEOF
9057#define HAVE_STRUCT_STAT_ST_GID 1
9058_ACEOF
9059
9060
9061fi
9062ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "#ifdef HAVE_SYS_TYPES_H
9063#include <sys/types.h>
9064#endif
9065#ifdef HAVE_SYS_STAT_H
9066#include <sys/stat.h>
9067#endif
9068"
63a9e923 9069if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
936df756
MF
9070
9071cat >>confdefs.h <<_ACEOF
9072#define HAVE_STRUCT_STAT_ST_RDEV 1
9073_ACEOF
9074
9075
9076fi
9077ac_fn_c_check_member "$LINENO" "struct stat" "st_size" "ac_cv_member_struct_stat_st_size" "#ifdef HAVE_SYS_TYPES_H
9078#include <sys/types.h>
9079#endif
9080#ifdef HAVE_SYS_STAT_H
9081#include <sys/stat.h>
9082#endif
9083"
63a9e923 9084if test "x$ac_cv_member_struct_stat_st_size" = xyes; then :
936df756
MF
9085
9086cat >>confdefs.h <<_ACEOF
9087#define HAVE_STRUCT_STAT_ST_SIZE 1
9088_ACEOF
9089
9090
9091fi
9092ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "#ifdef HAVE_SYS_TYPES_H
9093#include <sys/types.h>
9094#endif
9095#ifdef HAVE_SYS_STAT_H
9096#include <sys/stat.h>
9097#endif
9098"
63a9e923 9099if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
936df756
MF
9100
9101cat >>confdefs.h <<_ACEOF
9102#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
9103_ACEOF
9104
9105
9106fi
9107ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "#ifdef HAVE_SYS_TYPES_H
9108#include <sys/types.h>
9109#endif
9110#ifdef HAVE_SYS_STAT_H
9111#include <sys/stat.h>
9112#endif
9113"
63a9e923 9114if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
936df756
MF
9115
9116cat >>confdefs.h <<_ACEOF
9117#define HAVE_STRUCT_STAT_ST_BLOCKS 1
9118_ACEOF
9119
9120
9121fi
9122ac_fn_c_check_member "$LINENO" "struct stat" "st_atime" "ac_cv_member_struct_stat_st_atime" "#ifdef HAVE_SYS_TYPES_H
9123#include <sys/types.h>
9124#endif
9125#ifdef HAVE_SYS_STAT_H
9126#include <sys/stat.h>
9127#endif
9128"
63a9e923 9129if test "x$ac_cv_member_struct_stat_st_atime" = xyes; then :
936df756
MF
9130
9131cat >>confdefs.h <<_ACEOF
9132#define HAVE_STRUCT_STAT_ST_ATIME 1
9133_ACEOF
9134
9135
9136fi
9137ac_fn_c_check_member "$LINENO" "struct stat" "st_mtime" "ac_cv_member_struct_stat_st_mtime" "#ifdef HAVE_SYS_TYPES_H
9138#include <sys/types.h>
9139#endif
9140#ifdef HAVE_SYS_STAT_H
9141#include <sys/stat.h>
9142#endif
9143"
63a9e923 9144if test "x$ac_cv_member_struct_stat_st_mtime" = xyes; then :
936df756
MF
9145
9146cat >>confdefs.h <<_ACEOF
9147#define HAVE_STRUCT_STAT_ST_MTIME 1
9148_ACEOF
9149
9150
9151fi
9152ac_fn_c_check_member "$LINENO" "struct stat" "st_ctime" "ac_cv_member_struct_stat_st_ctime" "#ifdef HAVE_SYS_TYPES_H
9153#include <sys/types.h>
9154#endif
9155#ifdef HAVE_SYS_STAT_H
9156#include <sys/stat.h>
9157#endif
9158"
63a9e923 9159if test "x$ac_cv_member_struct_stat_st_ctime" = xyes; then :
936df756
MF
9160
9161cat >>confdefs.h <<_ACEOF
9162#define HAVE_STRUCT_STAT_ST_CTIME 1
9163_ACEOF
9164
9165
9166fi
9167
9168ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
9169#include <sys/socket.h>
9170
9171"
63a9e923 9172if test "x$ac_cv_type_socklen_t" = xyes; then :
936df756
MF
9173
9174cat >>confdefs.h <<_ACEOF
9175#define HAVE_SOCKLEN_T 1
9176_ACEOF
9177
9178
9179fi
9180
6bb11ab3
L
9181
9182# Check for socket libraries
9183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for bind in -lsocket" >&5
9184$as_echo_n "checking for bind in -lsocket... " >&6; }
63a9e923 9185if ${ac_cv_lib_socket_bind+:} false; then :
6bb11ab3
L
9186 $as_echo_n "(cached) " >&6
9187else
9188 ac_check_lib_save_LIBS=$LIBS
9189LIBS="-lsocket $LIBS"
9190cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9191/* end confdefs.h. */
9192
9193/* Override any GCC internal prototype to avoid an error.
9194 Use char because int might match the return type of a GCC
9195 builtin and then its argument prototype would still apply. */
9196#ifdef __cplusplus
9197extern "C"
9198#endif
9199char bind ();
9200int
9201main ()
9202{
9203return bind ();
9204 ;
9205 return 0;
9206}
9207_ACEOF
9208if ac_fn_c_try_link "$LINENO"; then :
9209 ac_cv_lib_socket_bind=yes
9210else
9211 ac_cv_lib_socket_bind=no
9212fi
9213rm -f core conftest.err conftest.$ac_objext \
9214 conftest$ac_exeext conftest.$ac_ext
9215LIBS=$ac_check_lib_save_LIBS
9216fi
9217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_bind" >&5
9218$as_echo "$ac_cv_lib_socket_bind" >&6; }
63a9e923 9219if test "x$ac_cv_lib_socket_bind" = xyes; then :
6bb11ab3
L
9220 cat >>confdefs.h <<_ACEOF
9221#define HAVE_LIBSOCKET 1
9222_ACEOF
9223
9224 LIBS="-lsocket $LIBS"
9225
9226fi
9227
9228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
9229$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
63a9e923 9230if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
6bb11ab3
L
9231 $as_echo_n "(cached) " >&6
9232else
9233 ac_check_lib_save_LIBS=$LIBS
9234LIBS="-lnsl $LIBS"
9235cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9236/* end confdefs.h. */
9237
9238/* Override any GCC internal prototype to avoid an error.
9239 Use char because int might match the return type of a GCC
9240 builtin and then its argument prototype would still apply. */
9241#ifdef __cplusplus
9242extern "C"
9243#endif
9244char gethostbyname ();
9245int
9246main ()
9247{
9248return gethostbyname ();
9249 ;
9250 return 0;
9251}
9252_ACEOF
9253if ac_fn_c_try_link "$LINENO"; then :
9254 ac_cv_lib_nsl_gethostbyname=yes
9255else
9256 ac_cv_lib_nsl_gethostbyname=no
9257fi
9258rm -f core conftest.err conftest.$ac_objext \
9259 conftest$ac_exeext conftest.$ac_ext
9260LIBS=$ac_check_lib_save_LIBS
9261fi
9262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
9263$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
63a9e923 9264if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
6bb11ab3
L
9265 cat >>confdefs.h <<_ACEOF
9266#define HAVE_LIBNSL 1
9267_ACEOF
9268
9269 LIBS="-lnsl $LIBS"
9270
9271fi
9272
9273
9274# BFD conditionally uses zlib, so we must link it in if libbfd does, by
9275# using the same condition.
9276
aadc9410 9277 # Use the system's zlib library.
7fed4b0b
L
9278 zlibdir="-L\$(top_builddir)/../zlib"
9279 zlibinc="-I\$(top_srcdir)/../zlib"
6bb11ab3 9280
aadc9410
MF
9281# Check whether --with-system-zlib was given.
9282if test "${with_system_zlib+set}" = set; then :
0ceaf1ec
L
9283 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
9284 zlibdir=
9285 zlibinc=
9286 fi
6bb11ab3
L
9287
9288fi
9289
6bb11ab3 9290
6bb11ab3 9291
6bb11ab3
L
9292
9293
9294# BFD uses libdl when when plugins enabled.
9295
faa743bb
RM
9296 maybe_plugins=no
9297 for ac_header in dlfcn.h
9298do :
9299 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9300"
63a9e923 9301if test "x$ac_cv_header_dlfcn_h" = xyes; then :
faa743bb
RM
9302 cat >>confdefs.h <<_ACEOF
9303#define HAVE_DLFCN_H 1
9304_ACEOF
9305 maybe_plugins=yes
9306fi
9307
9308done
9309
9310 for ac_header in windows.h
9311do :
9312 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
9313"
63a9e923 9314if test "x$ac_cv_header_windows_h" = xyes; then :
faa743bb
RM
9315 cat >>confdefs.h <<_ACEOF
9316#define HAVE_WINDOWS_H 1
9317_ACEOF
9318 maybe_plugins=yes
9319fi
9320
9321done
9322
9323
9324 # Check whether --enable-plugins was given.
6bb11ab3
L
9325if test "${enable_plugins+set}" = set; then :
9326 enableval=$enable_plugins; case "${enableval}" in
faa743bb
RM
9327 no) plugins=no ;;
9328 *) plugins=yes
9329 if test "$maybe_plugins" != "yes" ; then
63a9e923 9330 as_fn_error $? "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
faa743bb
RM
9331 fi ;;
9332 esac
6bb11ab3 9333else
faa743bb
RM
9334 plugins=$maybe_plugins
9335
6bb11ab3
L
9336fi
9337
2974be62 9338 if test "$plugins" = "yes"; then
37f980dc
SM
9339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
9340$as_echo_n "checking for library containing dlsym... " >&6; }
63a9e923 9341if ${ac_cv_search_dlsym+:} false; then :
2974be62
AM
9342 $as_echo_n "(cached) " >&6
9343else
9344 ac_func_search_save_LIBS=$LIBS
9345cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9346/* end confdefs.h. */
9347
9348/* Override any GCC internal prototype to avoid an error.
9349 Use char because int might match the return type of a GCC
9350 builtin and then its argument prototype would still apply. */
9351#ifdef __cplusplus
9352extern "C"
9353#endif
37f980dc 9354char dlsym ();
2974be62
AM
9355int
9356main ()
9357{
37f980dc 9358return dlsym ();
2974be62
AM
9359 ;
9360 return 0;
9361}
9362_ACEOF
9363for ac_lib in '' dl; do
9364 if test -z "$ac_lib"; then
9365 ac_res="none required"
9366 else
9367 ac_res=-l$ac_lib
9368 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9369 fi
9370 if ac_fn_c_try_link "$LINENO"; then :
37f980dc 9371 ac_cv_search_dlsym=$ac_res
2974be62
AM
9372fi
9373rm -f core conftest.err conftest.$ac_objext \
9374 conftest$ac_exeext
63a9e923 9375 if ${ac_cv_search_dlsym+:} false; then :
2974be62
AM
9376 break
9377fi
9378done
63a9e923 9379if ${ac_cv_search_dlsym+:} false; then :
2974be62
AM
9380
9381else
37f980dc 9382 ac_cv_search_dlsym=no
2974be62
AM
9383fi
9384rm conftest.$ac_ext
9385LIBS=$ac_func_search_save_LIBS
9386fi
37f980dc
SM
9387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
9388$as_echo "$ac_cv_search_dlsym" >&6; }
9389ac_res=$ac_cv_search_dlsym
2974be62
AM
9390if test "$ac_res" != no; then :
9391 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9392
9393fi
9394
9395 fi
6bb11ab3
L
9396
9397 if test "$plugins" = yes; then
9398 PLUGINS_TRUE=
9399 PLUGINS_FALSE='#'
9400else
9401 PLUGINS_TRUE='#'
9402 PLUGINS_FALSE=
9403fi
9404
9405
9406
9407
9408
9409# Set options
9410enable_dlopen=yes
9411
9412
9413
9414
9415 enable_win32_dll=no
9416
9417
9418 # Check whether --enable-shared was given.
9419if test "${enable_shared+set}" = set; then :
9420 enableval=$enable_shared; p=${PACKAGE-default}
9421 case $enableval in
9422 yes) enable_shared=yes ;;
9423 no) enable_shared=no ;;
9424 *)
9425 enable_shared=no
9426 # Look at the argument we got. We use all the common list separators.
9427 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9428 for pkg in $enableval; do
9429 IFS="$lt_save_ifs"
9430 if test "X$pkg" = "X$p"; then
9431 enable_shared=yes
9432 fi
9433 done
9434 IFS="$lt_save_ifs"
9435 ;;
9436 esac
9437else
9438 enable_shared=yes
9439fi
9440
9441
9442
9443
9444
9445
9446
9447
9448
9449 # Check whether --enable-static was given.
9450if test "${enable_static+set}" = set; then :
9451 enableval=$enable_static; p=${PACKAGE-default}
9452 case $enableval in
9453 yes) enable_static=yes ;;
9454 no) enable_static=no ;;
9455 *)
9456 enable_static=no
9457 # Look at the argument we got. We use all the common list separators.
9458 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9459 for pkg in $enableval; do
9460 IFS="$lt_save_ifs"
9461 if test "X$pkg" = "X$p"; then
9462 enable_static=yes
9463 fi
9464 done
9465 IFS="$lt_save_ifs"
9466 ;;
9467 esac
9468else
9469 enable_static=yes
9470fi
9471
9472
9473
9474
9475
9476
9477
9478
9479
9480
9481# Check whether --with-pic was given.
9482if test "${with_pic+set}" = set; then :
9483 withval=$with_pic; pic_mode="$withval"
9484else
9485 pic_mode=default
9486fi
9487
9488
9489test -z "$pic_mode" && pic_mode=default
9490
9491
9492
9493
9494
9495
9496
9497 # Check whether --enable-fast-install was given.
9498if test "${enable_fast_install+set}" = set; then :
9499 enableval=$enable_fast_install; p=${PACKAGE-default}
9500 case $enableval in
9501 yes) enable_fast_install=yes ;;
9502 no) enable_fast_install=no ;;
9503 *)
9504 enable_fast_install=no
9505 # Look at the argument we got. We use all the common list separators.
9506 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9507 for pkg in $enableval; do
9508 IFS="$lt_save_ifs"
9509 if test "X$pkg" = "X$p"; then
9510 enable_fast_install=yes
9511 fi
9512 done
9513 IFS="$lt_save_ifs"
9514 ;;
9515 esac
9516else
9517 enable_fast_install=yes
9518fi
9519
9520
9521
9522
9523
9524
9525
9526
9527
9528
9529
9530# This can be used to rebuild libtool when needed
9531LIBTOOL_DEPS="$ltmain"
9532
9533# Always use our own libtool.
9534LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9535
9536
9537
9538
9539
9540
9541
9542
9543
9544
9545
9546
9547
9548
9549
9550
9551
9552
9553
9554
9555
9556
9557
9558
9559
9560
9561test -z "$LN_S" && LN_S="ln -s"
9562
9563
9564
9565
9566
9567
9568
9569
9570
9571
9572
9573
9574
9575
9576if test -n "${ZSH_VERSION+set}" ; then
9577 setopt NO_GLOB_SUBST
fee8ec00 9578fi
fee8ec00 9579
6bb11ab3
L
9580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9581$as_echo_n "checking for objdir... " >&6; }
63a9e923 9582if ${lt_cv_objdir+:} false; then :
6bb11ab3
L
9583 $as_echo_n "(cached) " >&6
9584else
9585 rm -f .libs 2>/dev/null
9586mkdir .libs 2>/dev/null
9587if test -d .libs; then
9588 lt_cv_objdir=.libs
9589else
9590 # MS-DOS does not allow filenames that begin with a dot.
9591 lt_cv_objdir=_libs
9592fi
9593rmdir .libs 2>/dev/null
9594fi
9595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9596$as_echo "$lt_cv_objdir" >&6; }
9597objdir=$lt_cv_objdir
9598
9599
9600
9601
9602
9603cat >>confdefs.h <<_ACEOF
9604#define LT_OBJDIR "$lt_cv_objdir/"
9605_ACEOF
9606
9607
9608
9609
9610case $host_os in
9611aix3*)
9612 # AIX sometimes has problems with the GCC collect2 program. For some
9613 # reason, if we set the COLLECT_NAMES environment variable, the problems
9614 # vanish in a puff of smoke.
9615 if test "X${COLLECT_NAMES+set}" != Xset; then
9616 COLLECT_NAMES=
9617 export COLLECT_NAMES
9618 fi
9619 ;;
81ecdfbb 9620esac
6bb11ab3
L
9621
9622# Global variables:
9623ofile=libtool
9624can_build_shared=yes
9625
9626# All known linkers require a `.a' archive for static linking (except MSVC,
9627# which needs '.lib').
9628libext=a
9629
9630with_gnu_ld="$lt_cv_prog_gnu_ld"
9631
9632old_CC="$CC"
9633old_CFLAGS="$CFLAGS"
9634
9635# Set sane defaults for various variables
9636test -z "$CC" && CC=cc
9637test -z "$LTCC" && LTCC=$CC
9638test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9639test -z "$LD" && LD=ld
9640test -z "$ac_objext" && ac_objext=o
9641
9642for cc_temp in $compiler""; do
9643 case $cc_temp in
9644 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9645 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9646 \-*) ;;
9647 *) break;;
9648 esac
9649done
9650cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9651
9652
9653# Only perform the check for file, if the check method requires it
9654test -z "$MAGIC_CMD" && MAGIC_CMD=file
9655case $deplibs_check_method in
9656file_magic*)
9657 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9659$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
63a9e923 9660if ${lt_cv_path_MAGIC_CMD+:} false; then :
6bb11ab3
L
9661 $as_echo_n "(cached) " >&6
9662else
9663 case $MAGIC_CMD in
9664[\\/*] | ?:[\\/]*)
9665 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9666 ;;
9667*)
9668 lt_save_MAGIC_CMD="$MAGIC_CMD"
9669 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9670 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9671 for ac_dir in $ac_dummy; do
9672 IFS="$lt_save_ifs"
9673 test -z "$ac_dir" && ac_dir=.
9674 if test -f $ac_dir/${ac_tool_prefix}file; then
9675 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9676 if test -n "$file_magic_test_file"; then
9677 case $deplibs_check_method in
9678 "file_magic "*)
9679 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9680 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9681 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9682 $EGREP "$file_magic_regex" > /dev/null; then
9683 :
9684 else
9685 cat <<_LT_EOF 1>&2
9686
9687*** Warning: the command libtool uses to detect shared libraries,
9688*** $file_magic_cmd, produces output that libtool cannot recognize.
9689*** The result is that libtool may fail to recognize shared libraries
9690*** as such. This will affect the creation of libtool libraries that
9691*** depend on shared libraries, but programs linked with such libtool
9692*** libraries will work regardless of this problem. Nevertheless, you
9693*** may want to report the problem to your system manager and/or to
9694*** bug-libtool@gnu.org
9695
9696_LT_EOF
9697 fi ;;
9698 esac
9699 fi
9700 break
fee8ec00 9701 fi
6bb11ab3
L
9702 done
9703 IFS="$lt_save_ifs"
9704 MAGIC_CMD="$lt_save_MAGIC_CMD"
9705 ;;
9706esac
fee8ec00 9707fi
fee8ec00 9708
6bb11ab3
L
9709MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9710if test -n "$MAGIC_CMD"; then
9711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9712$as_echo "$MAGIC_CMD" >&6; }
9713else
9714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9715$as_echo "no" >&6; }
9716fi
81ecdfbb 9717
6bb11ab3
L
9718
9719
9720
9721
9722if test -z "$lt_cv_path_MAGIC_CMD"; then
9723 if test -n "$ac_tool_prefix"; then
9724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9725$as_echo_n "checking for file... " >&6; }
63a9e923 9726if ${lt_cv_path_MAGIC_CMD+:} false; then :
6bb11ab3
L
9727 $as_echo_n "(cached) " >&6
9728else
9729 case $MAGIC_CMD in
9730[\\/*] | ?:[\\/]*)
9731 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9732 ;;
9733*)
9734 lt_save_MAGIC_CMD="$MAGIC_CMD"
9735 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9736 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9737 for ac_dir in $ac_dummy; do
9738 IFS="$lt_save_ifs"
9739 test -z "$ac_dir" && ac_dir=.
9740 if test -f $ac_dir/file; then
9741 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9742 if test -n "$file_magic_test_file"; then
9743 case $deplibs_check_method in
9744 "file_magic "*)
9745 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9746 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9747 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9748 $EGREP "$file_magic_regex" > /dev/null; then
9749 :
9750 else
9751 cat <<_LT_EOF 1>&2
9752
9753*** Warning: the command libtool uses to detect shared libraries,
9754*** $file_magic_cmd, produces output that libtool cannot recognize.
9755*** The result is that libtool may fail to recognize shared libraries
9756*** as such. This will affect the creation of libtool libraries that
9757*** depend on shared libraries, but programs linked with such libtool
9758*** libraries will work regardless of this problem. Nevertheless, you
9759*** may want to report the problem to your system manager and/or to
9760*** bug-libtool@gnu.org
9761
9762_LT_EOF
9763 fi ;;
9764 esac
9765 fi
9766 break
9767 fi
9768 done
9769 IFS="$lt_save_ifs"
9770 MAGIC_CMD="$lt_save_MAGIC_CMD"
9771 ;;
81ecdfbb 9772esac
6bb11ab3
L
9773fi
9774
9775MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9776if test -n "$MAGIC_CMD"; then
9777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9778$as_echo "$MAGIC_CMD" >&6; }
9779else
9780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9781$as_echo "no" >&6; }
9782fi
9783
9784
9785 else
9786 MAGIC_CMD=:
9787 fi
9788fi
9789
9790 fi
9791 ;;
9792esac
9793
9794# Use C for the default configuration in the libtool script
9795
9796lt_save_CC="$CC"
9797ac_ext=c
9798ac_cpp='$CPP $CPPFLAGS'
9799ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9800ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9801ac_compiler_gnu=$ac_cv_c_compiler_gnu
9802
9803
9804# Source file extension for C test sources.
9805ac_ext=c
9806
9807# Object file extension for compiled C test sources.
9808objext=o
9809objext=$objext
9810
9811# Code to be used in simple compile tests
9812lt_simple_compile_test_code="int some_variable = 0;"
9813
9814# Code to be used in simple link tests
9815lt_simple_link_test_code='int main(){return(0);}'
9816
9817
9818
9819
9820
9821
9822
9823# If no C compiler was specified, use CC.
9824LTCC=${LTCC-"$CC"}
9825
9826# If no C compiler flags were specified, use CFLAGS.
9827LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9828
9829# Allow CC to be a program name with arguments.
9830compiler=$CC
9831
9832# Save the default compiler, since it gets overwritten when the other
9833# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9834compiler_DEFAULT=$CC
9835
9836# save warnings/boilerplate of simple test code
9837ac_outfile=conftest.$ac_objext
9838echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9839eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9840_lt_compiler_boilerplate=`cat conftest.err`
9841$RM conftest*
9842
9843ac_outfile=conftest.$ac_objext
9844echo "$lt_simple_link_test_code" >conftest.$ac_ext
9845eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9846_lt_linker_boilerplate=`cat conftest.err`
9847$RM -r conftest*
9848
9849
9850## CAVEAT EMPTOR:
9851## There is no encapsulation within the following macros, do not change
9852## the running order or otherwise move them around unless you know exactly
9853## what you are doing...
9854if test -n "$compiler"; then
9855
9856lt_prog_compiler_no_builtin_flag=
9857
9858if test "$GCC" = yes; then
9859 case $cc_basename in
9860 nvcc*)
9861 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9862 *)
9863 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
fee8ec00 9864 esac
6bb11ab3
L
9865
9866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9867$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
63a9e923 9868if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
6bb11ab3 9869 $as_echo_n "(cached) " >&6
fee8ec00 9870else
6bb11ab3
L
9871 lt_cv_prog_compiler_rtti_exceptions=no
9872 ac_outfile=conftest.$ac_objext
9873 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9874 lt_compiler_flag="-fno-rtti -fno-exceptions"
9875 # Insert the option either (1) after the last *FLAGS variable, or
9876 # (2) before a word containing "conftest.", or (3) at the end.
9877 # Note that $ac_compile itself does not contain backslashes and begins
9878 # with a dollar sign (not a hyphen), so the echo should work correctly.
9879 # The option is referenced via a variable to avoid confusing sed.
9880 lt_compile=`echo "$ac_compile" | $SED \
9881 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9882 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9883 -e 's:$: $lt_compiler_flag:'`
9884 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9885 (eval "$lt_compile" 2>conftest.err)
9886 ac_status=$?
9887 cat conftest.err >&5
9888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9889 if (exit $ac_status) && test -s "$ac_outfile"; then
9890 # The compiler can only warn and ignore the option if not recognized
9891 # So say no if there are warnings other than the usual output.
9892 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9893 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9894 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9895 lt_cv_prog_compiler_rtti_exceptions=yes
9896 fi
9897 fi
9898 $RM conftest*
9899
fee8ec00 9900fi
6bb11ab3
L
9901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9902$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9903
9904if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9905 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9906else
9907 :
9908fi
9909
9910fi
9911
9912
9913
9914
9915
9916
9917 lt_prog_compiler_wl=
9918lt_prog_compiler_pic=
9919lt_prog_compiler_static=
9920
9921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9922$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9923
9924 if test "$GCC" = yes; then
9925 lt_prog_compiler_wl='-Wl,'
9926 lt_prog_compiler_static='-static'
9927
9928 case $host_os in
9929 aix*)
9930 # All AIX code is PIC.
9931 if test "$host_cpu" = ia64; then
9932 # AIX 5 now supports IA64 processor
9933 lt_prog_compiler_static='-Bstatic'
9934 fi
9935 lt_prog_compiler_pic='-fPIC'
9936 ;;
9937
9938 amigaos*)
9939 case $host_cpu in
9940 powerpc)
9941 # see comment about AmigaOS4 .so support
9942 lt_prog_compiler_pic='-fPIC'
9943 ;;
9944 m68k)
9945 # FIXME: we need at least 68020 code to build shared libraries, but
9946 # adding the `-m68020' flag to GCC prevents building anything better,
9947 # like `-m68040'.
9948 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9949 ;;
9950 esac
9951 ;;
9952
9953 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9954 # PIC is the default for these OSes.
9955 ;;
9956
9957 mingw* | cygwin* | pw32* | os2* | cegcc*)
9958 # This hack is so that the source file can tell whether it is being
9959 # built for inclusion in a dll (and should export symbols for example).
9960 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9961 # (--disable-auto-import) libraries
9962 lt_prog_compiler_pic='-DDLL_EXPORT'
9963 ;;
9964
9965 darwin* | rhapsody*)
9966 # PIC is the default on this platform
9967 # Common symbols not allowed in MH_DYLIB files
9968 lt_prog_compiler_pic='-fno-common'
9969 ;;
9970
9971 haiku*)
9972 # PIC is the default for Haiku.
9973 # The "-static" flag exists, but is broken.
9974 lt_prog_compiler_static=
9975 ;;
9976
9977 hpux*)
9978 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9979 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9980 # sets the default TLS model and affects inlining.
9981 case $host_cpu in
9982 hppa*64*)
9983 # +Z the default
9984 ;;
9985 *)
9986 lt_prog_compiler_pic='-fPIC'
9987 ;;
9988 esac
9989 ;;
9990
9991 interix[3-9]*)
9992 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9993 # Instead, we relocate shared libraries at runtime.
9994 ;;
9995
9996 msdosdjgpp*)
9997 # Just because we use GCC doesn't mean we suddenly get shared libraries
9998 # on systems that don't support them.
9999 lt_prog_compiler_can_build_shared=no
10000 enable_shared=no
10001 ;;
10002
10003 *nto* | *qnx*)
10004 # QNX uses GNU C++, but need to define -shared option too, otherwise
10005 # it will coredump.
10006 lt_prog_compiler_pic='-fPIC -shared'
10007 ;;
10008
10009 sysv4*MP*)
10010 if test -d /usr/nec; then
10011 lt_prog_compiler_pic=-Kconform_pic
10012 fi
10013 ;;
10014
10015 *)
10016 lt_prog_compiler_pic='-fPIC'
10017 ;;
10018 esac
10019
10020 case $cc_basename in
10021 nvcc*) # Cuda Compiler Driver 2.2
10022 lt_prog_compiler_wl='-Xlinker '
10023 lt_prog_compiler_pic='-Xcompiler -fPIC'
10024 ;;
10025 esac
10026 else
10027 # PORTME Check for flag to pass linker flags through the system compiler.
10028 case $host_os in
10029 aix*)
10030 lt_prog_compiler_wl='-Wl,'
10031 if test "$host_cpu" = ia64; then
10032 # AIX 5 now supports IA64 processor
10033 lt_prog_compiler_static='-Bstatic'
10034 else
10035 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10036 fi
10037 ;;
10038
10039 mingw* | cygwin* | pw32* | os2* | cegcc*)
10040 # This hack is so that the source file can tell whether it is being
10041 # built for inclusion in a dll (and should export symbols for example).
10042 lt_prog_compiler_pic='-DDLL_EXPORT'
10043 ;;
10044
10045 hpux9* | hpux10* | hpux11*)
10046 lt_prog_compiler_wl='-Wl,'
10047 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10048 # not for PA HP-UX.
10049 case $host_cpu in
10050 hppa*64*|ia64*)
10051 # +Z the default
10052 ;;
10053 *)
10054 lt_prog_compiler_pic='+Z'
10055 ;;
10056 esac
10057 # Is there a better lt_prog_compiler_static that works with the bundled CC?
10058 lt_prog_compiler_static='${wl}-a ${wl}archive'
10059 ;;
10060
10061 irix5* | irix6* | nonstopux*)
10062 lt_prog_compiler_wl='-Wl,'
10063 # PIC (with -KPIC) is the default.
10064 lt_prog_compiler_static='-non_shared'
10065 ;;
10066
10067 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10068 case $cc_basename in
10069 # old Intel for x86_64 which still supported -KPIC.
10070 ecc*)
10071 lt_prog_compiler_wl='-Wl,'
10072 lt_prog_compiler_pic='-KPIC'
10073 lt_prog_compiler_static='-static'
10074 ;;
10075 # icc used to be incompatible with GCC.
10076 # ICC 10 doesn't accept -KPIC any more.
10077 icc* | ifort*)
10078 lt_prog_compiler_wl='-Wl,'
10079 lt_prog_compiler_pic='-fPIC'
10080 lt_prog_compiler_static='-static'
10081 ;;
10082 # Lahey Fortran 8.1.
10083 lf95*)
10084 lt_prog_compiler_wl='-Wl,'
10085 lt_prog_compiler_pic='--shared'
10086 lt_prog_compiler_static='--static'
10087 ;;
10088 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10089 # Portland Group compilers (*not* the Pentium gcc compiler,
10090 # which looks to be a dead project)
10091 lt_prog_compiler_wl='-Wl,'
10092 lt_prog_compiler_pic='-fpic'
10093 lt_prog_compiler_static='-Bstatic'
10094 ;;
10095 ccc*)
10096 lt_prog_compiler_wl='-Wl,'
10097 # All Alpha code is PIC.
10098 lt_prog_compiler_static='-non_shared'
10099 ;;
10100 xl* | bgxl* | bgf* | mpixl*)
10101 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10102 lt_prog_compiler_wl='-Wl,'
10103 lt_prog_compiler_pic='-qpic'
10104 lt_prog_compiler_static='-qstaticlink'
10105 ;;
10106 *)
10107 case `$CC -V 2>&1 | sed 5q` in
10108 *Sun\ F* | *Sun*Fortran*)
10109 # Sun Fortran 8.3 passes all unrecognized flags to the linker
10110 lt_prog_compiler_pic='-KPIC'
10111 lt_prog_compiler_static='-Bstatic'
10112 lt_prog_compiler_wl=''
10113 ;;
10114 *Sun\ C*)
10115 # Sun C 5.9
10116 lt_prog_compiler_pic='-KPIC'
10117 lt_prog_compiler_static='-Bstatic'
10118 lt_prog_compiler_wl='-Wl,'
10119 ;;
10120 esac
10121 ;;
10122 esac
10123 ;;
10124
10125 newsos6)
10126 lt_prog_compiler_pic='-KPIC'
10127 lt_prog_compiler_static='-Bstatic'
10128 ;;
10129
10130 *nto* | *qnx*)
10131 # QNX uses GNU C++, but need to define -shared option too, otherwise
10132 # it will coredump.
10133 lt_prog_compiler_pic='-fPIC -shared'
10134 ;;
10135
10136 osf3* | osf4* | osf5*)
10137 lt_prog_compiler_wl='-Wl,'
10138 # All OSF/1 code is PIC.
10139 lt_prog_compiler_static='-non_shared'
10140 ;;
10141
10142 rdos*)
10143 lt_prog_compiler_static='-non_shared'
10144 ;;
fee8ec00 10145
6bb11ab3
L
10146 solaris*)
10147 lt_prog_compiler_pic='-KPIC'
10148 lt_prog_compiler_static='-Bstatic'
10149 case $cc_basename in
10150 f77* | f90* | f95*)
10151 lt_prog_compiler_wl='-Qoption ld ';;
10152 *)
10153 lt_prog_compiler_wl='-Wl,';;
10154 esac
10155 ;;
fee8ec00 10156
6bb11ab3
L
10157 sunos4*)
10158 lt_prog_compiler_wl='-Qoption ld '
10159 lt_prog_compiler_pic='-PIC'
10160 lt_prog_compiler_static='-Bstatic'
10161 ;;
fee8ec00 10162
6bb11ab3
L
10163 sysv4 | sysv4.2uw2* | sysv4.3*)
10164 lt_prog_compiler_wl='-Wl,'
10165 lt_prog_compiler_pic='-KPIC'
10166 lt_prog_compiler_static='-Bstatic'
10167 ;;
10168
10169 sysv4*MP*)
10170 if test -d /usr/nec ;then
10171 lt_prog_compiler_pic='-Kconform_pic'
10172 lt_prog_compiler_static='-Bstatic'
10173 fi
10174 ;;
10175
10176 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10177 lt_prog_compiler_wl='-Wl,'
10178 lt_prog_compiler_pic='-KPIC'
10179 lt_prog_compiler_static='-Bstatic'
10180 ;;
10181
10182 unicos*)
10183 lt_prog_compiler_wl='-Wl,'
10184 lt_prog_compiler_can_build_shared=no
10185 ;;
10186
10187 uts4*)
10188 lt_prog_compiler_pic='-pic'
10189 lt_prog_compiler_static='-Bstatic'
10190 ;;
10191
10192 *)
10193 lt_prog_compiler_can_build_shared=no
10194 ;;
10195 esac
10196 fi
10197
10198case $host_os in
10199 # For platforms which do not support PIC, -DPIC is meaningless:
10200 *djgpp*)
10201 lt_prog_compiler_pic=
10202 ;;
10203 *)
10204 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10205 ;;
81ecdfbb 10206esac
6bb11ab3
L
10207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
10208$as_echo "$lt_prog_compiler_pic" >&6; }
10209
10210
10211
10212
10213
10214
10215#
10216# Check to make sure the PIC flag actually works.
10217#
10218if test -n "$lt_prog_compiler_pic"; then
10219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10220$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
63a9e923 10221if ${lt_cv_prog_compiler_pic_works+:} false; then :
6bb11ab3 10222 $as_echo_n "(cached) " >&6
fee8ec00 10223else
6bb11ab3
L
10224 lt_cv_prog_compiler_pic_works=no
10225 ac_outfile=conftest.$ac_objext
10226 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10227 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10228 # Insert the option either (1) after the last *FLAGS variable, or
10229 # (2) before a word containing "conftest.", or (3) at the end.
10230 # Note that $ac_compile itself does not contain backslashes and begins
10231 # with a dollar sign (not a hyphen), so the echo should work correctly.
10232 # The option is referenced via a variable to avoid confusing sed.
10233 lt_compile=`echo "$ac_compile" | $SED \
10234 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10235 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10236 -e 's:$: $lt_compiler_flag:'`
10237 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10238 (eval "$lt_compile" 2>conftest.err)
10239 ac_status=$?
10240 cat conftest.err >&5
10241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10242 if (exit $ac_status) && test -s "$ac_outfile"; then
10243 # The compiler can only warn and ignore the option if not recognized
10244 # So say no if there are warnings other than the usual output.
10245 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10246 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10247 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10248 lt_cv_prog_compiler_pic_works=yes
10249 fi
10250 fi
10251 $RM conftest*
fee8ec00 10252
fee8ec00 10253fi
6bb11ab3
L
10254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10255$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10256
10257if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10258 case $lt_prog_compiler_pic in
10259 "" | " "*) ;;
10260 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10261 esac
10262else
10263 lt_prog_compiler_pic=
10264 lt_prog_compiler_can_build_shared=no
fee8ec00 10265fi
6bb11ab3
L
10266
10267fi
10268
10269
10270
10271
10272
10273
10274#
10275# Check to make sure the static flag actually works.
10276#
10277wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10279$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
63a9e923 10280if ${lt_cv_prog_compiler_static_works+:} false; then :
81ecdfbb 10281 $as_echo_n "(cached) " >&6
fee8ec00 10282else
6bb11ab3
L
10283 lt_cv_prog_compiler_static_works=no
10284 save_LDFLAGS="$LDFLAGS"
10285 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10286 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10287 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10288 # The linker can only warn and ignore the option if not recognized
10289 # So say no if there are warnings
10290 if test -s conftest.err; then
10291 # Append any errors to the config.log.
10292 cat conftest.err 1>&5
10293 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10294 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10295 if diff conftest.exp conftest.er2 >/dev/null; then
10296 lt_cv_prog_compiler_static_works=yes
10297 fi
10298 else
10299 lt_cv_prog_compiler_static_works=yes
10300 fi
10301 fi
10302 $RM -r conftest*
10303 LDFLAGS="$save_LDFLAGS"
fee8ec00 10304
6bb11ab3
L
10305fi
10306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10307$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
fee8ec00 10308
6bb11ab3
L
10309if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10310 :
fee8ec00 10311else
6bb11ab3 10312 lt_prog_compiler_static=
fee8ec00 10313fi
fee8ec00 10314
6bb11ab3
L
10315
10316
10317
10318
10319
10320
10321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10322$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
63a9e923 10323if ${lt_cv_prog_compiler_c_o+:} false; then :
6bb11ab3 10324 $as_echo_n "(cached) " >&6
81ecdfbb 10325else
6bb11ab3
L
10326 lt_cv_prog_compiler_c_o=no
10327 $RM -r conftest 2>/dev/null
10328 mkdir conftest
10329 cd conftest
10330 mkdir out
10331 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10332
10333 lt_compiler_flag="-o out/conftest2.$ac_objext"
10334 # Insert the option either (1) after the last *FLAGS variable, or
10335 # (2) before a word containing "conftest.", or (3) at the end.
10336 # Note that $ac_compile itself does not contain backslashes and begins
10337 # with a dollar sign (not a hyphen), so the echo should work correctly.
10338 lt_compile=`echo "$ac_compile" | $SED \
10339 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10340 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10341 -e 's:$: $lt_compiler_flag:'`
10342 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10343 (eval "$lt_compile" 2>out/conftest.err)
10344 ac_status=$?
10345 cat out/conftest.err >&5
10346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10347 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10348 then
10349 # The compiler can only warn and ignore the option if not recognized
10350 # So say no if there are warnings
10351 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10352 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10353 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10354 lt_cv_prog_compiler_c_o=yes
10355 fi
10356 fi
10357 chmod u+w . 2>&5
10358 $RM conftest*
10359 # SGI C++ compiler will create directory out/ii_files/ for
10360 # template instantiation
10361 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10362 $RM out/* && rmdir out
10363 cd ..
10364 $RM -r conftest
10365 $RM conftest*
10366
81ecdfbb 10367fi
6bb11ab3
L
10368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10369$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10370
10371
10372
10373
10374
10375
10376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10377$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
63a9e923 10378if ${lt_cv_prog_compiler_c_o+:} false; then :
81ecdfbb
RW
10379 $as_echo_n "(cached) " >&6
10380else
6bb11ab3
L
10381 lt_cv_prog_compiler_c_o=no
10382 $RM -r conftest 2>/dev/null
10383 mkdir conftest
10384 cd conftest
10385 mkdir out
10386 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10387
10388 lt_compiler_flag="-o out/conftest2.$ac_objext"
10389 # Insert the option either (1) after the last *FLAGS variable, or
10390 # (2) before a word containing "conftest.", or (3) at the end.
10391 # Note that $ac_compile itself does not contain backslashes and begins
10392 # with a dollar sign (not a hyphen), so the echo should work correctly.
10393 lt_compile=`echo "$ac_compile" | $SED \
10394 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10395 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10396 -e 's:$: $lt_compiler_flag:'`
10397 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10398 (eval "$lt_compile" 2>out/conftest.err)
10399 ac_status=$?
10400 cat out/conftest.err >&5
10401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10402 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10403 then
10404 # The compiler can only warn and ignore the option if not recognized
10405 # So say no if there are warnings
10406 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10407 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10408 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10409 lt_cv_prog_compiler_c_o=yes
10410 fi
10411 fi
10412 chmod u+w . 2>&5
10413 $RM conftest*
10414 # SGI C++ compiler will create directory out/ii_files/ for
10415 # template instantiation
10416 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10417 $RM out/* && rmdir out
10418 cd ..
10419 $RM -r conftest
10420 $RM conftest*
10421
10422fi
10423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10424$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10425
10426
10427
10428
10429hard_links="nottested"
10430if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10431 # do not overwrite the value of need_locks provided by the user
10432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10433$as_echo_n "checking if we can lock with hard links... " >&6; }
10434 hard_links=yes
10435 $RM conftest*
10436 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10437 touch conftest.a
10438 ln conftest.a conftest.b 2>&5 || hard_links=no
10439 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10441$as_echo "$hard_links" >&6; }
10442 if test "$hard_links" = no; then
10443 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10444$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10445 need_locks=warn
10446 fi
10447else
10448 need_locks=no
10449fi
10450
10451
10452
10453
10454
10455
10456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10457$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10458
10459 runpath_var=
10460 allow_undefined_flag=
10461 always_export_symbols=no
10462 archive_cmds=
10463 archive_expsym_cmds=
10464 compiler_needs_object=no
10465 enable_shared_with_static_runtimes=no
10466 export_dynamic_flag_spec=
10467 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10468 hardcode_automatic=no
10469 hardcode_direct=no
10470 hardcode_direct_absolute=no
10471 hardcode_libdir_flag_spec=
10472 hardcode_libdir_flag_spec_ld=
10473 hardcode_libdir_separator=
10474 hardcode_minus_L=no
10475 hardcode_shlibpath_var=unsupported
10476 inherit_rpath=no
10477 link_all_deplibs=unknown
10478 module_cmds=
10479 module_expsym_cmds=
10480 old_archive_from_new_cmds=
10481 old_archive_from_expsyms_cmds=
10482 thread_safe_flag_spec=
10483 whole_archive_flag_spec=
10484 # include_expsyms should be a list of space-separated symbols to be *always*
10485 # included in the symbol list
10486 include_expsyms=
10487 # exclude_expsyms can be an extended regexp of symbols to exclude
10488 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10489 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10490 # as well as any symbol that contains `d'.
10491 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10492 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10493 # platforms (ab)use it in PIC code, but their linkers get confused if
10494 # the symbol is explicitly referenced. Since portable code cannot
10495 # rely on this symbol name, it's probably fine to never include it in
10496 # preloaded symbol tables.
10497 # Exclude shared library initialization/finalization symbols.
10498 extract_expsyms_cmds=
10499
10500 case $host_os in
10501 cygwin* | mingw* | pw32* | cegcc*)
10502 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10503 # When not using gcc, we currently assume that we are using
10504 # Microsoft Visual C++.
10505 if test "$GCC" != yes; then
10506 with_gnu_ld=no
10507 fi
10508 ;;
10509 interix*)
10510 # we just hope/assume this is gcc and not c89 (= MSVC++)
10511 with_gnu_ld=yes
10512 ;;
10513 openbsd*)
10514 with_gnu_ld=no
10515 ;;
10516 esac
fee8ec00 10517
6bb11ab3
L
10518 ld_shlibs=yes
10519
10520 # On some targets, GNU ld is compatible enough with the native linker
10521 # that we're better off using the native interface for both.
10522 lt_use_gnu_ld_interface=no
10523 if test "$with_gnu_ld" = yes; then
10524 case $host_os in
10525 aix*)
10526 # The AIX port of GNU ld has always aspired to compatibility
10527 # with the native linker. However, as the warning in the GNU ld
10528 # block says, versions before 2.19.5* couldn't really create working
10529 # shared libraries, regardless of the interface used.
10530 case `$LD -v 2>&1` in
10531 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10532 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10533 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10534 *)
10535 lt_use_gnu_ld_interface=yes
10536 ;;
10537 esac
10538 ;;
10539 *)
10540 lt_use_gnu_ld_interface=yes
10541 ;;
10542 esac
10543 fi
fee8ec00 10544
6bb11ab3
L
10545 if test "$lt_use_gnu_ld_interface" = yes; then
10546 # If archive_cmds runs LD, not CC, wlarc should be empty
10547 wlarc='${wl}'
10548
10549 # Set some defaults for GNU ld with shared library support. These
10550 # are reset later if shared libraries are not supported. Putting them
10551 # here allows them to be overridden if necessary.
10552 runpath_var=LD_RUN_PATH
10553 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10554 export_dynamic_flag_spec='${wl}--export-dynamic'
10555 # ancient GNU ld didn't support --whole-archive et. al.
10556 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10557 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10558 else
10559 whole_archive_flag_spec=
10560 fi
10561 supports_anon_versioning=no
10562 case `$LD -v 2>&1` in
10563 *GNU\ gold*) supports_anon_versioning=yes ;;
10564 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10565 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10566 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10567 *\ 2.11.*) ;; # other 2.11 versions
10568 *) supports_anon_versioning=yes ;;
10569 esac
10570
10571 # See if GNU ld supports shared libraries.
10572 case $host_os in
10573 aix[3-9]*)
10574 # On AIX/PPC, the GNU linker is very broken
10575 if test "$host_cpu" != ia64; then
10576 ld_shlibs=no
10577 cat <<_LT_EOF 1>&2
10578
10579*** Warning: the GNU linker, at least up to release 2.19, is reported
10580*** to be unable to reliably create shared libraries on AIX.
10581*** Therefore, libtool is disabling shared libraries support. If you
10582*** really care for shared libraries, you may want to install binutils
10583*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10584*** You will then need to restart the configuration process.
10585
10586_LT_EOF
10587 fi
10588 ;;
10589
10590 amigaos*)
10591 case $host_cpu in
10592 powerpc)
10593 # see comment about AmigaOS4 .so support
10594 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10595 archive_expsym_cmds=''
10596 ;;
10597 m68k)
10598 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
10599 hardcode_libdir_flag_spec='-L$libdir'
10600 hardcode_minus_L=yes
10601 ;;
10602 esac
10603 ;;
10604
10605 beos*)
10606 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10607 allow_undefined_flag=unsupported
10608 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10609 # support --undefined. This deserves some investigation. FIXME
10610 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10611 else
10612 ld_shlibs=no
10613 fi
10614 ;;
10615
10616 cygwin* | mingw* | pw32* | cegcc*)
10617 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10618 # as there is no search path for DLLs.
10619 hardcode_libdir_flag_spec='-L$libdir'
10620 export_dynamic_flag_spec='${wl}--export-all-symbols'
10621 allow_undefined_flag=unsupported
10622 always_export_symbols=no
10623 enable_shared_with_static_runtimes=yes
10624 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10625
10626 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10627 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10628 # If the export-symbols file already is a .def file (1st line
10629 # is EXPORTS), use it as is; otherwise, prepend...
10630 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10631 cp $export_symbols $output_objdir/$soname.def;
10632 else
10633 echo EXPORTS > $output_objdir/$soname.def;
10634 cat $export_symbols >> $output_objdir/$soname.def;
10635 fi~
10636 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10637 else
10638 ld_shlibs=no
10639 fi
10640 ;;
10641
10642 haiku*)
10643 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10644 link_all_deplibs=yes
10645 ;;
10646
10647 interix[3-9]*)
10648 hardcode_direct=no
10649 hardcode_shlibpath_var=no
10650 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10651 export_dynamic_flag_spec='${wl}-E'
10652 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10653 # Instead, shared libraries are loaded at an image base (0x10000000 by
10654 # default) and relocated if they conflict, which is a slow very memory
10655 # consuming and fragmenting process. To avoid this, we pick a random,
10656 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10657 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10658 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10659 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10660 ;;
10661
10662 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10663 tmp_diet=no
10664 if test "$host_os" = linux-dietlibc; then
10665 case $cc_basename in
10666 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10667 esac
10668 fi
10669 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10670 && test "$tmp_diet" = no
10671 then
5cddc23a 10672 tmp_addflag=' $pic_flag'
6bb11ab3
L
10673 tmp_sharedflag='-shared'
10674 case $cc_basename,$host_cpu in
10675 pgcc*) # Portland Group C compiler
10676 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
10677 tmp_addflag=' $pic_flag'
10678 ;;
10679 pgf77* | pgf90* | pgf95* | pgfortran*)
10680 # Portland Group f77 and f90 compilers
10681 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
10682 tmp_addflag=' $pic_flag -Mnomain' ;;
10683 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10684 tmp_addflag=' -i_dynamic' ;;
10685 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10686 tmp_addflag=' -i_dynamic -nofor_main' ;;
10687 ifc* | ifort*) # Intel Fortran compiler
10688 tmp_addflag=' -nofor_main' ;;
10689 lf95*) # Lahey Fortran 8.1
10690 whole_archive_flag_spec=
10691 tmp_sharedflag='--shared' ;;
10692 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10693 tmp_sharedflag='-qmkshrobj'
10694 tmp_addflag= ;;
10695 nvcc*) # Cuda Compiler Driver 2.2
10696 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
10697 compiler_needs_object=yes
10698 ;;
10699 esac
10700 case `$CC -V 2>&1 | sed 5q` in
10701 *Sun\ C*) # Sun C 5.9
10702 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
10703 compiler_needs_object=yes
10704 tmp_sharedflag='-G' ;;
10705 *Sun\ F*) # Sun Fortran 8.3
10706 tmp_sharedflag='-G' ;;
10707 esac
10708 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10709
10710 if test "x$supports_anon_versioning" = xyes; then
10711 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10712 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10713 echo "local: *; };" >> $output_objdir/$libname.ver~
10714 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10715 fi
10716
10717 case $cc_basename in
10718 xlf* | bgf* | bgxlf* | mpixlf*)
10719 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10720 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10721 hardcode_libdir_flag_spec=
10722 hardcode_libdir_flag_spec_ld='-rpath $libdir'
10723 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10724 if test "x$supports_anon_versioning" = xyes; then
10725 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10726 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10727 echo "local: *; };" >> $output_objdir/$libname.ver~
10728 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10729 fi
10730 ;;
10731 esac
10732 else
10733 ld_shlibs=no
10734 fi
10735 ;;
10736
10737 netbsd*)
10738 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10739 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10740 wlarc=
10741 else
10742 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10743 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10744 fi
10745 ;;
10746
10747 solaris*)
10748 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10749 ld_shlibs=no
10750 cat <<_LT_EOF 1>&2
10751
10752*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10753*** create shared libraries on Solaris systems. Therefore, libtool
10754*** is disabling shared libraries support. We urge you to upgrade GNU
10755*** binutils to release 2.9.1 or newer. Another option is to modify
10756*** your PATH or compiler configuration so that the native linker is
10757*** used, and then restart.
10758
10759_LT_EOF
10760 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10761 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10762 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10763 else
10764 ld_shlibs=no
10765 fi
10766 ;;
10767
10768 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10769 case `$LD -v 2>&1` in
10770 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10771 ld_shlibs=no
10772 cat <<_LT_EOF 1>&2
10773
10774*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10775*** reliably create shared libraries on SCO systems. Therefore, libtool
10776*** is disabling shared libraries support. We urge you to upgrade GNU
10777*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10778*** your PATH or compiler configuration so that the native linker is
10779*** used, and then restart.
10780
10781_LT_EOF
10782 ;;
10783 *)
10784 # For security reasons, it is highly recommended that you always
10785 # use absolute paths for naming shared libraries, and exclude the
10786 # DT_RUNPATH tag from executables and libraries. But doing so
10787 # requires that you compile everything twice, which is a pain.
10788 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10789 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10790 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10791 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10792 else
10793 ld_shlibs=no
10794 fi
10795 ;;
10796 esac
10797 ;;
10798
10799 sunos4*)
10800 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10801 wlarc=
10802 hardcode_direct=yes
10803 hardcode_shlibpath_var=no
10804 ;;
10805
10806 *)
10807 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10808 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10809 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10810 else
10811 ld_shlibs=no
10812 fi
10813 ;;
10814 esac
10815
10816 if test "$ld_shlibs" = no; then
10817 runpath_var=
10818 hardcode_libdir_flag_spec=
10819 export_dynamic_flag_spec=
10820 whole_archive_flag_spec=
10821 fi
10822 else
10823 # PORTME fill in a description of your system's linker (not GNU ld)
10824 case $host_os in
10825 aix3*)
10826 allow_undefined_flag=unsupported
10827 always_export_symbols=yes
10828 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
10829 # Note: this linker hardcodes the directories in LIBPATH if there
10830 # are no directories specified by -L.
10831 hardcode_minus_L=yes
10832 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10833 # Neither direct hardcoding nor static linking is supported with a
10834 # broken collect2.
10835 hardcode_direct=unsupported
10836 fi
10837 ;;
10838
10839 aix[4-9]*)
10840 if test "$host_cpu" = ia64; then
10841 # On IA64, the linker does run time linking by default, so we don't
10842 # have to do anything special.
10843 aix_use_runtimelinking=no
10844 exp_sym_flag='-Bexport'
10845 no_entry_flag=""
10846 else
10847 # If we're using GNU nm, then we don't want the "-C" option.
10848 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10849 # Also, AIX nm treats weak defined symbols like other global
10850 # defined symbols, whereas GNU nm marks them as "W".
10851 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10852 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10853 else
5c887dd5 10854 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
6bb11ab3
L
10855 fi
10856 aix_use_runtimelinking=no
10857
10858 # Test if we are trying to use run time linking or normal
10859 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10860 # need to do runtime linking.
10861 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10862 for ld_flag in $LDFLAGS; do
10863 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10864 aix_use_runtimelinking=yes
10865 break
10866 fi
10867 done
10868 ;;
10869 esac
10870
10871 exp_sym_flag='-bexport'
10872 no_entry_flag='-bnoentry'
10873 fi
10874
10875 # When large executables or shared objects are built, AIX ld can
10876 # have problems creating the table of contents. If linking a library
10877 # or program results in "error TOC overflow" add -mminimal-toc to
10878 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10879 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10880
10881 archive_cmds=''
10882 hardcode_direct=yes
10883 hardcode_direct_absolute=yes
10884 hardcode_libdir_separator=':'
10885 link_all_deplibs=yes
10886 file_list_spec='${wl}-f,'
10887
10888 if test "$GCC" = yes; then
10889 case $host_os in aix4.[012]|aix4.[012].*)
10890 # We only want to do this on AIX 4.2 and lower, the check
10891 # below for broken collect2 doesn't work under 4.3+
10892 collect2name=`${CC} -print-prog-name=collect2`
10893 if test -f "$collect2name" &&
10894 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10895 then
10896 # We have reworked collect2
10897 :
10898 else
10899 # We have old collect2
10900 hardcode_direct=unsupported
10901 # It fails to find uninstalled libraries when the uninstalled
10902 # path is not listed in the libpath. Setting hardcode_minus_L
10903 # to unsupported forces relinking
10904 hardcode_minus_L=yes
10905 hardcode_libdir_flag_spec='-L$libdir'
10906 hardcode_libdir_separator=
10907 fi
10908 ;;
10909 esac
10910 shared_flag='-shared'
10911 if test "$aix_use_runtimelinking" = yes; then
10912 shared_flag="$shared_flag "'${wl}-G'
10913 fi
10914 else
10915 # not using gcc
10916 if test "$host_cpu" = ia64; then
10917 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10918 # chokes on -Wl,-G. The following line is correct:
10919 shared_flag='-G'
10920 else
10921 if test "$aix_use_runtimelinking" = yes; then
10922 shared_flag='${wl}-G'
10923 else
10924 shared_flag='${wl}-bM:SRE'
10925 fi
10926 fi
10927 fi
10928
10929 export_dynamic_flag_spec='${wl}-bexpall'
10930 # It seems that -bexpall does not export symbols beginning with
10931 # underscore (_), so it is better to generate a list of symbols to export.
10932 always_export_symbols=yes
10933 if test "$aix_use_runtimelinking" = yes; then
10934 # Warning - without using the other runtime loading flags (-brtl),
10935 # -berok will link without error, but may produce a broken library.
10936 allow_undefined_flag='-berok'
10937 # Determine the default libpath from the value encoded in an
10938 # empty executable.
10939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
81ecdfbb
RW
10940/* end confdefs.h. */
10941
10942int
10943main ()
10944{
10945
10946 ;
10947 return 0;
10948}
10949_ACEOF
6bb11ab3 10950if ac_fn_c_try_link "$LINENO"; then :
fee8ec00 10951
6bb11ab3
L
10952lt_aix_libpath_sed='
10953 /Import File Strings/,/^$/ {
10954 /^0/ {
10955 s/^0 *\(.*\)$/\1/
10956 p
10957 }
10958 }'
10959aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10960# Check for a 64-bit object if we didn't find anything.
10961if test -z "$aix_libpath"; then
10962 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10963fi
10964fi
10965rm -f core conftest.err conftest.$ac_objext \
10966 conftest$ac_exeext conftest.$ac_ext
10967if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10968
10969 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10970 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10971 else
10972 if test "$host_cpu" = ia64; then
10973 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10974 allow_undefined_flag="-z nodefs"
10975 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
10976 else
10977 # Determine the default libpath from the value encoded in an
10978 # empty executable.
81ecdfbb
RW
10979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10980/* end confdefs.h. */
10981
10982int
10983main ()
10984{
10985
10986 ;
10987 return 0;
10988}
10989_ACEOF
6bb11ab3
L
10990if ac_fn_c_try_link "$LINENO"; then :
10991
10992lt_aix_libpath_sed='
10993 /Import File Strings/,/^$/ {
10994 /^0/ {
10995 s/^0 *\(.*\)$/\1/
10996 p
10997 }
10998 }'
10999aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11000# Check for a 64-bit object if we didn't find anything.
11001if test -z "$aix_libpath"; then
11002 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
81ecdfbb 11003fi
81ecdfbb 11004fi
6bb11ab3
L
11005rm -f core conftest.err conftest.$ac_objext \
11006 conftest$ac_exeext conftest.$ac_ext
11007if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11008
11009 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11010 # Warning - without using the other run time loading flags,
11011 # -berok will link without error, but may produce a broken library.
11012 no_undefined_flag=' ${wl}-bernotok'
11013 allow_undefined_flag=' ${wl}-berok'
11014 if test "$with_gnu_ld" = yes; then
11015 # We only use this code for GNU lds that support --whole-archive.
11016 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11017 else
11018 # Exported symbols can be pulled into shared objects from archives
11019 whole_archive_flag_spec='$convenience'
11020 fi
11021 archive_cmds_need_lc=yes
11022 # This is similar to how AIX traditionally builds its shared libraries.
11023 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
11024 fi
11025 fi
11026 ;;
11027
11028 amigaos*)
11029 case $host_cpu in
11030 powerpc)
11031 # see comment about AmigaOS4 .so support
11032 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11033 archive_expsym_cmds=''
11034 ;;
11035 m68k)
11036 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
11037 hardcode_libdir_flag_spec='-L$libdir'
11038 hardcode_minus_L=yes
11039 ;;
11040 esac
11041 ;;
11042
11043 bsdi[45]*)
11044 export_dynamic_flag_spec=-rdynamic
11045 ;;
11046
11047 cygwin* | mingw* | pw32* | cegcc*)
11048 # When not using gcc, we currently assume that we are using
11049 # Microsoft Visual C++.
11050 # hardcode_libdir_flag_spec is actually meaningless, as there is
11051 # no search path for DLLs.
11052 hardcode_libdir_flag_spec=' '
11053 allow_undefined_flag=unsupported
11054 # Tell ltmain to make .lib files, not .a files.
11055 libext=lib
11056 # Tell ltmain to make .dll files, not .so files.
11057 shrext_cmds=".dll"
11058 # FIXME: Setting linknames here is a bad hack.
11059 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11060 # The linker will automatically build a .lib file if we build a DLL.
11061 old_archive_from_new_cmds='true'
11062 # FIXME: Should let the user specify the lib program.
11063 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11064 fix_srcfile_path='`cygpath -w "$srcfile"`'
11065 enable_shared_with_static_runtimes=yes
11066 ;;
11067
11068 darwin* | rhapsody*)
11069
11070
11071 archive_cmds_need_lc=no
11072 hardcode_direct=no
11073 hardcode_automatic=yes
11074 hardcode_shlibpath_var=unsupported
11075 if test "$lt_cv_ld_force_load" = "yes"; then
11076 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
fee8ec00 11077 else
6bb11ab3 11078 whole_archive_flag_spec=''
fee8ec00 11079 fi
6bb11ab3
L
11080 link_all_deplibs=yes
11081 allow_undefined_flag="$_lt_dar_allow_undefined"
11082 case $cc_basename in
11083 ifort*) _lt_dar_can_shared=yes ;;
11084 *) _lt_dar_can_shared=$GCC ;;
11085 esac
11086 if test "$_lt_dar_can_shared" = "yes"; then
11087 output_verbose_link_cmd=func_echo_all
11088 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11089 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11090 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
11091 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
11092
fee8ec00 11093 else
6bb11ab3 11094 ld_shlibs=no
fee8ec00 11095 fi
6bb11ab3
L
11096
11097 ;;
11098
11099 dgux*)
11100 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11101 hardcode_libdir_flag_spec='-L$libdir'
11102 hardcode_shlibpath_var=no
11103 ;;
11104
11105 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11106 # support. Future versions do this automatically, but an explicit c++rt0.o
11107 # does not break anything, and helps significantly (at the cost of a little
11108 # extra space).
11109 freebsd2.2*)
11110 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11111 hardcode_libdir_flag_spec='-R$libdir'
11112 hardcode_direct=yes
11113 hardcode_shlibpath_var=no
11114 ;;
11115
11116 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11117 freebsd2.*)
11118 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11119 hardcode_direct=yes
11120 hardcode_minus_L=yes
11121 hardcode_shlibpath_var=no
11122 ;;
11123
11124 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11125 freebsd* | dragonfly*)
11126 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
11127 hardcode_libdir_flag_spec='-R$libdir'
11128 hardcode_direct=yes
11129 hardcode_shlibpath_var=no
11130 ;;
11131
11132 hpux9*)
11133 if test "$GCC" = yes; then
11134 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11135 else
11136 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11137 fi
11138 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11139 hardcode_libdir_separator=:
11140 hardcode_direct=yes
11141
11142 # hardcode_minus_L: Not really in the search PATH,
11143 # but as the default location of the library.
11144 hardcode_minus_L=yes
11145 export_dynamic_flag_spec='${wl}-E'
11146 ;;
11147
11148 hpux10*)
11149 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11150 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11151 else
11152 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11153 fi
11154 if test "$with_gnu_ld" = no; then
11155 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11156 hardcode_libdir_flag_spec_ld='+b $libdir'
11157 hardcode_libdir_separator=:
11158 hardcode_direct=yes
11159 hardcode_direct_absolute=yes
11160 export_dynamic_flag_spec='${wl}-E'
11161 # hardcode_minus_L: Not really in the search PATH,
11162 # but as the default location of the library.
11163 hardcode_minus_L=yes
11164 fi
11165 ;;
11166
11167 hpux11*)
11168 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11169 case $host_cpu in
11170 hppa*64*)
11171 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11172 ;;
11173 ia64*)
11174 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11175 ;;
11176 *)
11177 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11178 ;;
11179 esac
11180 else
11181 case $host_cpu in
11182 hppa*64*)
11183 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11184 ;;
11185 ia64*)
11186 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11187 ;;
11188 *)
11189
11190 # Older versions of the 11.00 compiler do not understand -b yet
11191 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11193$as_echo_n "checking if $CC understands -b... " >&6; }
63a9e923 11194if ${lt_cv_prog_compiler__b+:} false; then :
81ecdfbb 11195 $as_echo_n "(cached) " >&6
fee8ec00 11196else
6bb11ab3
L
11197 lt_cv_prog_compiler__b=no
11198 save_LDFLAGS="$LDFLAGS"
11199 LDFLAGS="$LDFLAGS -b"
11200 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11201 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11202 # The linker can only warn and ignore the option if not recognized
11203 # So say no if there are warnings
11204 if test -s conftest.err; then
11205 # Append any errors to the config.log.
11206 cat conftest.err 1>&5
11207 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11208 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11209 if diff conftest.exp conftest.er2 >/dev/null; then
11210 lt_cv_prog_compiler__b=yes
11211 fi
11212 else
11213 lt_cv_prog_compiler__b=yes
11214 fi
11215 fi
11216 $RM -r conftest*
11217 LDFLAGS="$save_LDFLAGS"
fee8ec00 11218
6bb11ab3
L
11219fi
11220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11221$as_echo "$lt_cv_prog_compiler__b" >&6; }
fee8ec00 11222
6bb11ab3
L
11223if test x"$lt_cv_prog_compiler__b" = xyes; then
11224 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11225else
11226 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11227fi
81ecdfbb 11228
6bb11ab3
L
11229 ;;
11230 esac
11231 fi
11232 if test "$with_gnu_ld" = no; then
11233 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11234 hardcode_libdir_separator=:
11235
11236 case $host_cpu in
11237 hppa*64*|ia64*)
11238 hardcode_direct=no
11239 hardcode_shlibpath_var=no
11240 ;;
11241 *)
11242 hardcode_direct=yes
11243 hardcode_direct_absolute=yes
11244 export_dynamic_flag_spec='${wl}-E'
11245
11246 # hardcode_minus_L: Not really in the search PATH,
11247 # but as the default location of the library.
11248 hardcode_minus_L=yes
11249 ;;
11250 esac
11251 fi
11252 ;;
11253
11254 irix5* | irix6* | nonstopux*)
11255 if test "$GCC" = yes; then
11256 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11257 # Try to use the -exported_symbol ld option, if it does not
11258 # work, assume that -exports_file does not work either and
11259 # implicitly export all symbols.
11260 save_LDFLAGS="$LDFLAGS"
11261 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11263/* end confdefs.h. */
11264int foo(void) {}
fee8ec00 11265_ACEOF
6bb11ab3
L
11266if ac_fn_c_try_link "$LINENO"; then :
11267 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
fee8ec00
SR
11268
11269fi
6bb11ab3
L
11270rm -f core conftest.err conftest.$ac_objext \
11271 conftest$ac_exeext conftest.$ac_ext
11272 LDFLAGS="$save_LDFLAGS"
11273 else
11274 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
11275 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
11276 fi
11277 archive_cmds_need_lc='no'
11278 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11279 hardcode_libdir_separator=:
11280 inherit_rpath=yes
11281 link_all_deplibs=yes
11282 ;;
11283
11284 netbsd*)
11285 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11286 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11287 else
11288 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11289 fi
11290 hardcode_libdir_flag_spec='-R$libdir'
11291 hardcode_direct=yes
11292 hardcode_shlibpath_var=no
11293 ;;
11294
11295 newsos6)
11296 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11297 hardcode_direct=yes
11298 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11299 hardcode_libdir_separator=:
11300 hardcode_shlibpath_var=no
11301 ;;
11302
11303 *nto* | *qnx*)
11304 ;;
11305
11306 openbsd*)
11307 if test -f /usr/libexec/ld.so; then
11308 hardcode_direct=yes
11309 hardcode_shlibpath_var=no
11310 hardcode_direct_absolute=yes
11311 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11312 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11313 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11314 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11315 export_dynamic_flag_spec='${wl}-E'
11316 else
11317 case $host_os in
11318 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11319 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11320 hardcode_libdir_flag_spec='-R$libdir'
11321 ;;
11322 *)
11323 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11324 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11325 ;;
11326 esac
11327 fi
11328 else
11329 ld_shlibs=no
11330 fi
11331 ;;
11332
11333 os2*)
11334 hardcode_libdir_flag_spec='-L$libdir'
11335 hardcode_minus_L=yes
11336 allow_undefined_flag=unsupported
11337 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
11338 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11339 ;;
11340
11341 osf3*)
11342 if test "$GCC" = yes; then
11343 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11344 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11345 else
11346 allow_undefined_flag=' -expect_unresolved \*'
11347 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
11348 fi
11349 archive_cmds_need_lc='no'
11350 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11351 hardcode_libdir_separator=:
11352 ;;
11353
11354 osf4* | osf5*) # as osf3* with the addition of -msym flag
11355 if test "$GCC" = yes; then
11356 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11357 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11358 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11359 else
11360 allow_undefined_flag=' -expect_unresolved \*'
11361 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
11362 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
11363 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
11364
11365 # Both c and cxx compiler support -rpath directly
11366 hardcode_libdir_flag_spec='-rpath $libdir'
11367 fi
11368 archive_cmds_need_lc='no'
11369 hardcode_libdir_separator=:
11370 ;;
11371
11372 solaris*)
11373 no_undefined_flag=' -z defs'
11374 if test "$GCC" = yes; then
11375 wlarc='${wl}'
11376 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11377 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11378 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11379 else
11380 case `$CC -V 2>&1` in
11381 *"Compilers 5.0"*)
11382 wlarc=''
11383 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11384 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11385 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11386 ;;
11387 *)
11388 wlarc='${wl}'
11389 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11390 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11391 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11392 ;;
11393 esac
11394 fi
11395 hardcode_libdir_flag_spec='-R$libdir'
11396 hardcode_shlibpath_var=no
11397 case $host_os in
11398 solaris2.[0-5] | solaris2.[0-5].*) ;;
11399 *)
11400 # The compiler driver will combine and reorder linker options,
11401 # but understands `-z linker_flag'. GCC discards it without `$wl',
11402 # but is careful enough not to reorder.
11403 # Supported since Solaris 2.6 (maybe 2.5.1?)
11404 if test "$GCC" = yes; then
11405 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11406 else
11407 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11408 fi
11409 ;;
11410 esac
11411 link_all_deplibs=yes
11412 ;;
11413
11414 sunos4*)
11415 if test "x$host_vendor" = xsequent; then
11416 # Use $CC to link under sequent, because it throws in some extra .o
11417 # files that make .init and .fini sections work.
11418 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11419 else
11420 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11421 fi
11422 hardcode_libdir_flag_spec='-L$libdir'
11423 hardcode_direct=yes
11424 hardcode_minus_L=yes
11425 hardcode_shlibpath_var=no
11426 ;;
11427
11428 sysv4)
11429 case $host_vendor in
11430 sni)
11431 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11432 hardcode_direct=yes # is this really true???
11433 ;;
11434 siemens)
11435 ## LD is ld it makes a PLAMLIB
11436 ## CC just makes a GrossModule.
11437 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11438 reload_cmds='$CC -r -o $output$reload_objs'
11439 hardcode_direct=no
11440 ;;
11441 motorola)
11442 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11443 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11444 ;;
11445 esac
11446 runpath_var='LD_RUN_PATH'
11447 hardcode_shlibpath_var=no
11448 ;;
11449
11450 sysv4.3*)
11451 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11452 hardcode_shlibpath_var=no
11453 export_dynamic_flag_spec='-Bexport'
11454 ;;
11455
11456 sysv4*MP*)
11457 if test -d /usr/nec; then
11458 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11459 hardcode_shlibpath_var=no
11460 runpath_var=LD_RUN_PATH
11461 hardcode_runpath_var=yes
11462 ld_shlibs=yes
11463 fi
11464 ;;
11465
11466 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11467 no_undefined_flag='${wl}-z,text'
11468 archive_cmds_need_lc=no
11469 hardcode_shlibpath_var=no
11470 runpath_var='LD_RUN_PATH'
11471
11472 if test "$GCC" = yes; then
11473 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11474 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11475 else
11476 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11477 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11478 fi
11479 ;;
11480
11481 sysv5* | sco3.2v5* | sco5v6*)
11482 # Note: We can NOT use -z defs as we might desire, because we do not
11483 # link with -lc, and that would cause any symbols used from libc to
11484 # always be unresolved, which means just about no library would
11485 # ever link correctly. If we're not using GNU ld we use -z text
11486 # though, which does catch some bad symbols but isn't as heavy-handed
11487 # as -z defs.
11488 no_undefined_flag='${wl}-z,text'
11489 allow_undefined_flag='${wl}-z,nodefs'
11490 archive_cmds_need_lc=no
11491 hardcode_shlibpath_var=no
11492 hardcode_libdir_flag_spec='${wl}-R,$libdir'
11493 hardcode_libdir_separator=':'
11494 link_all_deplibs=yes
11495 export_dynamic_flag_spec='${wl}-Bexport'
11496 runpath_var='LD_RUN_PATH'
11497
11498 if test "$GCC" = yes; then
11499 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11500 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11501 else
11502 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11503 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11504 fi
11505 ;;
11506
11507 uts4*)
11508 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11509 hardcode_libdir_flag_spec='-L$libdir'
11510 hardcode_shlibpath_var=no
11511 ;;
11512
11513 *)
11514 ld_shlibs=no
11515 ;;
11516 esac
11517
11518 if test x$host_vendor = xsni; then
11519 case $host in
11520 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11521 export_dynamic_flag_spec='${wl}-Blargedynsym'
11522 ;;
11523 esac
11524 fi
11525 fi
11526
11527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11528$as_echo "$ld_shlibs" >&6; }
11529test "$ld_shlibs" = no && can_build_shared=no
11530
11531with_gnu_ld=$with_gnu_ld
11532
11533
11534
fee8ec00 11535
fee8ec00 11536
fee8ec00 11537
6ffe910a 11538
6ffe910a
MF
11539
11540
6ffe910a 11541
fee8ec00 11542
fee8ec00
SR
11543
11544
6bb11ab3
L
11545
11546
11547#
11548# Do we need to explicitly link libc?
11549#
11550case "x$archive_cmds_need_lc" in
11551x|xyes)
11552 # Assume -lc should be added
11553 archive_cmds_need_lc=yes
11554
11555 if test "$enable_shared" = yes && test "$GCC" = yes; then
11556 case $archive_cmds in
11557 *'~'*)
11558 # FIXME: we may have to deal with multi-command sequences.
11559 ;;
11560 '$CC '*)
11561 # Test whether the compiler implicitly links with -lc since on some
11562 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11563 # to ld, don't add -lc before -lgcc.
11564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11565$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
63a9e923 11566if ${lt_cv_archive_cmds_need_lc+:} false; then :
6ffe910a 11567 $as_echo_n "(cached) " >&6
fee8ec00 11568else
6bb11ab3
L
11569 $RM conftest*
11570 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11571
11572 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11573 (eval $ac_compile) 2>&5
11574 ac_status=$?
11575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11576 test $ac_status = 0; } 2>conftest.err; then
11577 soname=conftest
11578 lib=conftest
11579 libobjs=conftest.$ac_objext
11580 deplibs=
11581 wl=$lt_prog_compiler_wl
11582 pic_flag=$lt_prog_compiler_pic
11583 compiler_flags=-v
11584 linker_flags=-v
11585 verstring=
11586 output_objdir=.
11587 libname=conftest
11588 lt_save_allow_undefined_flag=$allow_undefined_flag
11589 allow_undefined_flag=
11590 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11591 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11592 ac_status=$?
11593 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11594 test $ac_status = 0; }
11595 then
11596 lt_cv_archive_cmds_need_lc=no
11597 else
11598 lt_cv_archive_cmds_need_lc=yes
11599 fi
11600 allow_undefined_flag=$lt_save_allow_undefined_flag
11601 else
11602 cat conftest.err 1>&5
11603 fi
11604 $RM conftest*
fee8ec00 11605
6ffe910a 11606fi
6bb11ab3
L
11607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11608$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11609 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11610 ;;
11611 esac
11612 fi
11613 ;;
6ffe910a 11614esac
fee8ec00
SR
11615
11616
6ffe910a 11617
fee8ec00 11618
81ecdfbb 11619
fee8ec00 11620
fee8ec00 11621
fee8ec00 11622
fee8ec00 11623
fee8ec00 11624
fee8ec00 11625
fee8ec00 11626
fee8ec00 11627
fee8ec00 11628
81ecdfbb 11629
fee8ec00 11630
fee8ec00
SR
11631
11632
81ecdfbb 11633
81ecdfbb 11634
81ecdfbb
RW
11635
11636
81ecdfbb 11637
81ecdfbb 11638
fee8ec00
SR
11639
11640
fee8ec00 11641
fee8ec00 11642
fee8ec00 11643
fee8ec00 11644
81ecdfbb 11645
fee8ec00 11646
fee8ec00 11647
fee8ec00 11648
81ecdfbb 11649
fee8ec00 11650
fee8ec00 11651
fee8ec00 11652
fee8ec00 11653
81ecdfbb 11654
fee8ec00 11655
fee8ec00 11656
fee8ec00 11657
fee8ec00
SR
11658
11659
11660
11661
6ffe910a 11662
2232061b
MF
11663
11664
2232061b 11665
2232061b
MF
11666
11667
2232061b
MF
11668
11669
2232061b 11670
2232061b
MF
11671
11672
6bb11ab3
L
11673
11674
11675
11676
11677
11678
11679
11680
11681
11682
11683
11684
11685
11686
11687
11688
11689
11690
11691
11692
11693
11694
11695
11696
11697
11698
11699
11700
11701
11702
11703
11704
11705
11706
11707
11708
11709
11710
11711
11712
11713
11714
11715
11716
11717
11718
11719
11720
11721
11722
11723
11724
11725
11726
11727
11728
11729
11730
11731
11732
11733
11734
11735
11736
11737
11738
11739
11740
11741
11742
11743
11744
11745
11746
11747
11748
11749
11750
11751
11752
11753
11754
11755
11756
11757
11758
11759
11760
11761
11762
11763
11764
11765
11766
11767
11768
11769
11770
11771
11772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11773$as_echo_n "checking dynamic linker characteristics... " >&6; }
11774
11775if test "$GCC" = yes; then
11776 case $host_os in
11777 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11778 *) lt_awk_arg="/^libraries:/" ;;
11779 esac
11780 case $host_os in
11781 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11782 *) lt_sed_strip_eq="s,=/,/,g" ;;
11783 esac
11784 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11785 case $lt_search_path_spec in
11786 *\;*)
11787 # if the path contains ";" then we assume it to be the separator
11788 # otherwise default to the standard path separator (i.e. ":") - it is
11789 # assumed that no part of a normal pathname contains ";" but that should
11790 # okay in the real world where ";" in dirpaths is itself problematic.
11791 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11792 ;;
11793 *)
11794 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11795 ;;
11796 esac
11797 # Ok, now we have the path, separated by spaces, we can step through it
11798 # and add multilib dir if necessary.
11799 lt_tmp_lt_search_path_spec=
11800 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11801 for lt_sys_path in $lt_search_path_spec; do
11802 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11803 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11804 else
11805 test -d "$lt_sys_path" && \
11806 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11807 fi
11808 done
11809 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11810BEGIN {RS=" "; FS="/|\n";} {
11811 lt_foo="";
11812 lt_count=0;
11813 for (lt_i = NF; lt_i > 0; lt_i--) {
11814 if ($lt_i != "" && $lt_i != ".") {
11815 if ($lt_i == "..") {
11816 lt_count++;
11817 } else {
11818 if (lt_count == 0) {
11819 lt_foo="/" $lt_i lt_foo;
11820 } else {
11821 lt_count--;
11822 }
11823 }
11824 }
11825 }
11826 if (lt_foo != "") { lt_freq[lt_foo]++; }
11827 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11828}'`
11829 # AWK program above erroneously prepends '/' to C:/dos/paths
11830 # for these hosts.
11831 case $host_os in
11832 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11833 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11834 esac
11835 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11836else
11837 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11838fi
11839library_names_spec=
11840libname_spec='lib$name'
11841soname_spec=
11842shrext_cmds=".so"
11843postinstall_cmds=
11844postuninstall_cmds=
11845finish_cmds=
11846finish_eval=
11847shlibpath_var=
11848shlibpath_overrides_runpath=unknown
11849version_type=none
11850dynamic_linker="$host_os ld.so"
11851sys_lib_dlsearch_path_spec="/lib /usr/lib"
11852need_lib_prefix=unknown
11853hardcode_into_libs=no
11854
11855# when you set need_version to no, make sure it does not cause -set_version
11856# flags to be left without arguments
11857need_version=unknown
11858
11859case $host_os in
11860aix3*)
11861 version_type=linux
11862 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11863 shlibpath_var=LIBPATH
11864
11865 # AIX 3 has no versioning support, so we append a major version to the name.
11866 soname_spec='${libname}${release}${shared_ext}$major'
11867 ;;
11868
11869aix[4-9]*)
11870 version_type=linux
11871 need_lib_prefix=no
11872 need_version=no
11873 hardcode_into_libs=yes
11874 if test "$host_cpu" = ia64; then
11875 # AIX 5 supports IA64
11876 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11877 shlibpath_var=LD_LIBRARY_PATH
11878 else
11879 # With GCC up to 2.95.x, collect2 would create an import file
11880 # for dependence libraries. The import file would start with
11881 # the line `#! .'. This would cause the generated library to
11882 # depend on `.', always an invalid library. This was fixed in
11883 # development snapshots of GCC prior to 3.0.
11884 case $host_os in
11885 aix4 | aix4.[01] | aix4.[01].*)
11886 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11887 echo ' yes '
11888 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11889 :
11890 else
11891 can_build_shared=no
11892 fi
11893 ;;
11894 esac
11895 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11896 # soname into executable. Probably we can add versioning support to
11897 # collect2, so additional links can be useful in future.
11898 if test "$aix_use_runtimelinking" = yes; then
11899 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11900 # instead of lib<name>.a to let people know that these are not
11901 # typical AIX shared libraries.
11902 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11903 else
11904 # We preserve .a as extension for shared libraries through AIX4.2
11905 # and later when we are not doing run time linking.
11906 library_names_spec='${libname}${release}.a $libname.a'
11907 soname_spec='${libname}${release}${shared_ext}$major'
11908 fi
11909 shlibpath_var=LIBPATH
11910 fi
11911 ;;
11912
11913amigaos*)
11914 case $host_cpu in
11915 powerpc)
11916 # Since July 2007 AmigaOS4 officially supports .so libraries.
11917 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11918 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11919 ;;
11920 m68k)
11921 library_names_spec='$libname.ixlibrary $libname.a'
11922 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11923 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
11924 ;;
11925 esac
11926 ;;
11927
11928beos*)
11929 library_names_spec='${libname}${shared_ext}'
11930 dynamic_linker="$host_os ld.so"
11931 shlibpath_var=LIBRARY_PATH
11932 ;;
11933
11934bsdi[45]*)
11935 version_type=linux
11936 need_version=no
11937 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11938 soname_spec='${libname}${release}${shared_ext}$major'
11939 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11940 shlibpath_var=LD_LIBRARY_PATH
11941 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11942 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11943 # the default ld.so.conf also contains /usr/contrib/lib and
11944 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11945 # libtool to hard-code these into programs
11946 ;;
11947
11948cygwin* | mingw* | pw32* | cegcc*)
11949 version_type=windows
11950 shrext_cmds=".dll"
11951 need_version=no
11952 need_lib_prefix=no
11953
11954 case $GCC,$host_os in
11955 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11956 library_names_spec='$libname.dll.a'
11957 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11958 postinstall_cmds='base_file=`basename \${file}`~
11959 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11960 dldir=$destdir/`dirname \$dlpath`~
11961 test -d \$dldir || mkdir -p \$dldir~
11962 $install_prog $dir/$dlname \$dldir/$dlname~
11963 chmod a+x \$dldir/$dlname~
11964 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11965 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11966 fi'
11967 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11968 dlpath=$dir/\$dldll~
11969 $RM \$dlpath'
11970 shlibpath_overrides_runpath=yes
11971
11972 case $host_os in
11973 cygwin*)
11974 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11975 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11976
11977 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11978 ;;
11979 mingw* | cegcc*)
11980 # MinGW DLLs use traditional 'lib' prefix
11981 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11982 ;;
11983 pw32*)
11984 # pw32 DLLs use 'pw' prefix rather than 'lib'
11985 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11986 ;;
11987 esac
11988 ;;
11989
11990 *)
11991 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11992 ;;
11993 esac
11994 dynamic_linker='Win32 ld.exe'
11995 # FIXME: first we should search . and the directory the executable is in
11996 shlibpath_var=PATH
11997 ;;
11998
11999darwin* | rhapsody*)
12000 dynamic_linker="$host_os dyld"
12001 version_type=darwin
12002 need_lib_prefix=no
12003 need_version=no
12004 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12005 soname_spec='${libname}${release}${major}$shared_ext'
12006 shlibpath_overrides_runpath=yes
12007 shlibpath_var=DYLD_LIBRARY_PATH
12008 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12009
12010 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12011 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12012 ;;
12013
12014dgux*)
12015 version_type=linux
12016 need_lib_prefix=no
12017 need_version=no
12018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12019 soname_spec='${libname}${release}${shared_ext}$major'
12020 shlibpath_var=LD_LIBRARY_PATH
12021 ;;
12022
12023freebsd* | dragonfly*)
12024 # DragonFly does not have aout. When/if they implement a new
12025 # versioning mechanism, adjust this.
12026 if test -x /usr/bin/objformat; then
12027 objformat=`/usr/bin/objformat`
12028 else
12029 case $host_os in
12030 freebsd[23].*) objformat=aout ;;
12031 *) objformat=elf ;;
12032 esac
12033 fi
12034 version_type=freebsd-$objformat
12035 case $version_type in
12036 freebsd-elf*)
12037 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12038 need_version=no
12039 need_lib_prefix=no
12040 ;;
12041 freebsd-*)
12042 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12043 need_version=yes
12044 ;;
12045 esac
12046 shlibpath_var=LD_LIBRARY_PATH
12047 case $host_os in
12048 freebsd2.*)
12049 shlibpath_overrides_runpath=yes
12050 ;;
12051 freebsd3.[01]* | freebsdelf3.[01]*)
12052 shlibpath_overrides_runpath=yes
12053 hardcode_into_libs=yes
12054 ;;
12055 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12056 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12057 shlibpath_overrides_runpath=no
12058 hardcode_into_libs=yes
12059 ;;
12060 *) # from 4.6 on, and DragonFly
12061 shlibpath_overrides_runpath=yes
12062 hardcode_into_libs=yes
12063 ;;
12064 esac
12065 ;;
12066
12067gnu*)
12068 version_type=linux
12069 need_lib_prefix=no
12070 need_version=no
12071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12072 soname_spec='${libname}${release}${shared_ext}$major'
12073 shlibpath_var=LD_LIBRARY_PATH
12074 hardcode_into_libs=yes
12075 ;;
12076
12077haiku*)
12078 version_type=linux
12079 need_lib_prefix=no
12080 need_version=no
12081 dynamic_linker="$host_os runtime_loader"
12082 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12083 soname_spec='${libname}${release}${shared_ext}$major'
12084 shlibpath_var=LIBRARY_PATH
12085 shlibpath_overrides_runpath=yes
12086 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
12087 hardcode_into_libs=yes
12088 ;;
12089
12090hpux9* | hpux10* | hpux11*)
12091 # Give a soname corresponding to the major version so that dld.sl refuses to
12092 # link against other versions.
12093 version_type=sunos
12094 need_lib_prefix=no
12095 need_version=no
12096 case $host_cpu in
12097 ia64*)
12098 shrext_cmds='.so'
12099 hardcode_into_libs=yes
12100 dynamic_linker="$host_os dld.so"
12101 shlibpath_var=LD_LIBRARY_PATH
12102 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12104 soname_spec='${libname}${release}${shared_ext}$major'
12105 if test "X$HPUX_IA64_MODE" = X32; then
12106 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12107 else
12108 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12109 fi
12110 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12111 ;;
12112 hppa*64*)
12113 shrext_cmds='.sl'
12114 hardcode_into_libs=yes
12115 dynamic_linker="$host_os dld.sl"
12116 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12117 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12119 soname_spec='${libname}${release}${shared_ext}$major'
12120 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12121 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12122 ;;
12123 *)
12124 shrext_cmds='.sl'
12125 dynamic_linker="$host_os dld.sl"
12126 shlibpath_var=SHLIB_PATH
12127 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12129 soname_spec='${libname}${release}${shared_ext}$major'
12130 ;;
12131 esac
12132 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12133 postinstall_cmds='chmod 555 $lib'
12134 # or fails outright, so override atomically:
12135 install_override_mode=555
12136 ;;
12137
12138interix[3-9]*)
12139 version_type=linux
12140 need_lib_prefix=no
12141 need_version=no
12142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12143 soname_spec='${libname}${release}${shared_ext}$major'
12144 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12145 shlibpath_var=LD_LIBRARY_PATH
12146 shlibpath_overrides_runpath=no
12147 hardcode_into_libs=yes
12148 ;;
12149
12150irix5* | irix6* | nonstopux*)
12151 case $host_os in
12152 nonstopux*) version_type=nonstopux ;;
12153 *)
12154 if test "$lt_cv_prog_gnu_ld" = yes; then
12155 version_type=linux
12156 else
12157 version_type=irix
12158 fi ;;
12159 esac
12160 need_lib_prefix=no
12161 need_version=no
12162 soname_spec='${libname}${release}${shared_ext}$major'
12163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12164 case $host_os in
12165 irix5* | nonstopux*)
12166 libsuff= shlibsuff=
12167 ;;
12168 *)
12169 case $LD in # libtool.m4 will add one of these switches to LD
12170 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12171 libsuff= shlibsuff= libmagic=32-bit;;
12172 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12173 libsuff=32 shlibsuff=N32 libmagic=N32;;
12174 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12175 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12176 *) libsuff= shlibsuff= libmagic=never-match;;
12177 esac
12178 ;;
12179 esac
12180 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12181 shlibpath_overrides_runpath=no
12182 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12183 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12184 hardcode_into_libs=yes
12185 ;;
12186
12187# No shared lib support for Linux oldld, aout, or coff.
12188linux*oldld* | linux*aout* | linux*coff*)
12189 dynamic_linker=no
12190 ;;
12191
12192# This must be Linux ELF.
12193linux* | k*bsd*-gnu | kopensolaris*-gnu)
12194 version_type=linux
12195 need_lib_prefix=no
12196 need_version=no
12197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12198 soname_spec='${libname}${release}${shared_ext}$major'
12199 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12200 shlibpath_var=LD_LIBRARY_PATH
12201 shlibpath_overrides_runpath=no
12202
12203 # Some binutils ld are patched to set DT_RUNPATH
63a9e923 12204 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
2232061b
MF
12205 $as_echo_n "(cached) " >&6
12206else
6bb11ab3
L
12207 lt_cv_shlibpath_overrides_runpath=no
12208 save_LDFLAGS=$LDFLAGS
12209 save_libdir=$libdir
12210 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12211 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2232061b
MF
12213/* end confdefs.h. */
12214
2232061b
MF
12215int
12216main ()
12217{
12218
12219 ;
12220 return 0;
12221}
12222_ACEOF
6bb11ab3
L
12223if ac_fn_c_try_link "$LINENO"; then :
12224 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12225 lt_cv_shlibpath_overrides_runpath=yes
2232061b 12226fi
2232061b 12227fi
6bb11ab3
L
12228rm -f core conftest.err conftest.$ac_objext \
12229 conftest$ac_exeext conftest.$ac_ext
12230 LDFLAGS=$save_LDFLAGS
12231 libdir=$save_libdir
2232061b 12232
6bb11ab3 12233fi
2232061b 12234
6bb11ab3 12235 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
2232061b 12236
6bb11ab3
L
12237 # This implies no fast_install, which is unacceptable.
12238 # Some rework will be needed to allow for fast_install
12239 # before this can be enabled.
12240 hardcode_into_libs=yes
2232061b 12241
6bb11ab3
L
12242 # Append ld.so.conf contents to the search path
12243 if test -f /etc/ld.so.conf; then
12244 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
12245 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12246 fi
2232061b 12247
6bb11ab3
L
12248 # We used to test for /lib/ld.so.1 and disable shared libraries on
12249 # powerpc, because MkLinux only supported shared libraries with the
12250 # GNU dynamic linker. Since this was broken with cross compilers,
12251 # most powerpc-linux boxes support dynamic linking these days and
12252 # people can always --disable-shared, the test was removed, and we
12253 # assume the GNU/Linux dynamic linker is in use.
12254 dynamic_linker='GNU/Linux ld.so'
12255 ;;
12256
12257netbsd*)
12258 version_type=sunos
12259 need_lib_prefix=no
12260 need_version=no
12261 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12262 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12263 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12264 dynamic_linker='NetBSD (a.out) ld.so'
2232061b 12265 else
6bb11ab3
L
12266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12267 soname_spec='${libname}${release}${shared_ext}$major'
12268 dynamic_linker='NetBSD ld.elf_so'
12269 fi
12270 shlibpath_var=LD_LIBRARY_PATH
12271 shlibpath_overrides_runpath=yes
12272 hardcode_into_libs=yes
12273 ;;
12274
12275newsos6)
12276 version_type=linux
12277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12278 shlibpath_var=LD_LIBRARY_PATH
12279 shlibpath_overrides_runpath=yes
12280 ;;
12281
12282*nto* | *qnx*)
12283 version_type=qnx
12284 need_lib_prefix=no
12285 need_version=no
12286 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12287 soname_spec='${libname}${release}${shared_ext}$major'
12288 shlibpath_var=LD_LIBRARY_PATH
12289 shlibpath_overrides_runpath=no
12290 hardcode_into_libs=yes
12291 dynamic_linker='ldqnx.so'
12292 ;;
12293
12294openbsd*)
12295 version_type=sunos
12296 sys_lib_dlsearch_path_spec="/usr/lib"
12297 need_lib_prefix=no
12298 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12299 case $host_os in
12300 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12301 *) need_version=no ;;
12302 esac
12303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12304 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12305 shlibpath_var=LD_LIBRARY_PATH
12306 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12307 case $host_os in
12308 openbsd2.[89] | openbsd2.[89].*)
12309 shlibpath_overrides_runpath=no
12310 ;;
12311 *)
12312 shlibpath_overrides_runpath=yes
12313 ;;
12314 esac
12315 else
12316 shlibpath_overrides_runpath=yes
12317 fi
12318 ;;
12319
12320os2*)
12321 libname_spec='$name'
12322 shrext_cmds=".dll"
12323 need_lib_prefix=no
12324 library_names_spec='$libname${shared_ext} $libname.a'
12325 dynamic_linker='OS/2 ld.exe'
12326 shlibpath_var=LIBPATH
12327 ;;
12328
12329osf3* | osf4* | osf5*)
12330 version_type=osf
12331 need_lib_prefix=no
12332 need_version=no
12333 soname_spec='${libname}${release}${shared_ext}$major'
12334 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12335 shlibpath_var=LD_LIBRARY_PATH
12336 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12337 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12338 ;;
12339
12340rdos*)
12341 dynamic_linker=no
12342 ;;
12343
12344solaris*)
12345 version_type=linux
12346 need_lib_prefix=no
12347 need_version=no
12348 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12349 soname_spec='${libname}${release}${shared_ext}$major'
12350 shlibpath_var=LD_LIBRARY_PATH
12351 shlibpath_overrides_runpath=yes
12352 hardcode_into_libs=yes
12353 # ldd complains unless libraries are executable
12354 postinstall_cmds='chmod +x $lib'
12355 ;;
12356
12357sunos4*)
12358 version_type=sunos
12359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12360 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12361 shlibpath_var=LD_LIBRARY_PATH
12362 shlibpath_overrides_runpath=yes
12363 if test "$with_gnu_ld" = yes; then
12364 need_lib_prefix=no
12365 fi
12366 need_version=yes
12367 ;;
12368
12369sysv4 | sysv4.3*)
12370 version_type=linux
12371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12372 soname_spec='${libname}${release}${shared_ext}$major'
12373 shlibpath_var=LD_LIBRARY_PATH
12374 case $host_vendor in
12375 sni)
12376 shlibpath_overrides_runpath=no
12377 need_lib_prefix=no
12378 runpath_var=LD_RUN_PATH
12379 ;;
12380 siemens)
12381 need_lib_prefix=no
12382 ;;
12383 motorola)
12384 need_lib_prefix=no
12385 need_version=no
12386 shlibpath_overrides_runpath=no
12387 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12388 ;;
12389 esac
12390 ;;
12391
12392sysv4*MP*)
12393 if test -d /usr/nec ;then
12394 version_type=linux
12395 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12396 soname_spec='$libname${shared_ext}.$major'
12397 shlibpath_var=LD_LIBRARY_PATH
2232061b 12398 fi
6bb11ab3
L
12399 ;;
12400
12401sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12402 version_type=freebsd-elf
12403 need_lib_prefix=no
12404 need_version=no
12405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12406 soname_spec='${libname}${release}${shared_ext}$major'
12407 shlibpath_var=LD_LIBRARY_PATH
12408 shlibpath_overrides_runpath=yes
12409 hardcode_into_libs=yes
12410 if test "$with_gnu_ld" = yes; then
12411 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12412 else
12413 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12414 case $host_os in
12415 sco3.2v5*)
12416 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12417 ;;
12418 esac
12419 fi
12420 sys_lib_dlsearch_path_spec='/usr/lib'
12421 ;;
12422
12423tpf*)
12424 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12425 version_type=linux
12426 need_lib_prefix=no
12427 need_version=no
12428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12429 shlibpath_var=LD_LIBRARY_PATH
12430 shlibpath_overrides_runpath=no
12431 hardcode_into_libs=yes
12432 ;;
12433
12434uts4*)
12435 version_type=linux
12436 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12437 soname_spec='${libname}${release}${shared_ext}$major'
12438 shlibpath_var=LD_LIBRARY_PATH
12439 ;;
12440
12441*)
12442 dynamic_linker=no
12443 ;;
12444esac
12445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12446$as_echo "$dynamic_linker" >&6; }
12447test "$dynamic_linker" = no && can_build_shared=no
12448
12449variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12450if test "$GCC" = yes; then
12451 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
2232061b 12452fi
2232061b 12453
6bb11ab3
L
12454if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12455 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12456fi
12457if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12458 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12459fi
12460
12461
12462
12463
12464
12465
12466
12467
12468
12469
12470
12471
12472
12473
12474
12475
12476
12477
12478
12479
12480
12481
12482
12483
12484
12485
2232061b 12486
2232061b 12487
2232061b 12488
2232061b 12489
2232061b
MF
12490
12491
6ffe910a 12492
6ffe910a
MF
12493
12494
12495
12496
12497
2232061b 12498
6ffe910a
MF
12499
12500
12501
12502
6ffe910a 12503
6ffe910a 12504
6ffe910a
MF
12505
12506
6ffe910a 12507
6ffe910a 12508
6ffe910a
MF
12509
12510
5f3ef9d0 12511
5f3ef9d0
JB
12512
12513
12514
db2e4d67
MF
12515
12516
db2e4d67 12517
db2e4d67 12518
db2e4d67 12519
db2e4d67 12520
db2e4d67 12521
db2e4d67 12522
db2e4d67 12523
db2e4d67
MF
12524
12525
db2e4d67 12526
db2e4d67
MF
12527
12528
db2e4d67 12529
db2e4d67
MF
12530
12531
6ffe910a 12532
6ffe910a 12533
6ffe910a
MF
12534
12535
6ffe910a
MF
12536
12537
6ffe910a 12538
6ffe910a 12539
6ffe910a 12540
6ffe910a 12541
6ffe910a 12542
fee8ec00
SR
12543
12544
12545
12546
fee8ec00 12547
fee8ec00 12548
fee8ec00 12549
fee8ec00 12550
fee8ec00 12551
6bb11ab3
L
12552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12553$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12554hardcode_action=
12555if test -n "$hardcode_libdir_flag_spec" ||
12556 test -n "$runpath_var" ||
12557 test "X$hardcode_automatic" = "Xyes" ; then
fee8ec00 12558
6bb11ab3
L
12559 # We can hardcode non-existent directories.
12560 if test "$hardcode_direct" != no &&
12561 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12562 # have to relink, otherwise we might link with an installed library
12563 # when we should be linking with a yet-to-be-installed one
12564 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12565 test "$hardcode_minus_L" != no; then
12566 # Linking always hardcodes the temporary library directory.
12567 hardcode_action=relink
12568 else
12569 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12570 hardcode_action=immediate
12571 fi
12572else
12573 # We cannot hardcode anything, or else we can only hardcode existing
12574 # directories.
12575 hardcode_action=unsupported
fee8ec00 12576fi
6bb11ab3
L
12577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12578$as_echo "$hardcode_action" >&6; }
fee8ec00 12579
6bb11ab3
L
12580if test "$hardcode_action" = relink ||
12581 test "$inherit_rpath" = yes; then
12582 # Fast installation is not supported
12583 enable_fast_install=no
12584elif test "$shlibpath_overrides_runpath" = yes ||
12585 test "$enable_shared" = no; then
12586 # Fast installation is not necessary
12587 enable_fast_install=needless
12588fi
fee8ec00 12589
6bb11ab3
L
12590
12591
12592
12593
12594
12595 if test "x$enable_dlopen" != xyes; then
12596 enable_dlopen=unknown
12597 enable_dlopen_self=unknown
12598 enable_dlopen_self_static=unknown
12599else
12600 lt_cv_dlopen=no
12601 lt_cv_dlopen_libs=
12602
12603 case $host_os in
12604 beos*)
12605 lt_cv_dlopen="load_add_on"
12606 lt_cv_dlopen_libs=
12607 lt_cv_dlopen_self=yes
12608 ;;
12609
12610 mingw* | pw32* | cegcc*)
12611 lt_cv_dlopen="LoadLibrary"
12612 lt_cv_dlopen_libs=
12613 ;;
12614
12615 cygwin*)
12616 lt_cv_dlopen="dlopen"
12617 lt_cv_dlopen_libs=
12618 ;;
12619
12620 darwin*)
12621 # if libdl is installed we need to link against it
12622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12623$as_echo_n "checking for dlopen in -ldl... " >&6; }
63a9e923 12624if ${ac_cv_lib_dl_dlopen+:} false; then :
6bb11ab3
L
12625 $as_echo_n "(cached) " >&6
12626else
12627 ac_check_lib_save_LIBS=$LIBS
12628LIBS="-ldl $LIBS"
12629cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12630/* end confdefs.h. */
12631
12632/* Override any GCC internal prototype to avoid an error.
12633 Use char because int might match the return type of a GCC
12634 builtin and then its argument prototype would still apply. */
12635#ifdef __cplusplus
12636extern "C"
12637#endif
12638char dlopen ();
12639int
12640main ()
12641{
12642return dlopen ();
12643 ;
12644 return 0;
12645}
fee8ec00 12646_ACEOF
6bb11ab3
L
12647if ac_fn_c_try_link "$LINENO"; then :
12648 ac_cv_lib_dl_dlopen=yes
12649else
12650 ac_cv_lib_dl_dlopen=no
12651fi
12652rm -f core conftest.err conftest.$ac_objext \
12653 conftest$ac_exeext conftest.$ac_ext
12654LIBS=$ac_check_lib_save_LIBS
12655fi
12656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12657$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
63a9e923 12658if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
6bb11ab3
L
12659 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12660else
12661
12662 lt_cv_dlopen="dyld"
12663 lt_cv_dlopen_libs=
12664 lt_cv_dlopen_self=yes
fee8ec00
SR
12665
12666fi
fee8ec00 12667
6bb11ab3 12668 ;;
fee8ec00 12669
6bb11ab3
L
12670 *)
12671 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
63a9e923 12672if test "x$ac_cv_func_shl_load" = xyes; then :
6bb11ab3
L
12673 lt_cv_dlopen="shl_load"
12674else
12675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12676$as_echo_n "checking for shl_load in -ldld... " >&6; }
63a9e923 12677if ${ac_cv_lib_dld_shl_load+:} false; then :
6bb11ab3
L
12678 $as_echo_n "(cached) " >&6
12679else
12680 ac_check_lib_save_LIBS=$LIBS
12681LIBS="-ldld $LIBS"
12682cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12683/* end confdefs.h. */
12684
12685/* Override any GCC internal prototype to avoid an error.
12686 Use char because int might match the return type of a GCC
12687 builtin and then its argument prototype would still apply. */
12688#ifdef __cplusplus
12689extern "C"
12690#endif
12691char shl_load ();
12692int
12693main ()
12694{
12695return shl_load ();
12696 ;
12697 return 0;
12698}
12699_ACEOF
12700if ac_fn_c_try_link "$LINENO"; then :
12701 ac_cv_lib_dld_shl_load=yes
12702else
12703 ac_cv_lib_dld_shl_load=no
12704fi
12705rm -f core conftest.err conftest.$ac_objext \
12706 conftest$ac_exeext conftest.$ac_ext
12707LIBS=$ac_check_lib_save_LIBS
12708fi
12709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12710$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
63a9e923 12711if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
6bb11ab3
L
12712 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12713else
12714 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
63a9e923 12715if test "x$ac_cv_func_dlopen" = xyes; then :
6bb11ab3
L
12716 lt_cv_dlopen="dlopen"
12717else
12718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12719$as_echo_n "checking for dlopen in -ldl... " >&6; }
63a9e923 12720if ${ac_cv_lib_dl_dlopen+:} false; then :
81ecdfbb 12721 $as_echo_n "(cached) " >&6
fee8ec00
SR
12722else
12723 ac_check_lib_save_LIBS=$LIBS
6bb11ab3 12724LIBS="-ldl $LIBS"
81ecdfbb 12725cat confdefs.h - <<_ACEOF >conftest.$ac_ext
fee8ec00
SR
12726/* end confdefs.h. */
12727
81ecdfbb
RW
12728/* Override any GCC internal prototype to avoid an error.
12729 Use char because int might match the return type of a GCC
12730 builtin and then its argument prototype would still apply. */
fee8ec00
SR
12731#ifdef __cplusplus
12732extern "C"
12733#endif
6bb11ab3 12734char dlopen ();
fee8ec00
SR
12735int
12736main ()
12737{
6bb11ab3 12738return dlopen ();
fee8ec00
SR
12739 ;
12740 return 0;
12741}
12742_ACEOF
81ecdfbb 12743if ac_fn_c_try_link "$LINENO"; then :
6bb11ab3 12744 ac_cv_lib_dl_dlopen=yes
fee8ec00 12745else
6bb11ab3 12746 ac_cv_lib_dl_dlopen=no
fee8ec00 12747fi
81ecdfbb
RW
12748rm -f core conftest.err conftest.$ac_objext \
12749 conftest$ac_exeext conftest.$ac_ext
fee8ec00
SR
12750LIBS=$ac_check_lib_save_LIBS
12751fi
6bb11ab3
L
12752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12753$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
63a9e923 12754if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
6bb11ab3
L
12755 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12756else
12757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12758$as_echo_n "checking for dlopen in -lsvld... " >&6; }
63a9e923 12759if ${ac_cv_lib_svld_dlopen+:} false; then :
81ecdfbb 12760 $as_echo_n "(cached) " >&6
fee8ec00
SR
12761else
12762 ac_check_lib_save_LIBS=$LIBS
6bb11ab3 12763LIBS="-lsvld $LIBS"
81ecdfbb 12764cat confdefs.h - <<_ACEOF >conftest.$ac_ext
fee8ec00
SR
12765/* end confdefs.h. */
12766
81ecdfbb
RW
12767/* Override any GCC internal prototype to avoid an error.
12768 Use char because int might match the return type of a GCC
12769 builtin and then its argument prototype would still apply. */
fee8ec00
SR
12770#ifdef __cplusplus
12771extern "C"
12772#endif
6bb11ab3 12773char dlopen ();
fee8ec00
SR
12774int
12775main ()
12776{
6bb11ab3 12777return dlopen ();
fee8ec00
SR
12778 ;
12779 return 0;
12780}
12781_ACEOF
81ecdfbb 12782if ac_fn_c_try_link "$LINENO"; then :
6bb11ab3 12783 ac_cv_lib_svld_dlopen=yes
fee8ec00 12784else
6bb11ab3 12785 ac_cv_lib_svld_dlopen=no
fee8ec00 12786fi
81ecdfbb
RW
12787rm -f core conftest.err conftest.$ac_objext \
12788 conftest$ac_exeext conftest.$ac_ext
fee8ec00
SR
12789LIBS=$ac_check_lib_save_LIBS
12790fi
6bb11ab3
L
12791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12792$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
63a9e923 12793if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
6bb11ab3 12794 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
5912fadd 12795else
6bb11ab3
L
12796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12797$as_echo_n "checking for dld_link in -ldld... " >&6; }
63a9e923 12798if ${ac_cv_lib_dld_dld_link+:} false; then :
81ecdfbb 12799 $as_echo_n "(cached) " >&6
b5bd9624 12800else
6bb11ab3
L
12801 ac_check_lib_save_LIBS=$LIBS
12802LIBS="-ldld $LIBS"
81ecdfbb 12803cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b5bd9624
HPN
12804/* end confdefs.h. */
12805
81ecdfbb
RW
12806/* Override any GCC internal prototype to avoid an error.
12807 Use char because int might match the return type of a GCC
b5bd9624 12808 builtin and then its argument prototype would still apply. */
b5bd9624
HPN
12809#ifdef __cplusplus
12810extern "C"
12811#endif
6bb11ab3 12812char dld_link ();
b5bd9624
HPN
12813int
12814main ()
12815{
6bb11ab3 12816return dld_link ();
b5bd9624
HPN
12817 ;
12818 return 0;
12819}
12820_ACEOF
6bb11ab3
L
12821if ac_fn_c_try_link "$LINENO"; then :
12822 ac_cv_lib_dld_dld_link=yes
12823else
12824 ac_cv_lib_dld_dld_link=no
12825fi
12826rm -f core conftest.err conftest.$ac_objext \
12827 conftest$ac_exeext conftest.$ac_ext
12828LIBS=$ac_check_lib_save_LIBS
12829fi
12830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12831$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
63a9e923 12832if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
6bb11ab3
L
12833 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12834fi
12835
12836
12837fi
12838
12839
12840fi
12841
12842
12843fi
12844
12845
12846fi
12847
12848
12849fi
12850
12851 ;;
12852 esac
12853
12854 if test "x$lt_cv_dlopen" != xno; then
12855 enable_dlopen=yes
b5bd9624 12856 else
6bb11ab3
L
12857 enable_dlopen=no
12858 fi
12859
12860 case $lt_cv_dlopen in
12861 dlopen)
12862 save_CPPFLAGS="$CPPFLAGS"
12863 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12864
12865 save_LDFLAGS="$LDFLAGS"
12866 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12867
12868 save_LIBS="$LIBS"
12869 LIBS="$lt_cv_dlopen_libs $LIBS"
12870
12871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12872$as_echo_n "checking whether a program can dlopen itself... " >&6; }
63a9e923 12873if ${lt_cv_dlopen_self+:} false; then :
6bb11ab3
L
12874 $as_echo_n "(cached) " >&6
12875else
12876 if test "$cross_compiling" = yes; then :
12877 lt_cv_dlopen_self=cross
12878else
12879 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12880 lt_status=$lt_dlunknown
12881 cat > conftest.$ac_ext <<_LT_EOF
63a9e923 12882#line 12882 "configure"
6bb11ab3
L
12883#include "confdefs.h"
12884
12885#if HAVE_DLFCN_H
12886#include <dlfcn.h>
12887#endif
12888
12889#include <stdio.h>
12890
12891#ifdef RTLD_GLOBAL
12892# define LT_DLGLOBAL RTLD_GLOBAL
12893#else
12894# ifdef DL_GLOBAL
12895# define LT_DLGLOBAL DL_GLOBAL
12896# else
12897# define LT_DLGLOBAL 0
12898# endif
12899#endif
12900
12901/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12902 find out it does not work in some platform. */
12903#ifndef LT_DLLAZY_OR_NOW
12904# ifdef RTLD_LAZY
12905# define LT_DLLAZY_OR_NOW RTLD_LAZY
12906# else
12907# ifdef DL_LAZY
12908# define LT_DLLAZY_OR_NOW DL_LAZY
12909# else
12910# ifdef RTLD_NOW
12911# define LT_DLLAZY_OR_NOW RTLD_NOW
12912# else
12913# ifdef DL_NOW
12914# define LT_DLLAZY_OR_NOW DL_NOW
12915# else
12916# define LT_DLLAZY_OR_NOW 0
12917# endif
12918# endif
12919# endif
12920# endif
12921#endif
12922
12923/* When -fvisbility=hidden is used, assume the code has been annotated
12924 correspondingly for the symbols needed. */
12925#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12926void fnord () __attribute__((visibility("default")));
12927#endif
12928
12929void fnord () { int i=42; }
12930int main ()
12931{
12932 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12933 int status = $lt_dlunknown;
12934
12935 if (self)
12936 {
12937 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12938 else
12939 {
12940 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12941 else puts (dlerror ());
12942 }
12943 /* dlclose (self); */
12944 }
12945 else
12946 puts (dlerror ());
12947
12948 return status;
12949}
12950_LT_EOF
12951 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12952 (eval $ac_link) 2>&5
12953 ac_status=$?
12954 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12955 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12956 (./conftest; exit; ) >&5 2>/dev/null
12957 lt_status=$?
12958 case x$lt_status in
12959 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12960 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12961 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12962 esac
12963 else :
12964 # compilation failed
12965 lt_cv_dlopen_self=no
b5bd9624 12966 fi
b5bd9624 12967fi
6bb11ab3
L
12968rm -fr conftest*
12969
12970
b5bd9624 12971fi
6bb11ab3
L
12972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12973$as_echo "$lt_cv_dlopen_self" >&6; }
b5bd9624 12974
6bb11ab3
L
12975 if test "x$lt_cv_dlopen_self" = xyes; then
12976 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12978$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
63a9e923 12979if ${lt_cv_dlopen_self_static+:} false; then :
6bb11ab3 12980 $as_echo_n "(cached) " >&6
b5bd9624 12981else
6bb11ab3
L
12982 if test "$cross_compiling" = yes; then :
12983 lt_cv_dlopen_self_static=cross
12984else
12985 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12986 lt_status=$lt_dlunknown
12987 cat > conftest.$ac_ext <<_LT_EOF
63a9e923 12988#line 12988 "configure"
6bb11ab3
L
12989#include "confdefs.h"
12990
12991#if HAVE_DLFCN_H
12992#include <dlfcn.h>
12993#endif
12994
12995#include <stdio.h>
12996
12997#ifdef RTLD_GLOBAL
12998# define LT_DLGLOBAL RTLD_GLOBAL
12999#else
13000# ifdef DL_GLOBAL
13001# define LT_DLGLOBAL DL_GLOBAL
13002# else
13003# define LT_DLGLOBAL 0
13004# endif
13005#endif
13006
13007/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13008 find out it does not work in some platform. */
13009#ifndef LT_DLLAZY_OR_NOW
13010# ifdef RTLD_LAZY
13011# define LT_DLLAZY_OR_NOW RTLD_LAZY
13012# else
13013# ifdef DL_LAZY
13014# define LT_DLLAZY_OR_NOW DL_LAZY
13015# else
13016# ifdef RTLD_NOW
13017# define LT_DLLAZY_OR_NOW RTLD_NOW
13018# else
13019# ifdef DL_NOW
13020# define LT_DLLAZY_OR_NOW DL_NOW
13021# else
13022# define LT_DLLAZY_OR_NOW 0
13023# endif
13024# endif
13025# endif
13026# endif
13027#endif
13028
13029/* When -fvisbility=hidden is used, assume the code has been annotated
13030 correspondingly for the symbols needed. */
13031#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13032void fnord () __attribute__((visibility("default")));
13033#endif
13034
13035void fnord () { int i=42; }
13036int main ()
13037{
13038 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13039 int status = $lt_dlunknown;
13040
13041 if (self)
13042 {
13043 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13044 else
13045 {
13046 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13047 else puts (dlerror ());
13048 }
13049 /* dlclose (self); */
13050 }
13051 else
13052 puts (dlerror ());
13053
13054 return status;
13055}
13056_LT_EOF
13057 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13058 (eval $ac_link) 2>&5
13059 ac_status=$?
13060 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13061 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13062 (./conftest; exit; ) >&5 2>/dev/null
13063 lt_status=$?
13064 case x$lt_status in
13065 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13066 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13067 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13068 esac
13069 else :
13070 # compilation failed
13071 lt_cv_dlopen_self_static=no
13072 fi
b5bd9624 13073fi
6bb11ab3
L
13074rm -fr conftest*
13075
13076
b5bd9624 13077fi
6bb11ab3
L
13078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13079$as_echo "$lt_cv_dlopen_self_static" >&6; }
13080 fi
13081
13082 CPPFLAGS="$save_CPPFLAGS"
13083 LDFLAGS="$save_LDFLAGS"
13084 LIBS="$save_LIBS"
13085 ;;
13086 esac
13087
13088 case $lt_cv_dlopen_self in
13089 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13090 *) enable_dlopen_self=unknown ;;
13091 esac
13092
13093 case $lt_cv_dlopen_self_static in
13094 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13095 *) enable_dlopen_self_static=unknown ;;
13096 esac
13097fi
13098
13099
13100
13101
13102
13103
13104
13105
13106
13107
13108
13109
13110
13111
13112
13113
13114
13115striplib=
13116old_striplib=
13117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13118$as_echo_n "checking whether stripping libraries is possible... " >&6; }
13119if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13120 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13121 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13123$as_echo "yes" >&6; }
13124else
13125# FIXME - insert some real tests, host_os isn't really good enough
13126 case $host_os in
13127 darwin*)
13128 if test -n "$STRIP" ; then
13129 striplib="$STRIP -x"
13130 old_striplib="$STRIP -S"
13131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13132$as_echo "yes" >&6; }
13133 else
13134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13135$as_echo "no" >&6; }
13136 fi
13137 ;;
13138 *)
13139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13140$as_echo "no" >&6; }
13141 ;;
13142 esac
13143fi
13144
13145
13146
13147
13148
13149
13150
13151
13152
13153
13154
13155
13156 # Report which library types will actually be built
13157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13158$as_echo_n "checking if libtool supports shared libraries... " >&6; }
13159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13160$as_echo "$can_build_shared" >&6; }
13161
13162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13163$as_echo_n "checking whether to build shared libraries... " >&6; }
13164 test "$can_build_shared" = "no" && enable_shared=no
13165
13166 # On AIX, shared libraries and static libraries use the same namespace, and
13167 # are all built from PIC.
13168 case $host_os in
13169 aix3*)
13170 test "$enable_shared" = yes && enable_static=no
13171 if test -n "$RANLIB"; then
13172 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13173 postinstall_cmds='$RANLIB $lib'
13174 fi
13175 ;;
13176
13177 aix[4-9]*)
13178 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13179 test "$enable_shared" = yes && enable_static=no
13180 fi
13181 ;;
13182 esac
13183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13184$as_echo "$enable_shared" >&6; }
13185
13186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13187$as_echo_n "checking whether to build static libraries... " >&6; }
13188 # Make sure either enable_shared or enable_static is yes.
13189 test "$enable_shared" = yes || enable_static=yes
13190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13191$as_echo "$enable_static" >&6; }
13192
13193
13194
13195
13196fi
13197ac_ext=c
13198ac_cpp='$CPP $CPPFLAGS'
13199ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13200ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13201ac_compiler_gnu=$ac_cv_c_compiler_gnu
13202
13203CC="$lt_save_CC"
13204
13205
13206
13207
13208
13209
13210
13211
13212
b5bd9624 13213
b5bd9624 13214
b5bd9624 13215
b5bd9624 13216
6bb11ab3
L
13217 ac_config_commands="$ac_config_commands libtool"
13218
13219
13220
13221
13222# Only expand once:
13223
13224
5912fadd 13225
b5bd9624 13226
fee8ec00
SR
13227. ${srcdir}/../../bfd/configure.host
13228
13229
13230
31e6ad7d
MF
13231
13232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
13233$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
13234 # Check whether --enable-maintainer-mode was given.
81ecdfbb 13235if test "${enable_maintainer_mode+set}" = set; then :
31e6ad7d
MF
13236 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
13237else
13238 USE_MAINTAINER_MODE=no
fee8ec00 13239fi
31e6ad7d
MF
13240
13241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
13242$as_echo "$USE_MAINTAINER_MODE" >&6; }
13243 if test $USE_MAINTAINER_MODE = yes; then
13244 MAINTAINER_MODE_TRUE=
13245 MAINTAINER_MODE_FALSE='#'
fee8ec00 13246else
31e6ad7d
MF
13247 MAINTAINER_MODE_TRUE='#'
13248 MAINTAINER_MODE_FALSE=
81ecdfbb
RW
13249fi
13250
31e6ad7d
MF
13251 MAINT=$MAINTAINER_MODE_TRUE
13252
13253
fee8ec00
SR
13254
13255
ce39bd38
MF
13256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim debug setting" >&5
13257$as_echo_n "checking for sim debug setting... " >&6; }
13258sim_debug="0"
81ecdfbb
RW
13259# Check whether --enable-sim-debug was given.
13260if test "${enable_sim_debug+set}" = set; then :
13261 enableval=$enable_sim_debug; case "${enableval}" in
ce39bd38
MF
13262 yes) sim_debug="7";;
13263 no) sim_debug="0";;
13264 *) sim_debug="($enableval)";;
fee8ec00 13265esac
fee8ec00 13266fi
ce39bd38
MF
13267if test "$sim_debug" != "0"; then
13268
13269cat >>confdefs.h <<_ACEOF
13270#define DEBUG $sim_debug
13271_ACEOF
13272
81ecdfbb
RW
13273fi
13274
ce39bd38
MF
13275cat >>confdefs.h <<_ACEOF
13276#define WITH_DEBUG $sim_debug
13277_ACEOF
13278
13279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_debug" >&5
13280$as_echo "$sim_debug" >&6; }
fee8ec00
SR
13281
13282
ce39bd38
MF
13283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim stdio debug behavior" >&5
13284$as_echo_n "checking for sim stdio debug behavior... " >&6; }
13285sim_stdio="0"
81ecdfbb
RW
13286# Check whether --enable-sim-stdio was given.
13287if test "${enable_sim_stdio+set}" = set; then :
13288 enableval=$enable_sim_stdio; case "${enableval}" in
ce39bd38
MF
13289 yes) sim_stdio="DO_USE_STDIO";;
13290 no) sim_stdio="DONT_USE_STDIO";;
63a9e923 13291 *) as_fn_error $? "Unknown value $enableval passed to --enable-sim-stdio" "$LINENO" 5;;
fee8ec00 13292esac
81ecdfbb
RW
13293fi
13294
ce39bd38
MF
13295cat >>confdefs.h <<_ACEOF
13296#define WITH_STDIO $sim_stdio
13297_ACEOF
13298
13299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_stdio" >&5
13300$as_echo "$sim_stdio" >&6; }
fee8ec00
SR
13301
13302
ce39bd38
MF
13303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim trace settings" >&5
13304$as_echo_n "checking for sim trace settings... " >&6; }
13305sim_trace="~TRACE_debug"
81ecdfbb
RW
13306# Check whether --enable-sim-trace was given.
13307if test "${enable_sim_trace+set}" = set; then :
13308 enableval=$enable_sim_trace; case "${enableval}" in
ce39bd38
MF
13309 yes) sim_trace="-1";;
13310 no) sim_trace="0";;
fee8ec00 13311 [-0-9]*)
ce39bd38 13312 sim_trace="'(${enableval})'";;
2232061b 13313 [[:lower:]]*)
fee8ec00
SR
13314 sim_trace=""
13315 for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
13316 if test x"$sim_trace" = x; then
ce39bd38 13317 sim_trace="(TRACE_$x"
fee8ec00
SR
13318 else
13319 sim_trace="${sim_trace}|TRACE_$x"
13320 fi
13321 done
ce39bd38 13322 sim_trace="$sim_trace)" ;;
fee8ec00 13323esac
81ecdfbb
RW
13324fi
13325
ce39bd38
MF
13326cat >>confdefs.h <<_ACEOF
13327#define WITH_TRACE $sim_trace
13328_ACEOF
13329
13330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_trace" >&5
13331$as_echo "$sim_trace" >&6; }
fee8ec00
SR
13332
13333
ce39bd38
MF
13334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim profile settings" >&5
13335$as_echo_n "checking for sim profile settings... " >&6; }
13336profile="1"
13337sim_profile="-1"
81ecdfbb
RW
13338# Check whether --enable-sim-profile was given.
13339if test "${enable_sim_profile+set}" = set; then :
13340 enableval=$enable_sim_profile; case "${enableval}" in
ce39bd38
MF
13341 yes) profile="1" sim_profile="-1";;
13342 no) profile="0" sim_profile="0";;
fee8ec00 13343 [-0-9]*)
ce39bd38 13344 profile="(${enableval})" sim_profile="(${enableval})";;
fee8ec00 13345 [a-z]*)
ce39bd38 13346 profile="1"
fee8ec00
SR
13347 sim_profile=""
13348 for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
13349 if test x"$sim_profile" = x; then
ce39bd38 13350 sim_profile="(PROFILE_$x"
fee8ec00
SR
13351 else
13352 sim_profile="${sim_profile}|PROFILE_$x"
13353 fi
13354 done
ce39bd38 13355 sim_profile="$sim_profile)" ;;
fee8ec00 13356esac
81ecdfbb
RW
13357fi
13358
ce39bd38
MF
13359cat >>confdefs.h <<_ACEOF
13360#define PROFILE $profile
13361_ACEOF
fee8ec00
SR
13362
13363
ce39bd38
MF
13364cat >>confdefs.h <<_ACEOF
13365#define WITH_PROFILE $sim_profile
13366_ACEOF
13367
13368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_profile" >&5
13369$as_echo "$sim_profile" >&6; }
13370
13371
13372
13373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable sim asserts" >&5
13374$as_echo_n "checking whether to enable sim asserts... " >&6; }
13375sim_assert="1"
35656e95
MF
13376# Check whether --enable-sim-assert was given.
13377if test "${enable_sim_assert+set}" = set; then :
13378 enableval=$enable_sim_assert; case "${enableval}" in
ce39bd38
MF
13379 yes) sim_assert="1";;
13380 no) sim_assert="0";;
63a9e923 13381 *) as_fn_error $? "--enable-sim-assert does not take a value" "$LINENO" 5;;
35656e95 13382esac
35656e95
MF
13383fi
13384
ce39bd38
MF
13385cat >>confdefs.h <<_ACEOF
13386#define WITH_ASSERT $sim_assert
13387_ACEOF
13388
13389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_assert" >&5
13390$as_echo "$sim_assert" >&6; }
13391
35656e95 13392
ce39bd38
MF
13393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking default sim environment setting" >&5
13394$as_echo_n "checking default sim environment setting... " >&6; }
13395sim_environment="ALL_ENVIRONMENT"
16f7876d
MF
13396# Check whether --enable-sim-environment was given.
13397if test "${enable_sim_environment+set}" = set; then :
13398 enableval=$enable_sim_environment; case "${enableval}" in
ce39bd38
MF
13399 all | ALL) sim_environment="ALL_ENVIRONMENT";;
13400 user | USER) sim_environment="USER_ENVIRONMENT";;
13401 virtual | VIRTUAL) sim_environment="VIRTUAL_ENVIRONMENT";;
13402 operating | OPERATING) sim_environment="OPERATING_ENVIRONMENT";;
63a9e923 13403 *) as_fn_error $? "Unknown value $enableval passed to --enable-sim-environment" "$LINENO" 5;;
16f7876d 13404esac
16f7876d
MF
13405fi
13406
ce39bd38
MF
13407cat >>confdefs.h <<_ACEOF
13408#define WITH_ENVIRONMENT $sim_environment
13409_ACEOF
13410
13411{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_environment" >&5
13412$as_echo "$sim_environment" >&6; }
13413
16f7876d 13414
347fe5bb
MF
13415sim_inline="-DDEFAULT_INLINE=0"
13416# Check whether --enable-sim-inline was given.
13417if test "${enable_sim_inline+set}" = set; then :
13418 enableval=$enable_sim_inline; sim_inline=""
13419case "$enableval" in
13420 no) sim_inline="-DDEFAULT_INLINE=0";;
13421 0) sim_inline="-DDEFAULT_INLINE=0";;
13422 yes | 2) sim_inline="-DDEFAULT_INLINE=ALL_C_INLINE";;
13423 1) sim_inline="-DDEFAULT_INLINE=INLINE_LOCALS";;
13424 *) for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
13425 new_flag=""
13426 case "$x" in
13427 *_INLINE=*) new_flag="-D$x";;
13428 *=*) new_flag=`echo "$x" | sed -e "s/=/_INLINE=/" -e "s/^/-D/"`;;
13429 *_INLINE) new_flag="-D$x=ALL_C_INLINE";;
13430 *) new_flag="-D$x""_INLINE=ALL_C_INLINE";;
13431 esac
13432 if test x"$sim_inline" = x""; then
13433 sim_inline="$new_flag"
13434 else
13435 sim_inline="$sim_inline $new_flag"
13436 fi
13437 done;;
13438esac
13439if test x"$silent" != x"yes" && test x"$sim_inline" != x""; then
13440 echo "Setting inline flags = $sim_inline" 6>&1
13441fi
13442fi
13443
13444
13445
6efef468 13446
81ecdfbb
RW
13447# Check whether --with-pkgversion was given.
13448if test "${with_pkgversion+set}" = set; then :
13449 withval=$with_pkgversion; case "$withval" in
63a9e923 13450 yes) as_fn_error $? "package version not specified" "$LINENO" 5 ;;
6efef468
JM
13451 no) PKGVERSION= ;;
13452 *) PKGVERSION="($withval) " ;;
13453 esac
13454else
bf12d44e 13455 PKGVERSION="(SIM) "
6efef468 13456
81ecdfbb
RW
13457fi
13458
6efef468
JM
13459
13460
13461
13462
81ecdfbb
RW
13463# Check whether --with-bugurl was given.
13464if test "${with_bugurl+set}" = set; then :
13465 withval=$with_bugurl; case "$withval" in
63a9e923 13466 yes) as_fn_error $? "bug URL not specified" "$LINENO" 5 ;;
6efef468
JM
13467 no) BUGURL=
13468 ;;
13469 *) BUGURL="$withval"
13470 ;;
13471 esac
13472else
13473 BUGURL="http://www.gnu.org/software/gdb/bugs/"
13474
81ecdfbb
RW
13475fi
13476
6efef468
JM
13477 case ${BUGURL} in
13478 "")
13479 REPORT_BUGS_TO=
13480 REPORT_BUGS_TEXI=
13481 ;;
13482 *)
13483 REPORT_BUGS_TO="<$BUGURL>"
13484 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
13485 ;;
13486 esac;
13487
13488
13489
13490
13491cat >>confdefs.h <<_ACEOF
13492#define PKGVERSION "$PKGVERSION"
13493_ACEOF
13494
13495
13496cat >>confdefs.h <<_ACEOF
13497#define REPORT_BUGS_TO "$REPORT_BUGS_TO"
13498_ACEOF
13499
13500
81ecdfbb
RW
13501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
13502$as_echo_n "checking return type of signal handlers... " >&6; }
63a9e923 13503if ${ac_cv_type_signal+:} false; then :
81ecdfbb 13504 $as_echo_n "(cached) " >&6
fee8ec00 13505else
81ecdfbb 13506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
fee8ec00
SR
13507/* end confdefs.h. */
13508#include <sys/types.h>
13509#include <signal.h>
fee8ec00
SR
13510
13511int
13512main ()
13513{
81ecdfbb 13514return *(signal (0, 0)) (0) == 1;
fee8ec00
SR
13515 ;
13516 return 0;
13517}
13518_ACEOF
81ecdfbb
RW
13519if ac_fn_c_try_compile "$LINENO"; then :
13520 ac_cv_type_signal=int
fee8ec00 13521else
81ecdfbb 13522 ac_cv_type_signal=void
fee8ec00 13523fi
81ecdfbb 13524rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fee8ec00 13525fi
81ecdfbb
RW
13526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
13527$as_echo "$ac_cv_type_signal" >&6; }
fee8ec00
SR
13528
13529cat >>confdefs.h <<_ACEOF
13530#define RETSIGTYPE $ac_cv_type_signal
13531_ACEOF
13532
13533
13534
13535
13536
fee8ec00
SR
13537
13538
6ffe910a 13539
1ac72f06 13540wire_endian="LITTLE"
ca968da4
MF
13541default_endian=""
13542# Check whether --enable-sim-endian was given.
13543if test "${enable_sim_endian+set}" = set; then :
13544 enableval=$enable_sim_endian; case "${enableval}" in
1ac72f06
MF
13545 b*|B*) sim_endian="-DWITH_TARGET_BYTE_ORDER=BFD_ENDIAN_BIG";;
13546 l*|L*) sim_endian="-DWITH_TARGET_BYTE_ORDER=BFD_ENDIAN_LITTLE";;
ca968da4 13547 yes) if test x"$wire_endian" != x; then
1ac72f06 13548 sim_endian="-DWITH_TARGET_BYTE_ORDER=BFD_ENDIAN_${wire_endian}"
ca968da4 13549 else
1ac72f06
MF
13550 if test x"$default_endian" != x; then
13551 sim_endian="-DWITH_TARGET_BYTE_ORDER=BFD_ENDIAN_${default_endian}"
ca968da4
MF
13552 else
13553 echo "No hard-wired endian for target $target" 1>&6
1ac72f06 13554 sim_endian="-DWITH_TARGET_BYTE_ORDER=BFD_ENDIAN_UNKNOWN"
ca968da4
MF
13555 fi
13556 fi;;
13557 no) if test x"$default_endian" != x; then
1ac72f06 13558 sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=BFD_ENDIAN_${default_endian}"
ca968da4
MF
13559 else
13560 if test x"$wire_endian" != x; then
1ac72f06 13561 sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=BFD_ENDIAN_${wire_endian}"
ca968da4
MF
13562 else
13563 echo "No default endian for target $target" 1>&6
1ac72f06 13564 sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=BFD_ENDIAN_UNKNOWN"
ca968da4
MF
13565 fi
13566 fi;;
63a9e923 13567 *) as_fn_error $? "\"Unknown value $enableval for --enable-sim-endian\"" "$LINENO" 5; sim_endian="";;
ca968da4
MF
13568esac
13569if test x"$silent" != x"yes" && test x"$sim_endian" != x""; then
13570 echo "Setting endian flags = $sim_endian" 6>&1
13571fi
13572else
13573 if test x"$default_endian" != x; then
1ac72f06 13574 sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=BFD_ENDIAN_${default_endian}"
ca968da4
MF
13575else
13576 if test x"$wire_endian" != x; then
1ac72f06 13577 sim_endian="-DWITH_TARGET_BYTE_ORDER=BFD_ENDIAN_${wire_endian}"
ca968da4
MF
13578 else
13579 sim_endian=
13580 fi
13581fi
13582fi
13583
761e171a
MF
13584wire_alignment="NONSTRICT_ALIGNMENT"
13585default_alignment=""
ca968da4
MF
13586
13587# Check whether --enable-sim-alignment was given.
13588if test "${enable_sim_alignment+set}" = set; then :
13589 enableval=$enable_sim_alignment; case "${enableval}" in
13590 strict | STRICT) sim_alignment="-DWITH_ALIGNMENT=STRICT_ALIGNMENT";;
13591 nonstrict | NONSTRICT) sim_alignment="-DWITH_ALIGNMENT=NONSTRICT_ALIGNMENT";;
13592 forced | FORCED) sim_alignment="-DWITH_ALIGNMENT=FORCED_ALIGNMENT";;
13593 yes) if test x"$wire_alignment" != x; then
13594 sim_alignment="-DWITH_ALIGNMENT=${wire_alignment}"
13595 else
13596 if test x"$default_alignment" != x; then
13597 sim_alignment="-DWITH_ALIGNMENT=${default_alignment}"
13598 else
13599 echo "No hard-wired alignment for target $target" 1>&6
13600 sim_alignment="-DWITH_ALIGNMENT=0"
13601 fi
13602 fi;;
13603 no) if test x"$default_alignment" != x; then
13604 sim_alignment="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}"
13605 else
13606 if test x"$wire_alignment" != x; then
13607 sim_alignment="-DWITH_DEFAULT_ALIGNMENT=${wire_alignment}"
13608 else
13609 echo "No default alignment for target $target" 1>&6
13610 sim_alignment="-DWITH_DEFAULT_ALIGNMENT=0"
13611 fi
13612 fi;;
63a9e923 13613 *) as_fn_error $? "\"Unknown value $enableval passed to --enable-sim-alignment\"" "$LINENO" 5; sim_alignment="";;
ca968da4
MF
13614esac
13615if test x"$silent" != x"yes" && test x"$sim_alignment" != x""; then
13616 echo "Setting alignment flags = $sim_alignment" 6>&1
13617fi
13618else
13619 if test x"$default_alignment" != x; then
13620 sim_alignment="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}"
13621else
13622 if test x"$wire_alignment" != x; then
13623 sim_alignment="-DWITH_ALIGNMENT=${wire_alignment}"
13624 else
13625 sim_alignment=
13626 fi
13627fi
13628fi
13629
13630
2232061b
MF
13631# Check whether --enable-werror was given.
13632if test "${enable_werror+set}" = set; then :
13633 enableval=$enable_werror; case "${enableval}" in
13634 yes | y) ERROR_ON_WARNING="yes" ;;
13635 no | n) ERROR_ON_WARNING="no" ;;
63a9e923 13636 *) as_fn_error $? "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
2232061b
MF
13637 esac
13638fi
13639
13640
13641# Enable -Werror by default when using gcc
13642if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
13643 ERROR_ON_WARNING=yes
13644fi
13645
13646WERROR_CFLAGS=""
13647if test "${ERROR_ON_WARNING}" = yes ; then
13648# NOTE: Disabled in the sim dir due to most sims generating warnings.
13649# WERROR_CFLAGS="-Werror"
13650 true
13651fi
13652
2232061b 13653build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \
1a8a700e 13654-Wpointer-sign \
2232061b 13655-Wno-unused -Wunused-value -Wunused-function \
1a8a700e
MF
13656-Wno-switch -Wno-char-subscripts -Wmissing-prototypes
13657-Wdeclaration-after-statement -Wempty-body -Wmissing-parameter-type \
13658-Wold-style-declaration -Wold-style-definition"
2232061b
MF
13659
13660# Enable -Wno-format by default when using gcc on mingw since many
13661# GCC versions complain about %I64.
13662case "${host}" in
13663 *-*-mingw32*) build_warnings="$build_warnings -Wno-format" ;;
d3685d60 13664 *) build_warnings="$build_warnings -Wformat-nonliteral" ;;
2232061b
MF
13665esac
13666
81ecdfbb
RW
13667# Check whether --enable-build-warnings was given.
13668if test "${enable_build_warnings+set}" = set; then :
13669 enableval=$enable_build_warnings; case "${enableval}" in
fee8ec00
SR
13670 yes) ;;
13671 no) build_warnings="-w";;
13672 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
13673 build_warnings="${build_warnings} ${t}";;
13674 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
13675 build_warnings="${t} ${build_warnings}";;
13676 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
13677esac
13678if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
13679 echo "Setting compiler warning flags = $build_warnings" 6>&1
13680fi
81ecdfbb
RW
13681fi
13682# Check whether --enable-sim-build-warnings was given.
13683if test "${enable_sim_build_warnings+set}" = set; then :
13684 enableval=$enable_sim_build_warnings; case "${enableval}" in
fee8ec00
SR
13685 yes) ;;
13686 no) build_warnings="-w";;
13687 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
13688 build_warnings="${build_warnings} ${t}";;
13689 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
13690 build_warnings="${t} ${build_warnings}";;
13691 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
13692esac
13693if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
13694 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
13695fi
81ecdfbb
RW
13696fi
13697WARN_CFLAGS=""
fee8ec00
SR
13698if test "x${build_warnings}" != x -a "x$GCC" = xyes
13699then
81ecdfbb
RW
13700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
13701$as_echo_n "checking compiler warning flags... " >&6; }
fee8ec00
SR
13702 # Separate out the -Werror flag as some files just cannot be
13703 # compiled with it enabled.
13704 for w in ${build_warnings}; do
13705 case $w in
13706 -Werr*) WERROR_CFLAGS=-Werror ;;
13707 *) # Check that GCC accepts it
13708 saved_CFLAGS="$CFLAGS"
13709 CFLAGS="$CFLAGS $w"
81ecdfbb 13710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
fee8ec00
SR
13711/* end confdefs.h. */
13712
13713int
13714main ()
13715{
13716
13717 ;
13718 return 0;
13719}
13720_ACEOF
81ecdfbb 13721if ac_fn_c_try_compile "$LINENO"; then :
fee8ec00 13722 WARN_CFLAGS="${WARN_CFLAGS} $w"
fee8ec00 13723fi
81ecdfbb 13724rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fee8ec00
SR
13725 CFLAGS="$saved_CFLAGS"
13726 esac
13727 done
2232061b
MF
13728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
13729$as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
fee8ec00
SR
13730fi
13731
13732
fee8ec00 13733
fee8ec00
SR
13734cgen_breaks=""
13735if grep CGEN_MAINT $srcdir/Makefile.in >/dev/null; then
13736cgen_breaks="break cgen_rtx_error";
13737fi
13738
81ecdfbb 13739ac_config_files="$ac_config_files Makefile.sim:Makefile.in"
fee8ec00 13740
81ecdfbb 13741ac_config_files="$ac_config_files Make-common.sim:../common/Make-common.in"
fee8ec00 13742
81ecdfbb 13743ac_config_files="$ac_config_files .gdbinit:../common/gdbinit.in"
fee8ec00 13744
81ecdfbb 13745ac_config_commands="$ac_config_commands Makefile"
fee8ec00 13746
81ecdfbb 13747ac_config_commands="$ac_config_commands stamp-h"
fee8ec00
SR
13748
13749cat >confcache <<\_ACEOF
13750# This file is a shell script that caches the results of configure
13751# tests run on this system so they can be shared between configure
13752# scripts and configure runs, see configure's option --config-cache.
13753# It is not useful on other systems. If it contains results you don't
13754# want to keep, you may remove or edit it.
13755#
13756# config.status only pays attention to the cache file if you give it
13757# the --recheck option to rerun configure.
13758#
13759# `ac_cv_env_foo' variables (set or unset) will be overridden when
13760# loading this file, other *unset* `ac_cv_foo' will be assigned the
13761# following values.
13762
13763_ACEOF
13764
13765# The following way of writing the cache mishandles newlines in values,
13766# but we know of no workaround that is simple, portable, and efficient.
81ecdfbb 13767# So, we kill variables containing newlines.
fee8ec00
SR
13768# Ultrix sh set writes to stderr and can't be redirected directly,
13769# and sets the high bit in the cache file unless we assign to the vars.
81ecdfbb
RW
13770(
13771 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13772 eval ac_val=\$$ac_var
13773 case $ac_val in #(
13774 *${as_nl}*)
13775 case $ac_var in #(
13776 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13777$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13778 esac
13779 case $ac_var in #(
13780 _ | IFS | as_nl) ;; #(
13781 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13782 *) { eval $ac_var=; unset $ac_var;} ;;
13783 esac ;;
13784 esac
13785 done
13786
fee8ec00 13787 (set) 2>&1 |
81ecdfbb
RW
13788 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13789 *${as_nl}ac_space=\ *)
13790 # `set' does not quote correctly, so add quotes: double-quote
13791 # substitution turns \\\\ into \\, and sed turns \\ into \.
fee8ec00
SR
13792 sed -n \
13793 "s/'/'\\\\''/g;
13794 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
81ecdfbb 13795 ;; #(
fee8ec00
SR
13796 *)
13797 # `set' quotes correctly as required by POSIX, so do not add quotes.
81ecdfbb 13798 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
fee8ec00 13799 ;;
81ecdfbb
RW
13800 esac |
13801 sort
13802) |
fee8ec00 13803 sed '
81ecdfbb 13804 /^ac_cv_env_/b end
fee8ec00 13805 t clear
81ecdfbb 13806 :clear
fee8ec00
SR
13807 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13808 t end
81ecdfbb
RW
13809 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13810 :end' >>confcache
13811if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13812 if test -w "$cache_file"; then
63a9e923 13813 if test "x$cache_file" != "x/dev/null"; then
81ecdfbb
RW
13814 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13815$as_echo "$as_me: updating cache $cache_file" >&6;}
63a9e923
SM
13816 if test ! -f "$cache_file" || test -h "$cache_file"; then
13817 cat confcache >"$cache_file"
13818 else
13819 case $cache_file in #(
13820 */* | ?:*)
13821 mv -f confcache "$cache_file"$$ &&
13822 mv -f "$cache_file"$$ "$cache_file" ;; #(
13823 *)
13824 mv -f confcache "$cache_file" ;;
13825 esac
13826 fi
13827 fi
fee8ec00 13828 else
81ecdfbb
RW
13829 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13830$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
fee8ec00
SR
13831 fi
13832fi
13833rm -f confcache
13834
13835test "x$prefix" = xNONE && prefix=$ac_default_prefix
13836# Let make expand exec_prefix.
13837test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13838
fee8ec00
SR
13839DEFS=-DHAVE_CONFIG_H
13840
13841ac_libobjs=
13842ac_ltlibobjs=
63a9e923 13843U=
fee8ec00
SR
13844for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13845 # 1. Remove the extension, and $U if already installed.
81ecdfbb
RW
13846 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13847 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13848 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13849 # will be set to the directory where LIBOBJS objects are built.
13850 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13851 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
fee8ec00
SR
13852done
13853LIBOBJS=$ac_libobjs
13854
13855LTLIBOBJS=$ac_ltlibobjs
13856
13857
0cb8d851 13858
db2e4d67 13859if test -z "${GMAKE_TRUE}" && test -z "${GMAKE_FALSE}"; then
63a9e923 13860 as_fn_error $? "conditional \"GMAKE\" was never defined.
db2e4d67
MF
13861Usually this means the macro was only invoked conditionally." "$LINENO" 5
13862fi
6bb11ab3 13863if test -z "${PLUGINS_TRUE}" && test -z "${PLUGINS_FALSE}"; then
63a9e923 13864 as_fn_error $? "conditional \"PLUGINS\" was never defined.
6bb11ab3
L
13865Usually this means the macro was only invoked conditionally." "$LINENO" 5
13866fi
31e6ad7d 13867if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
63a9e923 13868 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
31e6ad7d
MF
13869Usually this means the macro was only invoked conditionally." "$LINENO" 5
13870fi
fee8ec00 13871
63a9e923 13872: "${CONFIG_STATUS=./config.status}"
81ecdfbb 13873ac_write_fail=0
fee8ec00
SR
13874ac_clean_files_save=$ac_clean_files
13875ac_clean_files="$ac_clean_files $CONFIG_STATUS"
81ecdfbb
RW
13876{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13877$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13878as_write_fail=0
13879cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
fee8ec00
SR
13880#! $SHELL
13881# Generated by $as_me.
13882# Run this file to recreate the current configuration.
13883# Compiler output produced by configure, useful for debugging
13884# configure, is in config.log if it exists.
13885
13886debug=false
13887ac_cs_recheck=false
13888ac_cs_silent=false
fee8ec00 13889
81ecdfbb
RW
13890SHELL=\${CONFIG_SHELL-$SHELL}
13891export SHELL
13892_ASEOF
13893cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13894## -------------------- ##
13895## M4sh Initialization. ##
13896## -------------------- ##
13897
13898# Be more Bourne compatible
13899DUALCASE=1; export DUALCASE # for MKS sh
13900if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
fee8ec00
SR
13901 emulate sh
13902 NULLCMD=:
81ecdfbb 13903 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
fee8ec00
SR
13904 # is contrary to our usage. Disable this feature.
13905 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
13906 setopt NO_GLOB_SUBST
13907else
13908 case `(set -o) 2>/dev/null` in #(
13909 *posix*) :
13910 set -o posix ;; #(
13911 *) :
13912 ;;
13913esac
fee8ec00 13914fi
fee8ec00 13915
81ecdfbb
RW
13916
13917as_nl='
13918'
13919export as_nl
13920# Printing a long string crashes Solaris 7 /usr/bin/printf.
13921as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13922as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13923as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13924# Prefer a ksh shell builtin over an external printf program on Solaris,
13925# but without wasting forks for bash or zsh.
13926if test -z "$BASH_VERSION$ZSH_VERSION" \
13927 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13928 as_echo='print -r --'
13929 as_echo_n='print -rn --'
13930elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13931 as_echo='printf %s\n'
13932 as_echo_n='printf %s'
13933else
13934 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13935 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13936 as_echo_n='/usr/ucb/echo -n'
13937 else
13938 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13939 as_echo_n_body='eval
13940 arg=$1;
13941 case $arg in #(
13942 *"$as_nl"*)
13943 expr "X$arg" : "X\\(.*\\)$as_nl";
13944 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13945 esac;
13946 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13947 '
13948 export as_echo_n_body
13949 as_echo_n='sh -c $as_echo_n_body as_echo'
13950 fi
13951 export as_echo_body
13952 as_echo='sh -c $as_echo_body as_echo'
13953fi
13954
13955# The user is always right.
13956if test "${PATH_SEPARATOR+set}" != set; then
13957 PATH_SEPARATOR=:
13958 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13959 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13960 PATH_SEPARATOR=';'
13961 }
fee8ec00
SR
13962fi
13963
13964
81ecdfbb
RW
13965# IFS
13966# We need space, tab and new line, in precisely that order. Quoting is
13967# there to prevent editors from complaining about space-tab.
13968# (If _AS_PATH_WALK were called with IFS unset, it would disable word
13969# splitting by setting IFS to empty value.)
13970IFS=" "" $as_nl"
13971
13972# Find who we are. Look in the path if we contain no directory separator.
63a9e923 13973as_myself=
81ecdfbb
RW
13974case $0 in #((
13975 *[\\/]* ) as_myself=$0 ;;
13976 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13977for as_dir in $PATH
13978do
13979 IFS=$as_save_IFS
13980 test -z "$as_dir" && as_dir=.
13981 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13982 done
13983IFS=$as_save_IFS
13984
13985 ;;
13986esac
13987# We did not find ourselves, most probably we were run as `sh COMMAND'
13988# in which case we are not to be found in the path.
13989if test "x$as_myself" = x; then
13990 as_myself=$0
13991fi
13992if test ! -f "$as_myself"; then
13993 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13994 exit 1
13995fi
13996
13997# Unset variables that we do not need and which cause bugs (e.g. in
13998# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13999# suppresses any "Segmentation fault" message there. '((' could
14000# trigger a bug in pdksh 5.2.14.
14001for as_var in BASH_ENV ENV MAIL MAILPATH
14002do eval test x\${$as_var+set} = xset \
14003 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14004done
fee8ec00
SR
14005PS1='$ '
14006PS2='> '
14007PS4='+ '
14008
14009# NLS nuisances.
81ecdfbb
RW
14010LC_ALL=C
14011export LC_ALL
14012LANGUAGE=C
14013export LANGUAGE
14014
14015# CDPATH.
14016(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14017
14018
63a9e923
SM
14019# as_fn_error STATUS ERROR [LINENO LOG_FD]
14020# ----------------------------------------
81ecdfbb
RW
14021# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14022# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
63a9e923 14023# script with STATUS, using 1 if that was 0.
81ecdfbb
RW
14024as_fn_error ()
14025{
63a9e923
SM
14026 as_status=$1; test $as_status -eq 0 && as_status=1
14027 if test "$4"; then
14028 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14029 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
fee8ec00 14030 fi
63a9e923 14031 $as_echo "$as_me: error: $2" >&2
81ecdfbb
RW
14032 as_fn_exit $as_status
14033} # as_fn_error
14034
14035
14036# as_fn_set_status STATUS
14037# -----------------------
14038# Set $? to STATUS, without forking.
14039as_fn_set_status ()
14040{
14041 return $1
14042} # as_fn_set_status
14043
14044# as_fn_exit STATUS
14045# -----------------
14046# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14047as_fn_exit ()
14048{
14049 set +e
14050 as_fn_set_status $1
14051 exit $1
14052} # as_fn_exit
14053
14054# as_fn_unset VAR
14055# ---------------
14056# Portably unset VAR.
14057as_fn_unset ()
14058{
14059 { eval $1=; unset $1;}
14060}
14061as_unset=as_fn_unset
14062# as_fn_append VAR VALUE
14063# ----------------------
14064# Append the text in VALUE to the end of the definition contained in VAR. Take
14065# advantage of any shell optimizations that allow amortized linear growth over
14066# repeated appends, instead of the typical quadratic growth present in naive
14067# implementations.
14068if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14069 eval 'as_fn_append ()
14070 {
14071 eval $1+=\$2
14072 }'
14073else
14074 as_fn_append ()
14075 {
14076 eval $1=\$$1\$2
14077 }
14078fi # as_fn_append
14079
14080# as_fn_arith ARG...
14081# ------------------
14082# Perform arithmetic evaluation on the ARGs, and store the result in the
14083# global $as_val. Take advantage of shells that can avoid forks. The arguments
14084# must be portable across $(()) and expr.
14085if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14086 eval 'as_fn_arith ()
14087 {
14088 as_val=$(( $* ))
14089 }'
14090else
14091 as_fn_arith ()
14092 {
14093 as_val=`expr "$@" || test $? -eq 1`
14094 }
14095fi # as_fn_arith
14096
fee8ec00 14097
81ecdfbb
RW
14098if expr a : '\(a\)' >/dev/null 2>&1 &&
14099 test "X`expr 00001 : '.*\(...\)'`" = X001; then
fee8ec00
SR
14100 as_expr=expr
14101else
14102 as_expr=false
14103fi
14104
81ecdfbb 14105if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
fee8ec00
SR
14106 as_basename=basename
14107else
14108 as_basename=false
14109fi
14110
81ecdfbb
RW
14111if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14112 as_dirname=dirname
14113else
14114 as_dirname=false
14115fi
fee8ec00 14116
81ecdfbb 14117as_me=`$as_basename -- "$0" ||
fee8ec00
SR
14118$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14119 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
14120 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14121$as_echo X/"$0" |
14122 sed '/^.*\/\([^/][^/]*\)\/*$/{
14123 s//\1/
14124 q
14125 }
14126 /^X\/\(\/\/\)$/{
14127 s//\1/
14128 q
14129 }
14130 /^X\/\(\/\).*/{
14131 s//\1/
14132 q
14133 }
14134 s/.*/./; q'`
fee8ec00 14135
fee8ec00
SR
14136# Avoid depending upon Character Ranges.
14137as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14138as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14139as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14140as_cr_digits='0123456789'
14141as_cr_alnum=$as_cr_Letters$as_cr_digits
14142
81ecdfbb
RW
14143ECHO_C= ECHO_N= ECHO_T=
14144case `echo -n x` in #(((((
14145-n*)
14146 case `echo 'xy\c'` in
14147 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14148 xy) ECHO_C='\c';;
14149 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14150 ECHO_T=' ';;
14151 esac;;
14152*)
14153 ECHO_N='-n';;
fee8ec00
SR
14154esac
14155
81ecdfbb
RW
14156rm -f conf$$ conf$$.exe conf$$.file
14157if test -d conf$$.dir; then
14158 rm -f conf$$.dir/conf$$.file
fee8ec00 14159else
81ecdfbb
RW
14160 rm -f conf$$.dir
14161 mkdir conf$$.dir 2>/dev/null
fee8ec00 14162fi
81ecdfbb
RW
14163if (echo >conf$$.file) 2>/dev/null; then
14164 if ln -s conf$$.file conf$$ 2>/dev/null; then
fee8ec00 14165 as_ln_s='ln -s'
81ecdfbb
RW
14166 # ... but there are two gotchas:
14167 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14168 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
63a9e923 14169 # In both cases, we have to default to `cp -pR'.
81ecdfbb 14170 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
63a9e923 14171 as_ln_s='cp -pR'
81ecdfbb
RW
14172 elif ln conf$$.file conf$$ 2>/dev/null; then
14173 as_ln_s=ln
14174 else
63a9e923 14175 as_ln_s='cp -pR'
fee8ec00 14176 fi
fee8ec00 14177else
63a9e923 14178 as_ln_s='cp -pR'
fee8ec00 14179fi
81ecdfbb
RW
14180rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14181rmdir conf$$.dir 2>/dev/null
14182
fee8ec00 14183
81ecdfbb
RW
14184# as_fn_mkdir_p
14185# -------------
14186# Create "$as_dir" as a directory, including parents if necessary.
14187as_fn_mkdir_p ()
14188{
14189
14190 case $as_dir in #(
14191 -*) as_dir=./$as_dir;;
14192 esac
14193 test -d "$as_dir" || eval $as_mkdir_p || {
14194 as_dirs=
14195 while :; do
14196 case $as_dir in #(
14197 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14198 *) as_qdir=$as_dir;;
14199 esac
14200 as_dirs="'$as_qdir' $as_dirs"
14201 as_dir=`$as_dirname -- "$as_dir" ||
14202$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14203 X"$as_dir" : 'X\(//\)[^/]' \| \
14204 X"$as_dir" : 'X\(//\)$' \| \
14205 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14206$as_echo X"$as_dir" |
14207 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14208 s//\1/
14209 q
14210 }
14211 /^X\(\/\/\)[^/].*/{
14212 s//\1/
14213 q
14214 }
14215 /^X\(\/\/\)$/{
14216 s//\1/
14217 q
14218 }
14219 /^X\(\/\).*/{
14220 s//\1/
14221 q
14222 }
14223 s/.*/./; q'`
14224 test -d "$as_dir" && break
14225 done
14226 test -z "$as_dirs" || eval "mkdir $as_dirs"
63a9e923 14227 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
81ecdfbb
RW
14228
14229
14230} # as_fn_mkdir_p
fee8ec00 14231if mkdir -p . 2>/dev/null; then
81ecdfbb 14232 as_mkdir_p='mkdir -p "$as_dir"'
fee8ec00
SR
14233else
14234 test -d ./-p && rmdir ./-p
14235 as_mkdir_p=false
14236fi
14237
63a9e923
SM
14238
14239# as_fn_executable_p FILE
14240# -----------------------
14241# Test if FILE is an executable regular file.
14242as_fn_executable_p ()
14243{
14244 test -f "$1" && test -x "$1"
14245} # as_fn_executable_p
14246as_test_x='test -x'
14247as_executable_p=as_fn_executable_p
fee8ec00
SR
14248
14249# Sed expression to map a string onto a valid CPP name.
14250as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14251
14252# Sed expression to map a string onto a valid variable name.
14253as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14254
14255
fee8ec00 14256exec 6>&1
81ecdfbb
RW
14257## ----------------------------------- ##
14258## Main body of $CONFIG_STATUS script. ##
14259## ----------------------------------- ##
14260_ASEOF
14261test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14262
14263cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14264# Save the log message, to keep $0 and so on meaningful, and to
fee8ec00 14265# report actual input values of CONFIG_FILES etc. instead of their
81ecdfbb
RW
14266# values after options handling.
14267ac_log="
fee8ec00 14268This file was extended by $as_me, which was
63a9e923 14269generated by GNU Autoconf 2.69. Invocation command line was
fee8ec00
SR
14270
14271 CONFIG_FILES = $CONFIG_FILES
14272 CONFIG_HEADERS = $CONFIG_HEADERS
14273 CONFIG_LINKS = $CONFIG_LINKS
14274 CONFIG_COMMANDS = $CONFIG_COMMANDS
14275 $ $0 $@
14276
81ecdfbb
RW
14277on `(hostname || uname -n) 2>/dev/null | sed 1q`
14278"
14279
fee8ec00
SR
14280_ACEOF
14281
81ecdfbb
RW
14282case $ac_config_files in *"
14283"*) set x $ac_config_files; shift; ac_config_files=$*;;
14284esac
fee8ec00 14285
81ecdfbb
RW
14286case $ac_config_headers in *"
14287"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14288esac
fee8ec00 14289
fee8ec00 14290
81ecdfbb
RW
14291cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14292# Files that config.status was made for.
14293config_files="$ac_config_files"
14294config_headers="$ac_config_headers"
81ecdfbb 14295config_commands="$ac_config_commands"
fee8ec00 14296
81ecdfbb 14297_ACEOF
fee8ec00 14298
81ecdfbb 14299cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
fee8ec00 14300ac_cs_usage="\
81ecdfbb
RW
14301\`$as_me' instantiates files and other configuration actions
14302from templates according to the current configuration. Unless the files
14303and actions are specified as TAGs, all are instantiated by default.
fee8ec00 14304
81ecdfbb 14305Usage: $0 [OPTION]... [TAG]...
fee8ec00
SR
14306
14307 -h, --help print this help, then exit
81ecdfbb 14308 -V, --version print version number and configuration settings, then exit
63a9e923 14309 --config print configuration, then exit
81ecdfbb
RW
14310 -q, --quiet, --silent
14311 do not print progress messages
fee8ec00
SR
14312 -d, --debug don't remove temporary files
14313 --recheck update $as_me by reconfiguring in the same conditions
81ecdfbb
RW
14314 --file=FILE[:TEMPLATE]
14315 instantiate the configuration file FILE
14316 --header=FILE[:TEMPLATE]
14317 instantiate the configuration header FILE
fee8ec00
SR
14318
14319Configuration files:
14320$config_files
14321
14322Configuration headers:
14323$config_headers
14324
fee8ec00
SR
14325Configuration commands:
14326$config_commands
14327
81ecdfbb 14328Report bugs to the package provider."
fee8ec00 14329
81ecdfbb
RW
14330_ACEOF
14331cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
63a9e923 14332ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
fee8ec00
SR
14333ac_cs_version="\\
14334config.status
63a9e923
SM
14335configured by $0, generated by GNU Autoconf 2.69,
14336 with options \\"\$ac_cs_config\\"
fee8ec00 14337
63a9e923 14338Copyright (C) 2012 Free Software Foundation, Inc.
fee8ec00
SR
14339This config.status script is free software; the Free Software Foundation
14340gives unlimited permission to copy, distribute and modify it."
81ecdfbb
RW
14341
14342ac_pwd='$ac_pwd'
14343srcdir='$srcdir'
14344INSTALL='$INSTALL'
6bb11ab3 14345AWK='$AWK'
81ecdfbb 14346test -n "\$AWK" || AWK=awk
fee8ec00
SR
14347_ACEOF
14348
81ecdfbb
RW
14349cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14350# The default lists apply if the user does not specify any file.
fee8ec00
SR
14351ac_need_defaults=:
14352while test $# != 0
14353do
14354 case $1 in
63a9e923 14355 --*=?*)
81ecdfbb
RW
14356 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14357 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
fee8ec00
SR
14358 ac_shift=:
14359 ;;
63a9e923
SM
14360 --*=)
14361 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14362 ac_optarg=
14363 ac_shift=:
14364 ;;
81ecdfbb 14365 *)
fee8ec00
SR
14366 ac_option=$1
14367 ac_optarg=$2
14368 ac_shift=shift
14369 ;;
fee8ec00
SR
14370 esac
14371
14372 case $ac_option in
14373 # Handling of the options.
fee8ec00
SR
14374 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14375 ac_cs_recheck=: ;;
81ecdfbb
RW
14376 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14377 $as_echo "$ac_cs_version"; exit ;;
63a9e923
SM
14378 --config | --confi | --conf | --con | --co | --c )
14379 $as_echo "$ac_cs_config"; exit ;;
81ecdfbb 14380 --debug | --debu | --deb | --de | --d | -d )
fee8ec00
SR
14381 debug=: ;;
14382 --file | --fil | --fi | --f )
14383 $ac_shift
81ecdfbb
RW
14384 case $ac_optarg in
14385 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
63a9e923 14386 '') as_fn_error $? "missing file argument" ;;
81ecdfbb
RW
14387 esac
14388 as_fn_append CONFIG_FILES " '$ac_optarg'"
fee8ec00
SR
14389 ac_need_defaults=false;;
14390 --header | --heade | --head | --hea )
14391 $ac_shift
81ecdfbb
RW
14392 case $ac_optarg in
14393 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14394 esac
14395 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
fee8ec00 14396 ac_need_defaults=false;;
81ecdfbb
RW
14397 --he | --h)
14398 # Conflict between --help and --header
63a9e923 14399 as_fn_error $? "ambiguous option: \`$1'
81ecdfbb
RW
14400Try \`$0 --help' for more information.";;
14401 --help | --hel | -h )
14402 $as_echo "$ac_cs_usage"; exit ;;
fee8ec00
SR
14403 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14404 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14405 ac_cs_silent=: ;;
14406
14407 # This is an error.
63a9e923 14408 -*) as_fn_error $? "unrecognized option: \`$1'
81ecdfbb 14409Try \`$0 --help' for more information." ;;
fee8ec00 14410
81ecdfbb
RW
14411 *) as_fn_append ac_config_targets " $1"
14412 ac_need_defaults=false ;;
fee8ec00
SR
14413
14414 esac
14415 shift
14416done
14417
14418ac_configure_extra_args=
14419
14420if $ac_cs_silent; then
14421 exec 6>/dev/null
14422 ac_configure_extra_args="$ac_configure_extra_args --silent"
14423fi
14424
14425_ACEOF
81ecdfbb 14426cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
fee8ec00 14427if \$ac_cs_recheck; then
63a9e923 14428 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
81ecdfbb
RW
14429 shift
14430 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14431 CONFIG_SHELL='$SHELL'
14432 export CONFIG_SHELL
14433 exec "\$@"
fee8ec00
SR
14434fi
14435
14436_ACEOF
81ecdfbb
RW
14437cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14438exec 5>>config.log
14439{
14440 echo
14441 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14442## Running $as_me. ##
14443_ASBOX
14444 $as_echo "$ac_log"
14445} >&5
fee8ec00 14446
81ecdfbb
RW
14447_ACEOF
14448cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
db2e4d67
MF
14449#
14450# INIT-COMMANDS
14451#
14452ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
14453
6bb11ab3
L
14454
14455# The HP-UX ksh and POSIX shell print the target directory to stdout
14456# if CDPATH is set.
14457(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14458
14459sed_quote_subst='$sed_quote_subst'
14460double_quote_subst='$double_quote_subst'
14461delay_variable_subst='$delay_variable_subst'
14462macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14463macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14464enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14465enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14466pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14467enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14468SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14469ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14470host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14471host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14472host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14473build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14474build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14475build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14476SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14477Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14478GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14479EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14480FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14481LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14482NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14483LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14484max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14485ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14486exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14487lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14488lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14489lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14490reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14491reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14492OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14493deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14494file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14495AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14496AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14497STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14498RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14499old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14500old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14501old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14502lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14503CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14504CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14505compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14506GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14507lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14508lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14509lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14510lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
14511objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14512MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14513lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14514lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14515lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14516lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14517lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14518need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14519DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14520NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14521LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14522OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14523OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14524libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14525shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14526extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14527archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14528enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14529export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14530whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14531compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14532old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14533old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14534archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14535archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14536module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14537module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14538with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14539allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14540no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14541hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14542hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
14543hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14544hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14545hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14546hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14547hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14548hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14549inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14550link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14551fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
14552always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14553export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14554exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14555include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14556prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14557file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14558variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14559need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14560need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14561version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14562runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14563shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14564shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14565libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14566library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14567soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14568install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14569postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14570postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14571finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14572finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14573hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14574sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14575sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
14576hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14577enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14578enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14579enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14580old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14581striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14582
14583LTCC='$LTCC'
14584LTCFLAGS='$LTCFLAGS'
14585compiler='$compiler_DEFAULT'
14586
14587# A function that is used when there is no print builtin or printf.
14588func_fallback_echo ()
14589{
14590 eval 'cat <<_LTECHO_EOF
14591\$1
14592_LTECHO_EOF'
14593}
14594
14595# Quote evaled strings.
14596for var in SHELL \
14597ECHO \
14598SED \
14599GREP \
14600EGREP \
14601FGREP \
14602LD \
14603NM \
14604LN_S \
14605lt_SP2NL \
14606lt_NL2SP \
14607reload_flag \
14608OBJDUMP \
14609deplibs_check_method \
14610file_magic_cmd \
14611AR \
14612AR_FLAGS \
14613STRIP \
14614RANLIB \
14615CC \
14616CFLAGS \
14617compiler \
14618lt_cv_sys_global_symbol_pipe \
14619lt_cv_sys_global_symbol_to_cdecl \
14620lt_cv_sys_global_symbol_to_c_name_address \
14621lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14622lt_prog_compiler_no_builtin_flag \
14623lt_prog_compiler_wl \
14624lt_prog_compiler_pic \
14625lt_prog_compiler_static \
14626lt_cv_prog_compiler_c_o \
14627need_locks \
14628DSYMUTIL \
14629NMEDIT \
14630LIPO \
14631OTOOL \
14632OTOOL64 \
14633shrext_cmds \
14634export_dynamic_flag_spec \
14635whole_archive_flag_spec \
14636compiler_needs_object \
14637with_gnu_ld \
14638allow_undefined_flag \
14639no_undefined_flag \
14640hardcode_libdir_flag_spec \
14641hardcode_libdir_flag_spec_ld \
14642hardcode_libdir_separator \
14643fix_srcfile_path \
14644exclude_expsyms \
14645include_expsyms \
14646file_list_spec \
14647variables_saved_for_relink \
14648libname_spec \
14649library_names_spec \
14650soname_spec \
14651install_override_mode \
14652finish_eval \
14653old_striplib \
14654striplib; do
14655 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14656 *[\\\\\\\`\\"\\\$]*)
14657 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14658 ;;
14659 *)
14660 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14661 ;;
14662 esac
14663done
14664
14665# Double-quote double-evaled strings.
14666for var in reload_cmds \
14667old_postinstall_cmds \
14668old_postuninstall_cmds \
14669old_archive_cmds \
14670extract_expsyms_cmds \
14671old_archive_from_new_cmds \
14672old_archive_from_expsyms_cmds \
14673archive_cmds \
14674archive_expsym_cmds \
14675module_cmds \
14676module_expsym_cmds \
14677export_symbols_cmds \
14678prelink_cmds \
14679postinstall_cmds \
14680postuninstall_cmds \
14681finish_cmds \
14682sys_lib_search_path_spec \
14683sys_lib_dlsearch_path_spec; do
14684 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14685 *[\\\\\\\`\\"\\\$]*)
14686 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14687 ;;
14688 *)
14689 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14690 ;;
14691 esac
14692done
14693
14694ac_aux_dir='$ac_aux_dir'
14695xsi_shell='$xsi_shell'
14696lt_shell_append='$lt_shell_append'
14697
14698# See if we are running on zsh, and set the options which allow our
14699# commands through without removal of \ escapes INIT.
14700if test -n "\${ZSH_VERSION+set}" ; then
14701 setopt NO_GLOB_SUBST
14702fi
14703
14704
14705 PACKAGE='$PACKAGE'
14706 VERSION='$VERSION'
14707 TIMESTAMP='$TIMESTAMP'
14708 RM='$RM'
14709 ofile='$ofile'
14710
14711
14712
14713
81ecdfbb 14714_ACEOF
fee8ec00 14715
81ecdfbb 14716cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
fee8ec00 14717
81ecdfbb 14718# Handling of arguments.
fee8ec00
SR
14719for ac_config_target in $ac_config_targets
14720do
81ecdfbb
RW
14721 case $ac_config_target in
14722 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
db2e4d67 14723 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
6bb11ab3 14724 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
81ecdfbb
RW
14725 "Makefile.sim") CONFIG_FILES="$CONFIG_FILES Makefile.sim:Makefile.in" ;;
14726 "Make-common.sim") CONFIG_FILES="$CONFIG_FILES Make-common.sim:../common/Make-common.in" ;;
14727 ".gdbinit") CONFIG_FILES="$CONFIG_FILES .gdbinit:../common/gdbinit.in" ;;
14728 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
14729 "stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS stamp-h" ;;
14730
63a9e923 14731 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
fee8ec00
SR
14732 esac
14733done
14734
81ecdfbb 14735
fee8ec00
SR
14736# If the user did not use the arguments to specify the items to instantiate,
14737# then the envvar interface is used. Set only those that are not.
14738# We use the long form for the default assignment because of an extremely
14739# bizarre bug on SunOS 4.1.3.
14740if $ac_need_defaults; then
14741 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14742 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
fee8ec00
SR
14743 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14744fi
14745
14746# Have a temporary directory for convenience. Make it in the build tree
81ecdfbb 14747# simply because there is no reason against having it here, and in addition,
fee8ec00 14748# creating and moving files from /tmp can sometimes cause problems.
81ecdfbb
RW
14749# Hook for its removal unless debugging.
14750# Note that there is a small window in which the directory will not be cleaned:
14751# after its creation but before its name has been assigned to `$tmp'.
fee8ec00
SR
14752$debug ||
14753{
63a9e923 14754 tmp= ac_tmp=
81ecdfbb 14755 trap 'exit_status=$?
63a9e923
SM
14756 : "${ac_tmp:=$tmp}"
14757 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
81ecdfbb
RW
14758' 0
14759 trap 'as_fn_exit 1' 1 2 13 15
fee8ec00 14760}
fee8ec00
SR
14761# Create a (secure) tmp directory for tmp files.
14762
14763{
81ecdfbb 14764 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
63a9e923 14765 test -d "$tmp"
fee8ec00
SR
14766} ||
14767{
81ecdfbb
RW
14768 tmp=./conf$$-$RANDOM
14769 (umask 077 && mkdir "$tmp")
63a9e923
SM
14770} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14771ac_tmp=$tmp
fee8ec00 14772
81ecdfbb
RW
14773# Set up the scripts for CONFIG_FILES section.
14774# No need to generate them if there are no CONFIG_FILES.
14775# This happens for instance with `./config.status config.h'.
14776if test -n "$CONFIG_FILES"; then
fee8ec00 14777
fee8ec00 14778
81ecdfbb
RW
14779ac_cr=`echo X | tr X '\015'`
14780# On cygwin, bash can eat \r inside `` if the user requested igncr.
14781# But we know of no other shell where ac_cr would be empty at this
14782# point, so we can use a bashism as a fallback.
14783if test "x$ac_cr" = x; then
14784 eval ac_cr=\$\'\\r\'
14785fi
14786ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14787if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
63a9e923 14788 ac_cs_awk_cr='\\r'
81ecdfbb
RW
14789else
14790 ac_cs_awk_cr=$ac_cr
14791fi
fee8ec00 14792
63a9e923 14793echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
fee8ec00
SR
14794_ACEOF
14795
81ecdfbb
RW
14796
14797{
14798 echo "cat >conf$$subs.awk <<_ACEOF" &&
14799 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14800 echo "_ACEOF"
14801} >conf$$subs.sh ||
63a9e923
SM
14802 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14803ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
81ecdfbb
RW
14804ac_delim='%!_!# '
14805for ac_last_try in false false false false false :; do
14806 . ./conf$$subs.sh ||
63a9e923 14807 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
81ecdfbb
RW
14808
14809 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14810 if test $ac_delim_n = $ac_delim_num; then
14811 break
14812 elif $ac_last_try; then
63a9e923 14813 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
81ecdfbb
RW
14814 else
14815 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
fee8ec00 14816 fi
81ecdfbb
RW
14817done
14818rm -f conf$$subs.sh
fee8ec00 14819
81ecdfbb 14820cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
63a9e923 14821cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
fee8ec00 14822_ACEOF
81ecdfbb
RW
14823sed -n '
14824h
14825s/^/S["/; s/!.*/"]=/
14826p
14827g
14828s/^[^!]*!//
14829:repl
14830t repl
14831s/'"$ac_delim"'$//
14832t delim
14833:nl
14834h
63a9e923 14835s/\(.\{148\}\)..*/\1/
81ecdfbb
RW
14836t more1
14837s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14838p
14839n
14840b repl
14841:more1
14842s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14843p
14844g
14845s/.\{148\}//
14846t nl
14847:delim
14848h
63a9e923 14849s/\(.\{148\}\)..*/\1/
81ecdfbb
RW
14850t more2
14851s/["\\]/\\&/g; s/^/"/; s/$/"/
14852p
14853b
14854:more2
14855s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14856p
14857g
14858s/.\{148\}//
14859t delim
14860' <conf$$subs.awk | sed '
14861/^[^""]/{
14862 N
14863 s/\n//
14864}
14865' >>$CONFIG_STATUS || ac_write_fail=1
14866rm -f conf$$subs.awk
14867cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14868_ACAWK
63a9e923 14869cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
81ecdfbb
RW
14870 for (key in S) S_is_set[key] = 1
14871 FS = "\a"
fee8ec00 14872
81ecdfbb
RW
14873}
14874{
14875 line = $ 0
14876 nfields = split(line, field, "@")
14877 substed = 0
14878 len = length(field[1])
14879 for (i = 2; i < nfields; i++) {
14880 key = field[i]
14881 keylen = length(key)
14882 if (S_is_set[key]) {
14883 value = S[key]
14884 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14885 len += length(value) + length(field[++i])
14886 substed = 1
14887 } else
14888 len += 1 + keylen
14889 }
14890
14891 print line
14892}
fee8ec00 14893
81ecdfbb
RW
14894_ACAWK
14895_ACEOF
14896cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14897if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14898 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
fee8ec00 14899else
81ecdfbb 14900 cat
63a9e923
SM
14901fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14902 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
81ecdfbb 14903_ACEOF
fee8ec00 14904
63a9e923
SM
14905# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14906# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
81ecdfbb
RW
14907# trailing colons and then remove the whole line if VPATH becomes empty
14908# (actually we leave an empty line to preserve line numbers).
14909if test "x$srcdir" = x.; then
63a9e923
SM
14910 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
14911h
14912s///
14913s/^/:/
14914s/[ ]*$/:/
14915s/:\$(srcdir):/:/g
14916s/:\${srcdir}:/:/g
14917s/:@srcdir@:/:/g
14918s/^:*//
81ecdfbb 14919s/:*$//
63a9e923
SM
14920x
14921s/\(=[ ]*\).*/\1/
14922G
14923s/\n//
81ecdfbb
RW
14924s/^[^=]*=[ ]*$//
14925}'
14926fi
fee8ec00 14927
81ecdfbb
RW
14928cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14929fi # test -n "$CONFIG_FILES"
fee8ec00 14930
81ecdfbb
RW
14931# Set up the scripts for CONFIG_HEADERS section.
14932# No need to generate them if there are no CONFIG_HEADERS.
14933# This happens for instance with `./config.status Makefile'.
14934if test -n "$CONFIG_HEADERS"; then
63a9e923 14935cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
81ecdfbb
RW
14936BEGIN {
14937_ACEOF
fee8ec00 14938
81ecdfbb
RW
14939# Transform confdefs.h into an awk script `defines.awk', embedded as
14940# here-document in config.status, that substitutes the proper values into
14941# config.h.in to produce config.h.
fee8ec00 14942
81ecdfbb
RW
14943# Create a delimiter string that does not exist in confdefs.h, to ease
14944# handling of long lines.
14945ac_delim='%!_!# '
14946for ac_last_try in false false :; do
63a9e923
SM
14947 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14948 if test -z "$ac_tt"; then
81ecdfbb
RW
14949 break
14950 elif $ac_last_try; then
63a9e923 14951 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
fee8ec00 14952 else
81ecdfbb 14953 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
fee8ec00 14954 fi
fee8ec00 14955done
81ecdfbb
RW
14956
14957# For the awk script, D is an array of macro values keyed by name,
14958# likewise P contains macro parameters if any. Preserve backslash
14959# newline sequences.
14960
14961ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14962sed -n '
14963s/.\{148\}/&'"$ac_delim"'/g
14964t rset
14965:rset
14966s/^[ ]*#[ ]*define[ ][ ]*/ /
14967t def
14968d
14969:def
14970s/\\$//
14971t bsnl
14972s/["\\]/\\&/g
14973s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14974D["\1"]=" \3"/p
14975s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14976d
14977:bsnl
14978s/["\\]/\\&/g
14979s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14980D["\1"]=" \3\\\\\\n"\\/p
14981t cont
14982s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14983t cont
14984d
14985:cont
14986n
14987s/.\{148\}/&'"$ac_delim"'/g
14988t clear
14989:clear
14990s/\\$//
14991t bsnlc
14992s/["\\]/\\&/g; s/^/"/; s/$/"/p
14993d
14994:bsnlc
14995s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14996b cont
14997' <confdefs.h | sed '
14998s/'"$ac_delim"'/"\\\
14999"/g' >>$CONFIG_STATUS || ac_write_fail=1
15000
15001cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15002 for (key in D) D_is_set[key] = 1
15003 FS = "\a"
15004}
15005/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15006 line = \$ 0
15007 split(line, arg, " ")
15008 if (arg[1] == "#") {
15009 defundef = arg[2]
15010 mac1 = arg[3]
15011 } else {
15012 defundef = substr(arg[1], 2)
15013 mac1 = arg[2]
15014 }
15015 split(mac1, mac2, "(") #)
15016 macro = mac2[1]
15017 prefix = substr(line, 1, index(line, defundef) - 1)
15018 if (D_is_set[macro]) {
15019 # Preserve the white space surrounding the "#".
15020 print prefix "define", macro P[macro] D[macro]
15021 next
15022 } else {
15023 # Replace #undef with comments. This is necessary, for example,
15024 # in the case of _POSIX_SOURCE, which is predefined and required
15025 # on some systems where configure will not decide to define it.
15026 if (defundef == "undef") {
15027 print "/*", prefix defundef, macro, "*/"
15028 next
15029 }
15030 }
15031}
15032{ print }
15033_ACAWK
fee8ec00 15034_ACEOF
81ecdfbb 15035cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
63a9e923 15036 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
81ecdfbb 15037fi # test -n "$CONFIG_HEADERS"
fee8ec00 15038
fee8ec00 15039
99d8e879 15040eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
81ecdfbb
RW
15041shift
15042for ac_tag
15043do
15044 case $ac_tag in
15045 :[FHLC]) ac_mode=$ac_tag; continue;;
15046 esac
15047 case $ac_mode$ac_tag in
15048 :[FHL]*:*);;
63a9e923 15049 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
81ecdfbb
RW
15050 :[FH]-) ac_tag=-:-;;
15051 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
fee8ec00 15052 esac
81ecdfbb
RW
15053 ac_save_IFS=$IFS
15054 IFS=:
15055 set x $ac_tag
15056 IFS=$ac_save_IFS
15057 shift
15058 ac_file=$1
15059 shift
fee8ec00 15060
81ecdfbb
RW
15061 case $ac_mode in
15062 :L) ac_source=$1;;
15063 :[FH])
15064 ac_file_inputs=
15065 for ac_f
15066 do
15067 case $ac_f in
63a9e923 15068 -) ac_f="$ac_tmp/stdin";;
81ecdfbb
RW
15069 *) # Look for the file first in the build tree, then in the source tree
15070 # (if the path is not absolute). The absolute path cannot be DOS-style,
15071 # because $ac_f cannot contain `:'.
15072 test -f "$ac_f" ||
15073 case $ac_f in
15074 [\\/$]*) false;;
15075 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15076 esac ||
63a9e923 15077 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
fee8ec00 15078 esac
81ecdfbb
RW
15079 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15080 as_fn_append ac_file_inputs " '$ac_f'"
15081 done
fee8ec00 15082
81ecdfbb
RW
15083 # Let's still pretend it is `configure' which instantiates (i.e., don't
15084 # use $as_me), people would be surprised to read:
15085 # /* config.h. Generated by config.status. */
15086 configure_input='Generated from '`
15087 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15088 `' by configure.'
15089 if test x"$ac_file" != x-; then
15090 configure_input="$ac_file. $configure_input"
15091 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15092$as_echo "$as_me: creating $ac_file" >&6;}
15093 fi
15094 # Neutralize special characters interpreted by sed in replacement strings.
15095 case $configure_input in #(
15096 *\&* | *\|* | *\\* )
15097 ac_sed_conf_input=`$as_echo "$configure_input" |
15098 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15099 *) ac_sed_conf_input=$configure_input;;
15100 esac
fee8ec00 15101
81ecdfbb 15102 case $ac_tag in
63a9e923
SM
15103 *:-:* | *:-) cat >"$ac_tmp/stdin" \
15104 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
81ecdfbb
RW
15105 esac
15106 ;;
15107 esac
fee8ec00 15108
81ecdfbb 15109 ac_dir=`$as_dirname -- "$ac_file" ||
fee8ec00
SR
15110$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15111 X"$ac_file" : 'X\(//\)[^/]' \| \
15112 X"$ac_file" : 'X\(//\)$' \| \
81ecdfbb
RW
15113 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15114$as_echo X"$ac_file" |
15115 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15116 s//\1/
15117 q
15118 }
15119 /^X\(\/\/\)[^/].*/{
15120 s//\1/
15121 q
15122 }
15123 /^X\(\/\/\)$/{
15124 s//\1/
15125 q
15126 }
15127 /^X\(\/\).*/{
15128 s//\1/
15129 q
15130 }
15131 s/.*/./; q'`
15132 as_dir="$ac_dir"; as_fn_mkdir_p
fee8ec00
SR
15133 ac_builddir=.
15134
81ecdfbb
RW
15135case "$ac_dir" in
15136.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15137*)
15138 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15139 # A ".." for each directory in $ac_dir_suffix.
15140 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15141 case $ac_top_builddir_sub in
15142 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15143 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15144 esac ;;
15145esac
15146ac_abs_top_builddir=$ac_pwd
15147ac_abs_builddir=$ac_pwd$ac_dir_suffix
15148# for backward compatibility:
15149ac_top_builddir=$ac_top_build_prefix
fee8ec00
SR
15150
15151case $srcdir in
81ecdfbb 15152 .) # We are building in place.
fee8ec00 15153 ac_srcdir=.
81ecdfbb
RW
15154 ac_top_srcdir=$ac_top_builddir_sub
15155 ac_abs_top_srcdir=$ac_pwd ;;
15156 [\\/]* | ?:[\\/]* ) # Absolute name.
fee8ec00 15157 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
15158 ac_top_srcdir=$srcdir
15159 ac_abs_top_srcdir=$srcdir ;;
15160 *) # Relative name.
15161 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15162 ac_top_srcdir=$ac_top_build_prefix$srcdir
15163 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
fee8ec00 15164esac
81ecdfbb 15165ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
fee8ec00 15166
fee8ec00 15167
81ecdfbb
RW
15168 case $ac_mode in
15169 :F)
15170 #
15171 # CONFIG_FILE
15172 #
fee8ec00 15173
81ecdfbb
RW
15174 case $INSTALL in
15175 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15176 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
fee8ec00 15177 esac
81ecdfbb 15178_ACEOF
fee8ec00 15179
81ecdfbb
RW
15180cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15181# If the template does not know about datarootdir, expand it.
15182# FIXME: This hack should be removed a few years after 2.60.
15183ac_datarootdir_hack=; ac_datarootdir_seen=
15184ac_sed_dataroot='
15185/datarootdir/ {
15186 p
15187 q
15188}
15189/@datadir@/p
15190/@docdir@/p
15191/@infodir@/p
15192/@localedir@/p
15193/@mandir@/p'
15194case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15195*datarootdir*) ac_datarootdir_seen=yes;;
15196*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15197 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15198$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15199_ACEOF
15200cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15201 ac_datarootdir_hack='
15202 s&@datadir@&$datadir&g
15203 s&@docdir@&$docdir&g
15204 s&@infodir@&$infodir&g
15205 s&@localedir@&$localedir&g
15206 s&@mandir@&$mandir&g
15207 s&\\\${datarootdir}&$datarootdir&g' ;;
15208esac
fee8ec00 15209_ACEOF
fee8ec00 15210
81ecdfbb
RW
15211# Neutralize VPATH when `$srcdir' = `.'.
15212# Shell code in configure.ac might set extrasub.
15213# FIXME: do we really want to maintain this feature?
15214cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15215ac_sed_extra="$ac_vpsub
15216$extrasub
15217_ACEOF
15218cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15219:t
15220/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15221s|@configure_input@|$ac_sed_conf_input|;t t
15222s&@top_builddir@&$ac_top_builddir_sub&;t t
15223s&@top_build_prefix@&$ac_top_build_prefix&;t t
15224s&@srcdir@&$ac_srcdir&;t t
15225s&@abs_srcdir@&$ac_abs_srcdir&;t t
15226s&@top_srcdir@&$ac_top_srcdir&;t t
15227s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15228s&@builddir@&$ac_builddir&;t t
15229s&@abs_builddir@&$ac_abs_builddir&;t t
15230s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15231s&@INSTALL@&$ac_INSTALL&;t t
15232$ac_datarootdir_hack
15233"
63a9e923
SM
15234eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15235 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
81ecdfbb
RW
15236
15237test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
63a9e923
SM
15238 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15239 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
15240 "$ac_tmp/out"`; test -z "$ac_out"; } &&
81ecdfbb 15241 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
63a9e923 15242which seems to be undefined. Please make sure it is defined" >&5
81ecdfbb 15243$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
63a9e923 15244which seems to be undefined. Please make sure it is defined" >&2;}
81ecdfbb 15245
63a9e923 15246 rm -f "$ac_tmp/stdin"
81ecdfbb 15247 case $ac_file in
63a9e923
SM
15248 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15249 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
81ecdfbb 15250 esac \
63a9e923 15251 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
81ecdfbb
RW
15252 ;;
15253 :H)
15254 #
15255 # CONFIG_HEADER
15256 #
15257 if test x"$ac_file" != x-; then
15258 {
15259 $as_echo "/* $configure_input */" \
63a9e923
SM
15260 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15261 } >"$ac_tmp/config.h" \
15262 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15263 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
81ecdfbb
RW
15264 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15265$as_echo "$as_me: $ac_file is unchanged" >&6;}
15266 else
15267 rm -f "$ac_file"
63a9e923
SM
15268 mv "$ac_tmp/config.h" "$ac_file" \
15269 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
81ecdfbb 15270 fi
fee8ec00 15271 else
81ecdfbb 15272 $as_echo "/* $configure_input */" \
63a9e923
SM
15273 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15274 || as_fn_error $? "could not create -" "$LINENO" 5
81ecdfbb
RW
15275 fi
15276 ;;
fee8ec00 15277
81ecdfbb
RW
15278 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15279$as_echo "$as_me: executing $ac_file commands" >&6;}
15280 ;;
15281 esac
fee8ec00
SR
15282
15283
81ecdfbb 15284 case $ac_file$ac_mode in
db2e4d67 15285 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
6bb11ab3
L
15286 "libtool":C)
15287
15288 # See if we are running on zsh, and set the options which allow our
15289 # commands through without removal of \ escapes.
15290 if test -n "${ZSH_VERSION+set}" ; then
15291 setopt NO_GLOB_SUBST
15292 fi
15293
15294 cfgfile="${ofile}T"
15295 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15296 $RM "$cfgfile"
15297
15298 cat <<_LT_EOF >> "$cfgfile"
15299#! $SHELL
15300
15301# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15302# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15303# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15304# NOTE: Changes made to this file will be lost: look at ltmain.sh.
15305#
15306# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15307# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
15308# Written by Gordon Matzigkeit, 1996
15309#
15310# This file is part of GNU Libtool.
15311#
15312# GNU Libtool is free software; you can redistribute it and/or
15313# modify it under the terms of the GNU General Public License as
15314# published by the Free Software Foundation; either version 2 of
15315# the License, or (at your option) any later version.
15316#
15317# As a special exception to the GNU General Public License,
15318# if you distribute this file as part of a program or library that
15319# is built using GNU Libtool, you may include this file under the
15320# same distribution terms that you use for the rest of that program.
15321#
15322# GNU Libtool is distributed in the hope that it will be useful,
15323# but WITHOUT ANY WARRANTY; without even the implied warranty of
15324# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15325# GNU General Public License for more details.
15326#
15327# You should have received a copy of the GNU General Public License
15328# along with GNU Libtool; see the file COPYING. If not, a copy
15329# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15330# obtained by writing to the Free Software Foundation, Inc.,
15331# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15332
15333
15334# The names of the tagged configurations supported by this script.
15335available_tags=""
15336
15337# ### BEGIN LIBTOOL CONFIG
15338
15339# Which release of libtool.m4 was used?
15340macro_version=$macro_version
15341macro_revision=$macro_revision
15342
15343# Whether or not to build shared libraries.
15344build_libtool_libs=$enable_shared
15345
15346# Whether or not to build static libraries.
15347build_old_libs=$enable_static
15348
15349# What type of objects to build.
15350pic_mode=$pic_mode
15351
15352# Whether or not to optimize for fast installation.
15353fast_install=$enable_fast_install
15354
15355# Shell to use when invoking shell scripts.
15356SHELL=$lt_SHELL
15357
15358# An echo program that protects backslashes.
15359ECHO=$lt_ECHO
15360
15361# The host system.
15362host_alias=$host_alias
15363host=$host
15364host_os=$host_os
15365
15366# The build system.
15367build_alias=$build_alias
15368build=$build
15369build_os=$build_os
15370
15371# A sed program that does not truncate output.
15372SED=$lt_SED
15373
15374# Sed that helps us avoid accidentally triggering echo(1) options like -n.
15375Xsed="\$SED -e 1s/^X//"
15376
15377# A grep program that handles long lines.
15378GREP=$lt_GREP
15379
15380# An ERE matcher.
15381EGREP=$lt_EGREP
15382
15383# A literal string matcher.
15384FGREP=$lt_FGREP
15385
15386# A BSD- or MS-compatible name lister.
15387NM=$lt_NM
15388
15389# Whether we need soft or hard links.
15390LN_S=$lt_LN_S
15391
15392# What is the maximum length of a command?
15393max_cmd_len=$max_cmd_len
15394
15395# Object file suffix (normally "o").
15396objext=$ac_objext
15397
15398# Executable file suffix (normally "").
15399exeext=$exeext
15400
15401# whether the shell understands "unset".
15402lt_unset=$lt_unset
15403
15404# turn spaces into newlines.
15405SP2NL=$lt_lt_SP2NL
15406
15407# turn newlines into spaces.
15408NL2SP=$lt_lt_NL2SP
15409
15410# An object symbol dumper.
15411OBJDUMP=$lt_OBJDUMP
15412
15413# Method to check whether dependent libraries are shared objects.
15414deplibs_check_method=$lt_deplibs_check_method
15415
15416# Command to use when deplibs_check_method == "file_magic".
15417file_magic_cmd=$lt_file_magic_cmd
15418
15419# The archiver.
15420AR=$lt_AR
15421AR_FLAGS=$lt_AR_FLAGS
15422
15423# A symbol stripping program.
15424STRIP=$lt_STRIP
15425
15426# Commands used to install an old-style archive.
15427RANLIB=$lt_RANLIB
15428old_postinstall_cmds=$lt_old_postinstall_cmds
15429old_postuninstall_cmds=$lt_old_postuninstall_cmds
15430
15431# Whether to use a lock for old archive extraction.
15432lock_old_archive_extraction=$lock_old_archive_extraction
15433
15434# A C compiler.
15435LTCC=$lt_CC
15436
15437# LTCC compiler flags.
15438LTCFLAGS=$lt_CFLAGS
15439
15440# Take the output of nm and produce a listing of raw symbols and C names.
15441global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15442
15443# Transform the output of nm in a proper C declaration.
15444global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15445
15446# Transform the output of nm in a C name address pair.
15447global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15448
15449# Transform the output of nm in a C name address pair when lib prefix is needed.
15450global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15451
15452# The name of the directory that contains temporary libtool files.
15453objdir=$objdir
15454
15455# Used to examine libraries when file_magic_cmd begins with "file".
15456MAGIC_CMD=$MAGIC_CMD
15457
15458# Must we lock files when doing compilation?
15459need_locks=$lt_need_locks
15460
15461# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15462DSYMUTIL=$lt_DSYMUTIL
15463
15464# Tool to change global to local symbols on Mac OS X.
15465NMEDIT=$lt_NMEDIT
15466
15467# Tool to manipulate fat objects and archives on Mac OS X.
15468LIPO=$lt_LIPO
15469
15470# ldd/readelf like tool for Mach-O binaries on Mac OS X.
15471OTOOL=$lt_OTOOL
15472
15473# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15474OTOOL64=$lt_OTOOL64
15475
15476# Old archive suffix (normally "a").
15477libext=$libext
15478
15479# Shared library suffix (normally ".so").
15480shrext_cmds=$lt_shrext_cmds
15481
15482# The commands to extract the exported symbol list from a shared archive.
15483extract_expsyms_cmds=$lt_extract_expsyms_cmds
15484
15485# Variables whose values should be saved in libtool wrapper scripts and
15486# restored at link time.
15487variables_saved_for_relink=$lt_variables_saved_for_relink
15488
15489# Do we need the "lib" prefix for modules?
15490need_lib_prefix=$need_lib_prefix
15491
15492# Do we need a version for libraries?
15493need_version=$need_version
15494
15495# Library versioning type.
15496version_type=$version_type
15497
15498# Shared library runtime path variable.
15499runpath_var=$runpath_var
15500
15501# Shared library path variable.
15502shlibpath_var=$shlibpath_var
15503
15504# Is shlibpath searched before the hard-coded library search path?
15505shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15506
15507# Format of library name prefix.
15508libname_spec=$lt_libname_spec
15509
15510# List of archive names. First name is the real one, the rest are links.
15511# The last name is the one that the linker finds with -lNAME
15512library_names_spec=$lt_library_names_spec
15513
15514# The coded name of the library, if different from the real name.
15515soname_spec=$lt_soname_spec
15516
15517# Permission mode override for installation of shared libraries.
15518install_override_mode=$lt_install_override_mode
15519
15520# Command to use after installation of a shared archive.
15521postinstall_cmds=$lt_postinstall_cmds
15522
15523# Command to use after uninstallation of a shared archive.
15524postuninstall_cmds=$lt_postuninstall_cmds
15525
15526# Commands used to finish a libtool library installation in a directory.
15527finish_cmds=$lt_finish_cmds
15528
15529# As "finish_cmds", except a single script fragment to be evaled but
15530# not shown.
15531finish_eval=$lt_finish_eval
15532
15533# Whether we should hardcode library paths into libraries.
15534hardcode_into_libs=$hardcode_into_libs
15535
15536# Compile-time system search path for libraries.
15537sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15538
15539# Run-time system search path for libraries.
15540sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15541
15542# Whether dlopen is supported.
15543dlopen_support=$enable_dlopen
15544
15545# Whether dlopen of programs is supported.
15546dlopen_self=$enable_dlopen_self
15547
15548# Whether dlopen of statically linked programs is supported.
15549dlopen_self_static=$enable_dlopen_self_static
15550
15551# Commands to strip libraries.
15552old_striplib=$lt_old_striplib
15553striplib=$lt_striplib
15554
15555
15556# The linker used to build libraries.
15557LD=$lt_LD
15558
15559# How to create reloadable object files.
15560reload_flag=$lt_reload_flag
15561reload_cmds=$lt_reload_cmds
15562
15563# Commands used to build an old-style archive.
15564old_archive_cmds=$lt_old_archive_cmds
15565
15566# A language specific compiler.
15567CC=$lt_compiler
15568
15569# Is the compiler the GNU compiler?
15570with_gcc=$GCC
15571
15572# Compiler flag to turn off builtin functions.
15573no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15574
15575# How to pass a linker flag through the compiler.
15576wl=$lt_lt_prog_compiler_wl
15577
15578# Additional compiler flags for building library objects.
15579pic_flag=$lt_lt_prog_compiler_pic
15580
15581# Compiler flag to prevent dynamic linking.
15582link_static_flag=$lt_lt_prog_compiler_static
15583
15584# Does compiler simultaneously support -c and -o options?
15585compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15586
15587# Whether or not to add -lc for building shared libraries.
15588build_libtool_need_lc=$archive_cmds_need_lc
15589
15590# Whether or not to disallow shared libs when runtime libs are static.
15591allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15592
15593# Compiler flag to allow reflexive dlopens.
15594export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15595
15596# Compiler flag to generate shared objects directly from archives.
15597whole_archive_flag_spec=$lt_whole_archive_flag_spec
15598
15599# Whether the compiler copes with passing no objects directly.
15600compiler_needs_object=$lt_compiler_needs_object
15601
15602# Create an old-style archive from a shared archive.
15603old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15604
15605# Create a temporary old-style archive to link instead of a shared archive.
15606old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15607
15608# Commands used to build a shared archive.
15609archive_cmds=$lt_archive_cmds
15610archive_expsym_cmds=$lt_archive_expsym_cmds
15611
15612# Commands used to build a loadable module if different from building
15613# a shared archive.
15614module_cmds=$lt_module_cmds
15615module_expsym_cmds=$lt_module_expsym_cmds
15616
15617# Whether we are building with GNU ld or not.
15618with_gnu_ld=$lt_with_gnu_ld
15619
15620# Flag that allows shared libraries with undefined symbols to be built.
15621allow_undefined_flag=$lt_allow_undefined_flag
15622
15623# Flag that enforces no undefined symbols.
15624no_undefined_flag=$lt_no_undefined_flag
15625
15626# Flag to hardcode \$libdir into a binary during linking.
15627# This must work even if \$libdir does not exist
15628hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15629
15630# If ld is used when linking, flag to hardcode \$libdir into a binary
15631# during linking. This must work even if \$libdir does not exist.
15632hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15633
15634# Whether we need a single "-rpath" flag with a separated argument.
15635hardcode_libdir_separator=$lt_hardcode_libdir_separator
15636
15637# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15638# DIR into the resulting binary.
15639hardcode_direct=$hardcode_direct
15640
15641# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15642# DIR into the resulting binary and the resulting library dependency is
15643# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15644# library is relocated.
15645hardcode_direct_absolute=$hardcode_direct_absolute
15646
15647# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15648# into the resulting binary.
15649hardcode_minus_L=$hardcode_minus_L
15650
15651# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15652# into the resulting binary.
15653hardcode_shlibpath_var=$hardcode_shlibpath_var
15654
15655# Set to "yes" if building a shared library automatically hardcodes DIR
15656# into the library and all subsequent libraries and executables linked
15657# against it.
15658hardcode_automatic=$hardcode_automatic
15659
15660# Set to yes if linker adds runtime paths of dependent libraries
15661# to runtime path list.
15662inherit_rpath=$inherit_rpath
15663
15664# Whether libtool must link a program against all its dependency libraries.
15665link_all_deplibs=$link_all_deplibs
15666
15667# Fix the shell variable \$srcfile for the compiler.
15668fix_srcfile_path=$lt_fix_srcfile_path
15669
15670# Set to "yes" if exported symbols are required.
15671always_export_symbols=$always_export_symbols
15672
15673# The commands to list exported symbols.
15674export_symbols_cmds=$lt_export_symbols_cmds
15675
15676# Symbols that should not be listed in the preloaded symbols.
15677exclude_expsyms=$lt_exclude_expsyms
15678
15679# Symbols that must always be exported.
15680include_expsyms=$lt_include_expsyms
15681
15682# Commands necessary for linking programs (against libraries) with templates.
15683prelink_cmds=$lt_prelink_cmds
15684
15685# Specify filename containing input files.
15686file_list_spec=$lt_file_list_spec
15687
15688# How to hardcode a shared library path into an executable.
15689hardcode_action=$hardcode_action
15690
15691# ### END LIBTOOL CONFIG
15692
15693_LT_EOF
15694
15695 case $host_os in
15696 aix3*)
15697 cat <<\_LT_EOF >> "$cfgfile"
15698# AIX sometimes has problems with the GCC collect2 program. For some
15699# reason, if we set the COLLECT_NAMES environment variable, the problems
15700# vanish in a puff of smoke.
15701if test "X${COLLECT_NAMES+set}" != Xset; then
15702 COLLECT_NAMES=
15703 export COLLECT_NAMES
15704fi
15705_LT_EOF
15706 ;;
15707 esac
15708
15709
15710ltmain="$ac_aux_dir/ltmain.sh"
15711
15712
15713 # We use sed instead of cat because bash on DJGPP gets confused if
15714 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15715 # text mode, it properly converts lines to CR/LF. This bash problem
15716 # is reportedly fixed, but why not run on old versions too?
15717 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
15718 || (rm -f "$cfgfile"; exit 1)
15719
15720 case $xsi_shell in
15721 yes)
15722 cat << \_LT_EOF >> "$cfgfile"
15723
15724# func_dirname file append nondir_replacement
15725# Compute the dirname of FILE. If nonempty, add APPEND to the result,
15726# otherwise set result to NONDIR_REPLACEMENT.
15727func_dirname ()
15728{
15729 case ${1} in
15730 */*) func_dirname_result="${1%/*}${2}" ;;
15731 * ) func_dirname_result="${3}" ;;
15732 esac
15733}
15734
15735# func_basename file
15736func_basename ()
15737{
15738 func_basename_result="${1##*/}"
15739}
15740
15741# func_dirname_and_basename file append nondir_replacement
15742# perform func_basename and func_dirname in a single function
15743# call:
15744# dirname: Compute the dirname of FILE. If nonempty,
15745# add APPEND to the result, otherwise set result
15746# to NONDIR_REPLACEMENT.
15747# value returned in "$func_dirname_result"
15748# basename: Compute filename of FILE.
15749# value retuned in "$func_basename_result"
15750# Implementation must be kept synchronized with func_dirname
15751# and func_basename. For efficiency, we do not delegate to
15752# those functions but instead duplicate the functionality here.
15753func_dirname_and_basename ()
15754{
15755 case ${1} in
15756 */*) func_dirname_result="${1%/*}${2}" ;;
15757 * ) func_dirname_result="${3}" ;;
15758 esac
15759 func_basename_result="${1##*/}"
15760}
15761
15762# func_stripname prefix suffix name
15763# strip PREFIX and SUFFIX off of NAME.
15764# PREFIX and SUFFIX must not contain globbing or regex special
15765# characters, hashes, percent signs, but SUFFIX may contain a leading
15766# dot (in which case that matches only a dot).
15767func_stripname ()
15768{
15769 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
15770 # positional parameters, so assign one to ordinary parameter first.
15771 func_stripname_result=${3}
15772 func_stripname_result=${func_stripname_result#"${1}"}
15773 func_stripname_result=${func_stripname_result%"${2}"}
15774}
15775
15776# func_opt_split
15777func_opt_split ()
15778{
15779 func_opt_split_opt=${1%%=*}
15780 func_opt_split_arg=${1#*=}
15781}
15782
15783# func_lo2o object
15784func_lo2o ()
15785{
15786 case ${1} in
15787 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
15788 *) func_lo2o_result=${1} ;;
15789 esac
15790}
15791
15792# func_xform libobj-or-source
15793func_xform ()
15794{
15795 func_xform_result=${1%.*}.lo
15796}
15797
15798# func_arith arithmetic-term...
15799func_arith ()
15800{
15801 func_arith_result=$(( $* ))
15802}
15803
15804# func_len string
15805# STRING may not start with a hyphen.
15806func_len ()
15807{
15808 func_len_result=${#1}
15809}
15810
15811_LT_EOF
15812 ;;
15813 *) # Bourne compatible functions.
15814 cat << \_LT_EOF >> "$cfgfile"
15815
15816# func_dirname file append nondir_replacement
15817# Compute the dirname of FILE. If nonempty, add APPEND to the result,
15818# otherwise set result to NONDIR_REPLACEMENT.
15819func_dirname ()
15820{
15821 # Extract subdirectory from the argument.
15822 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
15823 if test "X$func_dirname_result" = "X${1}"; then
15824 func_dirname_result="${3}"
15825 else
15826 func_dirname_result="$func_dirname_result${2}"
15827 fi
15828}
15829
15830# func_basename file
15831func_basename ()
15832{
15833 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
15834}
15835
15836
15837# func_stripname prefix suffix name
15838# strip PREFIX and SUFFIX off of NAME.
15839# PREFIX and SUFFIX must not contain globbing or regex special
15840# characters, hashes, percent signs, but SUFFIX may contain a leading
15841# dot (in which case that matches only a dot).
15842# func_strip_suffix prefix name
15843func_stripname ()
15844{
15845 case ${2} in
15846 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
15847 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
15848 esac
15849}
15850
15851# sed scripts:
15852my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
15853my_sed_long_arg='1s/^-[^=]*=//'
15854
15855# func_opt_split
15856func_opt_split ()
15857{
15858 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
15859 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
15860}
15861
15862# func_lo2o object
15863func_lo2o ()
15864{
15865 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
15866}
15867
15868# func_xform libobj-or-source
15869func_xform ()
15870{
15871 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
15872}
15873
15874# func_arith arithmetic-term...
15875func_arith ()
15876{
15877 func_arith_result=`expr "$@"`
15878}
15879
15880# func_len string
15881# STRING may not start with a hyphen.
15882func_len ()
15883{
15884 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
15885}
15886
15887_LT_EOF
15888esac
15889
15890case $lt_shell_append in
15891 yes)
15892 cat << \_LT_EOF >> "$cfgfile"
15893
15894# func_append var value
15895# Append VALUE to the end of shell variable VAR.
15896func_append ()
15897{
15898 eval "$1+=\$2"
15899}
15900_LT_EOF
15901 ;;
15902 *)
15903 cat << \_LT_EOF >> "$cfgfile"
15904
15905# func_append var value
15906# Append VALUE to the end of shell variable VAR.
15907func_append ()
15908{
15909 eval "$1=\$$1\$2"
15910}
15911
15912_LT_EOF
15913 ;;
15914 esac
15915
15916
15917 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
15918 || (rm -f "$cfgfile"; exit 1)
15919
15920 mv -f "$cfgfile" "$ofile" ||
15921 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15922 chmod +x "$ofile"
15923
15924 ;;
81ecdfbb 15925 "Makefile":C) echo "Merging Makefile.sim+Make-common.sim into Makefile ..."
fee8ec00
SR
15926 rm -f Makesim1.tmp Makesim2.tmp Makefile
15927 sed -n -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ p' <Make-common.sim >Makesim1.tmp
15928 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >Makesim2.tmp
15929 sed -e '/^## COMMON_PRE_/ r Makesim1.tmp' \
15930 -e '/^## COMMON_POST_/ r Makesim2.tmp' \
15931 <Makefile.sim >Makefile
15932 rm -f Makefile.sim Make-common.sim Makesim1.tmp Makesim2.tmp
15933 ;;
81ecdfbb
RW
15934 "stamp-h":C) echo > stamp-h ;;
15935
fee8ec00 15936 esac
81ecdfbb 15937done # for ac_tag
fee8ec00 15938
fee8ec00 15939
81ecdfbb 15940as_fn_exit 0
fee8ec00 15941_ACEOF
fee8ec00
SR
15942ac_clean_files=$ac_clean_files_save
15943
81ecdfbb 15944test $ac_write_fail = 0 ||
63a9e923 15945 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
81ecdfbb 15946
fee8ec00
SR
15947
15948# configure is writing to config.log, and then calls config.status.
15949# config.status does its own redirection, appending to config.log.
15950# Unfortunately, on DOS this fails, as config.log is still kept open
15951# by configure, so config.status won't be able to write to it; its
15952# output is simply discarded. So we exec the FD to /dev/null,
15953# effectively closing config.log, so it can be properly (re)opened and
15954# appended to by config.status. When coming back to configure, we
15955# need to make the FD available again.
15956if test "$no_create" != yes; then
15957 ac_cs_success=:
15958 ac_config_status_args=
15959 test "$silent" = yes &&
15960 ac_config_status_args="$ac_config_status_args --quiet"
15961 exec 5>/dev/null
15962 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15963 exec 5>>config.log
15964 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15965 # would make configure fail if this is the last instruction.
63a9e923 15966 $ac_cs_success || as_fn_exit 1
81ecdfbb
RW
15967fi
15968if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15969 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15970$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
fee8ec00
SR
15971fi
15972
15973