]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - sim/erc32/configure
sim: clean up stale AC_PREREQ refs
[thirdparty/binutils-gdb.git] / sim / erc32 / configure
CommitLineData
c906108c 1#! /bin/sh
b7026657 2# Guess values for system-dependent variables and create Makefiles.
d0ac1c44
SM
3# Generated by GNU Autoconf 2.69.
4#
5#
6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
81ecdfbb 7#
b7026657 8#
b7026657
AC
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## -------------------- ##
c906108c 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 :
b7026657
AC
18 emulate sh
19 NULLCMD=:
81ecdfbb 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
b7026657
AC
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
b7026657 31fi
c906108c 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 }
b7026657 79fi
c906108c
SS
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.
d0ac1c44 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
b7026657
AC
122PS1='$ '
123PS2='> '
124PS4='+ '
c906108c 125
b7026657 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
d0ac1c44
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
d0ac1c44
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
b7026657 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 :
d0ac1c44
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."
b7026657 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."
b7026657 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"
d0ac1c44 363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
81ecdfbb
RW
364
365
366} # as_fn_mkdir_p
d0ac1c44
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
c906108c 410
d0ac1c44
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
d0ac1c44 415# script with STATUS, using 1 if that was 0.
81ecdfbb
RW
416as_fn_error ()
417{
d0ac1c44
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
d0ac1c44 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
b7026657
AC
429 as_expr=expr
430else
431 as_expr=false
432fi
c906108c 433
81ecdfbb 434if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
b7026657
AC
435 as_basename=basename
436else
437 as_basename=false
438fi
c906108c 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
c906108c 445
81ecdfbb 446as_me=`$as_basename -- "$0" ||
b7026657
AC
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'`
c906108c 464
b7026657
AC
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
c906108c 471
c906108c 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 |
b7026657 482 sed '
81ecdfbb
RW
483 s/[$]LINENO.*/&-/
484 t lineno
485 b
486 :lineno
b7026657 487 N
81ecdfbb
RW
488 :loop
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
b7026657 490 t loop
81ecdfbb 491 s/-\n.*//
b7026657 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; }
b7026657 495
d0ac1c44
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
b7026657
AC
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"
b7026657
AC
504 # Exit status is that of the last command.
505 exit
506}
c906108c 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';;
b7026657 519esac
c906108c 520
81ecdfbb
RW
521rm -f conf$$ conf$$.exe conf$$.file
522if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
b7026657 524else
81ecdfbb
RW
525 rm -f conf$$.dir
526 mkdir conf$$.dir 2>/dev/null
b7026657 527fi
81ecdfbb
RW
528if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
b7026657 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.
d0ac1c44 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 ||
d0ac1c44 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
d0ac1c44 540 as_ln_s='cp -pR'
b7026657 541 fi
b7026657 542else
d0ac1c44 543 as_ln_s='cp -pR'
b7026657 544fi
81ecdfbb
RW
545rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546rmdir conf$$.dir 2>/dev/null
c906108c 547
b7026657 548if mkdir -p . 2>/dev/null; then
81ecdfbb 549 as_mkdir_p='mkdir -p "$as_dir"'
b7026657
AC
550else
551 test -d ./-p && rmdir ./-p
552 as_mkdir_p=false
553fi
c906108c 554
d0ac1c44
SM
555as_test_x='test -x'
556as_executable_p=as_fn_executable_p
c906108c 557
b7026657
AC
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'"
c906108c 560
b7026657
AC
561# Sed expression to map a string onto a valid variable name.
562as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
c906108c 563
6bb11ab3
L
564SHELL=${CONFIG_SHELL-/bin/sh}
565
c906108c 566
d0ac1c44
SM
567test -n "$DJDIR" || exec 7<&0 </dev/null
568exec 6>&1
c906108c 569
b7026657 570# Name of the host.
d0ac1c44 571# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
b7026657
AC
572# so uname gets run too.
573ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
c906108c 574
c906108c 575#
b7026657 576# Initializations.
c906108c 577#
b7026657 578ac_default_prefix=/usr/local
81ecdfbb 579ac_clean_files=
b7026657 580ac_config_libobj_dir=.
81ecdfbb 581LIBOBJS=
b7026657
AC
582cross_compiling=no
583subdirs=
584MFLAGS=
585MAKEFLAGS=
b7026657
AC
586
587# Identity of this package.
588PACKAGE_NAME=
589PACKAGE_TARNAME=
590PACKAGE_VERSION=
591PACKAGE_STRING=
592PACKAGE_BUGREPORT=
81ecdfbb 593PACKAGE_URL=
b7026657
AC
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
b7026657
AC
600# include <sys/types.h>
601#endif
81ecdfbb 602#ifdef HAVE_SYS_STAT_H
b7026657
AC
603# include <sys/stat.h>
604#endif
81ecdfbb 605#ifdef STDC_HEADERS
b7026657
AC
606# include <stdlib.h>
607# include <stddef.h>
608#else
81ecdfbb 609# ifdef HAVE_STDLIB_H
b7026657
AC
610# include <stdlib.h>
611# endif
612#endif
81ecdfbb
RW
613#ifdef HAVE_STRING_H
614# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
b7026657
AC
615# include <memory.h>
616# endif
617# include <string.h>
618#endif
81ecdfbb 619#ifdef HAVE_STRINGS_H
b7026657
AC
620# include <strings.h>
621#endif
81ecdfbb 622#ifdef HAVE_INTTYPES_H
b7026657 623# include <inttypes.h>
b7026657 624#endif
81ecdfbb
RW
625#ifdef HAVE_STDINT_H
626# include <stdint.h>
627#endif
628#ifdef HAVE_UNISTD_H
b7026657
AC
629# include <unistd.h>
630#endif"
c906108c 631
81ecdfbb
RW
632ac_subst_vars='LTLIBOBJS
633LIBOBJS
634cgen_breaks
635READLINE
636TERMCAP
637REPORT_BUGS_TEXI
638REPORT_BUGS_TO
639PKGVERSION
81ecdfbb 640MAINT
31e6ad7d
MF
641MAINTAINER_MODE_FALSE
642MAINTAINER_MODE_TRUE
6bb11ab3
L
643lt_cv_dlopen_libs
644OTOOL64
645OTOOL
646LIPO
647NMEDIT
648DSYMUTIL
649AWK
650STRIP
651OBJDUMP
652LN_S
653NM
654ac_ct_DUMPBIN
655DUMPBIN
656LD
657FGREP
658SED
659LIBTOOL
660PLUGINS_FALSE
661PLUGINS_TRUE
aadc9410
MF
662zlibinc
663zlibdir
81ecdfbb
RW
664CATOBJEXT
665GENCAT
666INSTOBJEXT
667DATADIRNAME
668CATALOGS
669POSUB
670GMSGFMT
671XGETTEXT
672INCINTL
673LIBINTL_DEP
674LIBINTL
675USE_NLS
db2e4d67
MF
676GMAKE_FALSE
677GMAKE_TRUE
678MAKE
679CCDEPMODE
680DEPDIR
681am__leading_dot
5f3ef9d0 682PACKAGE
46f900c0 683C_DIALECT
81ecdfbb
RW
684RANLIB
685AR
686HDEFINES
687CC_FOR_BUILD
688INSTALL_DATA
689INSTALL_SCRIPT
690INSTALL_PROGRAM
2232061b
MF
691EGREP
692GREP
693CPP
81ecdfbb
RW
694target_os
695target_vendor
696target_cpu
697target
698host_os
699host_vendor
700host_cpu
701host
702build_os
703build_vendor
704build_cpu
705build
6ffe910a
MF
706OBJEXT
707EXEEXT
708ac_ct_CC
709CPPFLAGS
710LDFLAGS
711CFLAGS
712CC
81ecdfbb
RW
713WERROR_CFLAGS
714WARN_CFLAGS
81ecdfbb 715sim_reserved_bits
81ecdfbb
RW
716sim_inline
717sim_hw
718sim_hw_objs
719sim_hw_cflags
720sim_default_model
721sim_scache
722sim_float
81ecdfbb
RW
723sim_endian
724sim_bitsize
81ecdfbb 725sim_alignment
81ecdfbb
RW
726target_alias
727host_alias
728build_alias
729LIBS
730ECHO_T
731ECHO_N
732ECHO_C
733DEFS
734mandir
735localedir
736libdir
737psdir
738pdfdir
739dvidir
740htmldir
741infodir
742docdir
743oldincludedir
744includedir
745localstatedir
746sharedstatedir
747sysconfdir
748datadir
749datarootdir
750libexecdir
751sbindir
752bindir
753program_transform_name
754prefix
755exec_prefix
756PACKAGE_URL
757PACKAGE_BUGREPORT
758PACKAGE_STRING
759PACKAGE_VERSION
760PACKAGE_TARNAME
761PACKAGE_NAME
762PATH_SEPARATOR
763SHELL'
b7026657 764ac_subst_files=''
81ecdfbb
RW
765ac_user_opts='
766enable_option_checking
aadc9410 767with_system_zlib
6bb11ab3
L
768enable_plugins
769enable_shared
770enable_static
771with_pic
772enable_fast_install
773with_gnu_ld
774enable_libtool_lock
81ecdfbb 775enable_maintainer_mode
81ecdfbb
RW
776enable_sim_debug
777enable_sim_stdio
778enable_sim_trace
779enable_sim_profile
35656e95 780enable_sim_assert
16f7876d 781enable_sim_environment
347fe5bb 782enable_sim_inline
81ecdfbb
RW
783with_pkgversion
784with_bugurl
785'
786 ac_precious_vars='build_alias
787host_alias
788target_alias
789CC
790CFLAGS
791LDFLAGS
792LIBS
793CPPFLAGS
794CPP'
795
c906108c
SS
796
797# Initialize some variables set by options.
b7026657
AC
798ac_init_help=
799ac_init_version=false
81ecdfbb
RW
800ac_unrecognized_opts=
801ac_unrecognized_sep=
c906108c
SS
802# The variables have the same names as the options, with
803# dashes changed to underlines.
b7026657 804cache_file=/dev/null
c906108c 805exec_prefix=NONE
c906108c 806no_create=
c906108c
SS
807no_recursion=
808prefix=NONE
809program_prefix=NONE
810program_suffix=NONE
811program_transform_name=s,x,x,
812silent=
813site=
814srcdir=
c906108c
SS
815verbose=
816x_includes=NONE
817x_libraries=NONE
b7026657
AC
818
819# Installation directory options.
820# These are left unexpanded so users can "make install exec_prefix=/foo"
821# and all the variables that are supposed to be based on exec_prefix
822# by default will actually change.
823# Use braces instead of parens because sh, perl, etc. also accept them.
81ecdfbb 824# (The list follows the same order as the GNU Coding Standards.)
c906108c
SS
825bindir='${exec_prefix}/bin'
826sbindir='${exec_prefix}/sbin'
827libexecdir='${exec_prefix}/libexec'
81ecdfbb
RW
828datarootdir='${prefix}/share'
829datadir='${datarootdir}'
c906108c
SS
830sysconfdir='${prefix}/etc'
831sharedstatedir='${prefix}/com'
832localstatedir='${prefix}/var'
c906108c
SS
833includedir='${prefix}/include'
834oldincludedir='/usr/include'
81ecdfbb
RW
835docdir='${datarootdir}/doc/${PACKAGE}'
836infodir='${datarootdir}/info'
837htmldir='${docdir}'
838dvidir='${docdir}'
839pdfdir='${docdir}'
840psdir='${docdir}'
841libdir='${exec_prefix}/lib'
842localedir='${datarootdir}/locale'
843mandir='${datarootdir}/man'
c906108c 844
c906108c 845ac_prev=
81ecdfbb 846ac_dashdash=
c906108c
SS
847for ac_option
848do
c906108c
SS
849 # If the previous option needs an argument, assign it.
850 if test -n "$ac_prev"; then
81ecdfbb 851 eval $ac_prev=\$ac_option
c906108c
SS
852 ac_prev=
853 continue
854 fi
855
81ecdfbb 856 case $ac_option in
d0ac1c44
SM
857 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
858 *=) ac_optarg= ;;
859 *) ac_optarg=yes ;;
81ecdfbb 860 esac
c906108c
SS
861
862 # Accept the important Cygnus configure options, so we can diagnose typos.
863
81ecdfbb
RW
864 case $ac_dashdash$ac_option in
865 --)
866 ac_dashdash=yes ;;
c906108c
SS
867
868 -bindir | --bindir | --bindi | --bind | --bin | --bi)
869 ac_prev=bindir ;;
870 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
b7026657 871 bindir=$ac_optarg ;;
c906108c
SS
872
873 -build | --build | --buil | --bui | --bu)
b7026657 874 ac_prev=build_alias ;;
c906108c 875 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
b7026657 876 build_alias=$ac_optarg ;;
c906108c
SS
877
878 -cache-file | --cache-file | --cache-fil | --cache-fi \
879 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
880 ac_prev=cache_file ;;
881 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
882 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
b7026657
AC
883 cache_file=$ac_optarg ;;
884
885 --config-cache | -C)
886 cache_file=config.cache ;;
c906108c 887
81ecdfbb 888 -datadir | --datadir | --datadi | --datad)
c906108c 889 ac_prev=datadir ;;
81ecdfbb 890 -datadir=* | --datadir=* | --datadi=* | --datad=*)
b7026657 891 datadir=$ac_optarg ;;
c906108c 892
81ecdfbb
RW
893 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
894 | --dataroo | --dataro | --datar)
895 ac_prev=datarootdir ;;
896 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
897 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
898 datarootdir=$ac_optarg ;;
899
c906108c 900 -disable-* | --disable-*)
81ecdfbb 901 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
c906108c 902 # Reject names that are not valid shell variable names.
81ecdfbb 903 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 904 as_fn_error $? "invalid feature name: $ac_useropt"
81ecdfbb
RW
905 ac_useropt_orig=$ac_useropt
906 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
907 case $ac_user_opts in
908 *"
909"enable_$ac_useropt"
910"*) ;;
911 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
912 ac_unrecognized_sep=', ';;
913 esac
914 eval enable_$ac_useropt=no ;;
915
916 -docdir | --docdir | --docdi | --doc | --do)
917 ac_prev=docdir ;;
918 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
919 docdir=$ac_optarg ;;
920
921 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
922 ac_prev=dvidir ;;
923 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
924 dvidir=$ac_optarg ;;
c906108c
SS
925
926 -enable-* | --enable-*)
81ecdfbb 927 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
c906108c 928 # Reject names that are not valid shell variable names.
81ecdfbb 929 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 930 as_fn_error $? "invalid feature name: $ac_useropt"
81ecdfbb
RW
931 ac_useropt_orig=$ac_useropt
932 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
933 case $ac_user_opts in
934 *"
935"enable_$ac_useropt"
936"*) ;;
937 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
938 ac_unrecognized_sep=', ';;
c906108c 939 esac
81ecdfbb 940 eval enable_$ac_useropt=\$ac_optarg ;;
c906108c
SS
941
942 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
943 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
944 | --exec | --exe | --ex)
945 ac_prev=exec_prefix ;;
946 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
947 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
948 | --exec=* | --exe=* | --ex=*)
b7026657 949 exec_prefix=$ac_optarg ;;
c906108c
SS
950
951 -gas | --gas | --ga | --g)
952 # Obsolete; use --with-gas.
953 with_gas=yes ;;
954
b7026657
AC
955 -help | --help | --hel | --he | -h)
956 ac_init_help=long ;;
957 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
958 ac_init_help=recursive ;;
959 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
960 ac_init_help=short ;;
c906108c
SS
961
962 -host | --host | --hos | --ho)
b7026657 963 ac_prev=host_alias ;;
c906108c 964 -host=* | --host=* | --hos=* | --ho=*)
b7026657 965 host_alias=$ac_optarg ;;
c906108c 966
81ecdfbb
RW
967 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
968 ac_prev=htmldir ;;
969 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
970 | --ht=*)
971 htmldir=$ac_optarg ;;
972
c906108c
SS
973 -includedir | --includedir | --includedi | --included | --include \
974 | --includ | --inclu | --incl | --inc)
975 ac_prev=includedir ;;
976 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
977 | --includ=* | --inclu=* | --incl=* | --inc=*)
b7026657 978 includedir=$ac_optarg ;;
c906108c
SS
979
980 -infodir | --infodir | --infodi | --infod | --info | --inf)
981 ac_prev=infodir ;;
982 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
b7026657 983 infodir=$ac_optarg ;;
c906108c
SS
984
985 -libdir | --libdir | --libdi | --libd)
986 ac_prev=libdir ;;
987 -libdir=* | --libdir=* | --libdi=* | --libd=*)
b7026657 988 libdir=$ac_optarg ;;
c906108c
SS
989
990 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
991 | --libexe | --libex | --libe)
992 ac_prev=libexecdir ;;
993 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
994 | --libexe=* | --libex=* | --libe=*)
b7026657 995 libexecdir=$ac_optarg ;;
c906108c 996
81ecdfbb
RW
997 -localedir | --localedir | --localedi | --localed | --locale)
998 ac_prev=localedir ;;
999 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1000 localedir=$ac_optarg ;;
1001
c906108c 1002 -localstatedir | --localstatedir | --localstatedi | --localstated \
81ecdfbb 1003 | --localstate | --localstat | --localsta | --localst | --locals)
c906108c
SS
1004 ac_prev=localstatedir ;;
1005 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
81ecdfbb 1006 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
b7026657 1007 localstatedir=$ac_optarg ;;
c906108c
SS
1008
1009 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1010 ac_prev=mandir ;;
1011 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
b7026657 1012 mandir=$ac_optarg ;;
c906108c
SS
1013
1014 -nfp | --nfp | --nf)
1015 # Obsolete; use --without-fp.
1016 with_fp=no ;;
1017
1018 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
b7026657 1019 | --no-cr | --no-c | -n)
c906108c
SS
1020 no_create=yes ;;
1021
1022 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1023 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1024 no_recursion=yes ;;
1025
1026 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1027 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1028 | --oldin | --oldi | --old | --ol | --o)
1029 ac_prev=oldincludedir ;;
1030 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1031 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1032 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
b7026657 1033 oldincludedir=$ac_optarg ;;
c906108c
SS
1034
1035 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1036 ac_prev=prefix ;;
1037 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
b7026657 1038 prefix=$ac_optarg ;;
c906108c
SS
1039
1040 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1041 | --program-pre | --program-pr | --program-p)
1042 ac_prev=program_prefix ;;
1043 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1044 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
b7026657 1045 program_prefix=$ac_optarg ;;
c906108c
SS
1046
1047 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1048 | --program-suf | --program-su | --program-s)
1049 ac_prev=program_suffix ;;
1050 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1051 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
b7026657 1052 program_suffix=$ac_optarg ;;
c906108c
SS
1053
1054 -program-transform-name | --program-transform-name \
1055 | --program-transform-nam | --program-transform-na \
1056 | --program-transform-n | --program-transform- \
1057 | --program-transform | --program-transfor \
1058 | --program-transfo | --program-transf \
1059 | --program-trans | --program-tran \
1060 | --progr-tra | --program-tr | --program-t)
1061 ac_prev=program_transform_name ;;
1062 -program-transform-name=* | --program-transform-name=* \
1063 | --program-transform-nam=* | --program-transform-na=* \
1064 | --program-transform-n=* | --program-transform-=* \
1065 | --program-transform=* | --program-transfor=* \
1066 | --program-transfo=* | --program-transf=* \
1067 | --program-trans=* | --program-tran=* \
1068 | --progr-tra=* | --program-tr=* | --program-t=*)
b7026657 1069 program_transform_name=$ac_optarg ;;
c906108c 1070
81ecdfbb
RW
1071 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1072 ac_prev=pdfdir ;;
1073 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1074 pdfdir=$ac_optarg ;;
1075
1076 -psdir | --psdir | --psdi | --psd | --ps)
1077 ac_prev=psdir ;;
1078 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1079 psdir=$ac_optarg ;;
1080
c906108c
SS
1081 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1082 | -silent | --silent | --silen | --sile | --sil)
1083 silent=yes ;;
1084
1085 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1086 ac_prev=sbindir ;;
1087 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1088 | --sbi=* | --sb=*)
b7026657 1089 sbindir=$ac_optarg ;;
c906108c
SS
1090
1091 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1092 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1093 | --sharedst | --shareds | --shared | --share | --shar \
1094 | --sha | --sh)
1095 ac_prev=sharedstatedir ;;
1096 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1097 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1098 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1099 | --sha=* | --sh=*)
b7026657 1100 sharedstatedir=$ac_optarg ;;
c906108c
SS
1101
1102 -site | --site | --sit)
1103 ac_prev=site ;;
1104 -site=* | --site=* | --sit=*)
b7026657 1105 site=$ac_optarg ;;
eb2d80b4 1106
c906108c
SS
1107 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1108 ac_prev=srcdir ;;
1109 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
b7026657 1110 srcdir=$ac_optarg ;;
c906108c
SS
1111
1112 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1113 | --syscon | --sysco | --sysc | --sys | --sy)
1114 ac_prev=sysconfdir ;;
1115 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1116 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
b7026657 1117 sysconfdir=$ac_optarg ;;
c906108c
SS
1118
1119 -target | --target | --targe | --targ | --tar | --ta | --t)
b7026657 1120 ac_prev=target_alias ;;
c906108c 1121 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
b7026657 1122 target_alias=$ac_optarg ;;
c906108c
SS
1123
1124 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1125 verbose=yes ;;
1126
b7026657
AC
1127 -version | --version | --versio | --versi | --vers | -V)
1128 ac_init_version=: ;;
c906108c
SS
1129
1130 -with-* | --with-*)
81ecdfbb 1131 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
c906108c 1132 # Reject names that are not valid shell variable names.
81ecdfbb 1133 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 1134 as_fn_error $? "invalid package name: $ac_useropt"
81ecdfbb
RW
1135 ac_useropt_orig=$ac_useropt
1136 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1137 case $ac_user_opts in
1138 *"
1139"with_$ac_useropt"
1140"*) ;;
1141 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1142 ac_unrecognized_sep=', ';;
c906108c 1143 esac
81ecdfbb 1144 eval with_$ac_useropt=\$ac_optarg ;;
c906108c
SS
1145
1146 -without-* | --without-*)
81ecdfbb 1147 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
c906108c 1148 # Reject names that are not valid shell variable names.
81ecdfbb 1149 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 1150 as_fn_error $? "invalid package name: $ac_useropt"
81ecdfbb
RW
1151 ac_useropt_orig=$ac_useropt
1152 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1153 case $ac_user_opts in
1154 *"
1155"with_$ac_useropt"
1156"*) ;;
1157 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1158 ac_unrecognized_sep=', ';;
1159 esac
1160 eval with_$ac_useropt=no ;;
c906108c
SS
1161
1162 --x)
1163 # Obsolete; use --with-x.
1164 with_x=yes ;;
1165
1166 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1167 | --x-incl | --x-inc | --x-in | --x-i)
1168 ac_prev=x_includes ;;
1169 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1170 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
b7026657 1171 x_includes=$ac_optarg ;;
c906108c
SS
1172
1173 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1174 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1175 ac_prev=x_libraries ;;
1176 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1177 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
b7026657 1178 x_libraries=$ac_optarg ;;
c906108c 1179
d0ac1c44
SM
1180 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1181Try \`$0 --help' for more information"
c906108c
SS
1182 ;;
1183
b7026657
AC
1184 *=*)
1185 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1186 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1187 case $ac_envvar in #(
1188 '' | [0-9]* | *[!_$as_cr_alnum]* )
d0ac1c44 1189 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
81ecdfbb
RW
1190 esac
1191 eval $ac_envvar=\$ac_optarg
b7026657
AC
1192 export $ac_envvar ;;
1193
c906108c 1194 *)
b7026657 1195 # FIXME: should be removed in autoconf 3.0.
81ecdfbb 1196 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
b7026657 1197 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
81ecdfbb 1198 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
d0ac1c44 1199 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
c906108c
SS
1200 ;;
1201
1202 esac
1203done
1204
1205if test -n "$ac_prev"; then
b7026657 1206 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
d0ac1c44 1207 as_fn_error $? "missing argument to $ac_option"
c906108c 1208fi
c906108c 1209
81ecdfbb
RW
1210if test -n "$ac_unrecognized_opts"; then
1211 case $enable_option_checking in
1212 no) ;;
d0ac1c44 1213 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
81ecdfbb 1214 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
b7026657 1215 esac
81ecdfbb 1216fi
c906108c 1217
81ecdfbb
RW
1218# Check all directory arguments for consistency.
1219for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1220 datadir sysconfdir sharedstatedir localstatedir includedir \
1221 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1222 libdir localedir mandir
c906108c 1223do
81ecdfbb
RW
1224 eval ac_val=\$$ac_var
1225 # Remove trailing slashes.
1226 case $ac_val in
1227 */ )
1228 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1229 eval $ac_var=\$ac_val;;
1230 esac
1231 # Be sure to have absolute directory names.
b7026657 1232 case $ac_val in
81ecdfbb
RW
1233 [\\/$]* | ?:[\\/]* ) continue;;
1234 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
c906108c 1235 esac
d0ac1c44 1236 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
c906108c
SS
1237done
1238
b7026657
AC
1239# There might be people who depend on the old broken behavior: `$host'
1240# used to hold the argument of --host etc.
1241# FIXME: To remove some day.
1242build=$build_alias
1243host=$host_alias
1244target=$target_alias
1245
1246# FIXME: To remove some day.
1247if test "x$host_alias" != x; then
1248 if test "x$build_alias" = x; then
1249 cross_compiling=maybe
b7026657
AC
1250 elif test "x$build_alias" != "x$host_alias"; then
1251 cross_compiling=yes
1252 fi
1253fi
c906108c 1254
b7026657
AC
1255ac_tool_prefix=
1256test -n "$host_alias" && ac_tool_prefix=$host_alias-
1257
1258test "$silent" = yes && exec 6>/dev/null
c906108c 1259
c906108c 1260
81ecdfbb
RW
1261ac_pwd=`pwd` && test -n "$ac_pwd" &&
1262ac_ls_di=`ls -di .` &&
1263ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
d0ac1c44 1264 as_fn_error $? "working directory cannot be determined"
81ecdfbb 1265test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
d0ac1c44 1266 as_fn_error $? "pwd does not report name of working directory"
81ecdfbb
RW
1267
1268
c906108c
SS
1269# Find the source files, if location was not specified.
1270if test -z "$srcdir"; then
1271 ac_srcdir_defaulted=yes
81ecdfbb
RW
1272 # Try the directory containing this script, then the parent directory.
1273 ac_confdir=`$as_dirname -- "$as_myself" ||
1274$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1275 X"$as_myself" : 'X\(//\)[^/]' \| \
1276 X"$as_myself" : 'X\(//\)$' \| \
1277 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1278$as_echo X"$as_myself" |
1279 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1280 s//\1/
1281 q
1282 }
1283 /^X\(\/\/\)[^/].*/{
1284 s//\1/
1285 q
1286 }
1287 /^X\(\/\/\)$/{
1288 s//\1/
1289 q
1290 }
1291 /^X\(\/\).*/{
1292 s//\1/
1293 q
1294 }
1295 s/.*/./; q'`
c906108c 1296 srcdir=$ac_confdir
81ecdfbb 1297 if test ! -r "$srcdir/$ac_unique_file"; then
c906108c
SS
1298 srcdir=..
1299 fi
1300else
1301 ac_srcdir_defaulted=no
1302fi
81ecdfbb
RW
1303if test ! -r "$srcdir/$ac_unique_file"; then
1304 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
d0ac1c44 1305 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
81ecdfbb
RW
1306fi
1307ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1308ac_abs_confdir=`(
d0ac1c44 1309 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
81ecdfbb
RW
1310 pwd)`
1311# When building in place, set srcdir=.
1312if test "$ac_abs_confdir" = "$ac_pwd"; then
1313 srcdir=.
1314fi
1315# Remove unnecessary trailing slashes from srcdir.
1316# Double slashes in file names in object file debugging info
1317# mess up M-x gdb in Emacs.
1318case $srcdir in
1319*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1320esac
1321for ac_var in $ac_precious_vars; do
1322 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1323 eval ac_env_${ac_var}_value=\$${ac_var}
1324 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1325 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1326done
c906108c 1327
b7026657
AC
1328#
1329# Report the --help message.
1330#
1331if test "$ac_init_help" = "long"; then
1332 # Omit some internal or obsolete options to make the list less imposing.
1333 # This message is too long to be a string in the A/UX 3.1 sh.
1334 cat <<_ACEOF
1335\`configure' configures this package to adapt to many kinds of systems.
c906108c 1336
b7026657 1337Usage: $0 [OPTION]... [VAR=VALUE]...
c906108c 1338
b7026657
AC
1339To assign environment variables (e.g., CC, CFLAGS...), specify them as
1340VAR=VALUE. See below for descriptions of some of the useful variables.
c906108c 1341
b7026657 1342Defaults for the options are specified in brackets.
c906108c 1343
b7026657
AC
1344Configuration:
1345 -h, --help display this help and exit
1346 --help=short display options specific to this package
1347 --help=recursive display the short help of all the included packages
1348 -V, --version display version information and exit
d0ac1c44 1349 -q, --quiet, --silent do not print \`checking ...' messages
b7026657
AC
1350 --cache-file=FILE cache test results in FILE [disabled]
1351 -C, --config-cache alias for \`--cache-file=config.cache'
1352 -n, --no-create do not create output files
1353 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1354
b7026657
AC
1355Installation directories:
1356 --prefix=PREFIX install architecture-independent files in PREFIX
81ecdfbb 1357 [$ac_default_prefix]
b7026657 1358 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
81ecdfbb 1359 [PREFIX]
c906108c 1360
b7026657
AC
1361By default, \`make install' will install all the files in
1362\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1363an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1364for instance \`--prefix=\$HOME'.
c906108c 1365
b7026657
AC
1366For better control, use the options below.
1367
1368Fine tuning of the installation directories:
81ecdfbb
RW
1369 --bindir=DIR user executables [EPREFIX/bin]
1370 --sbindir=DIR system admin executables [EPREFIX/sbin]
1371 --libexecdir=DIR program executables [EPREFIX/libexec]
1372 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1373 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1374 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1375 --libdir=DIR object code libraries [EPREFIX/lib]
1376 --includedir=DIR C header files [PREFIX/include]
1377 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1378 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1379 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1380 --infodir=DIR info documentation [DATAROOTDIR/info]
1381 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1382 --mandir=DIR man documentation [DATAROOTDIR/man]
1383 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1384 --htmldir=DIR html documentation [DOCDIR]
1385 --dvidir=DIR dvi documentation [DOCDIR]
1386 --pdfdir=DIR pdf documentation [DOCDIR]
1387 --psdir=DIR ps documentation [DOCDIR]
b7026657
AC
1388_ACEOF
1389
1390 cat <<\_ACEOF
1391
1392Program names:
1393 --program-prefix=PREFIX prepend PREFIX to installed program names
1394 --program-suffix=SUFFIX append SUFFIX to installed program names
1395 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1396
1397System types:
1398 --build=BUILD configure for building on BUILD [guessed]
1399 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1400 --target=TARGET configure for building compilers for TARGET [HOST]
1401_ACEOF
c906108c 1402fi
b7026657
AC
1403
1404if test -n "$ac_init_help"; then
1405
1406 cat <<\_ACEOF
1407
1408Optional Features:
81ecdfbb 1409 --disable-option-checking ignore unrecognized --enable/--with options
b7026657
AC
1410 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1411 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
faa743bb 1412 --enable-plugins Enable support for plugins
6bb11ab3
L
1413 --enable-shared[=PKGS] build shared libraries [default=yes]
1414 --enable-static[=PKGS] build static libraries [default=yes]
1415 --enable-fast-install[=PKGS]
1416 optimize for fast installation [default=yes]
1417 --disable-libtool-lock avoid locking (might break parallel builds)
d0ac1c44
SM
1418 --enable-maintainer-mode
1419 enable make rules and dependencies not useful (and
1420 sometimes confusing) to the casual installer
8d0978fb
MF
1421 --enable-sim-debug=opts Enable debugging flags (for developers of the sim
1422 itself)
1423 --enable-sim-stdio Specify whether to use stdio for console
1424 input/output
1425 --enable-sim-trace=opts Enable tracing of simulated programs
1426 --enable-sim-profile=opts
1427 Enable profiling flags
35656e95 1428 --enable-sim-assert Specify whether to perform random assertions
16f7876d
MF
1429 --enable-sim-environment=environment
1430 Specify mixed, user, virtual or operating
1431 environment
347fe5bb
MF
1432 --enable-sim-inline=inlines
1433 Specify which functions should be inlined
b7026657 1434
6efef468
JM
1435Optional Packages:
1436 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1437 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
aadc9410 1438 --with-system-zlib use installed libz
6bb11ab3
L
1439 --with-pic try to use only PIC/non-PIC objects [default=use
1440 both]
1441 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
bf12d44e 1442 --with-pkgversion=PKG Use PKG in the version string in place of "SIM"
6efef468
JM
1443 --with-bugurl=URL Direct users to URL to report a bug
1444
b7026657
AC
1445Some influential environment variables:
1446 CC C compiler command
1447 CFLAGS C compiler flags
1448 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1449 nonstandard directory <lib dir>
81ecdfbb 1450 LIBS libraries to pass to the linker, e.g. -l<library>
d0ac1c44 1451 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
81ecdfbb 1452 you have headers in a nonstandard directory <include dir>
b7026657
AC
1453 CPP C preprocessor
1454
1455Use these variables to override the choices made by `configure' or to help
1456it to find libraries and programs with nonstandard names/locations.
1457
81ecdfbb 1458Report bugs to the package provider.
b7026657 1459_ACEOF
81ecdfbb 1460ac_status=$?
c906108c
SS
1461fi
1462
b7026657
AC
1463if test "$ac_init_help" = "recursive"; then
1464 # If there are subdirs, report their specific --help.
b7026657 1465 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
81ecdfbb
RW
1466 test -d "$ac_dir" ||
1467 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1468 continue
b7026657 1469 ac_builddir=.
c906108c 1470
81ecdfbb
RW
1471case "$ac_dir" in
1472.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1473*)
1474 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1475 # A ".." for each directory in $ac_dir_suffix.
1476 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1477 case $ac_top_builddir_sub in
1478 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1479 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1480 esac ;;
1481esac
1482ac_abs_top_builddir=$ac_pwd
1483ac_abs_builddir=$ac_pwd$ac_dir_suffix
1484# for backward compatibility:
1485ac_top_builddir=$ac_top_build_prefix
c906108c 1486
b7026657 1487case $srcdir in
81ecdfbb 1488 .) # We are building in place.
b7026657 1489 ac_srcdir=.
81ecdfbb
RW
1490 ac_top_srcdir=$ac_top_builddir_sub
1491 ac_abs_top_srcdir=$ac_pwd ;;
1492 [\\/]* | ?:[\\/]* ) # Absolute name.
b7026657 1493 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
1494 ac_top_srcdir=$srcdir
1495 ac_abs_top_srcdir=$srcdir ;;
1496 *) # Relative name.
1497 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1498 ac_top_srcdir=$ac_top_build_prefix$srcdir
1499 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
b7026657 1500esac
81ecdfbb
RW
1501ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1502
1503 cd "$ac_dir" || { ac_status=$?; continue; }
1504 # Check for guested configure.
1505 if test -f "$ac_srcdir/configure.gnu"; then
1506 echo &&
1507 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1508 elif test -f "$ac_srcdir/configure"; then
1509 echo &&
1510 $SHELL "$ac_srcdir/configure" --help=recursive
b7026657 1511 else
81ecdfbb
RW
1512 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1513 fi || ac_status=$?
1514 cd "$ac_pwd" || { ac_status=$?; break; }
b7026657
AC
1515 done
1516fi
1517
81ecdfbb 1518test -n "$ac_init_help" && exit $ac_status
b7026657
AC
1519if $ac_init_version; then
1520 cat <<\_ACEOF
81ecdfbb 1521configure
d0ac1c44 1522generated by GNU Autoconf 2.69
b7026657 1523
d0ac1c44 1524Copyright (C) 2012 Free Software Foundation, Inc.
b7026657
AC
1525This configure script is free software; the Free Software Foundation
1526gives unlimited permission to copy, distribute and modify it.
1527_ACEOF
81ecdfbb 1528 exit
b7026657 1529fi
b7026657 1530
81ecdfbb
RW
1531## ------------------------ ##
1532## Autoconf initialization. ##
1533## ------------------------ ##
b7026657 1534
81ecdfbb
RW
1535# ac_fn_c_try_compile LINENO
1536# --------------------------
1537# Try to compile conftest.$ac_ext, and return whether this succeeded.
1538ac_fn_c_try_compile ()
b7026657 1539{
81ecdfbb
RW
1540 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1541 rm -f conftest.$ac_objext
1542 if { { ac_try="$ac_compile"
1543case "(($ac_try" in
1544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1545 *) ac_try_echo=$ac_try;;
1546esac
1547eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1548$as_echo "$ac_try_echo"; } >&5
1549 (eval "$ac_compile") 2>conftest.err
1550 ac_status=$?
1551 if test -s conftest.err; then
1552 grep -v '^ *+' conftest.err >conftest.er1
1553 cat conftest.er1 >&5
1554 mv -f conftest.er1 conftest.err
1555 fi
1556 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1557 test $ac_status = 0; } && {
1558 test -z "$ac_c_werror_flag" ||
1559 test ! -s conftest.err
1560 } && test -s conftest.$ac_objext; then :
1561 ac_retval=0
1562else
1563 $as_echo "$as_me: failed program was:" >&5
1564sed 's/^/| /' conftest.$ac_ext >&5
b7026657 1565
81ecdfbb
RW
1566 ac_retval=1
1567fi
d0ac1c44
SM
1568 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1569 as_fn_set_status $ac_retval
b7026657 1570
81ecdfbb 1571} # ac_fn_c_try_compile
b7026657 1572
81ecdfbb
RW
1573# ac_fn_c_try_cpp LINENO
1574# ----------------------
1575# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1576ac_fn_c_try_cpp ()
1577{
1578 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1579 if { { ac_try="$ac_cpp conftest.$ac_ext"
1580case "(($ac_try" in
1581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1582 *) ac_try_echo=$ac_try;;
1583esac
1584eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1585$as_echo "$ac_try_echo"; } >&5
1586 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1587 ac_status=$?
1588 if test -s conftest.err; then
1589 grep -v '^ *+' conftest.err >conftest.er1
1590 cat conftest.er1 >&5
1591 mv -f conftest.er1 conftest.err
1592 fi
1593 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
d0ac1c44 1594 test $ac_status = 0; } > conftest.i && {
81ecdfbb
RW
1595 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1596 test ! -s conftest.err
1597 }; then :
1598 ac_retval=0
1599else
1600 $as_echo "$as_me: failed program was:" >&5
1601sed 's/^/| /' conftest.$ac_ext >&5
b7026657 1602
81ecdfbb
RW
1603 ac_retval=1
1604fi
d0ac1c44
SM
1605 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1606 as_fn_set_status $ac_retval
b7026657 1607
81ecdfbb 1608} # ac_fn_c_try_cpp
b7026657 1609
81ecdfbb
RW
1610# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1611# -------------------------------------------------------
1612# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1613# the include files in INCLUDES and setting the cache variable VAR
1614# accordingly.
1615ac_fn_c_check_header_mongrel ()
1616{
1617 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
d0ac1c44 1618 if eval \${$3+:} false; then :
81ecdfbb
RW
1619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1620$as_echo_n "checking for $2... " >&6; }
d0ac1c44 1621if eval \${$3+:} false; then :
81ecdfbb
RW
1622 $as_echo_n "(cached) " >&6
1623fi
1624eval ac_res=\$$3
1625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1626$as_echo "$ac_res" >&6; }
1627else
1628 # Is the header compilable?
1629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1630$as_echo_n "checking $2 usability... " >&6; }
1631cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1632/* end confdefs.h. */
1633$4
1634#include <$2>
1635_ACEOF
1636if ac_fn_c_try_compile "$LINENO"; then :
1637 ac_header_compiler=yes
1638else
1639 ac_header_compiler=no
1640fi
1641rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1643$as_echo "$ac_header_compiler" >&6; }
1644
1645# Is the header present?
1646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1647$as_echo_n "checking $2 presence... " >&6; }
1648cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1649/* end confdefs.h. */
1650#include <$2>
1651_ACEOF
1652if ac_fn_c_try_cpp "$LINENO"; then :
1653 ac_header_preproc=yes
1654else
1655 ac_header_preproc=no
1656fi
d0ac1c44 1657rm -f conftest.err conftest.i conftest.$ac_ext
81ecdfbb
RW
1658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1659$as_echo "$ac_header_preproc" >&6; }
1660
1661# So? What about this header?
1662case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1663 yes:no: )
1664 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1665$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1666 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1667$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1668 ;;
1669 no:yes:* )
1670 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1671$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1672 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1673$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1674 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1675$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1676 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1677$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&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 ;;
1681esac
1682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1683$as_echo_n "checking for $2... " >&6; }
d0ac1c44 1684if eval \${$3+:} false; then :
81ecdfbb
RW
1685 $as_echo_n "(cached) " >&6
1686else
1687 eval "$3=\$ac_header_compiler"
1688fi
1689eval ac_res=\$$3
1690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1691$as_echo "$ac_res" >&6; }
1692fi
d0ac1c44 1693 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
81ecdfbb
RW
1694
1695} # ac_fn_c_check_header_mongrel
1696
1697# ac_fn_c_try_run LINENO
1698# ----------------------
1699# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1700# that executables *can* be run.
1701ac_fn_c_try_run ()
1702{
1703 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1704 if { { ac_try="$ac_link"
1705case "(($ac_try" in
1706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1707 *) ac_try_echo=$ac_try;;
1708esac
1709eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1710$as_echo "$ac_try_echo"; } >&5
1711 (eval "$ac_link") 2>&5
1712 ac_status=$?
1713 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1714 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1715 { { case "(($ac_try" in
1716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1717 *) ac_try_echo=$ac_try;;
1718esac
1719eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1720$as_echo "$ac_try_echo"; } >&5
1721 (eval "$ac_try") 2>&5
1722 ac_status=$?
1723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1724 test $ac_status = 0; }; }; then :
1725 ac_retval=0
1726else
1727 $as_echo "$as_me: program exited with status $ac_status" >&5
1728 $as_echo "$as_me: failed program was:" >&5
1729sed 's/^/| /' conftest.$ac_ext >&5
1730
1731 ac_retval=$ac_status
1732fi
1733 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
d0ac1c44
SM
1734 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1735 as_fn_set_status $ac_retval
81ecdfbb
RW
1736
1737} # ac_fn_c_try_run
1738
1739# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1740# -------------------------------------------------------
1741# Tests whether HEADER exists and can be compiled using the include files in
1742# INCLUDES, setting the cache variable VAR accordingly.
1743ac_fn_c_check_header_compile ()
1744{
1745 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1747$as_echo_n "checking for $2... " >&6; }
d0ac1c44 1748if eval \${$3+:} false; then :
81ecdfbb
RW
1749 $as_echo_n "(cached) " >&6
1750else
1751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1752/* end confdefs.h. */
1753$4
1754#include <$2>
1755_ACEOF
1756if ac_fn_c_try_compile "$LINENO"; then :
1757 eval "$3=yes"
1758else
1759 eval "$3=no"
1760fi
1761rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1762fi
1763eval ac_res=\$$3
1764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1765$as_echo "$ac_res" >&6; }
d0ac1c44 1766 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
81ecdfbb
RW
1767
1768} # ac_fn_c_check_header_compile
1769
1770# ac_fn_c_try_link LINENO
1771# -----------------------
1772# Try to link conftest.$ac_ext, and return whether this succeeded.
1773ac_fn_c_try_link ()
1774{
1775 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1776 rm -f conftest.$ac_objext conftest$ac_exeext
1777 if { { ac_try="$ac_link"
1778case "(($ac_try" in
1779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1780 *) ac_try_echo=$ac_try;;
1781esac
1782eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1783$as_echo "$ac_try_echo"; } >&5
1784 (eval "$ac_link") 2>conftest.err
1785 ac_status=$?
1786 if test -s conftest.err; then
1787 grep -v '^ *+' conftest.err >conftest.er1
1788 cat conftest.er1 >&5
1789 mv -f conftest.er1 conftest.err
1790 fi
1791 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1792 test $ac_status = 0; } && {
1793 test -z "$ac_c_werror_flag" ||
1794 test ! -s conftest.err
1795 } && test -s conftest$ac_exeext && {
1796 test "$cross_compiling" = yes ||
d0ac1c44 1797 test -x conftest$ac_exeext
81ecdfbb
RW
1798 }; then :
1799 ac_retval=0
1800else
1801 $as_echo "$as_me: failed program was:" >&5
1802sed 's/^/| /' conftest.$ac_ext >&5
1803
1804 ac_retval=1
1805fi
1806 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1807 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1808 # interfere with the next link command; also delete a directory that is
1809 # left behind by Apple's compiler. We do this before executing the actions.
1810 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
d0ac1c44
SM
1811 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1812 as_fn_set_status $ac_retval
81ecdfbb
RW
1813
1814} # ac_fn_c_try_link
1815
1816# ac_fn_c_check_func LINENO FUNC VAR
1817# ----------------------------------
1818# Tests whether FUNC exists, setting the cache variable VAR accordingly
1819ac_fn_c_check_func ()
1820{
1821 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1823$as_echo_n "checking for $2... " >&6; }
d0ac1c44 1824if eval \${$3+:} false; then :
81ecdfbb
RW
1825 $as_echo_n "(cached) " >&6
1826else
1827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1828/* end confdefs.h. */
1829/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1830 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1831#define $2 innocuous_$2
1832
1833/* System header to define __stub macros and hopefully few prototypes,
1834 which can conflict with char $2 (); below.
1835 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1836 <limits.h> exists even on freestanding compilers. */
1837
1838#ifdef __STDC__
1839# include <limits.h>
1840#else
1841# include <assert.h>
1842#endif
1843
1844#undef $2
1845
1846/* Override any GCC internal prototype to avoid an error.
1847 Use char because int might match the return type of a GCC
1848 builtin and then its argument prototype would still apply. */
1849#ifdef __cplusplus
1850extern "C"
1851#endif
1852char $2 ();
1853/* The GNU C library defines this for functions which it implements
1854 to always fail with ENOSYS. Some functions are actually named
1855 something starting with __ and the normal name is an alias. */
1856#if defined __stub_$2 || defined __stub___$2
1857choke me
1858#endif
1859
1860int
1861main ()
1862{
1863return $2 ();
1864 ;
1865 return 0;
1866}
1867_ACEOF
1868if ac_fn_c_try_link "$LINENO"; then :
1869 eval "$3=yes"
1870else
1871 eval "$3=no"
1872fi
1873rm -f core conftest.err conftest.$ac_objext \
1874 conftest$ac_exeext conftest.$ac_ext
1875fi
1876eval ac_res=\$$3
1877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1878$as_echo "$ac_res" >&6; }
d0ac1c44 1879 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
81ecdfbb
RW
1880
1881} # ac_fn_c_check_func
936df756
MF
1882
1883# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1884# ----------------------------------------------------
1885# Tries to find if the field MEMBER exists in type AGGR, after including
1886# INCLUDES, setting cache variable VAR accordingly.
1887ac_fn_c_check_member ()
1888{
1889 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1891$as_echo_n "checking for $2.$3... " >&6; }
d0ac1c44 1892if eval \${$4+:} false; then :
936df756
MF
1893 $as_echo_n "(cached) " >&6
1894else
1895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1896/* end confdefs.h. */
1897$5
1898int
1899main ()
1900{
1901static $2 ac_aggr;
1902if (ac_aggr.$3)
1903return 0;
1904 ;
1905 return 0;
1906}
1907_ACEOF
1908if ac_fn_c_try_compile "$LINENO"; then :
1909 eval "$4=yes"
1910else
1911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1912/* end confdefs.h. */
1913$5
1914int
1915main ()
1916{
1917static $2 ac_aggr;
1918if (sizeof ac_aggr.$3)
1919return 0;
1920 ;
1921 return 0;
1922}
1923_ACEOF
1924if ac_fn_c_try_compile "$LINENO"; then :
1925 eval "$4=yes"
1926else
1927 eval "$4=no"
1928fi
1929rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1930fi
1931rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1932fi
1933eval ac_res=\$$4
1934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1935$as_echo "$ac_res" >&6; }
d0ac1c44 1936 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
936df756
MF
1937
1938} # ac_fn_c_check_member
1939
1940# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1941# -------------------------------------------
1942# Tests whether TYPE exists after having included INCLUDES, setting cache
1943# variable VAR accordingly.
1944ac_fn_c_check_type ()
1945{
1946 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1948$as_echo_n "checking for $2... " >&6; }
d0ac1c44 1949if eval \${$3+:} false; then :
936df756
MF
1950 $as_echo_n "(cached) " >&6
1951else
1952 eval "$3=no"
1953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1954/* end confdefs.h. */
1955$4
1956int
1957main ()
1958{
1959if (sizeof ($2))
1960 return 0;
1961 ;
1962 return 0;
1963}
1964_ACEOF
1965if ac_fn_c_try_compile "$LINENO"; then :
1966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1967/* end confdefs.h. */
1968$4
1969int
1970main ()
1971{
1972if (sizeof (($2)))
1973 return 0;
1974 ;
1975 return 0;
1976}
1977_ACEOF
1978if ac_fn_c_try_compile "$LINENO"; then :
1979
1980else
1981 eval "$3=yes"
1982fi
1983rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1984fi
1985rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1986fi
1987eval ac_res=\$$3
1988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1989$as_echo "$ac_res" >&6; }
d0ac1c44 1990 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
936df756
MF
1991
1992} # ac_fn_c_check_type
81ecdfbb
RW
1993cat >config.log <<_ACEOF
1994This file contains any messages produced by compilers while
1995running configure, to aid debugging if configure makes a mistake.
1996
1997It was created by $as_me, which was
d0ac1c44 1998generated by GNU Autoconf 2.69. Invocation command line was
81ecdfbb
RW
1999
2000 $ $0 $@
2001
2002_ACEOF
2003exec 5>>config.log
2004{
2005cat <<_ASUNAME
2006## --------- ##
2007## Platform. ##
2008## --------- ##
2009
2010hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2011uname -m = `(uname -m) 2>/dev/null || echo unknown`
2012uname -r = `(uname -r) 2>/dev/null || echo unknown`
2013uname -s = `(uname -s) 2>/dev/null || echo unknown`
2014uname -v = `(uname -v) 2>/dev/null || echo unknown`
2015
2016/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2017/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2018
2019/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2020/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2021/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2022/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2023/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2024/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2025/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2026
2027_ASUNAME
2028
2029as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2030for as_dir in $PATH
2031do
2032 IFS=$as_save_IFS
2033 test -z "$as_dir" && as_dir=.
2034 $as_echo "PATH: $as_dir"
2035 done
2036IFS=$as_save_IFS
2037
2038} >&5
2039
2040cat >&5 <<_ACEOF
b7026657
AC
2041
2042
2043## ----------- ##
2044## Core tests. ##
2045## ----------- ##
2046
2047_ACEOF
2048
2049
2050# Keep a trace of the command line.
2051# Strip out --no-create and --no-recursion so they do not pile up.
2052# Strip out --silent because we don't want to record it for future runs.
2053# Also quote any args containing shell meta-characters.
2054# Make two passes to allow for proper duplicate-argument suppression.
2055ac_configure_args=
2056ac_configure_args0=
2057ac_configure_args1=
b7026657
AC
2058ac_must_keep_next=false
2059for ac_pass in 1 2
2060do
2061 for ac_arg
2062 do
2063 case $ac_arg in
2064 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2065 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2066 | -silent | --silent | --silen | --sile | --sil)
2067 continue ;;
81ecdfbb
RW
2068 *\'*)
2069 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
b7026657
AC
2070 esac
2071 case $ac_pass in
81ecdfbb 2072 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
b7026657 2073 2)
81ecdfbb 2074 as_fn_append ac_configure_args1 " '$ac_arg'"
b7026657
AC
2075 if test $ac_must_keep_next = true; then
2076 ac_must_keep_next=false # Got value, back to normal.
2077 else
2078 case $ac_arg in
2079 *=* | --config-cache | -C | -disable-* | --disable-* \
2080 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2081 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2082 | -with-* | --with-* | -without-* | --without-* | --x)
2083 case "$ac_configure_args0 " in
2084 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2085 esac
2086 ;;
2087 -* ) ac_must_keep_next=true ;;
2088 esac
2089 fi
81ecdfbb 2090 as_fn_append ac_configure_args " '$ac_arg'"
b7026657
AC
2091 ;;
2092 esac
2093 done
2094done
81ecdfbb
RW
2095{ ac_configure_args0=; unset ac_configure_args0;}
2096{ ac_configure_args1=; unset ac_configure_args1;}
b7026657
AC
2097
2098# When interrupted or exit'd, cleanup temporary files, and complete
2099# config.log. We remove comments because anyway the quotes in there
2100# would cause problems or look ugly.
81ecdfbb
RW
2101# WARNING: Use '\'' to represent an apostrophe within the trap.
2102# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
b7026657
AC
2103trap 'exit_status=$?
2104 # Save into config.log some information that might help in debugging.
2105 {
2106 echo
2107
d0ac1c44 2108 $as_echo "## ---------------- ##
b7026657 2109## Cache variables. ##
d0ac1c44 2110## ---------------- ##"
b7026657
AC
2111 echo
2112 # The following way of writing the cache mishandles newlines in values,
81ecdfbb
RW
2113(
2114 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2115 eval ac_val=\$$ac_var
2116 case $ac_val in #(
2117 *${as_nl}*)
2118 case $ac_var in #(
2119 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2120$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2121 esac
2122 case $ac_var in #(
2123 _ | IFS | as_nl) ;; #(
2124 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2125 *) { eval $ac_var=; unset $ac_var;} ;;
2126 esac ;;
2127 esac
2128 done
b7026657 2129 (set) 2>&1 |
81ecdfbb
RW
2130 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2131 *${as_nl}ac_space=\ *)
b7026657 2132 sed -n \
81ecdfbb
RW
2133 "s/'\''/'\''\\\\'\'''\''/g;
2134 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2135 ;; #(
b7026657 2136 *)
81ecdfbb 2137 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
b7026657 2138 ;;
81ecdfbb
RW
2139 esac |
2140 sort
2141)
b7026657
AC
2142 echo
2143
d0ac1c44 2144 $as_echo "## ----------------- ##
b7026657 2145## Output variables. ##
d0ac1c44 2146## ----------------- ##"
b7026657
AC
2147 echo
2148 for ac_var in $ac_subst_vars
2149 do
81ecdfbb
RW
2150 eval ac_val=\$$ac_var
2151 case $ac_val in
2152 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2153 esac
2154 $as_echo "$ac_var='\''$ac_val'\''"
b7026657
AC
2155 done | sort
2156 echo
2157
2158 if test -n "$ac_subst_files"; then
d0ac1c44 2159 $as_echo "## ------------------- ##
81ecdfbb 2160## File substitutions. ##
d0ac1c44 2161## ------------------- ##"
b7026657
AC
2162 echo
2163 for ac_var in $ac_subst_files
2164 do
81ecdfbb
RW
2165 eval ac_val=\$$ac_var
2166 case $ac_val in
2167 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2168 esac
2169 $as_echo "$ac_var='\''$ac_val'\''"
b7026657
AC
2170 done | sort
2171 echo
2172 fi
2173
2174 if test -s confdefs.h; then
d0ac1c44 2175 $as_echo "## ----------- ##
b7026657 2176## confdefs.h. ##
d0ac1c44 2177## ----------- ##"
b7026657 2178 echo
81ecdfbb 2179 cat confdefs.h
b7026657
AC
2180 echo
2181 fi
2182 test "$ac_signal" != 0 &&
81ecdfbb
RW
2183 $as_echo "$as_me: caught signal $ac_signal"
2184 $as_echo "$as_me: exit $exit_status"
b7026657 2185 } >&5
81ecdfbb
RW
2186 rm -f core *.core core.conftest.* &&
2187 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
b7026657 2188 exit $exit_status
81ecdfbb 2189' 0
b7026657 2190for ac_signal in 1 2 13 15; do
81ecdfbb 2191 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
b7026657
AC
2192done
2193ac_signal=0
2194
2195# confdefs.h avoids OS command line length limits that DEFS can exceed.
81ecdfbb
RW
2196rm -f -r conftest* confdefs.h
2197
2198$as_echo "/* confdefs.h */" > confdefs.h
b7026657
AC
2199
2200# Predefined preprocessor variables.
2201
2202cat >>confdefs.h <<_ACEOF
2203#define PACKAGE_NAME "$PACKAGE_NAME"
2204_ACEOF
2205
b7026657
AC
2206cat >>confdefs.h <<_ACEOF
2207#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2208_ACEOF
2209
b7026657
AC
2210cat >>confdefs.h <<_ACEOF
2211#define PACKAGE_VERSION "$PACKAGE_VERSION"
2212_ACEOF
2213
b7026657
AC
2214cat >>confdefs.h <<_ACEOF
2215#define PACKAGE_STRING "$PACKAGE_STRING"
2216_ACEOF
2217
b7026657
AC
2218cat >>confdefs.h <<_ACEOF
2219#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2220_ACEOF
2221
81ecdfbb
RW
2222cat >>confdefs.h <<_ACEOF
2223#define PACKAGE_URL "$PACKAGE_URL"
2224_ACEOF
2225
b7026657
AC
2226
2227# Let the site file select an alternate cache file if it wants to.
81ecdfbb
RW
2228# Prefer an explicitly selected file to automatically selected ones.
2229ac_site_file1=NONE
2230ac_site_file2=NONE
2231if test -n "$CONFIG_SITE"; then
d0ac1c44
SM
2232 # We do not want a PATH search for config.site.
2233 case $CONFIG_SITE in #((
2234 -*) ac_site_file1=./$CONFIG_SITE;;
2235 */*) ac_site_file1=$CONFIG_SITE;;
2236 *) ac_site_file1=./$CONFIG_SITE;;
2237 esac
81ecdfbb
RW
2238elif test "x$prefix" != xNONE; then
2239 ac_site_file1=$prefix/share/config.site
2240 ac_site_file2=$prefix/etc/config.site
2241else
2242 ac_site_file1=$ac_default_prefix/share/config.site
2243 ac_site_file2=$ac_default_prefix/etc/config.site
2244fi
2245for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2246do
2247 test "x$ac_site_file" = xNONE && continue
d0ac1c44 2248 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
81ecdfbb
RW
2249 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2250$as_echo "$as_me: loading site script $ac_site_file" >&6;}
b7026657 2251 sed 's/^/| /' "$ac_site_file" >&5
d0ac1c44
SM
2252 . "$ac_site_file" \
2253 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2254$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2255as_fn_error $? "failed to load site script $ac_site_file
2256See \`config.log' for more details" "$LINENO" 5; }
b7026657
AC
2257 fi
2258done
2259
2260if test -r "$cache_file"; then
d0ac1c44
SM
2261 # Some versions of bash will fail to source /dev/null (special files
2262 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2263 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
81ecdfbb
RW
2264 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2265$as_echo "$as_me: loading cache $cache_file" >&6;}
b7026657 2266 case $cache_file in
81ecdfbb
RW
2267 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2268 *) . "./$cache_file";;
b7026657
AC
2269 esac
2270 fi
2271else
81ecdfbb
RW
2272 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2273$as_echo "$as_me: creating cache $cache_file" >&6;}
b7026657
AC
2274 >$cache_file
2275fi
2276
2277# Check that the precious variables saved in the cache have kept the same
2278# value.
2279ac_cache_corrupted=false
81ecdfbb 2280for ac_var in $ac_precious_vars; do
b7026657
AC
2281 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2282 eval ac_new_set=\$ac_env_${ac_var}_set
81ecdfbb
RW
2283 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2284 eval ac_new_val=\$ac_env_${ac_var}_value
b7026657
AC
2285 case $ac_old_set,$ac_new_set in
2286 set,)
81ecdfbb
RW
2287 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2288$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
b7026657
AC
2289 ac_cache_corrupted=: ;;
2290 ,set)
81ecdfbb
RW
2291 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2292$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
b7026657
AC
2293 ac_cache_corrupted=: ;;
2294 ,);;
2295 *)
2296 if test "x$ac_old_val" != "x$ac_new_val"; then
81ecdfbb
RW
2297 # differences in whitespace do not lead to failure.
2298 ac_old_val_w=`echo x $ac_old_val`
2299 ac_new_val_w=`echo x $ac_new_val`
2300 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2301 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2302$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2303 ac_cache_corrupted=:
2304 else
2305 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2306$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2307 eval $ac_var=\$ac_old_val
2308 fi
2309 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2310$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2311 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2312$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
b7026657
AC
2313 fi;;
2314 esac
2315 # Pass precious variables to config.status.
2316 if test "$ac_new_set" = set; then
2317 case $ac_new_val in
81ecdfbb 2318 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
b7026657
AC
2319 *) ac_arg=$ac_var=$ac_new_val ;;
2320 esac
2321 case " $ac_configure_args " in
2322 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
81ecdfbb 2323 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
b7026657
AC
2324 esac
2325 fi
2326done
2327if $ac_cache_corrupted; then
81ecdfbb
RW
2328 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2329$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2330 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2331$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
d0ac1c44 2332 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
b7026657 2333fi
81ecdfbb
RW
2334## -------------------- ##
2335## Main body of script. ##
2336## -------------------- ##
b7026657
AC
2337
2338ac_ext=c
2339ac_cpp='$CPP $CPPFLAGS'
2340ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2341ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2342ac_compiler_gnu=$ac_cv_c_compiler_gnu
2343
2344
35695fd6
AC
2345# This file contains common code used by all simulators.
2346#
2347# SIM_AC_COMMON invokes AC macros used by all simulators and by the common
2348# directory. It is intended to be invoked before any target specific stuff.
2349# SIM_AC_OUTPUT is a cover function to AC_OUTPUT to generate the Makefile.
2350# It is intended to be invoked last.
2351#
50df264d 2352# See README-HACKING for more details.
35695fd6 2353
d6416cdc
RW
2354# Include global overrides and fixes for Autoconf.
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
d6416cdc
RW
2377
2378
2379
2380
2381
2382
2383
35695fd6
AC
2384
2385
2386
db2e4d67 2387
5c887dd5
JB
2388
2389
6bb11ab3 2390# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
db2e4d67 2391#
6bb11ab3
L
2392# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
2393# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
2394# Written by Gordon Matzigkeit, 1996
2395#
2396# This file is free software; the Free Software Foundation gives
2397# unlimited permission to copy and/or distribute it, with or without
2398# modifications, as long as this notice is preserved.
db2e4d67 2399
db2e4d67 2400
db2e4d67 2401
6bb11ab3 2402# serial 56 LT_INIT
db2e4d67
MF
2403
2404
6bb11ab3
L
2405# LT_PREREQ(VERSION)
2406# ------------------
2407# Complain and exit if this libtool version is less that VERSION.
db2e4d67 2408
db2e4d67
MF
2409
2410
6bb11ab3
L
2411# _LT_CHECK_BUILDDIR
2412# ------------------
2413# Complain if the absolute build directory name contains unusual characters
db2e4d67
MF
2414
2415
35695fd6 2416
6bb11ab3
L
2417# LT_INIT([OPTIONS])
2418# ------------------
2419# LT_INIT
35695fd6 2420
6bb11ab3
L
2421# Old names:
2422# This is what autoupdate's m4 run will expand. It fires
2423# the warning (with _au_warn_XXX), outputs it into the
2424# updated configure.ac (with AC_DIAGNOSE), and then outputs
2425# the replacement expansion.
35695fd6
AC
2426
2427
6bb11ab3
L
2428# This is an auxiliary macro that is also run when
2429# autoupdate runs m4. It simply calls m4_warning, but
2430# we need a wrapper so that each warning is emitted only
2431# once. We break the quoting in m4_warning's argument in
2432# order to expand this macro's arguments, not AU_DEFUN's.
35695fd6
AC
2433
2434
6bb11ab3
L
2435# Finally, this is the expansion that is picked up by
2436# autoconf. It tells the user to run autoupdate, and
2437# then outputs the replacement expansion. We do not care
2438# about autoupdate's warning because that contains
2439# information on what to do *after* running autoupdate.
35695fd6 2440
6bb11ab3
L
2441# This is what autoupdate's m4 run will expand. It fires
2442# the warning (with _au_warn_XXX), outputs it into the
2443# updated configure.ac (with AC_DIAGNOSE), and then outputs
2444# the replacement expansion.
35695fd6
AC
2445
2446
6bb11ab3
L
2447# This is an auxiliary macro that is also run when
2448# autoupdate runs m4. It simply calls m4_warning, but
2449# we need a wrapper so that each warning is emitted only
2450# once. We break the quoting in m4_warning's argument in
2451# order to expand this macro's arguments, not AU_DEFUN's.
35695fd6
AC
2452
2453
6bb11ab3
L
2454# Finally, this is the expansion that is picked up by
2455# autoconf. It tells the user to run autoupdate, and
2456# then outputs the replacement expansion. We do not care
2457# about autoupdate's warning because that contains
2458# information on what to do *after* running autoupdate.
35695fd6
AC
2459
2460
2461
6bb11ab3
L
2462# _LT_CC_BASENAME(CC)
2463# -------------------
2464# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
35695fd6
AC
2465
2466
2467
6bb11ab3
L
2468# _LT_FILEUTILS_DEFAULTS
2469# ----------------------
2470# It is okay to use these file commands and assume they have been set
2471# sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
2472# _LT_FILEUTILS_DEFAULTS
35695fd6
AC
2473
2474
6bb11ab3
L
2475# _LT_SETUP
2476# ---------
2477# _LT_SETUP
35695fd6
AC
2478
2479
6bb11ab3
L
2480# _LT_PREPARE_SED_QUOTE_VARS
2481# --------------------------
2482# Define a few sed substitution that help us do robust quoting.
35695fd6
AC
2483
2484
6bb11ab3
L
2485# _LT_PROG_LTMAIN
2486# ---------------
2487# Note that this code is called both from `configure', and `config.status'
2488# now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,
2489# `config.status' has no value for ac_aux_dir unless we are using Automake,
2490# so we pass a copy along to make sure it has a sensible value anyway.
2491# _LT_PROG_LTMAIN
35695fd6
AC
2492
2493
6bb11ab3
L
2494## ------------------------------------- ##
2495## Accumulate code for creating libtool. ##
2496## ------------------------------------- ##
35695fd6 2497
6bb11ab3
L
2498# So that we can recreate a full libtool script including additional
2499# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
2500# in macros and then make a single call at the end using the `libtool'
2501# label.
35695fd6
AC
2502
2503
6bb11ab3
L
2504# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
2505# ----------------------------------------
2506# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
35695fd6
AC
2507
2508
6bb11ab3 2509# Initialize.
35695fd6
AC
2510
2511
2512
6bb11ab3
L
2513# _LT_CONFIG_LIBTOOL([COMMANDS])
2514# ------------------------------
2515# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
35695fd6
AC
2516
2517
6bb11ab3 2518# Initialize.
35695fd6
AC
2519
2520
2521
6bb11ab3
L
2522# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
2523# -----------------------------------------------------
35695fd6 2524
5912fadd
JB
2525
2526
6bb11ab3
L
2527# _LT_FORMAT_COMMENT([COMMENT])
2528# -----------------------------
2529# Add leading comment marks to the start of each line, and a trailing
2530# full-stop to the whole comment if one is not present already.
5912fadd
JB
2531
2532
35695fd6
AC
2533
2534
6bb11ab3
L
2535## ------------------------ ##
2536## FIXME: Eliminate VARNAME ##
2537## ------------------------ ##
35695fd6
AC
2538
2539
6bb11ab3
L
2540# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
2541# -------------------------------------------------------------------
2542# CONFIGNAME is the name given to the value in the libtool script.
2543# VARNAME is the (base) name used in the configure script.
2544# VALUE may be 0, 1 or 2 for a computed quote escaped value based on
2545# VARNAME. Any other value will be used directly.
35695fd6 2546
35695fd6
AC
2547
2548
6bb11ab3
L
2549# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
2550# --------------------------------------------------------
35695fd6
AC
2551
2552
2553
6bb11ab3
L
2554# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
2555# ------------------------------------------------
35695fd6
AC
2556
2557
2558
6bb11ab3
L
2559# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
2560# ---------------------------------------------------------
35695fd6
AC
2561
2562
2563
6bb11ab3
L
2564# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
2565# --------------------------------------------------
35695fd6
AC
2566
2567
2568
6bb11ab3
L
2569# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
2570# ---------------------------------------------------
35695fd6
AC
2571
2572
2573
6bb11ab3
L
2574# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
2575# ---------------------------------------------------
35695fd6
AC
2576
2577
2578
2579
6bb11ab3
L
2580# lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
2581# ------------------------------------------------
35695fd6
AC
2582
2583
2584
2585
6bb11ab3
L
2586# _LT_CONFIG_STATUS_DECLARE([VARNAME])
2587# ------------------------------------
2588# Quote a variable value, and forward it to `config.status' so that its
2589# declaration there will have the same value as in `configure'. VARNAME
2590# must have a single quote delimited value for this to work.
35695fd6
AC
2591
2592
2593
6bb11ab3
L
2594# _LT_CONFIG_STATUS_DECLARATIONS
2595# ------------------------------
2596# We delimit libtool config variables with single quotes, so when
2597# we write them to config.status, we have to be sure to quote all
2598# embedded single quotes properly. In configure, this macro expands
2599# each variable declared with _LT_DECL (and _LT_TAGDECL) into:
2600#
2601# <var>='`$ECHO "$<var>" | $SED "$delay_single_quote_subst"`'
35695fd6
AC
2602
2603
2604
6bb11ab3
L
2605# _LT_LIBTOOL_TAGS
2606# ----------------
2607# Output comment and list of tags supported by the script
35695fd6
AC
2608
2609
2610
6bb11ab3
L
2611# _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
2612# -----------------------------------
2613# Extract the dictionary values for VARNAME (optionally with TAG) and
2614# expand to a commented shell variable setting:
2615#
2616# # Some comment about what VAR is for.
2617# visible_name=$lt_internal_name
35695fd6
AC
2618
2619
35695fd6 2620
6bb11ab3
L
2621# _LT_LIBTOOL_CONFIG_VARS
2622# -----------------------
2623# Produce commented declarations of non-tagged libtool config variables
2624# suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
2625# script. Tagged libtool config variables (even for the LIBTOOL CONFIG
2626# section) are produced by _LT_LIBTOOL_TAG_VARS.
35695fd6
AC
2627
2628
6efef468 2629
6bb11ab3
L
2630# _LT_LIBTOOL_TAG_VARS(TAG)
2631# -------------------------
6efef468
JM
2632
2633
2634
6bb11ab3
L
2635# _LT_TAGVAR(VARNAME, [TAGNAME])
2636# ------------------------------
6efef468
JM
2637
2638
2639
6bb11ab3
L
2640# _LT_CONFIG_COMMANDS
2641# -------------------
2642# Send accumulated output to $CONFIG_STATUS. Thanks to the lists of
2643# variables for single and double quote escaping we saved from calls
2644# to _LT_DECL, we can put quote escaped variables declarations
2645# into `config.status', and then the shell code to quote escape them in
2646# for loops in `config.status'. Finally, any additional code accumulated
2647# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
2648#_LT_CONFIG_COMMANDS
2649
2650
2651# Initialize.
2652
2653
2654# _LT_GENERATED_FILE_INIT(FILE, [COMMENT])
2655# ------------------------------------
2656# Generate a child script FILE with all initialization necessary to
2657# reuse the environment learned by the parent script, and make the
2658# file executable. If COMMENT is supplied, it is inserted after the
2659# `#!' sequence but before initialization text begins. After this
2660# macro, additional text can be appended to FILE to form the body of
2661# the child script. The macro ends with non-zero status if the
2662# file could not be fully written (such as if the disk is full).
2663# _LT_GENERATED_FILE_INIT
2664
2665# LT_OUTPUT
2666# ---------
2667# This macro allows early generation of the libtool script (before
2668# AC_OUTPUT is called), incase it is used in configure for compilation
2669# tests.
2670# LT_OUTPUT
2671
2672
2673# _LT_CONFIG(TAG)
2674# ---------------
2675# If TAG is the built-in tag, create an initial libtool script with a
2676# default configuration from the untagged config vars. Otherwise add code
2677# to config.status for appending the configuration named by TAG from the
2678# matching tagged config vars.
2679# _LT_CONFIG
6efef468
JM
2680
2681
6bb11ab3
L
2682# LT_SUPPORTED_TAG(TAG)
2683# ---------------------
2684# Trace this macro to discover what tags are supported by the libtool
2685# --tag option, using:
2686# autoconf --trace 'LT_SUPPORTED_TAG:$1'
6efef468 2687
6efef468 2688
6efef468 2689
6bb11ab3 2690# C support is built-in for now
6efef468 2691
6efef468
JM
2692
2693
2694
6bb11ab3
L
2695# LT_LANG(LANG)
2696# -------------
2697# Enable libtool support for the given language if not already enabled.
2698# LT_LANG
6efef468
JM
2699
2700
6bb11ab3
L
2701# _LT_LANG(LANGNAME)
2702# ------------------
2703# _LT_LANG
6efef468
JM
2704
2705
6bb11ab3
L
2706# _LT_LANG_DEFAULT_CONFIG
2707# -----------------------
2708# _LT_LANG_DEFAULT_CONFIG
6efef468 2709
6bb11ab3
L
2710# Obsolete macros:
2711# This is what autoupdate's m4 run will expand. It fires
2712# the warning (with _au_warn_XXX), outputs it into the
2713# updated configure.ac (with AC_DIAGNOSE), and then outputs
2714# the replacement expansion.
6efef468 2715
6efef468 2716
6bb11ab3
L
2717# This is an auxiliary macro that is also run when
2718# autoupdate runs m4. It simply calls m4_warning, but
2719# we need a wrapper so that each warning is emitted only
2720# once. We break the quoting in m4_warning's argument in
2721# order to expand this macro's arguments, not AU_DEFUN's.
6efef468 2722
6efef468 2723
6bb11ab3
L
2724# Finally, this is the expansion that is picked up by
2725# autoconf. It tells the user to run autoupdate, and
2726# then outputs the replacement expansion. We do not care
2727# about autoupdate's warning because that contains
2728# information on what to do *after* running autoupdate.
6efef468 2729
6bb11ab3
L
2730# This is what autoupdate's m4 run will expand. It fires
2731# the warning (with _au_warn_XXX), outputs it into the
2732# updated configure.ac (with AC_DIAGNOSE), and then outputs
2733# the replacement expansion.
6efef468
JM
2734
2735
6bb11ab3
L
2736# This is an auxiliary macro that is also run when
2737# autoupdate runs m4. It simply calls m4_warning, but
2738# we need a wrapper so that each warning is emitted only
2739# once. We break the quoting in m4_warning's argument in
2740# order to expand this macro's arguments, not AU_DEFUN's.
6efef468
JM
2741
2742
6bb11ab3
L
2743# Finally, this is the expansion that is picked up by
2744# autoconf. It tells the user to run autoupdate, and
2745# then outputs the replacement expansion. We do not care
2746# about autoupdate's warning because that contains
2747# information on what to do *after* running autoupdate.
6efef468 2748
6bb11ab3
L
2749# This is what autoupdate's m4 run will expand. It fires
2750# the warning (with _au_warn_XXX), outputs it into the
2751# updated configure.ac (with AC_DIAGNOSE), and then outputs
2752# the replacement expansion.
6efef468
JM
2753
2754
6bb11ab3
L
2755# This is an auxiliary macro that is also run when
2756# autoupdate runs m4. It simply calls m4_warning, but
2757# we need a wrapper so that each warning is emitted only
2758# once. We break the quoting in m4_warning's argument in
2759# order to expand this macro's arguments, not AU_DEFUN's.
6efef468
JM
2760
2761
6bb11ab3
L
2762# Finally, this is the expansion that is picked up by
2763# autoconf. It tells the user to run autoupdate, and
2764# then outputs the replacement expansion. We do not care
2765# about autoupdate's warning because that contains
2766# information on what to do *after* running autoupdate.
6efef468 2767
6bb11ab3
L
2768# This is what autoupdate's m4 run will expand. It fires
2769# the warning (with _au_warn_XXX), outputs it into the
2770# updated configure.ac (with AC_DIAGNOSE), and then outputs
2771# the replacement expansion.
6efef468
JM
2772
2773
6bb11ab3
L
2774# This is an auxiliary macro that is also run when
2775# autoupdate runs m4. It simply calls m4_warning, but
2776# we need a wrapper so that each warning is emitted only
2777# once. We break the quoting in m4_warning's argument in
2778# order to expand this macro's arguments, not AU_DEFUN's.
6efef468
JM
2779
2780
6bb11ab3
L
2781# Finally, this is the expansion that is picked up by
2782# autoconf. It tells the user to run autoupdate, and
2783# then outputs the replacement expansion. We do not care
2784# about autoupdate's warning because that contains
2785# information on what to do *after* running autoupdate.
6efef468 2786
6bb11ab3
L
2787# This is what autoupdate's m4 run will expand. It fires
2788# the warning (with _au_warn_XXX), outputs it into the
2789# updated configure.ac (with AC_DIAGNOSE), and then outputs
2790# the replacement expansion.
6efef468
JM
2791
2792
6bb11ab3
L
2793# This is an auxiliary macro that is also run when
2794# autoupdate runs m4. It simply calls m4_warning, but
2795# we need a wrapper so that each warning is emitted only
2796# once. We break the quoting in m4_warning's argument in
2797# order to expand this macro's arguments, not AU_DEFUN's.
6efef468
JM
2798
2799
6bb11ab3
L
2800# Finally, this is the expansion that is picked up by
2801# autoconf. It tells the user to run autoupdate, and
2802# then outputs the replacement expansion. We do not care
2803# about autoupdate's warning because that contains
2804# information on what to do *after* running autoupdate.
6efef468 2805
35695fd6
AC
2806
2807
6bb11ab3
L
2808# _LT_TAG_COMPILER
2809# ----------------
2810# _LT_TAG_COMPILER
35695fd6
AC
2811
2812
6bb11ab3
L
2813# _LT_COMPILER_BOILERPLATE
2814# ------------------------
2815# Check for compiler boilerplate output or warnings with
2816# the simple compiler test code.
2817# _LT_COMPILER_BOILERPLATE
f0569246 2818
f0569246 2819
6bb11ab3
L
2820# _LT_LINKER_BOILERPLATE
2821# ----------------------
2822# Check for linker boilerplate output or warnings with
2823# the simple link test code.
2824# _LT_LINKER_BOILERPLATE
b7026657 2825
6bb11ab3
L
2826# _LT_REQUIRED_DARWIN_CHECKS
2827# -------------------------
81ecdfbb 2828
b7026657 2829
b7026657 2830
6bb11ab3
L
2831# _LT_DARWIN_LINKER_FEATURES
2832# --------------------------
2833# Checks for linker and compiler features on darwin
b7026657 2834
b7026657 2835
6bb11ab3
L
2836# _LT_SYS_MODULE_PATH_AIX
2837# -----------------------
2838# Links a minimal program and checks the executable
2839# for the system default hardcoded library path. In most cases,
2840# this is /usr/lib:/lib, but when the MPI compilers are used
2841# the location of the communication and MPI libs are included too.
2842# If we don't find anything, use the default library path according
2843# to the aix ld manual.
2844# _LT_SYS_MODULE_PATH_AIX
b7026657 2845
b7026657 2846
6bb11ab3
L
2847# _LT_SHELL_INIT(ARG)
2848# -------------------
2849# _LT_SHELL_INIT
b7026657 2850
f0569246 2851
81ecdfbb 2852
6bb11ab3
L
2853# _LT_PROG_ECHO_BACKSLASH
2854# -----------------------
2855# Find how we can fake an echo command that does not interpret backslash.
2856# In particular, with Autoconf 2.60 or later we add some code to the start
2857# of the generated configure script which will find a shell with a builtin
2858# printf (which we can use as an echo command).
2859# _LT_PROG_ECHO_BACKSLASH
f0569246 2860
b7026657 2861
6bb11ab3
L
2862# _LT_ENABLE_LOCK
2863# ---------------
2864# _LT_ENABLE_LOCK
81ecdfbb 2865
b7026657 2866
6bb11ab3
L
2867# _LT_CMD_OLD_ARCHIVE
2868# -------------------
2869# _LT_CMD_OLD_ARCHIVE
c906108c 2870
81ecdfbb 2871
6bb11ab3
L
2872# _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
2873# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
2874# ----------------------------------------------------------------
2875# Check whether the given compiler option works
2876# _LT_COMPILER_OPTION
b7026657 2877
6bb11ab3
L
2878# Old name:
2879# This is what autoupdate's m4 run will expand. It fires
2880# the warning (with _au_warn_XXX), outputs it into the
2881# updated configure.ac (with AC_DIAGNOSE), and then outputs
2882# the replacement expansion.
c906108c 2883
c906108c 2884
6bb11ab3
L
2885# This is an auxiliary macro that is also run when
2886# autoupdate runs m4. It simply calls m4_warning, but
2887# we need a wrapper so that each warning is emitted only
2888# once. We break the quoting in m4_warning's argument in
2889# order to expand this macro's arguments, not AU_DEFUN's.
c906108c 2890
f0569246 2891
6bb11ab3
L
2892# Finally, this is the expansion that is picked up by
2893# autoconf. It tells the user to run autoupdate, and
2894# then outputs the replacement expansion. We do not care
2895# about autoupdate's warning because that contains
2896# information on what to do *after* running autoupdate.
81ecdfbb 2897
b7026657 2898
f0569246 2899
6bb11ab3
L
2900# _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
2901# [ACTION-SUCCESS], [ACTION-FAILURE])
2902# ----------------------------------------------------
2903# Check whether the given linker option works
2904# _LT_LINKER_OPTION
81ecdfbb 2905
6bb11ab3
L
2906# Old name:
2907# This is what autoupdate's m4 run will expand. It fires
2908# the warning (with _au_warn_XXX), outputs it into the
2909# updated configure.ac (with AC_DIAGNOSE), and then outputs
2910# the replacement expansion.
81ecdfbb 2911
81ecdfbb 2912
6bb11ab3
L
2913# This is an auxiliary macro that is also run when
2914# autoupdate runs m4. It simply calls m4_warning, but
2915# we need a wrapper so that each warning is emitted only
2916# once. We break the quoting in m4_warning's argument in
2917# order to expand this macro's arguments, not AU_DEFUN's.
81ecdfbb 2918
b7026657 2919
6bb11ab3
L
2920# Finally, this is the expansion that is picked up by
2921# autoconf. It tells the user to run autoupdate, and
2922# then outputs the replacement expansion. We do not care
2923# about autoupdate's warning because that contains
2924# information on what to do *after* running autoupdate.
2925
2926
2927
2928# LT_CMD_MAX_LEN
2929#---------------
2930# LT_CMD_MAX_LEN
2931
2932# Old name:
2933# This is what autoupdate's m4 run will expand. It fires
2934# the warning (with _au_warn_XXX), outputs it into the
2935# updated configure.ac (with AC_DIAGNOSE), and then outputs
2936# the replacement expansion.
2937
2938
2939# This is an auxiliary macro that is also run when
2940# autoupdate runs m4. It simply calls m4_warning, but
2941# we need a wrapper so that each warning is emitted only
2942# once. We break the quoting in m4_warning's argument in
2943# order to expand this macro's arguments, not AU_DEFUN's.
2944
2945
2946# Finally, this is the expansion that is picked up by
2947# autoconf. It tells the user to run autoupdate, and
2948# then outputs the replacement expansion. We do not care
2949# about autoupdate's warning because that contains
2950# information on what to do *after* running autoupdate.
2951
2952
2953
2954# _LT_HEADER_DLFCN
2955# ----------------
2956# _LT_HEADER_DLFCN
2957
2958
2959# _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
2960# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
2961# ----------------------------------------------------------------
2962# _LT_TRY_DLOPEN_SELF
2963
2964
2965# LT_SYS_DLOPEN_SELF
2966# ------------------
2967# LT_SYS_DLOPEN_SELF
2968
2969# Old name:
2970# This is what autoupdate's m4 run will expand. It fires
2971# the warning (with _au_warn_XXX), outputs it into the
2972# updated configure.ac (with AC_DIAGNOSE), and then outputs
2973# the replacement expansion.
2974
2975
2976# This is an auxiliary macro that is also run when
2977# autoupdate runs m4. It simply calls m4_warning, but
2978# we need a wrapper so that each warning is emitted only
2979# once. We break the quoting in m4_warning's argument in
2980# order to expand this macro's arguments, not AU_DEFUN's.
2981
2982
2983# Finally, this is the expansion that is picked up by
2984# autoconf. It tells the user to run autoupdate, and
2985# then outputs the replacement expansion. We do not care
2986# about autoupdate's warning because that contains
2987# information on what to do *after* running autoupdate.
2988
2989
2990
2991# _LT_COMPILER_C_O([TAGNAME])
2992# ---------------------------
2993# Check to see if options -c and -o are simultaneously supported by compiler.
2994# This macro does not hard code the compiler like AC_PROG_CC_C_O.
2995# _LT_COMPILER_C_O
2996
2997
2998# _LT_COMPILER_FILE_LOCKS([TAGNAME])
2999# ----------------------------------
3000# Check to see if we can do hard links to lock some files if needed
3001# _LT_COMPILER_FILE_LOCKS
3002
3003
3004# _LT_CHECK_OBJDIR
3005# ----------------
3006# _LT_CHECK_OBJDIR
3007
3008
3009# _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
3010# --------------------------------------
3011# Check hardcoding attributes.
3012# _LT_LINKER_HARDCODE_LIBPATH
3013
3014
3015# _LT_CMD_STRIPLIB
3016# ----------------
3017# _LT_CMD_STRIPLIB
3018
3019
3020# _LT_SYS_DYNAMIC_LINKER([TAG])
3021# -----------------------------
3022# PORTME Fill in your ld.so characteristics
3023# _LT_SYS_DYNAMIC_LINKER
3024
3025
3026# _LT_PATH_TOOL_PREFIX(TOOL)
3027# --------------------------
3028# find a file program which can recognize shared library
3029# _LT_PATH_TOOL_PREFIX
3030
3031# Old name:
3032# This is what autoupdate's m4 run will expand. It fires
3033# the warning (with _au_warn_XXX), outputs it into the
3034# updated configure.ac (with AC_DIAGNOSE), and then outputs
3035# the replacement expansion.
3036
3037
3038# This is an auxiliary macro that is also run when
3039# autoupdate runs m4. It simply calls m4_warning, but
3040# we need a wrapper so that each warning is emitted only
3041# once. We break the quoting in m4_warning's argument in
3042# order to expand this macro's arguments, not AU_DEFUN's.
3043
3044
3045# Finally, this is the expansion that is picked up by
3046# autoconf. It tells the user to run autoupdate, and
3047# then outputs the replacement expansion. We do not care
3048# about autoupdate's warning because that contains
3049# information on what to do *after* running autoupdate.
3050
3051
3052
3053# _LT_PATH_MAGIC
3054# --------------
3055# find a file program which can recognize a shared library
3056# _LT_PATH_MAGIC
3057
3058
3059# LT_PATH_LD
3060# ----------
3061# find the pathname to the GNU or non-GNU linker
3062# LT_PATH_LD
3063
3064# Old names:
3065# This is what autoupdate's m4 run will expand. It fires
3066# the warning (with _au_warn_XXX), outputs it into the
3067# updated configure.ac (with AC_DIAGNOSE), and then outputs
3068# the replacement expansion.
3069
3070
3071# This is an auxiliary macro that is also run when
3072# autoupdate runs m4. It simply calls m4_warning, but
3073# we need a wrapper so that each warning is emitted only
3074# once. We break the quoting in m4_warning's argument in
3075# order to expand this macro's arguments, not AU_DEFUN's.
3076
3077
3078# Finally, this is the expansion that is picked up by
3079# autoconf. It tells the user to run autoupdate, and
3080# then outputs the replacement expansion. We do not care
3081# about autoupdate's warning because that contains
3082# information on what to do *after* running autoupdate.
3083
3084# This is what autoupdate's m4 run will expand. It fires
3085# the warning (with _au_warn_XXX), outputs it into the
3086# updated configure.ac (with AC_DIAGNOSE), and then outputs
3087# the replacement expansion.
3088
3089
3090# This is an auxiliary macro that is also run when
3091# autoupdate runs m4. It simply calls m4_warning, but
3092# we need a wrapper so that each warning is emitted only
3093# once. We break the quoting in m4_warning's argument in
3094# order to expand this macro's arguments, not AU_DEFUN's.
3095
3096
3097# Finally, this is the expansion that is picked up by
3098# autoconf. It tells the user to run autoupdate, and
3099# then outputs the replacement expansion. We do not care
3100# about autoupdate's warning because that contains
3101# information on what to do *after* running autoupdate.
3102
3103
3104
3105# _LT_PATH_LD_GNU
3106#- --------------
3107# _LT_PATH_LD_GNU
3108
3109
3110# _LT_CMD_RELOAD
3111# --------------
3112# find reload flag for linker
3113# -- PORTME Some linkers may need a different reload flag.
3114# _LT_CMD_RELOAD
3115
3116
3117# _LT_CHECK_MAGIC_METHOD
3118# ----------------------
3119# how to check for library dependencies
3120# -- PORTME fill in with the dynamic library characteristics
3121# _LT_CHECK_MAGIC_METHOD
3122
3123
3124# LT_PATH_NM
3125# ----------
3126# find the pathname to a BSD- or MS-compatible name lister
3127# LT_PATH_NM
3128
3129# Old names:
3130# This is what autoupdate's m4 run will expand. It fires
3131# the warning (with _au_warn_XXX), outputs it into the
3132# updated configure.ac (with AC_DIAGNOSE), and then outputs
3133# the replacement expansion.
3134
3135
3136# This is an auxiliary macro that is also run when
3137# autoupdate runs m4. It simply calls m4_warning, but
3138# we need a wrapper so that each warning is emitted only
3139# once. We break the quoting in m4_warning's argument in
3140# order to expand this macro's arguments, not AU_DEFUN's.
3141
3142
3143# Finally, this is the expansion that is picked up by
3144# autoconf. It tells the user to run autoupdate, and
3145# then outputs the replacement expansion. We do not care
3146# about autoupdate's warning because that contains
3147# information on what to do *after* running autoupdate.
3148
3149# This is what autoupdate's m4 run will expand. It fires
3150# the warning (with _au_warn_XXX), outputs it into the
3151# updated configure.ac (with AC_DIAGNOSE), and then outputs
3152# the replacement expansion.
3153
3154
3155# This is an auxiliary macro that is also run when
3156# autoupdate runs m4. It simply calls m4_warning, but
3157# we need a wrapper so that each warning is emitted only
3158# once. We break the quoting in m4_warning's argument in
3159# order to expand this macro's arguments, not AU_DEFUN's.
3160
3161
3162# Finally, this is the expansion that is picked up by
3163# autoconf. It tells the user to run autoupdate, and
3164# then outputs the replacement expansion. We do not care
3165# about autoupdate's warning because that contains
3166# information on what to do *after* running autoupdate.
3167
3168
3169
3170# LT_LIB_M
3171# --------
3172# check for math library
3173# LT_LIB_M
3174
3175# Old name:
3176# This is what autoupdate's m4 run will expand. It fires
3177# the warning (with _au_warn_XXX), outputs it into the
3178# updated configure.ac (with AC_DIAGNOSE), and then outputs
3179# the replacement expansion.
3180
3181
3182# This is an auxiliary macro that is also run when
3183# autoupdate runs m4. It simply calls m4_warning, but
3184# we need a wrapper so that each warning is emitted only
3185# once. We break the quoting in m4_warning's argument in
3186# order to expand this macro's arguments, not AU_DEFUN's.
3187
3188
3189# Finally, this is the expansion that is picked up by
3190# autoconf. It tells the user to run autoupdate, and
3191# then outputs the replacement expansion. We do not care
3192# about autoupdate's warning because that contains
3193# information on what to do *after* running autoupdate.
3194
3195
3196
3197# _LT_COMPILER_NO_RTTI([TAGNAME])
3198# -------------------------------
3199# _LT_COMPILER_NO_RTTI
3200
3201
3202# _LT_CMD_GLOBAL_SYMBOLS
3203# ----------------------
3204 # _LT_CMD_GLOBAL_SYMBOLS
3205
3206
3207# _LT_COMPILER_PIC([TAGNAME])
3208# ---------------------------
3209# _LT_COMPILER_PIC
3210
3211
3212# _LT_LINKER_SHLIBS([TAGNAME])
3213# ----------------------------
3214# See if the linker supports building shared libraries.
3215# _LT_LINKER_SHLIBS
3216
3217
3218# _LT_LANG_C_CONFIG([TAG])
3219# ------------------------
3220# Ensure that the configuration variables for a C compiler are suitably
3221# defined. These variables are subsequently used by _LT_CONFIG to write
3222# the compiler configuration to `libtool'.
3223# _LT_LANG_C_CONFIG
3224
3225
3226# _LT_LANG_CXX_CONFIG([TAG])
3227# --------------------------
3228# Ensure that the configuration variables for a C++ compiler are suitably
3229# defined. These variables are subsequently used by _LT_CONFIG to write
3230# the compiler configuration to `libtool'.
3231# _LT_LANG_CXX_CONFIG
3232
3233
3234# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
3235# ---------------------------------
3236# Figure out "hidden" library dependencies from verbose
3237# compiler output when linking a shared library.
3238# Parse the compiler output and extract the necessary
3239# objects, libraries and library flags.
3240# _LT_SYS_HIDDEN_LIBDEPS
3241
3242
3243# _LT_LANG_F77_CONFIG([TAG])
3244# --------------------------
3245# Ensure that the configuration variables for a Fortran 77 compiler are
3246# suitably defined. These variables are subsequently used by _LT_CONFIG
3247# to write the compiler configuration to `libtool'.
3248# _LT_LANG_F77_CONFIG
3249
3250
3251# _LT_LANG_FC_CONFIG([TAG])
3252# -------------------------
3253# Ensure that the configuration variables for a Fortran compiler are
3254# suitably defined. These variables are subsequently used by _LT_CONFIG
3255# to write the compiler configuration to `libtool'.
3256# _LT_LANG_FC_CONFIG
3257
3258
3259# _LT_LANG_GCJ_CONFIG([TAG])
3260# --------------------------
3261# Ensure that the configuration variables for the GNU Java Compiler compiler
3262# are suitably defined. These variables are subsequently used by _LT_CONFIG
3263# to write the compiler configuration to `libtool'.
3264# _LT_LANG_GCJ_CONFIG
3265
3266
3267# _LT_LANG_RC_CONFIG([TAG])
3268# -------------------------
3269# Ensure that the configuration variables for the Windows resource compiler
3270# are suitably defined. These variables are subsequently used by _LT_CONFIG
3271# to write the compiler configuration to `libtool'.
3272# _LT_LANG_RC_CONFIG
3273
3274
3275# LT_PROG_GCJ
3276# -----------
3277
3278
3279# Old name:
3280# This is what autoupdate's m4 run will expand. It fires
3281# the warning (with _au_warn_XXX), outputs it into the
3282# updated configure.ac (with AC_DIAGNOSE), and then outputs
3283# the replacement expansion.
3284
3285
3286# This is an auxiliary macro that is also run when
3287# autoupdate runs m4. It simply calls m4_warning, but
3288# we need a wrapper so that each warning is emitted only
3289# once. We break the quoting in m4_warning's argument in
3290# order to expand this macro's arguments, not AU_DEFUN's.
3291
3292
3293# Finally, this is the expansion that is picked up by
3294# autoconf. It tells the user to run autoupdate, and
3295# then outputs the replacement expansion. We do not care
3296# about autoupdate's warning because that contains
3297# information on what to do *after* running autoupdate.
3298
3299
3300
3301# LT_PROG_RC
3302# ----------
3303
3304
3305# Old name:
3306# This is what autoupdate's m4 run will expand. It fires
3307# the warning (with _au_warn_XXX), outputs it into the
3308# updated configure.ac (with AC_DIAGNOSE), and then outputs
3309# the replacement expansion.
3310
3311
3312# This is an auxiliary macro that is also run when
3313# autoupdate runs m4. It simply calls m4_warning, but
3314# we need a wrapper so that each warning is emitted only
3315# once. We break the quoting in m4_warning's argument in
3316# order to expand this macro's arguments, not AU_DEFUN's.
3317
3318
3319# Finally, this is the expansion that is picked up by
3320# autoconf. It tells the user to run autoupdate, and
3321# then outputs the replacement expansion. We do not care
3322# about autoupdate's warning because that contains
3323# information on what to do *after* running autoupdate.
3324
3325
3326
3327# _LT_DECL_EGREP
3328# --------------
3329# If we don't have a new enough Autoconf to choose the best grep
3330# available, choose the one first in the user's PATH.
3331
3332
3333
3334# _LT_DECL_OBJDUMP
3335# --------------
3336# If we don't have a new enough Autoconf to choose the best objdump
3337# available, choose the one first in the user's PATH.
3338
3339
3340
3341# _LT_DECL_SED
3342# ------------
3343# Check for a fully-functional sed program, that truncates
3344# as few characters as possible. Prefer GNU sed if found.
3345# _LT_DECL_SED
3346
3347#m4_ifndef
3348
3349# Old name:
3350# This is what autoupdate's m4 run will expand. It fires
3351# the warning (with _au_warn_XXX), outputs it into the
3352# updated configure.ac (with AC_DIAGNOSE), and then outputs
3353# the replacement expansion.
3354
3355
3356# This is an auxiliary macro that is also run when
3357# autoupdate runs m4. It simply calls m4_warning, but
3358# we need a wrapper so that each warning is emitted only
3359# once. We break the quoting in m4_warning's argument in
3360# order to expand this macro's arguments, not AU_DEFUN's.
3361
3362
3363# Finally, this is the expansion that is picked up by
3364# autoconf. It tells the user to run autoupdate, and
3365# then outputs the replacement expansion. We do not care
3366# about autoupdate's warning because that contains
3367# information on what to do *after* running autoupdate.
3368
3369
3370
3371# _LT_CHECK_SHELL_FEATURES
3372# ------------------------
3373# Find out whether the shell is Bourne or XSI compatible,
3374# or has some other useful features.
3375# _LT_CHECK_SHELL_FEATURES
3376
3377
3378# _LT_PROG_XSI_SHELLFNS
3379# ---------------------
3380# Bourne and XSI compatible variants of some useful shell functions.
3381
3382
3383# Helper functions for option handling. -*- Autoconf -*-
3384#
3385# Copyright (C) 2004, 2005, 2007, 2008, 2009 Free Software Foundation,
3386# Inc.
3387# Written by Gary V. Vaughan, 2004
3388#
3389# This file is free software; the Free Software Foundation gives
3390# unlimited permission to copy and/or distribute it, with or without
3391# modifications, as long as this notice is preserved.
3392
3393# serial 6 ltoptions.m4
3394
3395# This is to help aclocal find these macros, as it can't see m4_define.
3396
3397
3398
3399# _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
3400# ------------------------------------------
3401
3402
3403
3404# _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
3405# ---------------------------------------
3406# Set option OPTION-NAME for macro MACRO-NAME, and if there is a
3407# matching handler defined, dispatch to it. Other OPTION-NAMEs are
3408# saved as a flag.
3409
3410
3411
3412# _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
3413# ------------------------------------------------------------
3414# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
3415
3416
3417
3418# _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
3419# -------------------------------------------------------
3420# Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
3421# are set.
3422
3423
3424
3425# _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
3426# ----------------------------------------
3427# OPTION-LIST is a space-separated list of Libtool options associated
3428# with MACRO-NAME. If any OPTION has a matching handler declared with
3429# LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
3430# the unknown option and exit.
3431# _LT_SET_OPTIONS
3432
3433
3434## --------------------------------- ##
3435## Macros to handle LT_INIT options. ##
3436## --------------------------------- ##
3437
3438# _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
3439# -----------------------------------------
3440
3441
3442
3443# LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
3444# -----------------------------------------------
3445# LT_OPTION_DEFINE
3446
3447
3448# dlopen
3449# ------
3450
3451
3452# This is what autoupdate's m4 run will expand. It fires
3453# the warning (with _au_warn_XXX), outputs it into the
3454# updated configure.ac (with AC_DIAGNOSE), and then outputs
3455# the replacement expansion.
3456
3457
3458# This is an auxiliary macro that is also run when
3459# autoupdate runs m4. It simply calls m4_warning, but
3460# we need a wrapper so that each warning is emitted only
3461# once. We break the quoting in m4_warning's argument in
3462# order to expand this macro's arguments, not AU_DEFUN's.
3463
3464
3465# Finally, this is the expansion that is picked up by
3466# autoconf. It tells the user to run autoupdate, and
3467# then outputs the replacement expansion. We do not care
3468# about autoupdate's warning because that contains
3469# information on what to do *after* running autoupdate.
3470
3471
3472
3473
3474# win32-dll
3475# ---------
3476# Declare package support for building win32 dll's.
3477# win32-dll
3478
3479# This is what autoupdate's m4 run will expand. It fires
3480# the warning (with _au_warn_XXX), outputs it into the
3481# updated configure.ac (with AC_DIAGNOSE), and then outputs
3482# the replacement expansion.
3483
3484
3485# This is an auxiliary macro that is also run when
3486# autoupdate runs m4. It simply calls m4_warning, but
3487# we need a wrapper so that each warning is emitted only
3488# once. We break the quoting in m4_warning's argument in
3489# order to expand this macro's arguments, not AU_DEFUN's.
3490
3491
3492# Finally, this is the expansion that is picked up by
3493# autoconf. It tells the user to run autoupdate, and
3494# then outputs the replacement expansion. We do not care
3495# about autoupdate's warning because that contains
3496# information on what to do *after* running autoupdate.
3497
3498
3499
3500
3501# _LT_ENABLE_SHARED([DEFAULT])
3502# ----------------------------
3503# implement the --enable-shared flag, and supports the `shared' and
3504# `disable-shared' LT_INIT options.
3505# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
3506# _LT_ENABLE_SHARED
3507
3508
3509
3510
3511# Old names:
3512
3513
3514
3515
3516# This is what autoupdate's m4 run will expand. It fires
3517# the warning (with _au_warn_XXX), outputs it into the
3518# updated configure.ac (with AC_DIAGNOSE), and then outputs
3519# the replacement expansion.
3520
3521
3522# This is an auxiliary macro that is also run when
3523# autoupdate runs m4. It simply calls m4_warning, but
3524# we need a wrapper so that each warning is emitted only
3525# once. We break the quoting in m4_warning's argument in
3526# order to expand this macro's arguments, not AU_DEFUN's.
3527
3528
3529# Finally, this is the expansion that is picked up by
3530# autoconf. It tells the user to run autoupdate, and
3531# then outputs the replacement expansion. We do not care
3532# about autoupdate's warning because that contains
3533# information on what to do *after* running autoupdate.
3534
3535# This is what autoupdate's m4 run will expand. It fires
3536# the warning (with _au_warn_XXX), outputs it into the
3537# updated configure.ac (with AC_DIAGNOSE), and then outputs
3538# the replacement expansion.
3539
3540
3541# This is an auxiliary macro that is also run when
3542# autoupdate runs m4. It simply calls m4_warning, but
3543# we need a wrapper so that each warning is emitted only
3544# once. We break the quoting in m4_warning's argument in
3545# order to expand this macro's arguments, not AU_DEFUN's.
3546
3547
3548# Finally, this is the expansion that is picked up by
3549# autoconf. It tells the user to run autoupdate, and
3550# then outputs the replacement expansion. We do not care
3551# about autoupdate's warning because that contains
3552# information on what to do *after* running autoupdate.
3553
3554
3555
3556
3557
3558# _LT_ENABLE_STATIC([DEFAULT])
3559# ----------------------------
3560# implement the --enable-static flag, and support the `static' and
3561# `disable-static' LT_INIT options.
3562# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
3563# _LT_ENABLE_STATIC
3564
3565
3566
3567
3568# Old names:
3569
3570
3571
3572
3573# This is what autoupdate's m4 run will expand. It fires
3574# the warning (with _au_warn_XXX), outputs it into the
3575# updated configure.ac (with AC_DIAGNOSE), and then outputs
3576# the replacement expansion.
3577
3578
3579# This is an auxiliary macro that is also run when
3580# autoupdate runs m4. It simply calls m4_warning, but
3581# we need a wrapper so that each warning is emitted only
3582# once. We break the quoting in m4_warning's argument in
3583# order to expand this macro's arguments, not AU_DEFUN's.
3584
3585
3586# Finally, this is the expansion that is picked up by
3587# autoconf. It tells the user to run autoupdate, and
3588# then outputs the replacement expansion. We do not care
3589# about autoupdate's warning because that contains
3590# information on what to do *after* running autoupdate.
3591
3592# This is what autoupdate's m4 run will expand. It fires
3593# the warning (with _au_warn_XXX), outputs it into the
3594# updated configure.ac (with AC_DIAGNOSE), and then outputs
3595# the replacement expansion.
3596
3597
3598# This is an auxiliary macro that is also run when
3599# autoupdate runs m4. It simply calls m4_warning, but
3600# we need a wrapper so that each warning is emitted only
3601# once. We break the quoting in m4_warning's argument in
3602# order to expand this macro's arguments, not AU_DEFUN's.
3603
3604
3605# Finally, this is the expansion that is picked up by
3606# autoconf. It tells the user to run autoupdate, and
3607# then outputs the replacement expansion. We do not care
3608# about autoupdate's warning because that contains
3609# information on what to do *after* running autoupdate.
3610
3611
3612
3613
3614
3615# _LT_ENABLE_FAST_INSTALL([DEFAULT])
3616# ----------------------------------
3617# implement the --enable-fast-install flag, and support the `fast-install'
3618# and `disable-fast-install' LT_INIT options.
3619# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
3620# _LT_ENABLE_FAST_INSTALL
3621
3622
3623
3624
3625# Old names:
3626# This is what autoupdate's m4 run will expand. It fires
3627# the warning (with _au_warn_XXX), outputs it into the
3628# updated configure.ac (with AC_DIAGNOSE), and then outputs
3629# the replacement expansion.
3630
3631
3632# This is an auxiliary macro that is also run when
3633# autoupdate runs m4. It simply calls m4_warning, but
3634# we need a wrapper so that each warning is emitted only
3635# once. We break the quoting in m4_warning's argument in
3636# order to expand this macro's arguments, not AU_DEFUN's.
3637
3638
3639# Finally, this is the expansion that is picked up by
3640# autoconf. It tells the user to run autoupdate, and
3641# then outputs the replacement expansion. We do not care
3642# about autoupdate's warning because that contains
3643# information on what to do *after* running autoupdate.
3644
3645
3646# This is what autoupdate's m4 run will expand. It fires
3647# the warning (with _au_warn_XXX), outputs it into the
3648# updated configure.ac (with AC_DIAGNOSE), and then outputs
3649# the replacement expansion.
3650
3651
3652# This is an auxiliary macro that is also run when
3653# autoupdate runs m4. It simply calls m4_warning, but
3654# we need a wrapper so that each warning is emitted only
3655# once. We break the quoting in m4_warning's argument in
3656# order to expand this macro's arguments, not AU_DEFUN's.
3657
3658
3659# Finally, this is the expansion that is picked up by
3660# autoconf. It tells the user to run autoupdate, and
3661# then outputs the replacement expansion. We do not care
3662# about autoupdate's warning because that contains
3663# information on what to do *after* running autoupdate.
3664
3665
3666
3667
3668# _LT_WITH_PIC([MODE])
3669# --------------------
3670# implement the --with-pic flag, and support the `pic-only' and `no-pic'
3671# LT_INIT options.
3672# MODE is either `yes' or `no'. If omitted, it defaults to `both'.
3673# _LT_WITH_PIC
3674
3675
3676
3677
3678# Old name:
3679# This is what autoupdate's m4 run will expand. It fires
3680# the warning (with _au_warn_XXX), outputs it into the
3681# updated configure.ac (with AC_DIAGNOSE), and then outputs
3682# the replacement expansion.
3683
3684
3685# This is an auxiliary macro that is also run when
3686# autoupdate runs m4. It simply calls m4_warning, but
3687# we need a wrapper so that each warning is emitted only
3688# once. We break the quoting in m4_warning's argument in
3689# order to expand this macro's arguments, not AU_DEFUN's.
3690
3691
3692# Finally, this is the expansion that is picked up by
3693# autoconf. It tells the user to run autoupdate, and
3694# then outputs the replacement expansion. We do not care
3695# about autoupdate's warning because that contains
3696# information on what to do *after* running autoupdate.
3697
3698
3699
3700## ----------------- ##
3701## LTDL_INIT Options ##
3702## ----------------- ##
3703
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713# ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*-
3714#
3715# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
3716# Written by Gary V. Vaughan, 2004
3717#
3718# This file is free software; the Free Software Foundation gives
3719# unlimited permission to copy and/or distribute it, with or without
3720# modifications, as long as this notice is preserved.
3721
3722# serial 6 ltsugar.m4
3723
3724# This is to help aclocal find these macros, as it can't see m4_define.
3725
3726
3727
3728# lt_join(SEP, ARG1, [ARG2...])
3729# -----------------------------
3730# Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
3731# associated separator.
3732# Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
3733# versions in m4sugar had bugs.
3734
3735
3736
3737
3738# lt_car(LIST)
3739# lt_cdr(LIST)
3740# ------------
3741# Manipulate m4 lists.
3742# These macros are necessary as long as will still need to support
3743# Autoconf-2.59 which quotes differently.
3744
3745
3746
3747
3748
3749# lt_append(MACRO-NAME, STRING, [SEPARATOR])
3750# ------------------------------------------
3751# Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'.
3752# Note that neither SEPARATOR nor STRING are expanded; they are appended
3753# to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
3754# No SEPARATOR is output if MACRO-NAME was previously undefined (different
3755# than defined and empty).
3756#
3757# This macro is needed until we can rely on Autoconf 2.62, since earlier
3758# versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
3759
3760
3761
3762
3763# lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
3764# ----------------------------------------------------------
3765# Produce a SEP delimited list of all paired combinations of elements of
3766# PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list
3767# has the form PREFIXmINFIXSUFFIXn.
3768# Needed until we can rely on m4_combine added in Autoconf 2.62.
3769
3770
3771
3772# lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
3773# -----------------------------------------------------------------------
3774# Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
3775# by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
3776
3777
3778
3779# lt_dict_add(DICT, KEY, VALUE)
3780# -----------------------------
3781
3782
3783
3784# lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
3785# --------------------------------------------
3786
3787
3788
3789# lt_dict_fetch(DICT, KEY, [SUBKEY])
3790# ----------------------------------
3791
3792
3793
3794# lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
3795# -----------------------------------------------------------------
3796
3797
3798
3799# lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
3800# --------------------------------------------------------------
3801
3802
3803# ltversion.m4 -- version numbers -*- Autoconf -*-
3804#
3805# Copyright (C) 2004 Free Software Foundation, Inc.
3806# Written by Scott James Remnant, 2004
3807#
3808# This file is free software; the Free Software Foundation gives
3809# unlimited permission to copy and/or distribute it, with or without
3810# modifications, as long as this notice is preserved.
3811
3812# Generated from ltversion.in.
3813
3814# serial 3134 ltversion.m4
3815# This file is part of GNU Libtool
3816
3817
3818
3819
3820
3821
3822# lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
3823#
3824# Copyright (C) 2004, 2005, 2007, 2009 Free Software Foundation, Inc.
3825# Written by Scott James Remnant, 2004.
3826#
3827# This file is free software; the Free Software Foundation gives
3828# unlimited permission to copy and/or distribute it, with or without
3829# modifications, as long as this notice is preserved.
3830
3831# serial 4 lt~obsolete.m4
3832
3833# These exist entirely to fool aclocal when bootstrapping libtool.
3834#
3835# In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
3836# which have later been changed to m4_define as they aren't part of the
3837# exported API, or moved to Autoconf or Automake where they belong.
3838#
3839# The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN
3840# in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
3841# using a macro with the same name in our local m4/libtool.m4 it'll
3842# pull the old libtool.m4 in (it doesn't see our shiny new m4_define
3843# and doesn't know about Autoconf macros at all.)
3844#
3845# So we provide this file, which has a silly filename so it's always
3846# included after everything else. This provides aclocal with the
3847# AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
3848# because those macros already exist, or will be overwritten later.
3849# We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
3850#
3851# Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
3852# Yes, that means every name once taken will need to remain here until
3853# we give up compatibility with versions before 1.7, at which point
3854# we need to keep only those names which we still refer to.
3855
3856# This is to help aclocal find these macros, as it can't see m4_define.
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
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## -*- Autoconf -*-
3922
3923# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2007
3924# Free Software Foundation, Inc.
3925#
3926# This file is free software; the Free Software Foundation
3927# gives unlimited permission to copy and/or distribute it,
3928# with or without modifications, as long as this notice is preserved.
3929
3930# serial 8
3931
3932# Based on depend.m4 from automake 1.9, modified for standalone use in
3933# an environment where GNU make is required.
3934
3935# ZW_PROG_COMPILER_DEPENDENCIES
3936# -----------------------------
3937# Variant of _AM_DEPENDENCIES which just does the dependency probe and
3938# sets fooDEPMODE accordingly. Cache-variable compatible with
3939# original; not side-effect compatible. As the users of this macro
3940# may require accurate dependencies for correct builds, it does *not*
3941# honor --disable-dependency-checking, and failure to detect a usable
3942# method is an error. depcomp is assumed to be located in
3943# $ac_aux_dir.
3944#
3945# FIXME: Should use the Autoconf 2.5x language-selection mechanism.
3946
3947
3948
3949# AM_SET_DEPDIR
3950# -------------
3951# Choose a directory name for dependency files.
3952
3953
3954# ZW_CREATE_DEPDIR
3955# ----------------
3956# As AM_SET_DEPDIR, but also create the directory at config.status time.
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
6bb11ab3
L
3998
3999
4000
4001
4002
6bb11ab3
L
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
6bb11ab3
L
4018
4019
4020
4021
4022
4023# intl sister-directory configuration rules.
4024#
4025
4026# The idea behind this macro is that there's no need to repeat all the
4027# autoconf probes done by the intl directory - it's already done them
4028# for us. In fact, there's no need even to look at the cache for the
4029# answers. All we need to do is nab a few pieces of information.
4030# The intl directory is set up to make this easy, by generating a
4031# small file which can be sourced as a shell script; then we produce
4032# the necessary substitutions and definitions for this directory.
4033
4034
4035
4036# Autoconf M4 include file defining utility macros for complex Canadian
4037# cross builds.
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047####
4048# _NCN_TOOL_PREFIXES: Some stuff that oughtta be done in AC_CANONICAL_SYSTEM
4049# or AC_INIT.
4050# These demand that AC_CANONICAL_SYSTEM be called beforehand.
4051
4052####
4053# NCN_STRICT_CHECK_TOOLS(variable, progs-to-check-for,[value-if-not-found],[path])
4054# Like plain AC_CHECK_TOOLS, but require prefix if build!=host.
4055
4056
4057####
4058# NCN_STRICT_CHECK_TARGET_TOOLS(variable, progs-to-check-for,[value-if-not-found],[path])
4059# Like CVS Autoconf AC_CHECK_TARGET_TOOLS, but require prefix if build!=target.
4060
4061
4062
4063# Backported from Autoconf 2.5x; can go away when and if
4064# we switch. Put the OS path separator in $PATH_SEPARATOR.
4065
4066
4067
4068
37f980dc
SM
4069
4070
4071
4072
6bb11ab3
L
4073# ACX_HAVE_GCC_FOR_TARGET
4074# Check if the variable GCC_FOR_TARGET really points to a GCC binary.
4075
4076
4077# ACX_CHECK_INSTALLED_TARGET_TOOL(VAR, PROG)
4078# Searching for installed target binutils. We need to take extra care,
4079# else we may find the wrong assembler, linker, etc., and lose.
4080#
4081# First try --with-build-time-tools, if specified.
4082#
4083# For build != host, we ask the installed GCC for the name of the tool it
4084# uses, and accept it if it is an absolute path. This is because the
4085# only good choice for a compiler is the same GCC version that is being
4086# installed (or we couldn't make target libraries), and we assume that
4087# on the host system we'll have not only the same GCC version, but also
4088# the same binutils version.
4089#
4090# For build == host, search the same directories that the installed
4091# compiler will search. We used to do this for the assembler, linker,
4092# and nm only; for simplicity of configuration, however, we extend this
4093# criterion to tools (such as ar and ranlib) that are never invoked by
4094# the compiler, to avoid mismatches.
4095#
4096# Also note we have to check MD_EXEC_PREFIX before checking the user's path
4097# if build == target. This makes the most sense only when bootstrapping,
4098# but we also do so when build != host. In this case, we hope that the
4099# build and host systems will have similar contents of MD_EXEC_PREFIX.
4100#
4101# If we do not find a suitable binary, then try the user's path.
4102
4103
4104###
4105# AC_PROG_CPP_WERROR
4106# Used for autoconf 2.5x to force AC_PREPROC_IFELSE to reject code which
4107# triggers warnings from the preprocessor. Will be in autoconf 2.58.
4108# For now, using this also overrides header checks to use only the
4109# preprocessor (matches 2.13 behavior; matching 2.58's behavior is a
4110# bit harder from here).
4111# Eventually autoconf will default to checking headers with the compiler
4112# instead, and we'll have to do this differently.
4113
4114# AC_PROG_CPP_WERROR
4115
4116# Test for GNAT.
4117# We require the gnatbind & gnatmake programs, as well as a compiler driver
4118# that understands Ada. We use the user's CC setting, already found, and
4119# possibly add $1 to the command-line parameters.
4120#
4121# Sets the shell variable have_gnat to yes or no as appropriate, and
4122# substitutes GNATBIND and GNATMAKE.
4123
4124
4125
4126
4127
4128
4129
4130
4131
4132
4133
4134
4135
4136
4137
4138
4139
4140
4141
4142
4143
4144
4145
4146
4147
4148ac_ext=c
4149ac_cpp='$CPP $CPPFLAGS'
4150ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4151ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4152ac_compiler_gnu=$ac_cv_c_compiler_gnu
4153if test -n "$ac_tool_prefix"; then
4154 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4155set dummy ${ac_tool_prefix}gcc; ac_word=$2
4156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4157$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4158if ${ac_cv_prog_CC+:} false; then :
6bb11ab3
L
4159 $as_echo_n "(cached) " >&6
4160else
4161 if test -n "$CC"; then
4162 ac_cv_prog_CC="$CC" # Let the user override the test.
4163else
4164as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4165for as_dir in $PATH
4166do
4167 IFS=$as_save_IFS
4168 test -z "$as_dir" && as_dir=.
4169 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4170 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
4171 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4173 break 2
4174 fi
4175done
4176 done
4177IFS=$as_save_IFS
4178
4179fi
4180fi
4181CC=$ac_cv_prog_CC
4182if test -n "$CC"; then
4183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4184$as_echo "$CC" >&6; }
4185else
4186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4187$as_echo "no" >&6; }
4188fi
4189
4190
4191fi
4192if test -z "$ac_cv_prog_CC"; then
4193 ac_ct_CC=$CC
4194 # Extract the first word of "gcc", so it can be a program name with args.
4195set dummy gcc; ac_word=$2
4196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4197$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4198if ${ac_cv_prog_ac_ct_CC+:} false; then :
6bb11ab3
L
4199 $as_echo_n "(cached) " >&6
4200else
4201 if test -n "$ac_ct_CC"; then
4202 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4203else
4204as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4205for as_dir in $PATH
4206do
4207 IFS=$as_save_IFS
4208 test -z "$as_dir" && as_dir=.
4209 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4210 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
4211 ac_cv_prog_ac_ct_CC="gcc"
4212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4213 break 2
4214 fi
4215done
4216 done
4217IFS=$as_save_IFS
4218
4219fi
4220fi
4221ac_ct_CC=$ac_cv_prog_ac_ct_CC
4222if test -n "$ac_ct_CC"; then
4223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4224$as_echo "$ac_ct_CC" >&6; }
4225else
4226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4227$as_echo "no" >&6; }
4228fi
4229
4230 if test "x$ac_ct_CC" = x; then
4231 CC=""
4232 else
4233 case $cross_compiling:$ac_tool_warned in
4234yes:)
4235{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4236$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4237ac_tool_warned=yes ;;
4238esac
4239 CC=$ac_ct_CC
4240 fi
4241else
4242 CC="$ac_cv_prog_CC"
4243fi
4244
4245if test -z "$CC"; then
4246 if test -n "$ac_tool_prefix"; then
4247 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4248set dummy ${ac_tool_prefix}cc; ac_word=$2
4249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4250$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4251if ${ac_cv_prog_CC+:} false; then :
6bb11ab3
L
4252 $as_echo_n "(cached) " >&6
4253else
4254 if test -n "$CC"; then
4255 ac_cv_prog_CC="$CC" # Let the user override the test.
4256else
4257as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4258for as_dir in $PATH
4259do
4260 IFS=$as_save_IFS
4261 test -z "$as_dir" && as_dir=.
4262 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4263 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
4264 ac_cv_prog_CC="${ac_tool_prefix}cc"
4265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4266 break 2
4267 fi
4268done
4269 done
4270IFS=$as_save_IFS
4271
4272fi
4273fi
4274CC=$ac_cv_prog_CC
4275if test -n "$CC"; then
4276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4277$as_echo "$CC" >&6; }
4278else
4279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4280$as_echo "no" >&6; }
4281fi
4282
4283
4284 fi
4285fi
4286if test -z "$CC"; then
4287 # Extract the first word of "cc", so it can be a program name with args.
4288set dummy cc; ac_word=$2
4289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4290$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4291if ${ac_cv_prog_CC+:} false; then :
6bb11ab3
L
4292 $as_echo_n "(cached) " >&6
4293else
4294 if test -n "$CC"; then
4295 ac_cv_prog_CC="$CC" # Let the user override the test.
4296else
4297 ac_prog_rejected=no
4298as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4299for as_dir in $PATH
4300do
4301 IFS=$as_save_IFS
4302 test -z "$as_dir" && as_dir=.
4303 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4304 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
4305 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4306 ac_prog_rejected=yes
4307 continue
4308 fi
4309 ac_cv_prog_CC="cc"
4310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4311 break 2
4312 fi
4313done
4314 done
4315IFS=$as_save_IFS
4316
4317if test $ac_prog_rejected = yes; then
4318 # We found a bogon in the path, so make sure we never use it.
4319 set dummy $ac_cv_prog_CC
4320 shift
4321 if test $# != 0; then
4322 # We chose a different compiler from the bogus one.
4323 # However, it has the same basename, so the bogon will be chosen
4324 # first if we set CC to just the basename; use the full file name.
4325 shift
4326 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4327 fi
4328fi
4329fi
4330fi
4331CC=$ac_cv_prog_CC
4332if test -n "$CC"; then
4333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4334$as_echo "$CC" >&6; }
4335else
4336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4337$as_echo "no" >&6; }
4338fi
4339
4340
4341fi
4342if test -z "$CC"; then
4343 if test -n "$ac_tool_prefix"; then
4344 for ac_prog in cl.exe
4345 do
4346 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4347set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4349$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4350if ${ac_cv_prog_CC+:} false; then :
6bb11ab3
L
4351 $as_echo_n "(cached) " >&6
4352else
4353 if test -n "$CC"; then
4354 ac_cv_prog_CC="$CC" # Let the user override the test.
4355else
4356as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4357for as_dir in $PATH
4358do
4359 IFS=$as_save_IFS
4360 test -z "$as_dir" && as_dir=.
4361 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4362 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
4363 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4365 break 2
4366 fi
4367done
4368 done
4369IFS=$as_save_IFS
4370
4371fi
4372fi
4373CC=$ac_cv_prog_CC
4374if test -n "$CC"; then
4375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4376$as_echo "$CC" >&6; }
4377else
4378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4379$as_echo "no" >&6; }
4380fi
4381
4382
4383 test -n "$CC" && break
4384 done
4385fi
4386if test -z "$CC"; then
4387 ac_ct_CC=$CC
4388 for ac_prog in cl.exe
4389do
4390 # Extract the first word of "$ac_prog", so it can be a program name with args.
4391set dummy $ac_prog; ac_word=$2
4392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4393$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4394if ${ac_cv_prog_ac_ct_CC+:} false; then :
6bb11ab3
L
4395 $as_echo_n "(cached) " >&6
4396else
4397 if test -n "$ac_ct_CC"; then
4398 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4399else
4400as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4401for as_dir in $PATH
4402do
4403 IFS=$as_save_IFS
4404 test -z "$as_dir" && as_dir=.
4405 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4406 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
4407 ac_cv_prog_ac_ct_CC="$ac_prog"
4408 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4409 break 2
4410 fi
4411done
4412 done
4413IFS=$as_save_IFS
4414
4415fi
4416fi
4417ac_ct_CC=$ac_cv_prog_ac_ct_CC
4418if test -n "$ac_ct_CC"; then
4419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4420$as_echo "$ac_ct_CC" >&6; }
4421else
4422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4423$as_echo "no" >&6; }
4424fi
4425
4426
4427 test -n "$ac_ct_CC" && break
4428done
4429
4430 if test "x$ac_ct_CC" = x; then
4431 CC=""
4432 else
4433 case $cross_compiling:$ac_tool_warned in
4434yes:)
4435{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4436$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4437ac_tool_warned=yes ;;
4438esac
4439 CC=$ac_ct_CC
4440 fi
4441fi
4442
4443fi
4444
4445
4446test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4447$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
4448as_fn_error $? "no acceptable C compiler found in \$PATH
4449See \`config.log' for more details" "$LINENO" 5; }
6bb11ab3
L
4450
4451# Provide some information about the compiler.
4452$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4453set X $ac_compile
4454ac_compiler=$2
4455for ac_option in --version -v -V -qversion; do
4456 { { ac_try="$ac_compiler $ac_option >&5"
4457case "(($ac_try" in
4458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4459 *) ac_try_echo=$ac_try;;
4460esac
4461eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4462$as_echo "$ac_try_echo"; } >&5
4463 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4464 ac_status=$?
4465 if test -s conftest.err; then
4466 sed '10a\
4467... rest of stderr output deleted ...
4468 10q' conftest.err >conftest.er1
4469 cat conftest.er1 >&5
6bb11ab3 4470 fi
d0ac1c44 4471 rm -f conftest.er1 conftest.err
6bb11ab3
L
4472 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4473 test $ac_status = 0; }
4474done
4475
4476cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4477/* end confdefs.h. */
4478
4479int
4480main ()
4481{
4482
4483 ;
4484 return 0;
4485}
4486_ACEOF
4487ac_clean_files_save=$ac_clean_files
d0ac1c44 4488ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
6bb11ab3
L
4489# Try to create an executable without -o first, disregard a.out.
4490# It will help us diagnose broken compilers, and finding out an intuition
4491# of exeext.
d0ac1c44
SM
4492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4493$as_echo_n "checking whether the C compiler works... " >&6; }
6bb11ab3
L
4494ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4495
4496# The possible output files:
4497ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4498
4499ac_rmfiles=
4500for ac_file in $ac_files
4501do
4502 case $ac_file in
4503 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4504 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4505 esac
4506done
4507rm -f $ac_rmfiles
4508
4509if { { ac_try="$ac_link_default"
4510case "(($ac_try" in
4511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4512 *) ac_try_echo=$ac_try;;
4513esac
4514eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4515$as_echo "$ac_try_echo"; } >&5
4516 (eval "$ac_link_default") 2>&5
4517 ac_status=$?
4518 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4519 test $ac_status = 0; }; then :
4520 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4521# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4522# in a Makefile. We should not override ac_cv_exeext if it was cached,
4523# so that the user can short-circuit this test for compilers unknown to
4524# Autoconf.
4525for ac_file in $ac_files ''
4526do
4527 test -f "$ac_file" || continue
4528 case $ac_file in
4529 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4530 ;;
4531 [ab].out )
4532 # We found the default executable, but exeext='' is most
4533 # certainly right.
4534 break;;
4535 *.* )
4536 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4537 then :; else
4538 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4539 fi
4540 # We set ac_cv_exeext here because the later test for it is not
4541 # safe: cross compilers may not add the suffix if given an `-o'
4542 # argument, so we may need to know it at that point already.
4543 # Even if this section looks crufty: it has the advantage of
4544 # actually working.
4545 break;;
4546 * )
4547 break;;
4548 esac
4549done
4550test "$ac_cv_exeext" = no && ac_cv_exeext=
4551
4552else
4553 ac_file=''
4554fi
6bb11ab3 4555if test -z "$ac_file"; then :
d0ac1c44
SM
4556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4557$as_echo "no" >&6; }
4558$as_echo "$as_me: failed program was:" >&5
6bb11ab3
L
4559sed 's/^/| /' conftest.$ac_ext >&5
4560
4561{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4562$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
4563as_fn_error 77 "C compiler cannot create executables
4564See \`config.log' for more details" "$LINENO" 5; }
4565else
4566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4567$as_echo "yes" >&6; }
6bb11ab3 4568fi
d0ac1c44
SM
4569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4570$as_echo_n "checking for C compiler default output file name... " >&6; }
4571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4572$as_echo "$ac_file" >&6; }
6bb11ab3
L
4573ac_exeext=$ac_cv_exeext
4574
d0ac1c44 4575rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
6bb11ab3 4576ac_clean_files=$ac_clean_files_save
6bb11ab3
L
4577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4578$as_echo_n "checking for suffix of executables... " >&6; }
4579if { { ac_try="$ac_link"
4580case "(($ac_try" in
4581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4582 *) ac_try_echo=$ac_try;;
4583esac
4584eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4585$as_echo "$ac_try_echo"; } >&5
4586 (eval "$ac_link") 2>&5
4587 ac_status=$?
4588 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4589 test $ac_status = 0; }; then :
4590 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4591# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4592# work properly (i.e., refer to `conftest.exe'), while it won't with
4593# `rm'.
4594for ac_file in conftest.exe conftest conftest.*; do
4595 test -f "$ac_file" || continue
4596 case $ac_file in
4597 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4598 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4599 break;;
4600 * ) break;;
4601 esac
4602done
4603else
4604 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4605$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
4606as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4607See \`config.log' for more details" "$LINENO" 5; }
6bb11ab3 4608fi
d0ac1c44 4609rm -f conftest conftest$ac_cv_exeext
6bb11ab3
L
4610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4611$as_echo "$ac_cv_exeext" >&6; }
4612
4613rm -f conftest.$ac_ext
4614EXEEXT=$ac_cv_exeext
4615ac_exeext=$EXEEXT
d0ac1c44
SM
4616cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4617/* end confdefs.h. */
4618#include <stdio.h>
4619int
4620main ()
4621{
4622FILE *f = fopen ("conftest.out", "w");
4623 return ferror (f) || fclose (f) != 0;
4624
4625 ;
4626 return 0;
4627}
4628_ACEOF
4629ac_clean_files="$ac_clean_files conftest.out"
4630# Check that the compiler produces executables we can run. If not, either
4631# the compiler is broken, or we cross compile.
4632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4633$as_echo_n "checking whether we are cross compiling... " >&6; }
4634if test "$cross_compiling" != yes; then
4635 { { ac_try="$ac_link"
4636case "(($ac_try" in
4637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4638 *) ac_try_echo=$ac_try;;
4639esac
4640eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4641$as_echo "$ac_try_echo"; } >&5
4642 (eval "$ac_link") 2>&5
4643 ac_status=$?
4644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4645 test $ac_status = 0; }
4646 if { ac_try='./conftest$ac_cv_exeext'
4647 { { case "(($ac_try" in
4648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4649 *) ac_try_echo=$ac_try;;
4650esac
4651eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4652$as_echo "$ac_try_echo"; } >&5
4653 (eval "$ac_try") 2>&5
4654 ac_status=$?
4655 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4656 test $ac_status = 0; }; }; then
4657 cross_compiling=no
4658 else
4659 if test "$cross_compiling" = maybe; then
4660 cross_compiling=yes
4661 else
4662 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4663$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4664as_fn_error $? "cannot run C compiled programs.
4665If you meant to cross compile, use \`--host'.
4666See \`config.log' for more details" "$LINENO" 5; }
4667 fi
4668 fi
4669fi
4670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4671$as_echo "$cross_compiling" >&6; }
4672
4673rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4674ac_clean_files=$ac_clean_files_save
6bb11ab3
L
4675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4676$as_echo_n "checking for suffix of object files... " >&6; }
d0ac1c44 4677if ${ac_cv_objext+:} false; then :
6bb11ab3
L
4678 $as_echo_n "(cached) " >&6
4679else
4680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4681/* end confdefs.h. */
4682
4683int
4684main ()
4685{
4686
4687 ;
4688 return 0;
4689}
4690_ACEOF
4691rm -f conftest.o conftest.obj
4692if { { ac_try="$ac_compile"
4693case "(($ac_try" in
4694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4695 *) ac_try_echo=$ac_try;;
4696esac
4697eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4698$as_echo "$ac_try_echo"; } >&5
4699 (eval "$ac_compile") 2>&5
4700 ac_status=$?
4701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4702 test $ac_status = 0; }; then :
4703 for ac_file in conftest.o conftest.obj conftest.*; do
4704 test -f "$ac_file" || continue;
4705 case $ac_file in
4706 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4707 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4708 break;;
4709 esac
4710done
4711else
4712 $as_echo "$as_me: failed program was:" >&5
4713sed 's/^/| /' conftest.$ac_ext >&5
4714
4715{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4716$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
4717as_fn_error $? "cannot compute suffix of object files: cannot compile
4718See \`config.log' for more details" "$LINENO" 5; }
6bb11ab3
L
4719fi
4720rm -f conftest.$ac_cv_objext conftest.$ac_ext
4721fi
4722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4723$as_echo "$ac_cv_objext" >&6; }
4724OBJEXT=$ac_cv_objext
4725ac_objext=$OBJEXT
4726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4727$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
d0ac1c44 4728if ${ac_cv_c_compiler_gnu+:} false; then :
6bb11ab3
L
4729 $as_echo_n "(cached) " >&6
4730else
4731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4732/* end confdefs.h. */
4733
4734int
4735main ()
4736{
4737#ifndef __GNUC__
4738 choke me
4739#endif
4740
4741 ;
4742 return 0;
4743}
4744_ACEOF
4745if ac_fn_c_try_compile "$LINENO"; then :
4746 ac_compiler_gnu=yes
4747else
4748 ac_compiler_gnu=no
4749fi
4750rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4751ac_cv_c_compiler_gnu=$ac_compiler_gnu
4752
4753fi
4754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4755$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4756if test $ac_compiler_gnu = yes; then
4757 GCC=yes
4758else
4759 GCC=
4760fi
4761ac_test_CFLAGS=${CFLAGS+set}
4762ac_save_CFLAGS=$CFLAGS
4763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4764$as_echo_n "checking whether $CC accepts -g... " >&6; }
d0ac1c44 4765if ${ac_cv_prog_cc_g+:} false; then :
6bb11ab3
L
4766 $as_echo_n "(cached) " >&6
4767else
4768 ac_save_c_werror_flag=$ac_c_werror_flag
4769 ac_c_werror_flag=yes
4770 ac_cv_prog_cc_g=no
4771 CFLAGS="-g"
4772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4773/* end confdefs.h. */
4774
4775int
4776main ()
4777{
4778
4779 ;
4780 return 0;
4781}
4782_ACEOF
4783if ac_fn_c_try_compile "$LINENO"; then :
4784 ac_cv_prog_cc_g=yes
4785else
4786 CFLAGS=""
4787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4788/* end confdefs.h. */
4789
4790int
4791main ()
4792{
4793
4794 ;
4795 return 0;
4796}
4797_ACEOF
4798if ac_fn_c_try_compile "$LINENO"; then :
4799
4800else
4801 ac_c_werror_flag=$ac_save_c_werror_flag
4802 CFLAGS="-g"
4803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4804/* end confdefs.h. */
4805
4806int
4807main ()
4808{
4809
4810 ;
4811 return 0;
4812}
4813_ACEOF
4814if ac_fn_c_try_compile "$LINENO"; then :
4815 ac_cv_prog_cc_g=yes
4816fi
4817rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4818fi
4819rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4820fi
4821rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4822 ac_c_werror_flag=$ac_save_c_werror_flag
4823fi
4824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4825$as_echo "$ac_cv_prog_cc_g" >&6; }
4826if test "$ac_test_CFLAGS" = set; then
4827 CFLAGS=$ac_save_CFLAGS
4828elif test $ac_cv_prog_cc_g = yes; then
4829 if test "$GCC" = yes; then
4830 CFLAGS="-g -O2"
4831 else
4832 CFLAGS="-g"
4833 fi
4834else
4835 if test "$GCC" = yes; then
4836 CFLAGS="-O2"
4837 else
4838 CFLAGS=
4839 fi
4840fi
4841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4842$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
d0ac1c44 4843if ${ac_cv_prog_cc_c89+:} false; then :
6bb11ab3
L
4844 $as_echo_n "(cached) " >&6
4845else
4846 ac_cv_prog_cc_c89=no
4847ac_save_CC=$CC
4848cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4849/* end confdefs.h. */
4850#include <stdarg.h>
4851#include <stdio.h>
d0ac1c44 4852struct stat;
6bb11ab3
L
4853/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4854struct buf { int x; };
4855FILE * (*rcsopen) (struct buf *, struct stat *, int);
4856static char *e (p, i)
4857 char **p;
4858 int i;
4859{
4860 return p[i];
4861}
4862static char *f (char * (*g) (char **, int), char **p, ...)
4863{
4864 char *s;
4865 va_list v;
4866 va_start (v,p);
4867 s = g (p, va_arg (v,int));
4868 va_end (v);
4869 return s;
4870}
4871
4872/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4873 function prototypes and stuff, but not '\xHH' hex character constants.
4874 These don't provoke an error unfortunately, instead are silently treated
4875 as 'x'. The following induces an error, until -std is added to get
4876 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4877 array size at least. It's necessary to write '\x00'==0 to get something
4878 that's true only with -std. */
4879int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4880
4881/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4882 inside strings and character constants. */
4883#define FOO(x) 'x'
4884int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4885
4886int test (int i, double x);
4887struct s1 {int (*f) (int a);};
4888struct s2 {int (*f) (double a);};
4889int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4890int argc;
4891char **argv;
4892int
4893main ()
4894{
4895return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4896 ;
4897 return 0;
4898}
4899_ACEOF
4900for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4901 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4902do
4903 CC="$ac_save_CC $ac_arg"
4904 if ac_fn_c_try_compile "$LINENO"; then :
4905 ac_cv_prog_cc_c89=$ac_arg
4906fi
4907rm -f core conftest.err conftest.$ac_objext
4908 test "x$ac_cv_prog_cc_c89" != "xno" && break
4909done
4910rm -f conftest.$ac_ext
4911CC=$ac_save_CC
4912
4913fi
4914# AC_CACHE_VAL
4915case "x$ac_cv_prog_cc_c89" in
4916 x)
4917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4918$as_echo "none needed" >&6; } ;;
4919 xno)
4920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4921$as_echo "unsupported" >&6; } ;;
4922 *)
4923 CC="$CC $ac_cv_prog_cc_c89"
4924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4925$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4926esac
4927if test "x$ac_cv_prog_cc_c89" != xno; then :
4928
4929fi
4930
4931ac_ext=c
4932ac_cpp='$CPP $CPPFLAGS'
4933ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4934ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4935ac_compiler_gnu=$ac_cv_c_compiler_gnu
4936
4937ac_aux_dir=
4938for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
d0ac1c44
SM
4939 if test -f "$ac_dir/install-sh"; then
4940 ac_aux_dir=$ac_dir
4941 ac_install_sh="$ac_aux_dir/install-sh -c"
4942 break
4943 elif test -f "$ac_dir/install.sh"; then
4944 ac_aux_dir=$ac_dir
4945 ac_install_sh="$ac_aux_dir/install.sh -c"
4946 break
4947 elif test -f "$ac_dir/shtool"; then
4948 ac_aux_dir=$ac_dir
4949 ac_install_sh="$ac_aux_dir/shtool install -c"
4950 break
4951 fi
6bb11ab3
L
4952done
4953if test -z "$ac_aux_dir"; then
d0ac1c44 4954 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
6bb11ab3
L
4955fi
4956
4957# These three variables are undocumented and unsupported,
4958# and are intended to be withdrawn in a future Autoconf release.
4959# They can cause serious problems if a builder's source tree is in a directory
4960# whose full name contains unusual characters.
4961ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4962ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4963ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4964
4965
4966# Make sure we can run config.sub.
4967$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
d0ac1c44 4968 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
6bb11ab3
L
4969
4970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4971$as_echo_n "checking build system type... " >&6; }
d0ac1c44 4972if ${ac_cv_build+:} false; then :
6bb11ab3
L
4973 $as_echo_n "(cached) " >&6
4974else
4975 ac_build_alias=$build_alias
4976test "x$ac_build_alias" = x &&
4977 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4978test "x$ac_build_alias" = x &&
d0ac1c44 4979 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
6bb11ab3 4980ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
d0ac1c44 4981 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
6bb11ab3
L
4982
4983fi
4984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4985$as_echo "$ac_cv_build" >&6; }
4986case $ac_cv_build in
4987*-*-*) ;;
d0ac1c44 4988*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
6bb11ab3
L
4989esac
4990build=$ac_cv_build
4991ac_save_IFS=$IFS; IFS='-'
4992set x $ac_cv_build
4993shift
4994build_cpu=$1
4995build_vendor=$2
4996shift; shift
4997# Remember, the first character of IFS is used to create $*,
4998# except with old shells:
4999build_os=$*
5000IFS=$ac_save_IFS
5001case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5002
5003
5004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5005$as_echo_n "checking host system type... " >&6; }
d0ac1c44 5006if ${ac_cv_host+:} false; then :
6bb11ab3
L
5007 $as_echo_n "(cached) " >&6
5008else
5009 if test "x$host_alias" = x; then
5010 ac_cv_host=$ac_cv_build
5011else
5012 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
d0ac1c44 5013 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
6bb11ab3
L
5014fi
5015
5016fi
5017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5018$as_echo "$ac_cv_host" >&6; }
5019case $ac_cv_host in
5020*-*-*) ;;
d0ac1c44 5021*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
6bb11ab3
L
5022esac
5023host=$ac_cv_host
5024ac_save_IFS=$IFS; IFS='-'
5025set x $ac_cv_host
5026shift
5027host_cpu=$1
5028host_vendor=$2
5029shift; shift
5030# Remember, the first character of IFS is used to create $*,
5031# except with old shells:
5032host_os=$*
5033IFS=$ac_save_IFS
5034case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5035
5036
5037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
5038$as_echo_n "checking target system type... " >&6; }
d0ac1c44 5039if ${ac_cv_target+:} false; then :
6bb11ab3
L
5040 $as_echo_n "(cached) " >&6
5041else
5042 if test "x$target_alias" = x; then
5043 ac_cv_target=$ac_cv_host
5044else
5045 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
d0ac1c44 5046 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
6bb11ab3
L
5047fi
5048
5049fi
5050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
5051$as_echo "$ac_cv_target" >&6; }
5052case $ac_cv_target in
5053*-*-*) ;;
d0ac1c44 5054*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
6bb11ab3
L
5055esac
5056target=$ac_cv_target
5057ac_save_IFS=$IFS; IFS='-'
5058set x $ac_cv_target
5059shift
5060target_cpu=$1
5061target_vendor=$2
5062shift; shift
5063# Remember, the first character of IFS is used to create $*,
5064# except with old shells:
5065target_os=$*
5066IFS=$ac_save_IFS
5067case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
5068
5069
5070# The aliases save the names the user supplied, while $host etc.
5071# will get canonicalized.
5072test -n "$target_alias" &&
5073 test "$program_prefix$program_suffix$program_transform_name" = \
5074 NONENONEs,x,x, &&
5075 program_prefix=${target_alias}-
5076
5077ac_ext=c
5078ac_cpp='$CPP $CPPFLAGS'
5079ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5080ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5081ac_compiler_gnu=$ac_cv_c_compiler_gnu
5082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5083$as_echo_n "checking how to run the C preprocessor... " >&6; }
5084# On Suns, sometimes $CPP names a directory.
5085if test -n "$CPP" && test -d "$CPP"; then
5086 CPP=
5087fi
5088if test -z "$CPP"; then
d0ac1c44 5089 if ${ac_cv_prog_CPP+:} false; then :
6bb11ab3
L
5090 $as_echo_n "(cached) " >&6
5091else
5092 # Double quotes because CPP needs to be expanded
5093 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5094 do
5095 ac_preproc_ok=false
5096for ac_c_preproc_warn_flag in '' yes
5097do
5098 # Use a header file that comes with gcc, so configuring glibc
5099 # with a fresh cross-compiler works.
5100 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5101 # <limits.h> exists even on freestanding compilers.
5102 # On the NeXT, cc -E runs the code through the compiler's parser,
5103 # not just through cpp. "Syntax error" is here to catch this case.
5104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5105/* end confdefs.h. */
5106#ifdef __STDC__
5107# include <limits.h>
5108#else
5109# include <assert.h>
5110#endif
5111 Syntax error
5112_ACEOF
5113if ac_fn_c_try_cpp "$LINENO"; then :
5114
5115else
5116 # Broken: fails on valid input.
5117continue
5118fi
d0ac1c44 5119rm -f conftest.err conftest.i conftest.$ac_ext
6bb11ab3
L
5120
5121 # OK, works on sane cases. Now check whether nonexistent headers
5122 # can be detected and how.
5123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5124/* end confdefs.h. */
5125#include <ac_nonexistent.h>
5126_ACEOF
5127if ac_fn_c_try_cpp "$LINENO"; then :
5128 # Broken: success on invalid input.
5129continue
5130else
5131 # Passes both tests.
5132ac_preproc_ok=:
5133break
5134fi
d0ac1c44 5135rm -f conftest.err conftest.i conftest.$ac_ext
6bb11ab3
L
5136
5137done
5138# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
d0ac1c44 5139rm -f conftest.i conftest.err conftest.$ac_ext
6bb11ab3
L
5140if $ac_preproc_ok; then :
5141 break
5142fi
5143
5144 done
5145 ac_cv_prog_CPP=$CPP
5146
5147fi
5148 CPP=$ac_cv_prog_CPP
5149else
5150 ac_cv_prog_CPP=$CPP
5151fi
5152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5153$as_echo "$CPP" >&6; }
5154ac_preproc_ok=false
5155for ac_c_preproc_warn_flag in '' yes
5156do
5157 # Use a header file that comes with gcc, so configuring glibc
5158 # with a fresh cross-compiler works.
5159 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5160 # <limits.h> exists even on freestanding compilers.
5161 # On the NeXT, cc -E runs the code through the compiler's parser,
5162 # not just through cpp. "Syntax error" is here to catch this case.
5163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5164/* end confdefs.h. */
5165#ifdef __STDC__
5166# include <limits.h>
5167#else
5168# include <assert.h>
5169#endif
5170 Syntax error
5171_ACEOF
5172if ac_fn_c_try_cpp "$LINENO"; then :
5173
5174else
5175 # Broken: fails on valid input.
5176continue
5177fi
d0ac1c44 5178rm -f conftest.err conftest.i conftest.$ac_ext
6bb11ab3
L
5179
5180 # OK, works on sane cases. Now check whether nonexistent headers
5181 # can be detected and how.
5182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5183/* end confdefs.h. */
5184#include <ac_nonexistent.h>
5185_ACEOF
5186if ac_fn_c_try_cpp "$LINENO"; then :
5187 # Broken: success on invalid input.
5188continue
5189else
5190 # Passes both tests.
5191ac_preproc_ok=:
5192break
5193fi
d0ac1c44 5194rm -f conftest.err conftest.i conftest.$ac_ext
6bb11ab3
L
5195
5196done
5197# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
d0ac1c44 5198rm -f conftest.i conftest.err conftest.$ac_ext
6bb11ab3
L
5199if $ac_preproc_ok; then :
5200
5201else
5202 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5203$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
5204as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5205See \`config.log' for more details" "$LINENO" 5; }
6bb11ab3
L
5206fi
5207
5208ac_ext=c
5209ac_cpp='$CPP $CPPFLAGS'
5210ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5211ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5212ac_compiler_gnu=$ac_cv_c_compiler_gnu
5213
5214
5215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5216$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
d0ac1c44 5217if ${ac_cv_path_GREP+:} false; then :
6bb11ab3
L
5218 $as_echo_n "(cached) " >&6
5219else
5220 if test -z "$GREP"; then
5221 ac_path_GREP_found=false
5222 # Loop through the user's path and test for each of PROGNAME-LIST
5223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5224for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5225do
5226 IFS=$as_save_IFS
5227 test -z "$as_dir" && as_dir=.
5228 for ac_prog in grep ggrep; do
5229 for ac_exec_ext in '' $ac_executable_extensions; do
5230 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
d0ac1c44 5231 as_fn_executable_p "$ac_path_GREP" || continue
6bb11ab3
L
5232# Check for GNU ac_path_GREP and select it if it is found.
5233 # Check for GNU $ac_path_GREP
5234case `"$ac_path_GREP" --version 2>&1` in
5235*GNU*)
5236 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5237*)
5238 ac_count=0
5239 $as_echo_n 0123456789 >"conftest.in"
5240 while :
5241 do
5242 cat "conftest.in" "conftest.in" >"conftest.tmp"
5243 mv "conftest.tmp" "conftest.in"
5244 cp "conftest.in" "conftest.nl"
5245 $as_echo 'GREP' >> "conftest.nl"
5246 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5247 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5248 as_fn_arith $ac_count + 1 && ac_count=$as_val
5249 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5250 # Best one so far, save it but keep looking for a better one
5251 ac_cv_path_GREP="$ac_path_GREP"
5252 ac_path_GREP_max=$ac_count
5253 fi
5254 # 10*(2^10) chars as input seems more than enough
5255 test $ac_count -gt 10 && break
5256 done
5257 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5258esac
5259
5260 $ac_path_GREP_found && break 3
5261 done
5262 done
5263 done
5264IFS=$as_save_IFS
5265 if test -z "$ac_cv_path_GREP"; then
d0ac1c44 5266 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6bb11ab3
L
5267 fi
5268else
5269 ac_cv_path_GREP=$GREP
5270fi
5271
5272fi
5273{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5274$as_echo "$ac_cv_path_GREP" >&6; }
5275 GREP="$ac_cv_path_GREP"
5276
5277
5278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5279$as_echo_n "checking for egrep... " >&6; }
d0ac1c44 5280if ${ac_cv_path_EGREP+:} false; then :
6bb11ab3
L
5281 $as_echo_n "(cached) " >&6
5282else
5283 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5284 then ac_cv_path_EGREP="$GREP -E"
5285 else
5286 if test -z "$EGREP"; then
5287 ac_path_EGREP_found=false
5288 # Loop through the user's path and test for each of PROGNAME-LIST
5289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5290for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5291do
5292 IFS=$as_save_IFS
5293 test -z "$as_dir" && as_dir=.
5294 for ac_prog in egrep; do
5295 for ac_exec_ext in '' $ac_executable_extensions; do
5296 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
d0ac1c44 5297 as_fn_executable_p "$ac_path_EGREP" || continue
6bb11ab3
L
5298# Check for GNU ac_path_EGREP and select it if it is found.
5299 # Check for GNU $ac_path_EGREP
5300case `"$ac_path_EGREP" --version 2>&1` in
5301*GNU*)
5302 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5303*)
5304 ac_count=0
5305 $as_echo_n 0123456789 >"conftest.in"
5306 while :
5307 do
5308 cat "conftest.in" "conftest.in" >"conftest.tmp"
5309 mv "conftest.tmp" "conftest.in"
5310 cp "conftest.in" "conftest.nl"
5311 $as_echo 'EGREP' >> "conftest.nl"
5312 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5313 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5314 as_fn_arith $ac_count + 1 && ac_count=$as_val
5315 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5316 # Best one so far, save it but keep looking for a better one
5317 ac_cv_path_EGREP="$ac_path_EGREP"
5318 ac_path_EGREP_max=$ac_count
5319 fi
5320 # 10*(2^10) chars as input seems more than enough
5321 test $ac_count -gt 10 && break
5322 done
5323 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5324esac
5325
5326 $ac_path_EGREP_found && break 3
5327 done
5328 done
5329 done
5330IFS=$as_save_IFS
5331 if test -z "$ac_cv_path_EGREP"; then
d0ac1c44 5332 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6bb11ab3
L
5333 fi
5334else
5335 ac_cv_path_EGREP=$EGREP
5336fi
5337
5338 fi
5339fi
5340{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5341$as_echo "$ac_cv_path_EGREP" >&6; }
5342 EGREP="$ac_cv_path_EGREP"
5343
5344
5345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5346$as_echo_n "checking for ANSI C header files... " >&6; }
d0ac1c44 5347if ${ac_cv_header_stdc+:} false; then :
6bb11ab3
L
5348 $as_echo_n "(cached) " >&6
5349else
5350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5351/* end confdefs.h. */
5352#include <stdlib.h>
5353#include <stdarg.h>
5354#include <string.h>
5355#include <float.h>
5356
5357int
5358main ()
5359{
5360
5361 ;
5362 return 0;
5363}
5364_ACEOF
5365if ac_fn_c_try_compile "$LINENO"; then :
5366 ac_cv_header_stdc=yes
5367else
5368 ac_cv_header_stdc=no
5369fi
5370rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5371
5372if test $ac_cv_header_stdc = yes; then
5373 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5375/* end confdefs.h. */
5376#include <string.h>
5377
5378_ACEOF
5379if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5380 $EGREP "memchr" >/dev/null 2>&1; then :
5381
5382else
5383 ac_cv_header_stdc=no
5384fi
5385rm -f conftest*
5386
5387fi
5388
5389if test $ac_cv_header_stdc = yes; then
5390 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5392/* end confdefs.h. */
5393#include <stdlib.h>
5394
5395_ACEOF
5396if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5397 $EGREP "free" >/dev/null 2>&1; then :
5398
5399else
5400 ac_cv_header_stdc=no
5401fi
5402rm -f conftest*
5403
5404fi
5405
5406if test $ac_cv_header_stdc = yes; then
5407 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5408 if test "$cross_compiling" = yes; then :
5409 :
5410else
5411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5412/* end confdefs.h. */
5413#include <ctype.h>
5414#include <stdlib.h>
5415#if ((' ' & 0x0FF) == 0x020)
5416# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5417# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5418#else
5419# define ISLOWER(c) \
5420 (('a' <= (c) && (c) <= 'i') \
5421 || ('j' <= (c) && (c) <= 'r') \
5422 || ('s' <= (c) && (c) <= 'z'))
5423# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5424#endif
5425
5426#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5427int
5428main ()
5429{
5430 int i;
5431 for (i = 0; i < 256; i++)
5432 if (XOR (islower (i), ISLOWER (i))
5433 || toupper (i) != TOUPPER (i))
5434 return 2;
5435 return 0;
5436}
5437_ACEOF
5438if ac_fn_c_try_run "$LINENO"; then :
5439
5440else
5441 ac_cv_header_stdc=no
5442fi
5443rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5444 conftest.$ac_objext conftest.beam conftest.$ac_ext
5445fi
5446
5447fi
5448fi
5449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5450$as_echo "$ac_cv_header_stdc" >&6; }
5451if test $ac_cv_header_stdc = yes; then
5452
5453$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5454
5455fi
5456
5457# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5458for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5459 inttypes.h stdint.h unistd.h
5460do :
5461 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5462ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5463"
d0ac1c44 5464if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6bb11ab3
L
5465 cat >>confdefs.h <<_ACEOF
5466#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5467_ACEOF
5468
5469fi
5470
5471done
5472
5473
5474
5475 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
d0ac1c44 5476if test "x$ac_cv_header_minix_config_h" = xyes; then :
6bb11ab3
L
5477 MINIX=yes
5478else
5479 MINIX=
5480fi
5481
5482
5483 if test "$MINIX" = yes; then
5484
5485$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5486
5487
5488$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5489
5490
5491$as_echo "#define _MINIX 1" >>confdefs.h
5492
5493 fi
5494
5495
5496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5497$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
d0ac1c44 5498if ${ac_cv_safe_to_define___extensions__+:} false; then :
6bb11ab3
L
5499 $as_echo_n "(cached) " >&6
5500else
5501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5502/* end confdefs.h. */
5503
d0ac1c44
SM
5504# define __EXTENSIONS__ 1
5505 $ac_includes_default
6bb11ab3
L
5506int
5507main ()
5508{
5509
5510 ;
5511 return 0;
5512}
5513_ACEOF
5514if ac_fn_c_try_compile "$LINENO"; then :
5515 ac_cv_safe_to_define___extensions__=yes
5516else
5517 ac_cv_safe_to_define___extensions__=no
5518fi
5519rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5520fi
5521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5522$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5523 test $ac_cv_safe_to_define___extensions__ = yes &&
5524 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5525
5526 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5527
5528 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5529
5530 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5531
5532 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5533
5534
5535test "$program_prefix" != NONE &&
5536 program_transform_name="s&^&$program_prefix&;$program_transform_name"
5537# Use a double $ so make ignores it.
5538test "$program_suffix" != NONE &&
5539 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
5540# Double any \ or $.
5541# By default was `s,x,x', remove it if useless.
5542ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
5543program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
5544
5545# Find a good install program. We prefer a C program (faster),
5546# so one script is as good as another. But avoid the broken or
5547# incompatible versions:
5548# SysV /etc/install, /usr/sbin/install
5549# SunOS /usr/etc/install
5550# IRIX /sbin/install
5551# AIX /bin/install
5552# AmigaOS /C/install, which installs bootblocks on floppy discs
5553# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5554# AFS /usr/afsws/bin/install, which mishandles nonexistent args
5555# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5556# OS/2's system install, which has a completely different semantic
5557# ./install, which can be erroneously created by make from ./install.sh.
5558# Reject install programs that cannot install multiple files.
5559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
5560$as_echo_n "checking for a BSD-compatible install... " >&6; }
5561if test -z "$INSTALL"; then
d0ac1c44 5562if ${ac_cv_path_install+:} false; then :
6bb11ab3
L
5563 $as_echo_n "(cached) " >&6
5564else
5565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5566for as_dir in $PATH
5567do
5568 IFS=$as_save_IFS
5569 test -z "$as_dir" && as_dir=.
5570 # Account for people who put trailing slashes in PATH elements.
5571case $as_dir/ in #((
5572 ./ | .// | /[cC]/* | \
5573 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5574 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
5575 /usr/ucb/* ) ;;
5576 *)
5577 # OSF1 and SCO ODT 3.0 have their own names for install.
5578 # Don't use installbsd from OSF since it installs stuff as root
5579 # by default.
5580 for ac_prog in ginstall scoinst install; do
5581 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5582 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
6bb11ab3
L
5583 if test $ac_prog = install &&
5584 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5585 # AIX install. It has an incompatible calling convention.
5586 :
5587 elif test $ac_prog = install &&
5588 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5589 # program-specific install script used by HP pwplus--don't use.
5590 :
5591 else
5592 rm -rf conftest.one conftest.two conftest.dir
5593 echo one > conftest.one
5594 echo two > conftest.two
5595 mkdir conftest.dir
5596 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5597 test -s conftest.one && test -s conftest.two &&
5598 test -s conftest.dir/conftest.one &&
5599 test -s conftest.dir/conftest.two
5600 then
5601 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5602 break 3
5603 fi
5604 fi
5605 fi
5606 done
5607 done
5608 ;;
5609esac
5610
5611 done
5612IFS=$as_save_IFS
5613
5614rm -rf conftest.one conftest.two conftest.dir
5615
5616fi
5617 if test "${ac_cv_path_install+set}" = set; then
5618 INSTALL=$ac_cv_path_install
5619 else
5620 # As a last resort, use the slow shell script. Don't cache a
5621 # value for INSTALL within a source directory, because that will
5622 # break other packages using the cache if that directory is
5623 # removed, or if the value is a relative name.
5624 INSTALL=$ac_install_sh
5625 fi
5626fi
5627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
5628$as_echo "$INSTALL" >&6; }
5629
5630# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5631# It thinks the first close brace ends the variable substitution.
5632test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5633
5634test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5635
5636test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5637
5638rm -rf .tst 2>/dev/null
5639mkdir .tst 2>/dev/null
5640if test -d .tst; then
5641 am__leading_dot=.
5642else
5643 am__leading_dot=_
5644fi
5645rmdir .tst 2>/dev/null
5646
5647DEPDIR="${am__leading_dot}deps"
5648
5649case `pwd` in
5650 *\ * | *\ *)
5651 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5652$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5653esac
5654
5655
5656
5657macro_version='2.2.7a'
5658macro_revision='1.3134'
5659
5660
5661
5662
5663
5664
5665
5666
5667
5668
5669
5670
5671
5672ltmain="$ac_aux_dir/ltmain.sh"
5673
5674# Backslashify metacharacters that are still active within
5675# double-quoted strings.
5676sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5677
5678# Same as above, but do not quote variable references.
5679double_quote_subst='s/\(["`\\]\)/\\\1/g'
5680
5681# Sed substitution to delay expansion of an escaped shell variable in a
5682# double_quote_subst'ed string.
5683delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5684
5685# Sed substitution to delay expansion of an escaped single quote.
5686delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5687
5688# Sed substitution to avoid accidental globbing in evaled expressions
5689no_glob_subst='s/\*/\\\*/g'
5690
5691ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5692ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5693ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5694
5695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5696$as_echo_n "checking how to print strings... " >&6; }
5697# Test print first, because it will be a builtin if present.
5698if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5699 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5700 ECHO='print -r --'
5701elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5702 ECHO='printf %s\n'
5703else
5704 # Use this function as a fallback that always works.
5705 func_fallback_echo ()
5706 {
5707 eval 'cat <<_LTECHO_EOF
5708$1
5709_LTECHO_EOF'
5710 }
5711 ECHO='func_fallback_echo'
5712fi
5713
5714# func_echo_all arg...
5715# Invoke $ECHO with all args, space-separated.
5716func_echo_all ()
5717{
5718 $ECHO ""
5719}
5720
5721case "$ECHO" in
5722 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5723$as_echo "printf" >&6; } ;;
5724 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5725$as_echo "print -r" >&6; } ;;
5726 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5727$as_echo "cat" >&6; } ;;
5728esac
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5744$as_echo_n "checking for a sed that does not truncate output... " >&6; }
d0ac1c44 5745if ${ac_cv_path_SED+:} false; then :
6bb11ab3
L
5746 $as_echo_n "(cached) " >&6
5747else
5748 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5749 for ac_i in 1 2 3 4 5 6 7; do
5750 ac_script="$ac_script$as_nl$ac_script"
5751 done
5752 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5753 { ac_script=; unset ac_script;}
5754 if test -z "$SED"; then
5755 ac_path_SED_found=false
5756 # Loop through the user's path and test for each of PROGNAME-LIST
5757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5758for as_dir in $PATH
5759do
5760 IFS=$as_save_IFS
5761 test -z "$as_dir" && as_dir=.
5762 for ac_prog in sed gsed; do
5763 for ac_exec_ext in '' $ac_executable_extensions; do
5764 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
d0ac1c44 5765 as_fn_executable_p "$ac_path_SED" || continue
6bb11ab3
L
5766# Check for GNU ac_path_SED and select it if it is found.
5767 # Check for GNU $ac_path_SED
5768case `"$ac_path_SED" --version 2>&1` in
5769*GNU*)
5770 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5771*)
5772 ac_count=0
5773 $as_echo_n 0123456789 >"conftest.in"
5774 while :
5775 do
5776 cat "conftest.in" "conftest.in" >"conftest.tmp"
5777 mv "conftest.tmp" "conftest.in"
5778 cp "conftest.in" "conftest.nl"
5779 $as_echo '' >> "conftest.nl"
5780 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5781 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5782 as_fn_arith $ac_count + 1 && ac_count=$as_val
5783 if test $ac_count -gt ${ac_path_SED_max-0}; then
5784 # Best one so far, save it but keep looking for a better one
5785 ac_cv_path_SED="$ac_path_SED"
5786 ac_path_SED_max=$ac_count
5787 fi
5788 # 10*(2^10) chars as input seems more than enough
5789 test $ac_count -gt 10 && break
5790 done
5791 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5792esac
5793
5794 $ac_path_SED_found && break 3
5795 done
5796 done
5797 done
5798IFS=$as_save_IFS
5799 if test -z "$ac_cv_path_SED"; then
d0ac1c44 5800 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6bb11ab3
L
5801 fi
5802else
5803 ac_cv_path_SED=$SED
5804fi
5805
5806fi
5807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5808$as_echo "$ac_cv_path_SED" >&6; }
5809 SED="$ac_cv_path_SED"
5810 rm -f conftest.sed
5811
5812test -z "$SED" && SED=sed
5813Xsed="$SED -e 1s/^X//"
5814
5815
5816
5817
5818
5819
5820
5821
5822
5823
5824
5825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5826$as_echo_n "checking for fgrep... " >&6; }
d0ac1c44 5827if ${ac_cv_path_FGREP+:} false; then :
6bb11ab3
L
5828 $as_echo_n "(cached) " >&6
5829else
5830 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5831 then ac_cv_path_FGREP="$GREP -F"
5832 else
5833 if test -z "$FGREP"; then
5834 ac_path_FGREP_found=false
5835 # Loop through the user's path and test for each of PROGNAME-LIST
5836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5837for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5838do
5839 IFS=$as_save_IFS
5840 test -z "$as_dir" && as_dir=.
5841 for ac_prog in fgrep; do
5842 for ac_exec_ext in '' $ac_executable_extensions; do
5843 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
d0ac1c44 5844 as_fn_executable_p "$ac_path_FGREP" || continue
6bb11ab3
L
5845# Check for GNU ac_path_FGREP and select it if it is found.
5846 # Check for GNU $ac_path_FGREP
5847case `"$ac_path_FGREP" --version 2>&1` in
5848*GNU*)
5849 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5850*)
5851 ac_count=0
5852 $as_echo_n 0123456789 >"conftest.in"
5853 while :
5854 do
5855 cat "conftest.in" "conftest.in" >"conftest.tmp"
5856 mv "conftest.tmp" "conftest.in"
5857 cp "conftest.in" "conftest.nl"
5858 $as_echo 'FGREP' >> "conftest.nl"
5859 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5860 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5861 as_fn_arith $ac_count + 1 && ac_count=$as_val
5862 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5863 # Best one so far, save it but keep looking for a better one
5864 ac_cv_path_FGREP="$ac_path_FGREP"
5865 ac_path_FGREP_max=$ac_count
5866 fi
5867 # 10*(2^10) chars as input seems more than enough
5868 test $ac_count -gt 10 && break
5869 done
5870 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5871esac
5872
5873 $ac_path_FGREP_found && break 3
5874 done
5875 done
5876 done
5877IFS=$as_save_IFS
5878 if test -z "$ac_cv_path_FGREP"; then
d0ac1c44 5879 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6bb11ab3
L
5880 fi
5881else
5882 ac_cv_path_FGREP=$FGREP
5883fi
5884
5885 fi
5886fi
5887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5888$as_echo "$ac_cv_path_FGREP" >&6; }
5889 FGREP="$ac_cv_path_FGREP"
5890
5891
5892test -z "$GREP" && GREP=grep
5893
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912# Check whether --with-gnu-ld was given.
5913if test "${with_gnu_ld+set}" = set; then :
5914 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5915else
5916 with_gnu_ld=no
5917fi
5918
5919ac_prog=ld
5920if test "$GCC" = yes; then
5921 # Check if gcc -print-prog-name=ld gives a path.
5922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5923$as_echo_n "checking for ld used by $CC... " >&6; }
5924 case $host in
5925 *-*-mingw*)
5926 # gcc leaves a trailing carriage return which upsets mingw
5927 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5928 *)
5929 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5930 esac
5931 case $ac_prog in
5932 # Accept absolute paths.
5933 [\\/]* | ?:[\\/]*)
5934 re_direlt='/[^/][^/]*/\.\./'
5935 # Canonicalize the pathname of ld
5936 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5937 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5938 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5939 done
5940 test -z "$LD" && LD="$ac_prog"
5941 ;;
5942 "")
5943 # If it fails, then pretend we aren't using GCC.
5944 ac_prog=ld
5945 ;;
5946 *)
5947 # If it is relative, then search for the first ld in PATH.
5948 with_gnu_ld=unknown
5949 ;;
5950 esac
5951elif test "$with_gnu_ld" = yes; then
5952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5953$as_echo_n "checking for GNU ld... " >&6; }
5954else
5955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5956$as_echo_n "checking for non-GNU ld... " >&6; }
5957fi
d0ac1c44 5958if ${lt_cv_path_LD+:} false; then :
6bb11ab3
L
5959 $as_echo_n "(cached) " >&6
5960else
5961 if test -z "$LD"; then
5962 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5963 for ac_dir in $PATH; do
5964 IFS="$lt_save_ifs"
5965 test -z "$ac_dir" && ac_dir=.
5966 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5967 lt_cv_path_LD="$ac_dir/$ac_prog"
5968 # Check to see if the program is GNU ld. I'd rather use --version,
5969 # but apparently some variants of GNU ld only accept -v.
5970 # Break only if it was the GNU/non-GNU ld that we prefer.
5971 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5972 *GNU* | *'with BFD'*)
5973 test "$with_gnu_ld" != no && break
5974 ;;
5975 *)
5976 test "$with_gnu_ld" != yes && break
5977 ;;
5978 esac
5979 fi
5980 done
5981 IFS="$lt_save_ifs"
5982else
5983 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5984fi
5985fi
5986
5987LD="$lt_cv_path_LD"
5988if test -n "$LD"; then
5989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5990$as_echo "$LD" >&6; }
5991else
5992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5993$as_echo "no" >&6; }
5994fi
d0ac1c44 5995test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6bb11ab3
L
5996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5997$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
d0ac1c44 5998if ${lt_cv_prog_gnu_ld+:} false; then :
6bb11ab3
L
5999 $as_echo_n "(cached) " >&6
6000else
6001 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6002case `$LD -v 2>&1 </dev/null` in
6003*GNU* | *'with BFD'*)
6004 lt_cv_prog_gnu_ld=yes
6005 ;;
6006*)
6007 lt_cv_prog_gnu_ld=no
6008 ;;
6009esac
6010fi
6011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6012$as_echo "$lt_cv_prog_gnu_ld" >&6; }
6013with_gnu_ld=$lt_cv_prog_gnu_ld
6014
6015
6016
6017
6018
6019
6020
6021
6022
6023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6024$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
d0ac1c44 6025if ${lt_cv_path_NM+:} false; then :
6bb11ab3
L
6026 $as_echo_n "(cached) " >&6
6027else
6028 if test -n "$NM"; then
6029 # Let the user override the test.
6030 lt_cv_path_NM="$NM"
6031else
6032 lt_nm_to_check="${ac_tool_prefix}nm"
6033 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6034 lt_nm_to_check="$lt_nm_to_check nm"
6035 fi
6036 for lt_tmp_nm in $lt_nm_to_check; do
6037 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6038 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6039 IFS="$lt_save_ifs"
6040 test -z "$ac_dir" && ac_dir=.
6041 tmp_nm="$ac_dir/$lt_tmp_nm"
6042 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6043 # Check to see if the nm accepts a BSD-compat flag.
6044 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6045 # nm: unknown option "B" ignored
6046 # Tru64's nm complains that /dev/null is an invalid object file
6047 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6048 */dev/null* | *'Invalid file or object type'*)
6049 lt_cv_path_NM="$tmp_nm -B"
6050 break
6051 ;;
6052 *)
6053 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6054 */dev/null*)
6055 lt_cv_path_NM="$tmp_nm -p"
6056 break
6057 ;;
6058 *)
6059 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6060 continue # so that we can try to find one that supports BSD flags
6061 ;;
6062 esac
6063 ;;
6064 esac
6065 fi
6066 done
6067 IFS="$lt_save_ifs"
6068 done
6069 : ${lt_cv_path_NM=no}
6070fi
6071fi
6072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6073$as_echo "$lt_cv_path_NM" >&6; }
6074if test "$lt_cv_path_NM" != "no"; then
6075 NM="$lt_cv_path_NM"
6076else
6077 # Didn't find any BSD compatible name lister, look for dumpbin.
6078 if test -n "$DUMPBIN"; then :
6079 # Let the user override the test.
6080 else
6081 if test -n "$ac_tool_prefix"; then
6082 for ac_prog in dumpbin "link -dump"
6083 do
6084 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6085set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6087$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6088if ${ac_cv_prog_DUMPBIN+:} false; then :
6bb11ab3
L
6089 $as_echo_n "(cached) " >&6
6090else
6091 if test -n "$DUMPBIN"; then
6092 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6093else
6094as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6095for as_dir in $PATH
6096do
6097 IFS=$as_save_IFS
6098 test -z "$as_dir" && as_dir=.
6099 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6100 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
6101 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6103 break 2
6104 fi
6105done
6106 done
6107IFS=$as_save_IFS
6108
6109fi
6110fi
6111DUMPBIN=$ac_cv_prog_DUMPBIN
6112if test -n "$DUMPBIN"; then
6113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6114$as_echo "$DUMPBIN" >&6; }
6115else
6116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6117$as_echo "no" >&6; }
6118fi
6119
6120
6121 test -n "$DUMPBIN" && break
6122 done
6123fi
6124if test -z "$DUMPBIN"; then
6125 ac_ct_DUMPBIN=$DUMPBIN
6126 for ac_prog in dumpbin "link -dump"
6127do
6128 # Extract the first word of "$ac_prog", so it can be a program name with args.
6129set dummy $ac_prog; ac_word=$2
6130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6131$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6132if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6bb11ab3
L
6133 $as_echo_n "(cached) " >&6
6134else
6135 if test -n "$ac_ct_DUMPBIN"; then
6136 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6137else
6138as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6139for as_dir in $PATH
6140do
6141 IFS=$as_save_IFS
6142 test -z "$as_dir" && as_dir=.
6143 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6144 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
6145 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6147 break 2
6148 fi
6149done
6150 done
6151IFS=$as_save_IFS
6152
6153fi
6154fi
6155ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6156if test -n "$ac_ct_DUMPBIN"; then
6157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6158$as_echo "$ac_ct_DUMPBIN" >&6; }
6159else
6160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6161$as_echo "no" >&6; }
6162fi
6163
6164
6165 test -n "$ac_ct_DUMPBIN" && break
6166done
6167
6168 if test "x$ac_ct_DUMPBIN" = x; then
6169 DUMPBIN=":"
6170 else
6171 case $cross_compiling:$ac_tool_warned in
6172yes:)
6173{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6174$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6175ac_tool_warned=yes ;;
6176esac
6177 DUMPBIN=$ac_ct_DUMPBIN
6178 fi
6179fi
6180
6181 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6182 *COFF*)
6183 DUMPBIN="$DUMPBIN -symbols"
6184 ;;
6185 *)
6186 DUMPBIN=:
6187 ;;
6188 esac
6189 fi
6190
6191 if test "$DUMPBIN" != ":"; then
6192 NM="$DUMPBIN"
6193 fi
6194fi
6195test -z "$NM" && NM=nm
6196
6197
6198
6199
6200
6201
6202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6203$as_echo_n "checking the name lister ($NM) interface... " >&6; }
d0ac1c44 6204if ${lt_cv_nm_interface+:} false; then :
6bb11ab3
L
6205 $as_echo_n "(cached) " >&6
6206else
6207 lt_cv_nm_interface="BSD nm"
6208 echo "int some_variable = 0;" > conftest.$ac_ext
6209 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6210 (eval "$ac_compile" 2>conftest.err)
6211 cat conftest.err >&5
6212 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6213 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6214 cat conftest.err >&5
6215 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6216 cat conftest.out >&5
6217 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6218 lt_cv_nm_interface="MS dumpbin"
6219 fi
6220 rm -f conftest*
6221fi
6222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6223$as_echo "$lt_cv_nm_interface" >&6; }
6224
6225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6226$as_echo_n "checking whether ln -s works... " >&6; }
6227LN_S=$as_ln_s
6228if test "$LN_S" = "ln -s"; then
6229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6230$as_echo "yes" >&6; }
6231else
6232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6233$as_echo "no, using $LN_S" >&6; }
6234fi
6235
6236# find the maximum length of command line arguments
6237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6238$as_echo_n "checking the maximum length of command line arguments... " >&6; }
d0ac1c44 6239if ${lt_cv_sys_max_cmd_len+:} false; then :
6bb11ab3
L
6240 $as_echo_n "(cached) " >&6
6241else
6242 i=0
6243 teststring="ABCD"
6244
6245 case $build_os in
6246 msdosdjgpp*)
6247 # On DJGPP, this test can blow up pretty badly due to problems in libc
6248 # (any single argument exceeding 2000 bytes causes a buffer overrun
6249 # during glob expansion). Even if it were fixed, the result of this
6250 # check would be larger than it should be.
6251 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6252 ;;
6253
6254 gnu*)
6255 # Under GNU Hurd, this test is not required because there is
6256 # no limit to the length of command line arguments.
6257 # Libtool will interpret -1 as no limit whatsoever
6258 lt_cv_sys_max_cmd_len=-1;
6259 ;;
6260
6261 cygwin* | mingw* | cegcc*)
6262 # On Win9x/ME, this test blows up -- it succeeds, but takes
6263 # about 5 minutes as the teststring grows exponentially.
6264 # Worse, since 9x/ME are not pre-emptively multitasking,
6265 # you end up with a "frozen" computer, even though with patience
6266 # the test eventually succeeds (with a max line length of 256k).
6267 # Instead, let's just punt: use the minimum linelength reported by
6268 # all of the supported platforms: 8192 (on NT/2K/XP).
6269 lt_cv_sys_max_cmd_len=8192;
6270 ;;
6271
6272 mint*)
6273 # On MiNT this can take a long time and run out of memory.
6274 lt_cv_sys_max_cmd_len=8192;
6275 ;;
6276
6277 amigaos*)
6278 # On AmigaOS with pdksh, this test takes hours, literally.
6279 # So we just punt and use a minimum line length of 8192.
6280 lt_cv_sys_max_cmd_len=8192;
6281 ;;
6282
6283 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6284 # This has been around since 386BSD, at least. Likely further.
6285 if test -x /sbin/sysctl; then
6286 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6287 elif test -x /usr/sbin/sysctl; then
6288 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6289 else
6290 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6291 fi
6292 # And add a safety zone
6293 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6294 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6295 ;;
6296
6297 interix*)
6298 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6299 lt_cv_sys_max_cmd_len=196608
6300 ;;
6301
6302 osf*)
6303 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6304 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6305 # nice to cause kernel panics so lets avoid the loop below.
6306 # First set a reasonable default.
6307 lt_cv_sys_max_cmd_len=16384
6308 #
6309 if test -x /sbin/sysconfig; then
6310 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6311 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6312 esac
6313 fi
6314 ;;
6315 sco3.2v5*)
6316 lt_cv_sys_max_cmd_len=102400
6317 ;;
6318 sysv5* | sco5v6* | sysv4.2uw2*)
6319 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6320 if test -n "$kargmax"; then
6321 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6322 else
6323 lt_cv_sys_max_cmd_len=32768
6324 fi
6325 ;;
6326 *)
6327 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6328 if test -n "$lt_cv_sys_max_cmd_len"; then
6329 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6330 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6331 else
6332 # Make teststring a little bigger before we do anything with it.
6333 # a 1K string should be a reasonable start.
6334 for i in 1 2 3 4 5 6 7 8 ; do
6335 teststring=$teststring$teststring
6336 done
6337 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6338 # If test is not a shell built-in, we'll probably end up computing a
6339 # maximum length that is only half of the actual maximum length, but
6340 # we can't tell.
6341 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6342 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6343 test $i != 17 # 1/2 MB should be enough
6344 do
6345 i=`expr $i + 1`
6346 teststring=$teststring$teststring
6347 done
6348 # Only check the string length outside the loop.
6349 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6350 teststring=
6351 # Add a significant safety factor because C++ compilers can tack on
6352 # massive amounts of additional arguments before passing them to the
6353 # linker. It appears as though 1/2 is a usable value.
6354 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6355 fi
6356 ;;
6357 esac
6358
6359fi
6360
6361if test -n $lt_cv_sys_max_cmd_len ; then
6362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6363$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6364else
6365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6366$as_echo "none" >&6; }
6367fi
6368max_cmd_len=$lt_cv_sys_max_cmd_len
6369
6370
6371
6372
6373
6374
6375: ${CP="cp -f"}
6376: ${MV="mv -f"}
6377: ${RM="rm -f"}
6378
6379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6380$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6381# Try some XSI features
6382xsi_shell=no
6383( _lt_dummy="a/b/c"
6384 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6385 = c,a/b,, \
6386 && eval 'test $(( 1 + 1 )) -eq 2 \
6387 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6388 && xsi_shell=yes
6389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6390$as_echo "$xsi_shell" >&6; }
6391
6392
6393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6394$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6395lt_shell_append=no
6396( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6397 >/dev/null 2>&1 \
6398 && lt_shell_append=yes
6399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6400$as_echo "$lt_shell_append" >&6; }
6401
6402
6403if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6404 lt_unset=unset
6405else
6406 lt_unset=false
6407fi
6408
6409
6410
6411
6412
6413# test EBCDIC or ASCII
6414case `echo X|tr X '\101'` in
6415 A) # ASCII based system
6416 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6417 lt_SP2NL='tr \040 \012'
6418 lt_NL2SP='tr \015\012 \040\040'
6419 ;;
6420 *) # EBCDIC based system
6421 lt_SP2NL='tr \100 \n'
6422 lt_NL2SP='tr \r\n \100\100'
6423 ;;
6424esac
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6435$as_echo_n "checking for $LD option to reload object files... " >&6; }
d0ac1c44 6436if ${lt_cv_ld_reload_flag+:} false; then :
6bb11ab3
L
6437 $as_echo_n "(cached) " >&6
6438else
6439 lt_cv_ld_reload_flag='-r'
6440fi
6441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6442$as_echo "$lt_cv_ld_reload_flag" >&6; }
6443reload_flag=$lt_cv_ld_reload_flag
6444case $reload_flag in
6445"" | " "*) ;;
6446*) reload_flag=" $reload_flag" ;;
6447esac
6448reload_cmds='$LD$reload_flag -o $output$reload_objs'
6449case $host_os in
6450 darwin*)
6451 if test "$GCC" = yes; then
6452 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6453 else
6454 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6455 fi
6456 ;;
6457esac
6458
6459
6460
6461
6462
6463
6464
6465
6466
6467if test -n "$ac_tool_prefix"; then
6468 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6469set dummy ${ac_tool_prefix}objdump; ac_word=$2
6470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6471$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6472if ${ac_cv_prog_OBJDUMP+:} false; then :
6bb11ab3
L
6473 $as_echo_n "(cached) " >&6
6474else
6475 if test -n "$OBJDUMP"; then
6476 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6477else
6478as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6479for as_dir in $PATH
6480do
6481 IFS=$as_save_IFS
6482 test -z "$as_dir" && as_dir=.
6483 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6484 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
6485 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6487 break 2
6488 fi
6489done
6490 done
6491IFS=$as_save_IFS
6492
6493fi
6494fi
6495OBJDUMP=$ac_cv_prog_OBJDUMP
6496if test -n "$OBJDUMP"; then
6497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6498$as_echo "$OBJDUMP" >&6; }
6499else
6500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6501$as_echo "no" >&6; }
6502fi
6503
6504
6505fi
6506if test -z "$ac_cv_prog_OBJDUMP"; then
6507 ac_ct_OBJDUMP=$OBJDUMP
6508 # Extract the first word of "objdump", so it can be a program name with args.
6509set dummy objdump; ac_word=$2
6510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6511$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6512if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6bb11ab3
L
6513 $as_echo_n "(cached) " >&6
6514else
6515 if test -n "$ac_ct_OBJDUMP"; then
6516 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6517else
6518as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6519for as_dir in $PATH
6520do
6521 IFS=$as_save_IFS
6522 test -z "$as_dir" && as_dir=.
6523 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6524 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
6525 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6527 break 2
6528 fi
6529done
6530 done
6531IFS=$as_save_IFS
6532
6533fi
6534fi
6535ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6536if test -n "$ac_ct_OBJDUMP"; then
6537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6538$as_echo "$ac_ct_OBJDUMP" >&6; }
6539else
6540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6541$as_echo "no" >&6; }
6542fi
6543
6544 if test "x$ac_ct_OBJDUMP" = x; then
6545 OBJDUMP="false"
6546 else
6547 case $cross_compiling:$ac_tool_warned in
6548yes:)
6549{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6550$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6551ac_tool_warned=yes ;;
6552esac
6553 OBJDUMP=$ac_ct_OBJDUMP
6554 fi
6555else
6556 OBJDUMP="$ac_cv_prog_OBJDUMP"
6557fi
6558
6559test -z "$OBJDUMP" && OBJDUMP=objdump
6560
6561
6562
6563
6564
6565
6566
6567
6568
6569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6570$as_echo_n "checking how to recognize dependent libraries... " >&6; }
d0ac1c44 6571if ${lt_cv_deplibs_check_method+:} false; then :
6bb11ab3
L
6572 $as_echo_n "(cached) " >&6
6573else
6574 lt_cv_file_magic_cmd='$MAGIC_CMD'
6575lt_cv_file_magic_test_file=
6576lt_cv_deplibs_check_method='unknown'
6577# Need to set the preceding variable on all platforms that support
6578# interlibrary dependencies.
6579# 'none' -- dependencies not supported.
6580# `unknown' -- same as none, but documents that we really don't know.
6581# 'pass_all' -- all dependencies passed with no checks.
6582# 'test_compile' -- check by making test program.
6583# 'file_magic [[regex]]' -- check by looking for files in library path
6584# which responds to the $file_magic_cmd with a given extended regex.
6585# If you have `file' or equivalent on your system and you're not sure
6586# whether `pass_all' will *always* work, you probably want this one.
6587
6588case $host_os in
6589aix[4-9]*)
6590 lt_cv_deplibs_check_method=pass_all
6591 ;;
6592
6593beos*)
6594 lt_cv_deplibs_check_method=pass_all
6595 ;;
6596
6597bsdi[45]*)
6598 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6599 lt_cv_file_magic_cmd='/usr/bin/file -L'
6600 lt_cv_file_magic_test_file=/shlib/libc.so
6601 ;;
6602
6603cygwin*)
6604 # func_win32_libid is a shell function defined in ltmain.sh
6605 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6606 lt_cv_file_magic_cmd='func_win32_libid'
6607 ;;
6608
6609mingw* | pw32*)
6610 # Base MSYS/MinGW do not provide the 'file' command needed by
6611 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6612 # unless we find 'file', for example because we are cross-compiling.
6613 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6614 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6615 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6616 lt_cv_file_magic_cmd='func_win32_libid'
6617 else
6618 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6619 lt_cv_file_magic_cmd='$OBJDUMP -f'
6620 fi
6621 ;;
6622
6623cegcc*)
6624 # use the weaker test based on 'objdump'. See mingw*.
6625 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6626 lt_cv_file_magic_cmd='$OBJDUMP -f'
6627 ;;
6628
6629darwin* | rhapsody*)
6630 lt_cv_deplibs_check_method=pass_all
6631 ;;
6632
6633freebsd* | dragonfly*)
6634 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6635 case $host_cpu in
6636 i*86 )
6637 # Not sure whether the presence of OpenBSD here was a mistake.
6638 # Let's accept both of them until this is cleared up.
6639 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6640 lt_cv_file_magic_cmd=/usr/bin/file
6641 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6642 ;;
6643 esac
6644 else
6645 lt_cv_deplibs_check_method=pass_all
6646 fi
6647 ;;
6648
6649gnu*)
6650 lt_cv_deplibs_check_method=pass_all
6651 ;;
6652
6653haiku*)
6654 lt_cv_deplibs_check_method=pass_all
6655 ;;
6656
6657hpux10.20* | hpux11*)
6658 lt_cv_file_magic_cmd=/usr/bin/file
6659 case $host_cpu in
6660 ia64*)
6661 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6662 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6663 ;;
6664 hppa*64*)
6665 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]'
6666 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6667 ;;
6668 *)
6669 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6670 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6671 ;;
6672 esac
6673 ;;
6674
6675interix[3-9]*)
6676 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6677 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6678 ;;
6679
6680irix5* | irix6* | nonstopux*)
6681 case $LD in
6682 *-32|*"-32 ") libmagic=32-bit;;
6683 *-n32|*"-n32 ") libmagic=N32;;
6684 *-64|*"-64 ") libmagic=64-bit;;
6685 *) libmagic=never-match;;
6686 esac
6687 lt_cv_deplibs_check_method=pass_all
6688 ;;
6689
6690# This must be Linux ELF.
6691linux* | k*bsd*-gnu | kopensolaris*-gnu)
6692 lt_cv_deplibs_check_method=pass_all
6693 ;;
6694
6695netbsd*)
6696 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6697 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6698 else
6699 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6700 fi
6701 ;;
6702
6703newos6*)
6704 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6705 lt_cv_file_magic_cmd=/usr/bin/file
6706 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6707 ;;
6708
6709*nto* | *qnx*)
6710 lt_cv_deplibs_check_method=pass_all
6711 ;;
6712
6713openbsd*)
6714 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6715 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6716 else
6717 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6718 fi
6719 ;;
6720
6721osf3* | osf4* | osf5*)
6722 lt_cv_deplibs_check_method=pass_all
6723 ;;
6724
6725rdos*)
6726 lt_cv_deplibs_check_method=pass_all
6727 ;;
6728
6729solaris*)
6730 lt_cv_deplibs_check_method=pass_all
6731 ;;
6732
6733sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6734 lt_cv_deplibs_check_method=pass_all
6735 ;;
6736
6737sysv4 | sysv4.3*)
6738 case $host_vendor in
6739 motorola)
6740 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]'
6741 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6742 ;;
6743 ncr)
6744 lt_cv_deplibs_check_method=pass_all
6745 ;;
6746 sequent)
6747 lt_cv_file_magic_cmd='/bin/file'
6748 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6749 ;;
6750 sni)
6751 lt_cv_file_magic_cmd='/bin/file'
6752 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6753 lt_cv_file_magic_test_file=/lib/libc.so
6754 ;;
6755 siemens)
6756 lt_cv_deplibs_check_method=pass_all
6757 ;;
6758 pc)
6759 lt_cv_deplibs_check_method=pass_all
6760 ;;
6761 esac
6762 ;;
6763
6764tpf*)
6765 lt_cv_deplibs_check_method=pass_all
6766 ;;
6767esac
6768
6769fi
6770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6771$as_echo "$lt_cv_deplibs_check_method" >&6; }
6772file_magic_cmd=$lt_cv_file_magic_cmd
6773deplibs_check_method=$lt_cv_deplibs_check_method
6774test -z "$deplibs_check_method" && deplibs_check_method=unknown
6775
6776
6777
6778
6779
6780
6781
6782
6783
6784
6785
6786
6787if test -n "$ac_tool_prefix"; then
6788 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6789set dummy ${ac_tool_prefix}ar; ac_word=$2
6790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6791$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6792if ${ac_cv_prog_AR+:} false; then :
6bb11ab3
L
6793 $as_echo_n "(cached) " >&6
6794else
6795 if test -n "$AR"; then
6796 ac_cv_prog_AR="$AR" # Let the user override the test.
6797else
6798as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6799for as_dir in $PATH
6800do
6801 IFS=$as_save_IFS
6802 test -z "$as_dir" && as_dir=.
6803 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6804 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
6805 ac_cv_prog_AR="${ac_tool_prefix}ar"
6806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6807 break 2
6808 fi
6809done
6810 done
6811IFS=$as_save_IFS
6812
6813fi
6814fi
6815AR=$ac_cv_prog_AR
6816if test -n "$AR"; then
6817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6818$as_echo "$AR" >&6; }
6819else
6820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6821$as_echo "no" >&6; }
6822fi
6823
6824
6825fi
6826if test -z "$ac_cv_prog_AR"; then
6827 ac_ct_AR=$AR
6828 # Extract the first word of "ar", so it can be a program name with args.
6829set dummy ar; ac_word=$2
6830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6831$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6832if ${ac_cv_prog_ac_ct_AR+:} false; then :
6bb11ab3
L
6833 $as_echo_n "(cached) " >&6
6834else
6835 if test -n "$ac_ct_AR"; then
6836 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6837else
6838as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6839for as_dir in $PATH
6840do
6841 IFS=$as_save_IFS
6842 test -z "$as_dir" && as_dir=.
6843 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6844 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
6845 ac_cv_prog_ac_ct_AR="ar"
6846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6847 break 2
6848 fi
6849done
6850 done
6851IFS=$as_save_IFS
6852
6853fi
6854fi
6855ac_ct_AR=$ac_cv_prog_ac_ct_AR
6856if test -n "$ac_ct_AR"; then
6857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6858$as_echo "$ac_ct_AR" >&6; }
6859else
6860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6861$as_echo "no" >&6; }
6862fi
6863
6864 if test "x$ac_ct_AR" = x; then
6865 AR="false"
6866 else
6867 case $cross_compiling:$ac_tool_warned in
6868yes:)
6869{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6870$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6871ac_tool_warned=yes ;;
6872esac
6873 AR=$ac_ct_AR
6874 fi
6875else
6876 AR="$ac_cv_prog_AR"
6877fi
6878
6879test -z "$AR" && AR=ar
6880test -z "$AR_FLAGS" && AR_FLAGS=cru
6881
6882
6883
6884
6885
6886
6887
6888
6889
6890
6891
6892if test -n "$ac_tool_prefix"; then
6893 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6894set dummy ${ac_tool_prefix}strip; ac_word=$2
6895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6896$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6897if ${ac_cv_prog_STRIP+:} false; then :
6bb11ab3
L
6898 $as_echo_n "(cached) " >&6
6899else
6900 if test -n "$STRIP"; then
6901 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6902else
6903as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6904for as_dir in $PATH
6905do
6906 IFS=$as_save_IFS
6907 test -z "$as_dir" && as_dir=.
6908 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6909 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
6910 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6912 break 2
6913 fi
6914done
6915 done
6916IFS=$as_save_IFS
6917
6918fi
6919fi
6920STRIP=$ac_cv_prog_STRIP
6921if test -n "$STRIP"; then
6922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6923$as_echo "$STRIP" >&6; }
6924else
6925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6926$as_echo "no" >&6; }
6927fi
6928
6929
6930fi
6931if test -z "$ac_cv_prog_STRIP"; then
6932 ac_ct_STRIP=$STRIP
6933 # Extract the first word of "strip", so it can be a program name with args.
6934set dummy strip; ac_word=$2
6935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6936$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6937if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6bb11ab3
L
6938 $as_echo_n "(cached) " >&6
6939else
6940 if test -n "$ac_ct_STRIP"; then
6941 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6942else
6943as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6944for as_dir in $PATH
6945do
6946 IFS=$as_save_IFS
6947 test -z "$as_dir" && as_dir=.
6948 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6949 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
6950 ac_cv_prog_ac_ct_STRIP="strip"
6951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6952 break 2
6953 fi
6954done
6955 done
6956IFS=$as_save_IFS
6957
6958fi
6959fi
6960ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6961if test -n "$ac_ct_STRIP"; then
6962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6963$as_echo "$ac_ct_STRIP" >&6; }
6964else
6965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6966$as_echo "no" >&6; }
6967fi
6968
6969 if test "x$ac_ct_STRIP" = x; then
6970 STRIP=":"
6971 else
6972 case $cross_compiling:$ac_tool_warned in
6973yes:)
6974{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6975$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6976ac_tool_warned=yes ;;
6977esac
6978 STRIP=$ac_ct_STRIP
6979 fi
6980else
6981 STRIP="$ac_cv_prog_STRIP"
6982fi
6983
6984test -z "$STRIP" && STRIP=:
6985
6986
6987
6988
6989
6990
6991if test -n "$ac_tool_prefix"; then
6992 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6993set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6995$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6996if ${ac_cv_prog_RANLIB+:} false; then :
6bb11ab3
L
6997 $as_echo_n "(cached) " >&6
6998else
6999 if test -n "$RANLIB"; then
7000 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7001else
7002as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7003for as_dir in $PATH
7004do
7005 IFS=$as_save_IFS
7006 test -z "$as_dir" && as_dir=.
7007 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 7008 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
7009 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7011 break 2
7012 fi
7013done
7014 done
7015IFS=$as_save_IFS
7016
7017fi
7018fi
7019RANLIB=$ac_cv_prog_RANLIB
7020if test -n "$RANLIB"; then
7021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7022$as_echo "$RANLIB" >&6; }
7023else
7024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7025$as_echo "no" >&6; }
7026fi
7027
7028
7029fi
7030if test -z "$ac_cv_prog_RANLIB"; then
7031 ac_ct_RANLIB=$RANLIB
7032 # Extract the first word of "ranlib", so it can be a program name with args.
7033set dummy ranlib; ac_word=$2
7034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7035$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 7036if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6bb11ab3
L
7037 $as_echo_n "(cached) " >&6
7038else
7039 if test -n "$ac_ct_RANLIB"; then
7040 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7041else
7042as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7043for as_dir in $PATH
7044do
7045 IFS=$as_save_IFS
7046 test -z "$as_dir" && as_dir=.
7047 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 7048 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
7049 ac_cv_prog_ac_ct_RANLIB="ranlib"
7050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7051 break 2
7052 fi
7053done
7054 done
7055IFS=$as_save_IFS
7056
7057fi
7058fi
7059ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7060if test -n "$ac_ct_RANLIB"; then
7061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7062$as_echo "$ac_ct_RANLIB" >&6; }
7063else
7064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7065$as_echo "no" >&6; }
7066fi
7067
7068 if test "x$ac_ct_RANLIB" = x; then
7069 RANLIB=":"
7070 else
7071 case $cross_compiling:$ac_tool_warned in
7072yes:)
7073{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7074$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7075ac_tool_warned=yes ;;
7076esac
7077 RANLIB=$ac_ct_RANLIB
7078 fi
7079else
7080 RANLIB="$ac_cv_prog_RANLIB"
7081fi
7082
7083test -z "$RANLIB" && RANLIB=:
7084
7085
7086
7087
7088
7089
7090# Determine commands to create old-style static archives.
7091old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7092old_postinstall_cmds='chmod 644 $oldlib'
7093old_postuninstall_cmds=
7094
7095if test -n "$RANLIB"; then
7096 case $host_os in
7097 openbsd*)
7098 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7099 ;;
7100 *)
7101 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7102 ;;
7103 esac
7104 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7105fi
7106
7107case $host_os in
7108 darwin*)
7109 lock_old_archive_extraction=yes ;;
7110 *)
7111 lock_old_archive_extraction=no ;;
7112esac
7113
7114
7115
7116
7117
7118
7119
7120
7121
7122
7123
7124
7125
7126
7127
7128
7129
7130
7131
7132
7133
7134for ac_prog in gawk mawk nawk awk
7135do
7136 # Extract the first word of "$ac_prog", so it can be a program name with args.
7137set dummy $ac_prog; ac_word=$2
7138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7139$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 7140if ${ac_cv_prog_AWK+:} false; then :
6bb11ab3
L
7141 $as_echo_n "(cached) " >&6
7142else
7143 if test -n "$AWK"; then
7144 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7145else
7146as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7147for as_dir in $PATH
7148do
7149 IFS=$as_save_IFS
7150 test -z "$as_dir" && as_dir=.
7151 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 7152 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
7153 ac_cv_prog_AWK="$ac_prog"
7154 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7155 break 2
7156 fi
7157done
7158 done
7159IFS=$as_save_IFS
7160
7161fi
7162fi
7163AWK=$ac_cv_prog_AWK
7164if test -n "$AWK"; then
7165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7166$as_echo "$AWK" >&6; }
7167else
7168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7169$as_echo "no" >&6; }
7170fi
7171
7172
7173 test -n "$AWK" && break
7174done
7175
7176
7177
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194# If no C compiler was specified, use CC.
7195LTCC=${LTCC-"$CC"}
7196
7197# If no C compiler flags were specified, use CFLAGS.
7198LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7199
7200# Allow CC to be a program name with arguments.
7201compiler=$CC
7202
7203
7204# Check for command to grab the raw symbol name followed by C symbol from nm.
7205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7206$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
d0ac1c44 7207if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6bb11ab3
L
7208 $as_echo_n "(cached) " >&6
7209else
7210
7211# These are sane defaults that work on at least a few old systems.
7212# [They come from Ultrix. What could be older than Ultrix?!! ;)]
7213
7214# Character class describing NM global symbol codes.
7215symcode='[BCDEGRST]'
7216
7217# Regexp to match symbols that can be accessed directly from C.
7218sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7219
7220# Define system-specific variables.
7221case $host_os in
7222aix*)
7223 symcode='[BCDT]'
7224 ;;
7225cygwin* | mingw* | pw32* | cegcc*)
7226 symcode='[ABCDGISTW]'
7227 ;;
7228hpux*)
7229 if test "$host_cpu" = ia64; then
7230 symcode='[ABCDEGRST]'
7231 fi
7232 ;;
7233irix* | nonstopux*)
7234 symcode='[BCDEGRST]'
7235 ;;
7236osf*)
7237 symcode='[BCDEGQRST]'
7238 ;;
7239solaris*)
7240 symcode='[BDRT]'
7241 ;;
7242sco3.2v5*)
7243 symcode='[DT]'
7244 ;;
7245sysv4.2uw2*)
7246 symcode='[DT]'
7247 ;;
7248sysv5* | sco5v6* | unixware* | OpenUNIX*)
7249 symcode='[ABDT]'
7250 ;;
7251sysv4)
7252 symcode='[DFNSTU]'
7253 ;;
7254esac
7255
7256# If we're using GNU nm, then use its standard symbol codes.
7257case `$NM -V 2>&1` in
7258*GNU* | *'with BFD'*)
7259 symcode='[ABCDGIRSTW]' ;;
7260esac
7261
7262# Transform an extracted symbol line into a proper C declaration.
7263# Some systems (esp. on ia64) link data and code symbols differently,
7264# so use this general approach.
7265lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7266
7267# Transform an extracted symbol line into symbol name and symbol address
7268lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7269lt_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'"
7270
7271# Handle CRLF in mingw tool chain
7272opt_cr=
7273case $build_os in
7274mingw*)
7275 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7276 ;;
7277esac
7278
7279# Try without a prefix underscore, then with it.
7280for ac_symprfx in "" "_"; do
7281
7282 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7283 symxfrm="\\1 $ac_symprfx\\2 \\2"
7284
7285 # Write the raw and C identifiers.
7286 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7287 # Fake it for dumpbin and say T for any non-static function
7288 # and D for any global variable.
7289 # Also find C++ and __fastcall symbols from MSVC++,
7290 # which start with @ or ?.
7291 lt_cv_sys_global_symbol_pipe="$AWK '"\
7292" {last_section=section; section=\$ 3};"\
7293" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7294" \$ 0!~/External *\|/{next};"\
7295" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7296" {if(hide[section]) next};"\
7297" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7298" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7299" s[1]~/^[@?]/{print s[1], s[1]; next};"\
7300" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7301" ' prfx=^$ac_symprfx"
7302 else
7303 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7304 fi
7305
7306 # Check to see that the pipe works correctly.
7307 pipe_works=no
7308
7309 rm -f conftest*
7310 cat > conftest.$ac_ext <<_LT_EOF
7311#ifdef __cplusplus
7312extern "C" {
7313#endif
7314char nm_test_var;
7315void nm_test_func(void);
7316void nm_test_func(void){}
7317#ifdef __cplusplus
7318}
7319#endif
7320int main(){nm_test_var='a';nm_test_func();return(0);}
7321_LT_EOF
7322
7323 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7324 (eval $ac_compile) 2>&5
7325 ac_status=$?
7326 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7327 test $ac_status = 0; }; then
7328 # Now try to grab the symbols.
7329 nlist=conftest.nm
7330 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7331 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7332 ac_status=$?
7333 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7334 test $ac_status = 0; } && test -s "$nlist"; then
7335 # Try sorting and uniquifying the output.
7336 if sort "$nlist" | uniq > "$nlist"T; then
7337 mv -f "$nlist"T "$nlist"
7338 else
7339 rm -f "$nlist"T
7340 fi
7341
7342 # Make sure that we snagged all the symbols we need.
7343 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7344 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7345 cat <<_LT_EOF > conftest.$ac_ext
7346#ifdef __cplusplus
7347extern "C" {
7348#endif
7349
7350_LT_EOF
7351 # Now generate the symbol file.
7352 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7353
7354 cat <<_LT_EOF >> conftest.$ac_ext
7355
7356/* The mapping between symbol names and symbols. */
7357const struct {
7358 const char *name;
7359 void *address;
7360}
7361lt__PROGRAM__LTX_preloaded_symbols[] =
7362{
7363 { "@PROGRAM@", (void *) 0 },
7364_LT_EOF
7365 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7366 cat <<\_LT_EOF >> conftest.$ac_ext
7367 {0, (void *) 0}
7368};
7369
7370/* This works around a problem in FreeBSD linker */
7371#ifdef FREEBSD_WORKAROUND
7372static const void *lt_preloaded_setup() {
7373 return lt__PROGRAM__LTX_preloaded_symbols;
7374}
7375#endif
7376
7377#ifdef __cplusplus
7378}
7379#endif
7380_LT_EOF
7381 # Now try linking the two files.
7382 mv conftest.$ac_objext conftstm.$ac_objext
7383 lt_save_LIBS="$LIBS"
7384 lt_save_CFLAGS="$CFLAGS"
7385 LIBS="conftstm.$ac_objext"
7386 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7387 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7388 (eval $ac_link) 2>&5
7389 ac_status=$?
7390 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7391 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7392 pipe_works=yes
7393 fi
7394 LIBS="$lt_save_LIBS"
7395 CFLAGS="$lt_save_CFLAGS"
7396 else
7397 echo "cannot find nm_test_func in $nlist" >&5
7398 fi
7399 else
7400 echo "cannot find nm_test_var in $nlist" >&5
7401 fi
7402 else
7403 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7404 fi
7405 else
7406 echo "$progname: failed program was:" >&5
7407 cat conftest.$ac_ext >&5
7408 fi
7409 rm -rf conftest* conftst*
7410
7411 # Do not use the global_symbol_pipe unless it works.
7412 if test "$pipe_works" = yes; then
7413 break
7414 else
7415 lt_cv_sys_global_symbol_pipe=
7416 fi
7417done
7418
7419fi
7420
7421if test -z "$lt_cv_sys_global_symbol_pipe"; then
7422 lt_cv_sys_global_symbol_to_cdecl=
7423fi
7424if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7426$as_echo "failed" >&6; }
7427else
7428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7429$as_echo "ok" >&6; }
7430fi
7431
7432
7433
7434
7435
7436
7437
7438
7439
7440
7441
7442
7443
7444
7445
7446
7447
7448
7449
7450
7451
7452
7453# Check whether --enable-libtool-lock was given.
7454if test "${enable_libtool_lock+set}" = set; then :
7455 enableval=$enable_libtool_lock;
7456fi
7457
7458test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7459
7460# Some flags need to be propagated to the compiler or linker for good
7461# libtool support.
7462case $host in
7463ia64-*-hpux*)
7464 # Find out which ABI we are using.
7465 echo 'int i;' > conftest.$ac_ext
7466 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7467 (eval $ac_compile) 2>&5
7468 ac_status=$?
7469 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7470 test $ac_status = 0; }; then
7471 case `/usr/bin/file conftest.$ac_objext` in
7472 *ELF-32*)
7473 HPUX_IA64_MODE="32"
7474 ;;
7475 *ELF-64*)
7476 HPUX_IA64_MODE="64"
7477 ;;
7478 esac
7479 fi
7480 rm -rf conftest*
7481 ;;
7482*-*-irix6*)
7483 # Find out which ABI we are using.
7484 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7485 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7486 (eval $ac_compile) 2>&5
7487 ac_status=$?
7488 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7489 test $ac_status = 0; }; then
7490 if test "$lt_cv_prog_gnu_ld" = yes; then
7491 case `/usr/bin/file conftest.$ac_objext` in
7492 *32-bit*)
7493 LD="${LD-ld} -melf32bsmip"
7494 ;;
7495 *N32*)
7496 LD="${LD-ld} -melf32bmipn32"
7497 ;;
7498 *64-bit*)
7499 LD="${LD-ld} -melf64bmip"
7500 ;;
7501 esac
7502 else
7503 case `/usr/bin/file conftest.$ac_objext` in
7504 *32-bit*)
7505 LD="${LD-ld} -32"
7506 ;;
7507 *N32*)
7508 LD="${LD-ld} -n32"
7509 ;;
7510 *64-bit*)
7511 LD="${LD-ld} -64"
7512 ;;
7513 esac
7514 fi
7515 fi
7516 rm -rf conftest*
7517 ;;
7518
bf3d9781 7519x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6bb11ab3
L
7520s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7521 # Find out which ABI we are using.
7522 echo 'int i;' > conftest.$ac_ext
7523 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7524 (eval $ac_compile) 2>&5
7525 ac_status=$?
7526 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7527 test $ac_status = 0; }; then
7528 case `/usr/bin/file conftest.o` in
7529 *32-bit*)
7530 case $host in
7531 x86_64-*kfreebsd*-gnu)
7532 LD="${LD-ld} -m elf_i386_fbsd"
7533 ;;
7534 x86_64-*linux*)
7535 case `/usr/bin/file conftest.o` in
7536 *x86-64*)
7537 LD="${LD-ld} -m elf32_x86_64"
7538 ;;
7539 *)
7540 LD="${LD-ld} -m elf_i386"
7541 ;;
7542 esac
7543 ;;
bf3d9781
AM
7544 powerpc64le-*linux*)
7545 LD="${LD-ld} -m elf32lppclinux"
7546 ;;
7547 powerpc64-*linux*)
6bb11ab3
L
7548 LD="${LD-ld} -m elf32ppclinux"
7549 ;;
7550 s390x-*linux*)
7551 LD="${LD-ld} -m elf_s390"
7552 ;;
7553 sparc64-*linux*)
7554 LD="${LD-ld} -m elf32_sparc"
7555 ;;
7556 esac
7557 ;;
7558 *64-bit*)
7559 case $host in
7560 x86_64-*kfreebsd*-gnu)
7561 LD="${LD-ld} -m elf_x86_64_fbsd"
7562 ;;
7563 x86_64-*linux*)
7564 LD="${LD-ld} -m elf_x86_64"
7565 ;;
bf3d9781
AM
7566 powerpcle-*linux*)
7567 LD="${LD-ld} -m elf64lppc"
7568 ;;
7569 powerpc-*linux*)
6bb11ab3
L
7570 LD="${LD-ld} -m elf64ppc"
7571 ;;
7572 s390*-*linux*|s390*-*tpf*)
7573 LD="${LD-ld} -m elf64_s390"
7574 ;;
7575 sparc*-*linux*)
7576 LD="${LD-ld} -m elf64_sparc"
7577 ;;
7578 esac
7579 ;;
7580 esac
7581 fi
7582 rm -rf conftest*
7583 ;;
7584
7585*-*-sco3.2v5*)
7586 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7587 SAVE_CFLAGS="$CFLAGS"
7588 CFLAGS="$CFLAGS -belf"
7589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7590$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
d0ac1c44 7591if ${lt_cv_cc_needs_belf+:} false; then :
6bb11ab3
L
7592 $as_echo_n "(cached) " >&6
7593else
7594 ac_ext=c
7595ac_cpp='$CPP $CPPFLAGS'
7596ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7597ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7598ac_compiler_gnu=$ac_cv_c_compiler_gnu
7599
7600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7601/* end confdefs.h. */
7602
7603int
7604main ()
7605{
7606
7607 ;
7608 return 0;
7609}
7610_ACEOF
7611if ac_fn_c_try_link "$LINENO"; then :
7612 lt_cv_cc_needs_belf=yes
7613else
7614 lt_cv_cc_needs_belf=no
7615fi
7616rm -f core conftest.err conftest.$ac_objext \
7617 conftest$ac_exeext conftest.$ac_ext
7618 ac_ext=c
7619ac_cpp='$CPP $CPPFLAGS'
7620ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7621ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7622ac_compiler_gnu=$ac_cv_c_compiler_gnu
7623
7624fi
7625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7626$as_echo "$lt_cv_cc_needs_belf" >&6; }
7627 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7628 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7629 CFLAGS="$SAVE_CFLAGS"
7630 fi
7631 ;;
7632sparc*-*solaris*)
7633 # Find out which ABI we are using.
7634 echo 'int i;' > conftest.$ac_ext
7635 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7636 (eval $ac_compile) 2>&5
7637 ac_status=$?
7638 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7639 test $ac_status = 0; }; then
7640 case `/usr/bin/file conftest.o` in
7641 *64-bit*)
7642 case $lt_cv_prog_gnu_ld in
7643 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7644 *)
7645 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7646 LD="${LD-ld} -64"
7647 fi
7648 ;;
7649 esac
7650 ;;
7651 esac
7652 fi
7653 rm -rf conftest*
7654 ;;
7655esac
7656
7657need_locks="$enable_libtool_lock"
7658
7659
7660 case $host_os in
7661 rhapsody* | darwin*)
7662 if test -n "$ac_tool_prefix"; then
7663 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7664set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7666$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 7667if ${ac_cv_prog_DSYMUTIL+:} false; then :
6bb11ab3
L
7668 $as_echo_n "(cached) " >&6
7669else
7670 if test -n "$DSYMUTIL"; then
7671 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7672else
7673as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7674for as_dir in $PATH
7675do
7676 IFS=$as_save_IFS
7677 test -z "$as_dir" && as_dir=.
7678 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 7679 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
7680 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7682 break 2
7683 fi
7684done
7685 done
7686IFS=$as_save_IFS
7687
7688fi
7689fi
7690DSYMUTIL=$ac_cv_prog_DSYMUTIL
7691if test -n "$DSYMUTIL"; then
7692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7693$as_echo "$DSYMUTIL" >&6; }
7694else
7695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7696$as_echo "no" >&6; }
7697fi
7698
7699
7700fi
7701if test -z "$ac_cv_prog_DSYMUTIL"; then
7702 ac_ct_DSYMUTIL=$DSYMUTIL
7703 # Extract the first word of "dsymutil", so it can be a program name with args.
7704set dummy dsymutil; ac_word=$2
7705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7706$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 7707if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6bb11ab3
L
7708 $as_echo_n "(cached) " >&6
7709else
7710 if test -n "$ac_ct_DSYMUTIL"; then
7711 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7712else
7713as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7714for as_dir in $PATH
7715do
7716 IFS=$as_save_IFS
7717 test -z "$as_dir" && as_dir=.
7718 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 7719 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
7720 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7721 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7722 break 2
7723 fi
7724done
7725 done
7726IFS=$as_save_IFS
7727
7728fi
7729fi
7730ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7731if test -n "$ac_ct_DSYMUTIL"; then
7732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7733$as_echo "$ac_ct_DSYMUTIL" >&6; }
7734else
7735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7736$as_echo "no" >&6; }
7737fi
7738
7739 if test "x$ac_ct_DSYMUTIL" = x; then
7740 DSYMUTIL=":"
7741 else
7742 case $cross_compiling:$ac_tool_warned in
7743yes:)
7744{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7745$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7746ac_tool_warned=yes ;;
7747esac
7748 DSYMUTIL=$ac_ct_DSYMUTIL
7749 fi
7750else
7751 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7752fi
7753
7754 if test -n "$ac_tool_prefix"; then
7755 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7756set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7758$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 7759if ${ac_cv_prog_NMEDIT+:} false; then :
6bb11ab3
L
7760 $as_echo_n "(cached) " >&6
7761else
7762 if test -n "$NMEDIT"; then
7763 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7764else
7765as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7766for as_dir in $PATH
7767do
7768 IFS=$as_save_IFS
7769 test -z "$as_dir" && as_dir=.
7770 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 7771 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
7772 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7774 break 2
7775 fi
7776done
7777 done
7778IFS=$as_save_IFS
7779
7780fi
7781fi
7782NMEDIT=$ac_cv_prog_NMEDIT
7783if test -n "$NMEDIT"; then
7784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7785$as_echo "$NMEDIT" >&6; }
7786else
7787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7788$as_echo "no" >&6; }
7789fi
7790
7791
7792fi
7793if test -z "$ac_cv_prog_NMEDIT"; then
7794 ac_ct_NMEDIT=$NMEDIT
7795 # Extract the first word of "nmedit", so it can be a program name with args.
7796set dummy nmedit; ac_word=$2
7797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7798$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 7799if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6bb11ab3
L
7800 $as_echo_n "(cached) " >&6
7801else
7802 if test -n "$ac_ct_NMEDIT"; then
7803 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7804else
7805as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7806for as_dir in $PATH
7807do
7808 IFS=$as_save_IFS
7809 test -z "$as_dir" && as_dir=.
7810 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 7811 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
7812 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7814 break 2
7815 fi
7816done
7817 done
7818IFS=$as_save_IFS
7819
7820fi
7821fi
7822ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7823if test -n "$ac_ct_NMEDIT"; then
7824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7825$as_echo "$ac_ct_NMEDIT" >&6; }
7826else
7827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7828$as_echo "no" >&6; }
7829fi
7830
7831 if test "x$ac_ct_NMEDIT" = x; then
7832 NMEDIT=":"
7833 else
7834 case $cross_compiling:$ac_tool_warned in
7835yes:)
7836{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7837$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7838ac_tool_warned=yes ;;
7839esac
7840 NMEDIT=$ac_ct_NMEDIT
7841 fi
7842else
7843 NMEDIT="$ac_cv_prog_NMEDIT"
7844fi
7845
7846 if test -n "$ac_tool_prefix"; then
7847 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7848set dummy ${ac_tool_prefix}lipo; ac_word=$2
7849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7850$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 7851if ${ac_cv_prog_LIPO+:} false; then :
6bb11ab3
L
7852 $as_echo_n "(cached) " >&6
7853else
7854 if test -n "$LIPO"; then
7855 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7856else
7857as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7858for as_dir in $PATH
7859do
7860 IFS=$as_save_IFS
7861 test -z "$as_dir" && as_dir=.
7862 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 7863 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
7864 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7866 break 2
7867 fi
7868done
7869 done
7870IFS=$as_save_IFS
7871
7872fi
7873fi
7874LIPO=$ac_cv_prog_LIPO
7875if test -n "$LIPO"; then
7876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7877$as_echo "$LIPO" >&6; }
7878else
7879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7880$as_echo "no" >&6; }
7881fi
7882
7883
7884fi
7885if test -z "$ac_cv_prog_LIPO"; then
7886 ac_ct_LIPO=$LIPO
7887 # Extract the first word of "lipo", so it can be a program name with args.
7888set dummy lipo; ac_word=$2
7889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7890$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 7891if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6bb11ab3
L
7892 $as_echo_n "(cached) " >&6
7893else
7894 if test -n "$ac_ct_LIPO"; then
7895 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7896else
7897as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7898for as_dir in $PATH
7899do
7900 IFS=$as_save_IFS
7901 test -z "$as_dir" && as_dir=.
7902 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 7903 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
7904 ac_cv_prog_ac_ct_LIPO="lipo"
7905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7906 break 2
7907 fi
7908done
7909 done
7910IFS=$as_save_IFS
7911
7912fi
7913fi
7914ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7915if test -n "$ac_ct_LIPO"; then
7916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7917$as_echo "$ac_ct_LIPO" >&6; }
7918else
7919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7920$as_echo "no" >&6; }
7921fi
7922
7923 if test "x$ac_ct_LIPO" = x; then
7924 LIPO=":"
7925 else
7926 case $cross_compiling:$ac_tool_warned in
7927yes:)
7928{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7929$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7930ac_tool_warned=yes ;;
7931esac
7932 LIPO=$ac_ct_LIPO
7933 fi
7934else
7935 LIPO="$ac_cv_prog_LIPO"
7936fi
7937
7938 if test -n "$ac_tool_prefix"; then
7939 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7940set dummy ${ac_tool_prefix}otool; ac_word=$2
7941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7942$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 7943if ${ac_cv_prog_OTOOL+:} false; then :
6bb11ab3
L
7944 $as_echo_n "(cached) " >&6
7945else
7946 if test -n "$OTOOL"; then
7947 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7948else
7949as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7950for as_dir in $PATH
7951do
7952 IFS=$as_save_IFS
7953 test -z "$as_dir" && as_dir=.
7954 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 7955 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
7956 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7958 break 2
7959 fi
7960done
7961 done
7962IFS=$as_save_IFS
7963
7964fi
7965fi
7966OTOOL=$ac_cv_prog_OTOOL
7967if test -n "$OTOOL"; then
7968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7969$as_echo "$OTOOL" >&6; }
7970else
7971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7972$as_echo "no" >&6; }
7973fi
7974
7975
7976fi
7977if test -z "$ac_cv_prog_OTOOL"; then
7978 ac_ct_OTOOL=$OTOOL
7979 # Extract the first word of "otool", so it can be a program name with args.
7980set dummy otool; ac_word=$2
7981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7982$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 7983if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6bb11ab3
L
7984 $as_echo_n "(cached) " >&6
7985else
7986 if test -n "$ac_ct_OTOOL"; then
7987 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7988else
7989as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7990for as_dir in $PATH
7991do
7992 IFS=$as_save_IFS
7993 test -z "$as_dir" && as_dir=.
7994 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 7995 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
7996 ac_cv_prog_ac_ct_OTOOL="otool"
7997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7998 break 2
7999 fi
8000done
8001 done
8002IFS=$as_save_IFS
8003
8004fi
8005fi
8006ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8007if test -n "$ac_ct_OTOOL"; then
8008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8009$as_echo "$ac_ct_OTOOL" >&6; }
8010else
8011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8012$as_echo "no" >&6; }
8013fi
8014
8015 if test "x$ac_ct_OTOOL" = x; then
8016 OTOOL=":"
8017 else
8018 case $cross_compiling:$ac_tool_warned in
8019yes:)
8020{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8021$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8022ac_tool_warned=yes ;;
8023esac
8024 OTOOL=$ac_ct_OTOOL
8025 fi
8026else
8027 OTOOL="$ac_cv_prog_OTOOL"
8028fi
8029
8030 if test -n "$ac_tool_prefix"; then
8031 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8032set dummy ${ac_tool_prefix}otool64; ac_word=$2
8033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8034$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8035if ${ac_cv_prog_OTOOL64+:} false; then :
6bb11ab3
L
8036 $as_echo_n "(cached) " >&6
8037else
8038 if test -n "$OTOOL64"; then
8039 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8040else
8041as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8042for as_dir in $PATH
8043do
8044 IFS=$as_save_IFS
8045 test -z "$as_dir" && as_dir=.
8046 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8047 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
8048 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8050 break 2
8051 fi
8052done
8053 done
8054IFS=$as_save_IFS
8055
8056fi
8057fi
8058OTOOL64=$ac_cv_prog_OTOOL64
8059if test -n "$OTOOL64"; then
8060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8061$as_echo "$OTOOL64" >&6; }
8062else
8063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8064$as_echo "no" >&6; }
8065fi
8066
8067
8068fi
8069if test -z "$ac_cv_prog_OTOOL64"; then
8070 ac_ct_OTOOL64=$OTOOL64
8071 # Extract the first word of "otool64", so it can be a program name with args.
8072set dummy otool64; ac_word=$2
8073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8074$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8075if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6bb11ab3
L
8076 $as_echo_n "(cached) " >&6
8077else
8078 if test -n "$ac_ct_OTOOL64"; then
8079 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8080else
8081as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8082for as_dir in $PATH
8083do
8084 IFS=$as_save_IFS
8085 test -z "$as_dir" && as_dir=.
8086 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8087 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
8088 ac_cv_prog_ac_ct_OTOOL64="otool64"
8089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8090 break 2
8091 fi
8092done
8093 done
8094IFS=$as_save_IFS
8095
8096fi
8097fi
8098ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8099if test -n "$ac_ct_OTOOL64"; then
8100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8101$as_echo "$ac_ct_OTOOL64" >&6; }
8102else
8103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8104$as_echo "no" >&6; }
8105fi
8106
8107 if test "x$ac_ct_OTOOL64" = x; then
8108 OTOOL64=":"
8109 else
8110 case $cross_compiling:$ac_tool_warned in
8111yes:)
8112{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8113$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8114ac_tool_warned=yes ;;
8115esac
8116 OTOOL64=$ac_ct_OTOOL64
8117 fi
8118else
8119 OTOOL64="$ac_cv_prog_OTOOL64"
8120fi
8121
8122
8123
8124
8125
8126
8127
8128
8129
8130
8131
8132
8133
8134
8135
8136
8137
8138
8139
8140
8141
8142
8143
8144
8145
8146
8147
8148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8149$as_echo_n "checking for -single_module linker flag... " >&6; }
d0ac1c44 8150if ${lt_cv_apple_cc_single_mod+:} false; then :
6bb11ab3
L
8151 $as_echo_n "(cached) " >&6
8152else
8153 lt_cv_apple_cc_single_mod=no
8154 if test -z "${LT_MULTI_MODULE}"; then
8155 # By default we will add the -single_module flag. You can override
8156 # by either setting the environment variable LT_MULTI_MODULE
8157 # non-empty at configure time, or by adding -multi_module to the
8158 # link flags.
8159 rm -rf libconftest.dylib*
8160 echo "int foo(void){return 1;}" > conftest.c
8161 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8162-dynamiclib -Wl,-single_module conftest.c" >&5
8163 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8164 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8165 _lt_result=$?
8166 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8167 lt_cv_apple_cc_single_mod=yes
8168 else
8169 cat conftest.err >&5
8170 fi
8171 rm -rf libconftest.dylib*
8172 rm -f conftest.*
8173 fi
8174fi
8175{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8176$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8178$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
d0ac1c44 8179if ${lt_cv_ld_exported_symbols_list+:} false; then :
6bb11ab3
L
8180 $as_echo_n "(cached) " >&6
8181else
8182 lt_cv_ld_exported_symbols_list=no
8183 save_LDFLAGS=$LDFLAGS
8184 echo "_main" > conftest.sym
8185 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8187/* end confdefs.h. */
8188
8189int
8190main ()
8191{
8192
8193 ;
8194 return 0;
8195}
8196_ACEOF
8197if ac_fn_c_try_link "$LINENO"; then :
8198 lt_cv_ld_exported_symbols_list=yes
8199else
8200 lt_cv_ld_exported_symbols_list=no
8201fi
8202rm -f core conftest.err conftest.$ac_objext \
8203 conftest$ac_exeext conftest.$ac_ext
8204 LDFLAGS="$save_LDFLAGS"
8205
8206fi
8207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8208$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8210$as_echo_n "checking for -force_load linker flag... " >&6; }
d0ac1c44 8211if ${lt_cv_ld_force_load+:} false; then :
6bb11ab3
L
8212 $as_echo_n "(cached) " >&6
8213else
8214 lt_cv_ld_force_load=no
8215 cat > conftest.c << _LT_EOF
8216int forced_loaded() { return 2;}
8217_LT_EOF
8218 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8219 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8220 echo "$AR cru libconftest.a conftest.o" >&5
8221 $AR cru libconftest.a conftest.o 2>&5
8222 cat > conftest.c << _LT_EOF
8223int main() { return 0;}
8224_LT_EOF
8225 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8226 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8227 _lt_result=$?
8228 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8229 lt_cv_ld_force_load=yes
8230 else
8231 cat conftest.err >&5
8232 fi
8233 rm -f conftest.err libconftest.a conftest conftest.c
8234 rm -rf conftest.dSYM
8235
8236fi
8237{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8238$as_echo "$lt_cv_ld_force_load" >&6; }
8239 case $host_os in
8240 rhapsody* | darwin1.[012])
8241 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8242 darwin1.*)
8243 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8244 darwin*) # darwin 5.x on
8245 # if running on 10.5 or later, the deployment target defaults
8246 # to the OS version, if on x86, and 10.4, the deployment
8247 # target defaults to 10.4. Don't you love it?
8248 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8249 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8250 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
5cddc23a 8251 10.[012][,.]*)
6bb11ab3
L
8252 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8253 10.*)
8254 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8255 esac
8256 ;;
8257 esac
8258 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8259 _lt_dar_single_mod='$single_module'
8260 fi
8261 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8262 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8263 else
8264 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8265 fi
8266 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8267 _lt_dsymutil='~$DSYMUTIL $lib || :'
8268 else
8269 _lt_dsymutil=
8270 fi
8271 ;;
8272 esac
8273
8274for ac_header in dlfcn.h
8275do :
8276 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8277"
d0ac1c44 8278if test "x$ac_cv_header_dlfcn_h" = xyes; then :
6bb11ab3
L
8279 cat >>confdefs.h <<_ACEOF
8280#define HAVE_DLFCN_H 1
8281_ACEOF
8282
8283fi
8284
8285done
8286
8287
8288
8289# autoconf.info says this should be called right after AC_INIT.
8290ac_config_headers="$ac_config_headers config.h:config.in"
8291
8292
8293
0cb8d851
MF
8294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8295$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
d0ac1c44 8296if ${ac_cv_c_bigendian+:} false; then :
0cb8d851
MF
8297 $as_echo_n "(cached) " >&6
8298else
8299 ac_cv_c_bigendian=unknown
8300 # See if we're dealing with a universal compiler.
8301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8302/* end confdefs.h. */
8303#ifndef __APPLE_CC__
8304 not a universal capable compiler
8305 #endif
8306 typedef int dummy;
8307
8308_ACEOF
8309if ac_fn_c_try_compile "$LINENO"; then :
8310
8311 # Check for potential -arch flags. It is not universal unless
8312 # there are at least two -arch flags with different values.
8313 ac_arch=
8314 ac_prev=
8315 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8316 if test -n "$ac_prev"; then
8317 case $ac_word in
8318 i?86 | x86_64 | ppc | ppc64)
8319 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8320 ac_arch=$ac_word
8321 else
8322 ac_cv_c_bigendian=universal
8323 break
8324 fi
8325 ;;
8326 esac
8327 ac_prev=
8328 elif test "x$ac_word" = "x-arch"; then
8329 ac_prev=arch
8330 fi
8331 done
8332fi
8333rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8334 if test $ac_cv_c_bigendian = unknown; then
8335 # See if sys/param.h defines the BYTE_ORDER macro.
8336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8337/* end confdefs.h. */
8338#include <sys/types.h>
8339 #include <sys/param.h>
8340
8341int
8342main ()
8343{
8344#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8345 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8346 && LITTLE_ENDIAN)
8347 bogus endian macros
8348 #endif
8349
8350 ;
8351 return 0;
8352}
8353_ACEOF
8354if ac_fn_c_try_compile "$LINENO"; then :
8355 # It does; now see whether it defined to BIG_ENDIAN or not.
8356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8357/* end confdefs.h. */
8358#include <sys/types.h>
8359 #include <sys/param.h>
8360
8361int
8362main ()
8363{
8364#if BYTE_ORDER != BIG_ENDIAN
8365 not big endian
8366 #endif
8367
8368 ;
8369 return 0;
8370}
8371_ACEOF
8372if ac_fn_c_try_compile "$LINENO"; then :
8373 ac_cv_c_bigendian=yes
8374else
8375 ac_cv_c_bigendian=no
8376fi
8377rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8378fi
8379rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8380 fi
8381 if test $ac_cv_c_bigendian = unknown; then
8382 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8384/* end confdefs.h. */
8385#include <limits.h>
8386
8387int
8388main ()
8389{
8390#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8391 bogus endian macros
8392 #endif
8393
8394 ;
8395 return 0;
8396}
8397_ACEOF
8398if ac_fn_c_try_compile "$LINENO"; then :
8399 # It does; now see whether it defined to _BIG_ENDIAN or not.
8400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8401/* end confdefs.h. */
8402#include <limits.h>
8403
8404int
8405main ()
8406{
8407#ifndef _BIG_ENDIAN
8408 not big endian
8409 #endif
8410
8411 ;
8412 return 0;
8413}
8414_ACEOF
8415if ac_fn_c_try_compile "$LINENO"; then :
8416 ac_cv_c_bigendian=yes
8417else
8418 ac_cv_c_bigendian=no
8419fi
8420rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8421fi
8422rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8423 fi
8424 if test $ac_cv_c_bigendian = unknown; then
8425 # Compile a test program.
8426 if test "$cross_compiling" = yes; then :
8427 # Try to guess by grepping values from an object file.
8428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8429/* end confdefs.h. */
8430short int ascii_mm[] =
8431 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8432 short int ascii_ii[] =
8433 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8434 int use_ascii (int i) {
8435 return ascii_mm[i] + ascii_ii[i];
8436 }
8437 short int ebcdic_ii[] =
8438 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8439 short int ebcdic_mm[] =
8440 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8441 int use_ebcdic (int i) {
8442 return ebcdic_mm[i] + ebcdic_ii[i];
8443 }
8444 extern int foo;
8445
8446int
8447main ()
8448{
8449return use_ascii (foo) == use_ebcdic (foo);
8450 ;
8451 return 0;
8452}
8453_ACEOF
8454if ac_fn_c_try_compile "$LINENO"; then :
8455 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8456 ac_cv_c_bigendian=yes
8457 fi
8458 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8459 if test "$ac_cv_c_bigendian" = unknown; then
8460 ac_cv_c_bigendian=no
8461 else
8462 # finding both strings is unlikely to happen, but who knows?
8463 ac_cv_c_bigendian=unknown
8464 fi
8465 fi
8466fi
8467rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8468else
8469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8470/* end confdefs.h. */
8471$ac_includes_default
8472int
8473main ()
8474{
8475
8476 /* Are we little or big endian? From Harbison&Steele. */
8477 union
8478 {
8479 long int l;
8480 char c[sizeof (long int)];
8481 } u;
8482 u.l = 1;
8483 return u.c[sizeof (long int) - 1] == 1;
8484
8485 ;
8486 return 0;
8487}
8488_ACEOF
8489if ac_fn_c_try_run "$LINENO"; then :
8490 ac_cv_c_bigendian=no
8491else
8492 ac_cv_c_bigendian=yes
8493fi
8494rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8495 conftest.$ac_objext conftest.beam conftest.$ac_ext
8496fi
8497
8498 fi
8499fi
8500{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8501$as_echo "$ac_cv_c_bigendian" >&6; }
8502 case $ac_cv_c_bigendian in #(
8503 yes)
8504 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8505;; #(
8506 no)
8507 ;; #(
8508 universal)
8509
8510$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8511
8512 ;; #(
8513 *)
d0ac1c44 8514 as_fn_error $? "unknown endianness
0cb8d851
MF
8515 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8516 esac
8517
6bb11ab3
L
8518
8519
8520
8521# Put a plausible default for CC_FOR_BUILD in Makefile.
5c887dd5
JB
8522if test -z "$CC_FOR_BUILD"; then
8523 if test "x$cross_compiling" = "xno"; then
8524 CC_FOR_BUILD='$(CC)'
8525 else
8526 CC_FOR_BUILD=gcc
8527 fi
6bb11ab3
L
8528fi
8529
8530
8531
8532
8533AR=${AR-ar}
8534
8535if test -n "$ac_tool_prefix"; then
8536 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8537set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8539$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8540if ${ac_cv_prog_RANLIB+:} false; then :
6bb11ab3
L
8541 $as_echo_n "(cached) " >&6
8542else
8543 if test -n "$RANLIB"; then
8544 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8545else
8546as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8547for as_dir in $PATH
8548do
8549 IFS=$as_save_IFS
8550 test -z "$as_dir" && as_dir=.
8551 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8552 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
8553 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8555 break 2
8556 fi
8557done
8558 done
8559IFS=$as_save_IFS
8560
8561fi
8562fi
8563RANLIB=$ac_cv_prog_RANLIB
8564if test -n "$RANLIB"; then
8565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8566$as_echo "$RANLIB" >&6; }
8567else
8568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8569$as_echo "no" >&6; }
8570fi
8571
8572
8573fi
8574if test -z "$ac_cv_prog_RANLIB"; then
8575 ac_ct_RANLIB=$RANLIB
8576 # Extract the first word of "ranlib", so it can be a program name with args.
8577set dummy ranlib; ac_word=$2
8578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8579$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8580if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6bb11ab3
L
8581 $as_echo_n "(cached) " >&6
8582else
8583 if test -n "$ac_ct_RANLIB"; then
8584 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8585else
8586as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8587for as_dir in $PATH
8588do
8589 IFS=$as_save_IFS
8590 test -z "$as_dir" && as_dir=.
8591 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8592 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
8593 ac_cv_prog_ac_ct_RANLIB="ranlib"
8594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8595 break 2
8596 fi
8597done
8598 done
8599IFS=$as_save_IFS
8600
8601fi
8602fi
8603ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8604if test -n "$ac_ct_RANLIB"; then
8605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8606$as_echo "$ac_ct_RANLIB" >&6; }
8607else
8608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8609$as_echo "no" >&6; }
8610fi
8611
8612 if test "x$ac_ct_RANLIB" = x; then
8613 RANLIB=":"
8614 else
8615 case $cross_compiling:$ac_tool_warned in
8616yes:)
8617{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8618$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8619ac_tool_warned=yes ;;
8620esac
8621 RANLIB=$ac_ct_RANLIB
8622 fi
8623else
8624 RANLIB="$ac_cv_prog_RANLIB"
8625fi
8626
8627
46f900c0
MF
8628# Require C11 or newer. Autoconf-2.70 provides ac_cv_prog_cc_c11 when using
8629# AC_PROG_CC, but we're still using Autoconf-2.69, and the newest it understands
8630# is C99. So handle it ourselves.
8631:
8632C_DIALECT=
8633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C11 is supported by default" >&5
8634$as_echo_n "checking whether C11 is supported by default... " >&6; }
8635cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8636/* end confdefs.h. */
8637
8638#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
8639# error "C11 support not found"
8640#endif
8641
8642_ACEOF
8643if ac_fn_c_try_compile "$LINENO"; then :
8644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8645$as_echo "yes" >&6; }
8646else
8647
8648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8649$as_echo "no" >&6; }
8650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -std=c11 support" >&5
8651$as_echo_n "checking for -std=c11 support... " >&6; }
8652 ac_save_CC="$CC"
8653 CC="$CC -std=c11"
8654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8655/* end confdefs.h. */
8656
8657#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
8658# error "C11 support not found"
8659#endif
8660
8661_ACEOF
8662if ac_fn_c_try_compile "$LINENO"; then :
8663
8664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8665$as_echo "yes" >&6; }
8666 CC="$ac_save_CC"
8667 C_DIALECT="-std=c11"
8668
8669else
8670 as_fn_error $? "C11 is required" "$LINENO" 5
8671fi
8672rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8673fi
8674rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8675
8676
6bb11ab3
L
8677# Some of the common include files depend on bfd.h, and bfd.h checks
8678# that config.h is included first by testing that the PACKAGE macro
8679# is defined.
8680PACKAGE=sim
8681
8682cat >>confdefs.h <<_ACEOF
8683#define PACKAGE "$PACKAGE"
8684_ACEOF
8685
8686
8687
8688# Dependency checking.
8689ac_config_commands="$ac_config_commands depdir"
8690
8691
8692depcc="$CC" am_compiler_list=
8693
8694am_depcomp=$ac_aux_dir/depcomp
8695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
8696$as_echo_n "checking dependency style of $depcc... " >&6; }
d0ac1c44 8697if ${am_cv_CC_dependencies_compiler_type+:} false; then :
6bb11ab3
L
8698 $as_echo_n "(cached) " >&6
8699else
8700 if test -f "$am_depcomp"; then
8701 # We make a subdir and do the tests there. Otherwise we can end up
8702 # making bogus files that we don't know about and never remove. For
8703 # instance it was reported that on HP-UX the gcc test will end up
8704 # making a dummy file named `D' -- because `-MD' means `put the output
8705 # in D'.
8706 mkdir conftest.dir
8707 # Copy depcomp to subdir because otherwise we won't find it if we're
8708 # using a relative directory.
8709 cp "$am_depcomp" conftest.dir
8710 cd conftest.dir
8711 # We will build objects and dependencies in a subdirectory because
8712 # it helps to detect inapplicable dependency modes. For instance
8713 # both Tru64's cc and ICC support -MD to output dependencies as a
8714 # side effect of compilation, but ICC will put the dependencies in
8715 # the current directory while Tru64 will put them in the object
8716 # directory.
8717 mkdir sub
8718
8719 am_cv_CC_dependencies_compiler_type=none
8720 if test "$am_compiler_list" = ""; then
8721 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
8722 fi
8723 for depmode in $am_compiler_list; do
8724 if test $depmode = none; then break; fi
8725
8726 $as_echo "$as_me:$LINENO: trying $depmode" >&5
8727 # Setup a source with many dependencies, because some compilers
8728 # like to wrap large dependency lists on column 80 (with \), and
8729 # we should not choose a depcomp mode which is confused by this.
8730 #
8731 # We need to recreate these files for each test, as the compiler may
8732 # overwrite some of them when testing with obscure command lines.
8733 # This happens at least with the AIX C compiler.
8734 : > sub/conftest.c
8735 for i in 1 2 3 4 5 6; do
8736 echo '#include "conftst'$i'.h"' >> sub/conftest.c
8737 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
8738 # Solaris 8's {/usr,}/bin/sh.
8739 touch sub/conftst$i.h
8740 done
8741 echo "include sub/conftest.Po" > confmf
8742
8743 # We check with `-c' and `-o' for the sake of the "dashmstdout"
8744 # mode. It turns out that the SunPro C++ compiler does not properly
8745 # handle `-M -o', and we need to detect this.
8746 depcmd="depmode=$depmode \
8747 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
8748 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
8749 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
8750 echo "| $depcmd" | sed -e 's/ */ /g' >&5
8751 if env $depcmd > conftest.err 2>&1 &&
8752 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
8753 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
8754 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
8755 # icc doesn't choke on unknown options, it will just issue warnings
8756 # or remarks (even with -Werror). So we grep stderr for any message
8757 # that says an option was ignored or not supported.
8758 # When given -MP, icc 7.0 and 7.1 complain thusly:
8759 # icc: Command line warning: ignoring option '-M'; no argument required
8760 # The diagnosis changed in icc 8.0:
8761 # icc: Command line remark: option '-MP' not supported
8762 if (grep 'ignoring option' conftest.err ||
8763 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
8764 am_cv_CC_dependencies_compiler_type=$depmode
8765 $as_echo "$as_me:$LINENO: success" >&5
8766 break
8767 fi
8768 fi
8769 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
8770 sed -e 's/^/| /' < conftest.err >&5
8771 done
8772
8773 cd ..
8774 rm -rf conftest.dir
8775else
8776 am_cv_CC_dependencies_compiler_type=none
8777fi
8778
8779fi
8780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
8781$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
8782if test x${am_cv_CC_dependencies_compiler_type-none} = xnone
d0ac1c44 8783then as_fn_error $? "no usable dependency style found" "$LINENO" 5
6bb11ab3
L
8784else CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
8785
8786fi
8787
8788
8789# Check for the 'make' the user wants to use.
8790for ac_prog in make
8791do
8792 # Extract the first word of "$ac_prog", so it can be a program name with args.
8793set dummy $ac_prog; ac_word=$2
8794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8795$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8796if ${ac_cv_prog_MAKE+:} false; then :
6bb11ab3
L
8797 $as_echo_n "(cached) " >&6
8798else
8799 if test -n "$MAKE"; then
8800 ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
8801else
8802as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8803for as_dir in $PATH
8804do
8805 IFS=$as_save_IFS
8806 test -z "$as_dir" && as_dir=.
8807 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8808 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
8809 ac_cv_prog_MAKE="$ac_prog"
8810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8811 break 2
8812 fi
8813done
8814 done
8815IFS=$as_save_IFS
8816
8817fi
8818fi
8819MAKE=$ac_cv_prog_MAKE
8820if test -n "$MAKE"; then
8821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
8822$as_echo "$MAKE" >&6; }
8823else
8824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8825$as_echo "no" >&6; }
8826fi
8827
8828
8829 test -n "$MAKE" && break
8830done
8831
8832MAKE_IS_GNU=
8833case "`$MAKE --version 2>&1 | sed 1q`" in
8834 *GNU*)
8835 MAKE_IS_GNU=yes
8836 ;;
8837esac
8838 if test "$MAKE_IS_GNU" = yes; then
8839 GMAKE_TRUE=
8840 GMAKE_FALSE='#'
8841else
8842 GMAKE_TRUE='#'
8843 GMAKE_FALSE=
8844fi
8845
8846
8847ALL_LINGUAS=
8848# If we haven't got the data from the intl directory,
8849# assume NLS is disabled.
8850USE_NLS=no
8851LIBINTL=
8852LIBINTL_DEP=
8853INCINTL=
8854XGETTEXT=
8855GMSGFMT=
8856POSUB=
8857
8858if test -f ../../intl/config.intl; then
8859 . ../../intl/config.intl
8860fi
8861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
8862$as_echo_n "checking whether NLS is requested... " >&6; }
8863if test x"$USE_NLS" != xyes; then
8864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8865$as_echo "no" >&6; }
8866else
8867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8868$as_echo "yes" >&6; }
8869
8870$as_echo "#define ENABLE_NLS 1" >>confdefs.h
8871
8872
8873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
8874$as_echo_n "checking for catalogs to be installed... " >&6; }
8875 # Look for .po and .gmo files in the source directory.
8876 CATALOGS=
8877 XLINGUAS=
8878 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
8879 # If there aren't any .gmo files the shell will give us the
8880 # literal string "../path/to/srcdir/po/*.gmo" which has to be
8881 # weeded out.
8882 case "$cat" in *\**)
8883 continue;;
8884 esac
8885 # The quadruple backslash is collapsed to a double backslash
8886 # by the backticks, then collapsed again by the double quotes,
8887 # leaving us with one backslash in the sed expression (right
8888 # before the dot that mustn't act as a wildcard).
8889 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
8890 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
8891 # The user is allowed to set LINGUAS to a list of languages to
8892 # install catalogs for. If it's empty that means "all of them."
8893 if test "x$LINGUAS" = x; then
8894 CATALOGS="$CATALOGS $cat"
8895 XLINGUAS="$XLINGUAS $lang"
8896 else
8897 case "$LINGUAS" in *$lang*)
8898 CATALOGS="$CATALOGS $cat"
8899 XLINGUAS="$XLINGUAS $lang"
8900 ;;
8901 esac
8902 fi
8903 done
8904 LINGUAS="$XLINGUAS"
8905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
8906$as_echo "$LINGUAS" >&6; }
8907
8908
8909 DATADIRNAME=share
8910
8911 INSTOBJEXT=.mo
8912
8913 GENCAT=gencat
8914
8915 CATOBJEXT=.gmo
8916
8917fi
8918
8919# Check for common headers.
8920# FIXME: Seems to me this can cause problems for i386-windows hosts.
8921# At one point there were hardcoded AC_DEFINE's if ${host} = i386-*-windows*.
8922for ac_header in stdlib.h string.h strings.h unistd.h time.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"
d0ac1c44 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
936df756 8935for ac_header in sys/time.h sys/times.h sys/resource.h sys/mman.h
6bb11ab3
L
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"
d0ac1c44 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_header in fcntl.h fpu_control.h
8949do :
8950 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8951ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
d0ac1c44 8952if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6bb11ab3
L
8953 cat >>confdefs.h <<_ACEOF
8954#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8955_ACEOF
8956
8957fi
8958
8959done
8960
8961for ac_header in dlfcn.h errno.h sys/stat.h
8962do :
8963 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8964ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
d0ac1c44 8965if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6bb11ab3
L
8966 cat >>confdefs.h <<_ACEOF
8967#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8968_ACEOF
8969
8970fi
8971
8972done
8973
8974for ac_func in getrusage time sigaction __setfpucw
8975do :
8976 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8977ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
d0ac1c44 8978if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6bb11ab3
L
8979 cat >>confdefs.h <<_ACEOF
8980#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8981_ACEOF
8982
8983fi
8984done
8985
936df756
MF
8986for ac_func in mmap munmap lstat truncate ftruncate posix_fallocate
8987do :
8988 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8989ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
d0ac1c44 8990if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
936df756
MF
8991 cat >>confdefs.h <<_ACEOF
8992#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8993_ACEOF
8994
8995fi
8996done
8997
8998ac_fn_c_check_member "$LINENO" "struct stat" "st_dev" "ac_cv_member_struct_stat_st_dev" "#ifdef HAVE_SYS_TYPES_H
8999#include <sys/types.h>
9000#endif
9001#ifdef HAVE_SYS_STAT_H
9002#include <sys/stat.h>
9003#endif
9004"
d0ac1c44 9005if test "x$ac_cv_member_struct_stat_st_dev" = xyes; then :
936df756
MF
9006
9007cat >>confdefs.h <<_ACEOF
9008#define HAVE_STRUCT_STAT_ST_DEV 1
9009_ACEOF
9010
9011
9012fi
9013ac_fn_c_check_member "$LINENO" "struct stat" "st_ino" "ac_cv_member_struct_stat_st_ino" "#ifdef HAVE_SYS_TYPES_H
9014#include <sys/types.h>
9015#endif
9016#ifdef HAVE_SYS_STAT_H
9017#include <sys/stat.h>
9018#endif
9019"
d0ac1c44 9020if test "x$ac_cv_member_struct_stat_st_ino" = xyes; then :
936df756
MF
9021
9022cat >>confdefs.h <<_ACEOF
9023#define HAVE_STRUCT_STAT_ST_INO 1
9024_ACEOF
9025
9026
9027fi
9028ac_fn_c_check_member "$LINENO" "struct stat" "st_mode" "ac_cv_member_struct_stat_st_mode" "#ifdef HAVE_SYS_TYPES_H
9029#include <sys/types.h>
9030#endif
9031#ifdef HAVE_SYS_STAT_H
9032#include <sys/stat.h>
9033#endif
9034"
d0ac1c44 9035if test "x$ac_cv_member_struct_stat_st_mode" = xyes; then :
936df756
MF
9036
9037cat >>confdefs.h <<_ACEOF
9038#define HAVE_STRUCT_STAT_ST_MODE 1
9039_ACEOF
9040
9041
9042fi
9043ac_fn_c_check_member "$LINENO" "struct stat" "st_nlink" "ac_cv_member_struct_stat_st_nlink" "#ifdef HAVE_SYS_TYPES_H
9044#include <sys/types.h>
9045#endif
9046#ifdef HAVE_SYS_STAT_H
9047#include <sys/stat.h>
9048#endif
9049"
d0ac1c44 9050if test "x$ac_cv_member_struct_stat_st_nlink" = xyes; then :
936df756
MF
9051
9052cat >>confdefs.h <<_ACEOF
9053#define HAVE_STRUCT_STAT_ST_NLINK 1
9054_ACEOF
9055
9056
9057fi
9058ac_fn_c_check_member "$LINENO" "struct stat" "st_uid" "ac_cv_member_struct_stat_st_uid" "#ifdef HAVE_SYS_TYPES_H
9059#include <sys/types.h>
9060#endif
9061#ifdef HAVE_SYS_STAT_H
9062#include <sys/stat.h>
9063#endif
9064"
d0ac1c44 9065if test "x$ac_cv_member_struct_stat_st_uid" = xyes; then :
936df756
MF
9066
9067cat >>confdefs.h <<_ACEOF
9068#define HAVE_STRUCT_STAT_ST_UID 1
9069_ACEOF
9070
9071
9072fi
9073ac_fn_c_check_member "$LINENO" "struct stat" "st_gid" "ac_cv_member_struct_stat_st_gid" "#ifdef HAVE_SYS_TYPES_H
9074#include <sys/types.h>
9075#endif
9076#ifdef HAVE_SYS_STAT_H
9077#include <sys/stat.h>
9078#endif
9079"
d0ac1c44 9080if test "x$ac_cv_member_struct_stat_st_gid" = xyes; then :
936df756
MF
9081
9082cat >>confdefs.h <<_ACEOF
9083#define HAVE_STRUCT_STAT_ST_GID 1
9084_ACEOF
9085
9086
9087fi
9088ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "#ifdef HAVE_SYS_TYPES_H
9089#include <sys/types.h>
9090#endif
9091#ifdef HAVE_SYS_STAT_H
9092#include <sys/stat.h>
9093#endif
9094"
d0ac1c44 9095if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
936df756
MF
9096
9097cat >>confdefs.h <<_ACEOF
9098#define HAVE_STRUCT_STAT_ST_RDEV 1
9099_ACEOF
9100
9101
9102fi
9103ac_fn_c_check_member "$LINENO" "struct stat" "st_size" "ac_cv_member_struct_stat_st_size" "#ifdef HAVE_SYS_TYPES_H
9104#include <sys/types.h>
9105#endif
9106#ifdef HAVE_SYS_STAT_H
9107#include <sys/stat.h>
9108#endif
9109"
d0ac1c44 9110if test "x$ac_cv_member_struct_stat_st_size" = xyes; then :
936df756
MF
9111
9112cat >>confdefs.h <<_ACEOF
9113#define HAVE_STRUCT_STAT_ST_SIZE 1
9114_ACEOF
9115
9116
9117fi
9118ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "#ifdef HAVE_SYS_TYPES_H
9119#include <sys/types.h>
9120#endif
9121#ifdef HAVE_SYS_STAT_H
9122#include <sys/stat.h>
9123#endif
9124"
d0ac1c44 9125if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
936df756
MF
9126
9127cat >>confdefs.h <<_ACEOF
9128#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
9129_ACEOF
9130
9131
9132fi
9133ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "#ifdef HAVE_SYS_TYPES_H
9134#include <sys/types.h>
9135#endif
9136#ifdef HAVE_SYS_STAT_H
9137#include <sys/stat.h>
9138#endif
9139"
d0ac1c44 9140if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
936df756
MF
9141
9142cat >>confdefs.h <<_ACEOF
9143#define HAVE_STRUCT_STAT_ST_BLOCKS 1
9144_ACEOF
9145
9146
9147fi
9148ac_fn_c_check_member "$LINENO" "struct stat" "st_atime" "ac_cv_member_struct_stat_st_atime" "#ifdef HAVE_SYS_TYPES_H
9149#include <sys/types.h>
9150#endif
9151#ifdef HAVE_SYS_STAT_H
9152#include <sys/stat.h>
9153#endif
9154"
d0ac1c44 9155if test "x$ac_cv_member_struct_stat_st_atime" = xyes; then :
936df756
MF
9156
9157cat >>confdefs.h <<_ACEOF
9158#define HAVE_STRUCT_STAT_ST_ATIME 1
9159_ACEOF
9160
9161
9162fi
9163ac_fn_c_check_member "$LINENO" "struct stat" "st_mtime" "ac_cv_member_struct_stat_st_mtime" "#ifdef HAVE_SYS_TYPES_H
9164#include <sys/types.h>
9165#endif
9166#ifdef HAVE_SYS_STAT_H
9167#include <sys/stat.h>
9168#endif
9169"
d0ac1c44 9170if test "x$ac_cv_member_struct_stat_st_mtime" = xyes; then :
936df756
MF
9171
9172cat >>confdefs.h <<_ACEOF
9173#define HAVE_STRUCT_STAT_ST_MTIME 1
9174_ACEOF
9175
9176
9177fi
9178ac_fn_c_check_member "$LINENO" "struct stat" "st_ctime" "ac_cv_member_struct_stat_st_ctime" "#ifdef HAVE_SYS_TYPES_H
9179#include <sys/types.h>
9180#endif
9181#ifdef HAVE_SYS_STAT_H
9182#include <sys/stat.h>
9183#endif
9184"
d0ac1c44 9185if test "x$ac_cv_member_struct_stat_st_ctime" = xyes; then :
936df756
MF
9186
9187cat >>confdefs.h <<_ACEOF
9188#define HAVE_STRUCT_STAT_ST_CTIME 1
9189_ACEOF
9190
9191
9192fi
9193
9194ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
9195#include <sys/socket.h>
9196
9197"
d0ac1c44 9198if test "x$ac_cv_type_socklen_t" = xyes; then :
936df756
MF
9199
9200cat >>confdefs.h <<_ACEOF
9201#define HAVE_SOCKLEN_T 1
9202_ACEOF
9203
9204
9205fi
9206
6bb11ab3
L
9207
9208# Check for socket libraries
9209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for bind in -lsocket" >&5
9210$as_echo_n "checking for bind in -lsocket... " >&6; }
d0ac1c44 9211if ${ac_cv_lib_socket_bind+:} false; then :
6bb11ab3
L
9212 $as_echo_n "(cached) " >&6
9213else
9214 ac_check_lib_save_LIBS=$LIBS
9215LIBS="-lsocket $LIBS"
9216cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9217/* end confdefs.h. */
9218
9219/* Override any GCC internal prototype to avoid an error.
9220 Use char because int might match the return type of a GCC
9221 builtin and then its argument prototype would still apply. */
9222#ifdef __cplusplus
9223extern "C"
9224#endif
9225char bind ();
9226int
9227main ()
9228{
9229return bind ();
9230 ;
9231 return 0;
9232}
9233_ACEOF
9234if ac_fn_c_try_link "$LINENO"; then :
9235 ac_cv_lib_socket_bind=yes
9236else
9237 ac_cv_lib_socket_bind=no
9238fi
9239rm -f core conftest.err conftest.$ac_objext \
9240 conftest$ac_exeext conftest.$ac_ext
9241LIBS=$ac_check_lib_save_LIBS
9242fi
9243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_bind" >&5
9244$as_echo "$ac_cv_lib_socket_bind" >&6; }
d0ac1c44 9245if test "x$ac_cv_lib_socket_bind" = xyes; then :
6bb11ab3
L
9246 cat >>confdefs.h <<_ACEOF
9247#define HAVE_LIBSOCKET 1
9248_ACEOF
9249
9250 LIBS="-lsocket $LIBS"
9251
9252fi
9253
9254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
9255$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
d0ac1c44 9256if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
6bb11ab3
L
9257 $as_echo_n "(cached) " >&6
9258else
9259 ac_check_lib_save_LIBS=$LIBS
9260LIBS="-lnsl $LIBS"
9261cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9262/* end confdefs.h. */
9263
9264/* Override any GCC internal prototype to avoid an error.
9265 Use char because int might match the return type of a GCC
9266 builtin and then its argument prototype would still apply. */
9267#ifdef __cplusplus
9268extern "C"
9269#endif
9270char gethostbyname ();
9271int
9272main ()
9273{
9274return gethostbyname ();
9275 ;
9276 return 0;
9277}
9278_ACEOF
9279if ac_fn_c_try_link "$LINENO"; then :
9280 ac_cv_lib_nsl_gethostbyname=yes
9281else
9282 ac_cv_lib_nsl_gethostbyname=no
9283fi
9284rm -f core conftest.err conftest.$ac_objext \
9285 conftest$ac_exeext conftest.$ac_ext
9286LIBS=$ac_check_lib_save_LIBS
9287fi
9288{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
9289$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
d0ac1c44 9290if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
6bb11ab3
L
9291 cat >>confdefs.h <<_ACEOF
9292#define HAVE_LIBNSL 1
9293_ACEOF
9294
9295 LIBS="-lnsl $LIBS"
9296
9297fi
9298
9299
9300# BFD conditionally uses zlib, so we must link it in if libbfd does, by
9301# using the same condition.
9302
aadc9410 9303 # Use the system's zlib library.
7fed4b0b
L
9304 zlibdir="-L\$(top_builddir)/../zlib"
9305 zlibinc="-I\$(top_srcdir)/../zlib"
6bb11ab3 9306
aadc9410
MF
9307# Check whether --with-system-zlib was given.
9308if test "${with_system_zlib+set}" = set; then :
0ceaf1ec
L
9309 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
9310 zlibdir=
9311 zlibinc=
9312 fi
6bb11ab3
L
9313
9314fi
9315
6bb11ab3 9316
6bb11ab3 9317
6bb11ab3
L
9318
9319
9320# BFD uses libdl when when plugins enabled.
9321
faa743bb
RM
9322 maybe_plugins=no
9323 for ac_header in dlfcn.h
9324do :
9325 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9326"
d0ac1c44 9327if test "x$ac_cv_header_dlfcn_h" = xyes; then :
faa743bb
RM
9328 cat >>confdefs.h <<_ACEOF
9329#define HAVE_DLFCN_H 1
9330_ACEOF
9331 maybe_plugins=yes
9332fi
9333
9334done
9335
9336 for ac_header in windows.h
9337do :
9338 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
9339"
d0ac1c44 9340if test "x$ac_cv_header_windows_h" = xyes; then :
faa743bb
RM
9341 cat >>confdefs.h <<_ACEOF
9342#define HAVE_WINDOWS_H 1
9343_ACEOF
9344 maybe_plugins=yes
9345fi
9346
9347done
9348
9349
9350 # Check whether --enable-plugins was given.
6bb11ab3
L
9351if test "${enable_plugins+set}" = set; then :
9352 enableval=$enable_plugins; case "${enableval}" in
faa743bb
RM
9353 no) plugins=no ;;
9354 *) plugins=yes
9355 if test "$maybe_plugins" != "yes" ; then
d0ac1c44 9356 as_fn_error $? "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
faa743bb
RM
9357 fi ;;
9358 esac
6bb11ab3 9359else
faa743bb
RM
9360 plugins=$maybe_plugins
9361
6bb11ab3
L
9362fi
9363
2974be62 9364 if test "$plugins" = "yes"; then
37f980dc
SM
9365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
9366$as_echo_n "checking for library containing dlsym... " >&6; }
d0ac1c44 9367if ${ac_cv_search_dlsym+:} false; then :
2974be62
AM
9368 $as_echo_n "(cached) " >&6
9369else
9370 ac_func_search_save_LIBS=$LIBS
9371cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9372/* end confdefs.h. */
9373
9374/* Override any GCC internal prototype to avoid an error.
9375 Use char because int might match the return type of a GCC
9376 builtin and then its argument prototype would still apply. */
9377#ifdef __cplusplus
9378extern "C"
9379#endif
37f980dc 9380char dlsym ();
2974be62
AM
9381int
9382main ()
9383{
37f980dc 9384return dlsym ();
2974be62
AM
9385 ;
9386 return 0;
9387}
9388_ACEOF
9389for ac_lib in '' dl; do
9390 if test -z "$ac_lib"; then
9391 ac_res="none required"
9392 else
9393 ac_res=-l$ac_lib
9394 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9395 fi
9396 if ac_fn_c_try_link "$LINENO"; then :
37f980dc 9397 ac_cv_search_dlsym=$ac_res
2974be62
AM
9398fi
9399rm -f core conftest.err conftest.$ac_objext \
9400 conftest$ac_exeext
d0ac1c44 9401 if ${ac_cv_search_dlsym+:} false; then :
2974be62
AM
9402 break
9403fi
9404done
d0ac1c44 9405if ${ac_cv_search_dlsym+:} false; then :
2974be62
AM
9406
9407else
37f980dc 9408 ac_cv_search_dlsym=no
2974be62
AM
9409fi
9410rm conftest.$ac_ext
9411LIBS=$ac_func_search_save_LIBS
9412fi
37f980dc
SM
9413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
9414$as_echo "$ac_cv_search_dlsym" >&6; }
9415ac_res=$ac_cv_search_dlsym
2974be62
AM
9416if test "$ac_res" != no; then :
9417 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9418
9419fi
9420
9421 fi
6bb11ab3
L
9422
9423 if test "$plugins" = yes; then
9424 PLUGINS_TRUE=
9425 PLUGINS_FALSE='#'
9426else
9427 PLUGINS_TRUE='#'
9428 PLUGINS_FALSE=
9429fi
9430
9431
9432
9433
9434
9435# Set options
9436enable_dlopen=yes
9437
9438
9439
9440
9441 enable_win32_dll=no
9442
9443
9444 # Check whether --enable-shared was given.
9445if test "${enable_shared+set}" = set; then :
9446 enableval=$enable_shared; p=${PACKAGE-default}
9447 case $enableval in
9448 yes) enable_shared=yes ;;
9449 no) enable_shared=no ;;
9450 *)
9451 enable_shared=no
9452 # Look at the argument we got. We use all the common list separators.
9453 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9454 for pkg in $enableval; do
9455 IFS="$lt_save_ifs"
9456 if test "X$pkg" = "X$p"; then
9457 enable_shared=yes
9458 fi
9459 done
9460 IFS="$lt_save_ifs"
9461 ;;
9462 esac
9463else
9464 enable_shared=yes
9465fi
9466
9467
9468
9469
9470
9471
9472
9473
9474
9475 # Check whether --enable-static was given.
9476if test "${enable_static+set}" = set; then :
9477 enableval=$enable_static; p=${PACKAGE-default}
9478 case $enableval in
9479 yes) enable_static=yes ;;
9480 no) enable_static=no ;;
9481 *)
9482 enable_static=no
9483 # Look at the argument we got. We use all the common list separators.
9484 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9485 for pkg in $enableval; do
9486 IFS="$lt_save_ifs"
9487 if test "X$pkg" = "X$p"; then
9488 enable_static=yes
9489 fi
9490 done
9491 IFS="$lt_save_ifs"
9492 ;;
9493 esac
9494else
9495 enable_static=yes
9496fi
9497
9498
9499
9500
9501
9502
9503
9504
9505
9506
9507# Check whether --with-pic was given.
9508if test "${with_pic+set}" = set; then :
9509 withval=$with_pic; pic_mode="$withval"
9510else
9511 pic_mode=default
9512fi
9513
9514
9515test -z "$pic_mode" && pic_mode=default
9516
9517
9518
9519
9520
9521
9522
9523 # Check whether --enable-fast-install was given.
9524if test "${enable_fast_install+set}" = set; then :
9525 enableval=$enable_fast_install; p=${PACKAGE-default}
9526 case $enableval in
9527 yes) enable_fast_install=yes ;;
9528 no) enable_fast_install=no ;;
9529 *)
9530 enable_fast_install=no
9531 # Look at the argument we got. We use all the common list separators.
9532 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9533 for pkg in $enableval; do
9534 IFS="$lt_save_ifs"
9535 if test "X$pkg" = "X$p"; then
9536 enable_fast_install=yes
9537 fi
9538 done
9539 IFS="$lt_save_ifs"
9540 ;;
9541 esac
9542else
9543 enable_fast_install=yes
9544fi
9545
9546
9547
9548
9549
9550
9551
9552
9553
9554
9555
9556# This can be used to rebuild libtool when needed
9557LIBTOOL_DEPS="$ltmain"
9558
9559# Always use our own libtool.
9560LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9561
9562
9563
9564
9565
9566
9567
9568
9569
9570
9571
9572
9573
9574
9575
9576
9577
9578
9579
9580
9581
9582
9583
9584
9585
9586
9587test -z "$LN_S" && LN_S="ln -s"
9588
9589
9590
9591
9592
9593
9594
9595
9596
9597
9598
9599
9600
9601
9602if test -n "${ZSH_VERSION+set}" ; then
9603 setopt NO_GLOB_SUBST
b7026657 9604fi
b7026657 9605
6bb11ab3
L
9606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9607$as_echo_n "checking for objdir... " >&6; }
d0ac1c44 9608if ${lt_cv_objdir+:} false; then :
6bb11ab3
L
9609 $as_echo_n "(cached) " >&6
9610else
9611 rm -f .libs 2>/dev/null
9612mkdir .libs 2>/dev/null
9613if test -d .libs; then
9614 lt_cv_objdir=.libs
9615else
9616 # MS-DOS does not allow filenames that begin with a dot.
9617 lt_cv_objdir=_libs
9618fi
9619rmdir .libs 2>/dev/null
9620fi
9621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9622$as_echo "$lt_cv_objdir" >&6; }
9623objdir=$lt_cv_objdir
9624
9625
9626
9627
9628
9629cat >>confdefs.h <<_ACEOF
9630#define LT_OBJDIR "$lt_cv_objdir/"
9631_ACEOF
9632
9633
9634
9635
9636case $host_os in
9637aix3*)
9638 # AIX sometimes has problems with the GCC collect2 program. For some
9639 # reason, if we set the COLLECT_NAMES environment variable, the problems
9640 # vanish in a puff of smoke.
9641 if test "X${COLLECT_NAMES+set}" != Xset; then
9642 COLLECT_NAMES=
9643 export COLLECT_NAMES
9644 fi
9645 ;;
81ecdfbb 9646esac
6bb11ab3
L
9647
9648# Global variables:
9649ofile=libtool
9650can_build_shared=yes
9651
9652# All known linkers require a `.a' archive for static linking (except MSVC,
9653# which needs '.lib').
9654libext=a
9655
9656with_gnu_ld="$lt_cv_prog_gnu_ld"
9657
9658old_CC="$CC"
9659old_CFLAGS="$CFLAGS"
9660
9661# Set sane defaults for various variables
9662test -z "$CC" && CC=cc
9663test -z "$LTCC" && LTCC=$CC
9664test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9665test -z "$LD" && LD=ld
9666test -z "$ac_objext" && ac_objext=o
9667
9668for cc_temp in $compiler""; do
9669 case $cc_temp in
9670 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9671 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9672 \-*) ;;
9673 *) break;;
9674 esac
9675done
9676cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9677
9678
9679# Only perform the check for file, if the check method requires it
9680test -z "$MAGIC_CMD" && MAGIC_CMD=file
9681case $deplibs_check_method in
9682file_magic*)
9683 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9685$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
d0ac1c44 9686if ${lt_cv_path_MAGIC_CMD+:} false; then :
6bb11ab3
L
9687 $as_echo_n "(cached) " >&6
9688else
9689 case $MAGIC_CMD in
9690[\\/*] | ?:[\\/]*)
9691 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9692 ;;
9693*)
9694 lt_save_MAGIC_CMD="$MAGIC_CMD"
9695 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9696 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9697 for ac_dir in $ac_dummy; do
9698 IFS="$lt_save_ifs"
9699 test -z "$ac_dir" && ac_dir=.
9700 if test -f $ac_dir/${ac_tool_prefix}file; then
9701 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9702 if test -n "$file_magic_test_file"; then
9703 case $deplibs_check_method in
9704 "file_magic "*)
9705 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9706 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9707 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9708 $EGREP "$file_magic_regex" > /dev/null; then
9709 :
9710 else
9711 cat <<_LT_EOF 1>&2
9712
9713*** Warning: the command libtool uses to detect shared libraries,
9714*** $file_magic_cmd, produces output that libtool cannot recognize.
9715*** The result is that libtool may fail to recognize shared libraries
9716*** as such. This will affect the creation of libtool libraries that
9717*** depend on shared libraries, but programs linked with such libtool
9718*** libraries will work regardless of this problem. Nevertheless, you
9719*** may want to report the problem to your system manager and/or to
9720*** bug-libtool@gnu.org
9721
9722_LT_EOF
9723 fi ;;
9724 esac
9725 fi
9726 break
f0569246 9727 fi
6bb11ab3
L
9728 done
9729 IFS="$lt_save_ifs"
9730 MAGIC_CMD="$lt_save_MAGIC_CMD"
9731 ;;
9732esac
f0569246 9733fi
f0569246 9734
6bb11ab3
L
9735MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9736if test -n "$MAGIC_CMD"; then
9737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9738$as_echo "$MAGIC_CMD" >&6; }
9739else
9740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9741$as_echo "no" >&6; }
9742fi
81ecdfbb 9743
6bb11ab3
L
9744
9745
9746
9747
9748if test -z "$lt_cv_path_MAGIC_CMD"; then
9749 if test -n "$ac_tool_prefix"; then
9750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9751$as_echo_n "checking for file... " >&6; }
d0ac1c44 9752if ${lt_cv_path_MAGIC_CMD+:} false; then :
6bb11ab3
L
9753 $as_echo_n "(cached) " >&6
9754else
9755 case $MAGIC_CMD in
9756[\\/*] | ?:[\\/]*)
9757 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9758 ;;
9759*)
9760 lt_save_MAGIC_CMD="$MAGIC_CMD"
9761 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9762 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9763 for ac_dir in $ac_dummy; do
9764 IFS="$lt_save_ifs"
9765 test -z "$ac_dir" && ac_dir=.
9766 if test -f $ac_dir/file; then
9767 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9768 if test -n "$file_magic_test_file"; then
9769 case $deplibs_check_method in
9770 "file_magic "*)
9771 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9772 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9773 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9774 $EGREP "$file_magic_regex" > /dev/null; then
9775 :
9776 else
9777 cat <<_LT_EOF 1>&2
9778
9779*** Warning: the command libtool uses to detect shared libraries,
9780*** $file_magic_cmd, produces output that libtool cannot recognize.
9781*** The result is that libtool may fail to recognize shared libraries
9782*** as such. This will affect the creation of libtool libraries that
9783*** depend on shared libraries, but programs linked with such libtool
9784*** libraries will work regardless of this problem. Nevertheless, you
9785*** may want to report the problem to your system manager and/or to
9786*** bug-libtool@gnu.org
9787
9788_LT_EOF
9789 fi ;;
9790 esac
9791 fi
9792 break
9793 fi
9794 done
9795 IFS="$lt_save_ifs"
9796 MAGIC_CMD="$lt_save_MAGIC_CMD"
9797 ;;
81ecdfbb 9798esac
6bb11ab3
L
9799fi
9800
9801MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9802if test -n "$MAGIC_CMD"; then
9803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9804$as_echo "$MAGIC_CMD" >&6; }
9805else
9806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9807$as_echo "no" >&6; }
9808fi
9809
9810
9811 else
9812 MAGIC_CMD=:
9813 fi
9814fi
9815
9816 fi
9817 ;;
9818esac
9819
9820# Use C for the default configuration in the libtool script
9821
9822lt_save_CC="$CC"
9823ac_ext=c
9824ac_cpp='$CPP $CPPFLAGS'
9825ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9826ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9827ac_compiler_gnu=$ac_cv_c_compiler_gnu
9828
9829
9830# Source file extension for C test sources.
9831ac_ext=c
9832
9833# Object file extension for compiled C test sources.
9834objext=o
9835objext=$objext
9836
9837# Code to be used in simple compile tests
9838lt_simple_compile_test_code="int some_variable = 0;"
9839
9840# Code to be used in simple link tests
9841lt_simple_link_test_code='int main(){return(0);}'
9842
9843
9844
9845
9846
9847
9848
9849# If no C compiler was specified, use CC.
9850LTCC=${LTCC-"$CC"}
9851
9852# If no C compiler flags were specified, use CFLAGS.
9853LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9854
9855# Allow CC to be a program name with arguments.
9856compiler=$CC
9857
9858# Save the default compiler, since it gets overwritten when the other
9859# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9860compiler_DEFAULT=$CC
9861
9862# save warnings/boilerplate of simple test code
9863ac_outfile=conftest.$ac_objext
9864echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9865eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9866_lt_compiler_boilerplate=`cat conftest.err`
9867$RM conftest*
9868
9869ac_outfile=conftest.$ac_objext
9870echo "$lt_simple_link_test_code" >conftest.$ac_ext
9871eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9872_lt_linker_boilerplate=`cat conftest.err`
9873$RM -r conftest*
9874
9875
9876## CAVEAT EMPTOR:
9877## There is no encapsulation within the following macros, do not change
9878## the running order or otherwise move them around unless you know exactly
9879## what you are doing...
9880if test -n "$compiler"; then
9881
9882lt_prog_compiler_no_builtin_flag=
9883
9884if test "$GCC" = yes; then
9885 case $cc_basename in
9886 nvcc*)
9887 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9888 *)
9889 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
f0569246 9890 esac
6bb11ab3
L
9891
9892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9893$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
d0ac1c44 9894if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
6bb11ab3 9895 $as_echo_n "(cached) " >&6
f0569246 9896else
6bb11ab3
L
9897 lt_cv_prog_compiler_rtti_exceptions=no
9898 ac_outfile=conftest.$ac_objext
9899 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9900 lt_compiler_flag="-fno-rtti -fno-exceptions"
9901 # Insert the option either (1) after the last *FLAGS variable, or
9902 # (2) before a word containing "conftest.", or (3) at the end.
9903 # Note that $ac_compile itself does not contain backslashes and begins
9904 # with a dollar sign (not a hyphen), so the echo should work correctly.
9905 # The option is referenced via a variable to avoid confusing sed.
9906 lt_compile=`echo "$ac_compile" | $SED \
9907 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9908 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9909 -e 's:$: $lt_compiler_flag:'`
9910 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9911 (eval "$lt_compile" 2>conftest.err)
9912 ac_status=$?
9913 cat conftest.err >&5
9914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9915 if (exit $ac_status) && test -s "$ac_outfile"; then
9916 # The compiler can only warn and ignore the option if not recognized
9917 # So say no if there are warnings other than the usual output.
9918 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9919 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9920 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9921 lt_cv_prog_compiler_rtti_exceptions=yes
9922 fi
9923 fi
9924 $RM conftest*
9925
f0569246 9926fi
6bb11ab3
L
9927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9928$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9929
9930if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9931 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9932else
9933 :
9934fi
9935
9936fi
9937
9938
9939
9940
9941
9942
9943 lt_prog_compiler_wl=
9944lt_prog_compiler_pic=
9945lt_prog_compiler_static=
9946
9947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9948$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9949
9950 if test "$GCC" = yes; then
9951 lt_prog_compiler_wl='-Wl,'
9952 lt_prog_compiler_static='-static'
9953
9954 case $host_os in
9955 aix*)
9956 # All AIX code is PIC.
9957 if test "$host_cpu" = ia64; then
9958 # AIX 5 now supports IA64 processor
9959 lt_prog_compiler_static='-Bstatic'
9960 fi
9961 lt_prog_compiler_pic='-fPIC'
9962 ;;
9963
9964 amigaos*)
9965 case $host_cpu in
9966 powerpc)
9967 # see comment about AmigaOS4 .so support
9968 lt_prog_compiler_pic='-fPIC'
9969 ;;
9970 m68k)
9971 # FIXME: we need at least 68020 code to build shared libraries, but
9972 # adding the `-m68020' flag to GCC prevents building anything better,
9973 # like `-m68040'.
9974 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9975 ;;
9976 esac
9977 ;;
9978
9979 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9980 # PIC is the default for these OSes.
9981 ;;
9982
9983 mingw* | cygwin* | pw32* | os2* | cegcc*)
9984 # This hack is so that the source file can tell whether it is being
9985 # built for inclusion in a dll (and should export symbols for example).
9986 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9987 # (--disable-auto-import) libraries
9988 lt_prog_compiler_pic='-DDLL_EXPORT'
9989 ;;
9990
9991 darwin* | rhapsody*)
9992 # PIC is the default on this platform
9993 # Common symbols not allowed in MH_DYLIB files
9994 lt_prog_compiler_pic='-fno-common'
9995 ;;
9996
9997 haiku*)
9998 # PIC is the default for Haiku.
9999 # The "-static" flag exists, but is broken.
10000 lt_prog_compiler_static=
10001 ;;
10002
10003 hpux*)
10004 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10005 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
10006 # sets the default TLS model and affects inlining.
10007 case $host_cpu in
10008 hppa*64*)
10009 # +Z the default
10010 ;;
10011 *)
10012 lt_prog_compiler_pic='-fPIC'
10013 ;;
10014 esac
10015 ;;
10016
10017 interix[3-9]*)
10018 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10019 # Instead, we relocate shared libraries at runtime.
10020 ;;
10021
10022 msdosdjgpp*)
10023 # Just because we use GCC doesn't mean we suddenly get shared libraries
10024 # on systems that don't support them.
10025 lt_prog_compiler_can_build_shared=no
10026 enable_shared=no
10027 ;;
10028
10029 *nto* | *qnx*)
10030 # QNX uses GNU C++, but need to define -shared option too, otherwise
10031 # it will coredump.
10032 lt_prog_compiler_pic='-fPIC -shared'
10033 ;;
10034
10035 sysv4*MP*)
10036 if test -d /usr/nec; then
10037 lt_prog_compiler_pic=-Kconform_pic
10038 fi
10039 ;;
10040
10041 *)
10042 lt_prog_compiler_pic='-fPIC'
10043 ;;
10044 esac
10045
10046 case $cc_basename in
10047 nvcc*) # Cuda Compiler Driver 2.2
10048 lt_prog_compiler_wl='-Xlinker '
10049 lt_prog_compiler_pic='-Xcompiler -fPIC'
10050 ;;
10051 esac
10052 else
10053 # PORTME Check for flag to pass linker flags through the system compiler.
10054 case $host_os in
10055 aix*)
10056 lt_prog_compiler_wl='-Wl,'
10057 if test "$host_cpu" = ia64; then
10058 # AIX 5 now supports IA64 processor
10059 lt_prog_compiler_static='-Bstatic'
10060 else
10061 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10062 fi
10063 ;;
10064
10065 mingw* | cygwin* | pw32* | os2* | cegcc*)
10066 # This hack is so that the source file can tell whether it is being
10067 # built for inclusion in a dll (and should export symbols for example).
10068 lt_prog_compiler_pic='-DDLL_EXPORT'
10069 ;;
10070
10071 hpux9* | hpux10* | hpux11*)
10072 lt_prog_compiler_wl='-Wl,'
10073 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10074 # not for PA HP-UX.
10075 case $host_cpu in
10076 hppa*64*|ia64*)
10077 # +Z the default
10078 ;;
10079 *)
10080 lt_prog_compiler_pic='+Z'
10081 ;;
10082 esac
10083 # Is there a better lt_prog_compiler_static that works with the bundled CC?
10084 lt_prog_compiler_static='${wl}-a ${wl}archive'
10085 ;;
10086
10087 irix5* | irix6* | nonstopux*)
10088 lt_prog_compiler_wl='-Wl,'
10089 # PIC (with -KPIC) is the default.
10090 lt_prog_compiler_static='-non_shared'
10091 ;;
10092
10093 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10094 case $cc_basename in
10095 # old Intel for x86_64 which still supported -KPIC.
10096 ecc*)
10097 lt_prog_compiler_wl='-Wl,'
10098 lt_prog_compiler_pic='-KPIC'
10099 lt_prog_compiler_static='-static'
10100 ;;
10101 # icc used to be incompatible with GCC.
10102 # ICC 10 doesn't accept -KPIC any more.
10103 icc* | ifort*)
10104 lt_prog_compiler_wl='-Wl,'
10105 lt_prog_compiler_pic='-fPIC'
10106 lt_prog_compiler_static='-static'
10107 ;;
10108 # Lahey Fortran 8.1.
10109 lf95*)
10110 lt_prog_compiler_wl='-Wl,'
10111 lt_prog_compiler_pic='--shared'
10112 lt_prog_compiler_static='--static'
10113 ;;
10114 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10115 # Portland Group compilers (*not* the Pentium gcc compiler,
10116 # which looks to be a dead project)
10117 lt_prog_compiler_wl='-Wl,'
10118 lt_prog_compiler_pic='-fpic'
10119 lt_prog_compiler_static='-Bstatic'
10120 ;;
10121 ccc*)
10122 lt_prog_compiler_wl='-Wl,'
10123 # All Alpha code is PIC.
10124 lt_prog_compiler_static='-non_shared'
10125 ;;
10126 xl* | bgxl* | bgf* | mpixl*)
10127 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10128 lt_prog_compiler_wl='-Wl,'
10129 lt_prog_compiler_pic='-qpic'
10130 lt_prog_compiler_static='-qstaticlink'
10131 ;;
10132 *)
10133 case `$CC -V 2>&1 | sed 5q` in
10134 *Sun\ F* | *Sun*Fortran*)
10135 # Sun Fortran 8.3 passes all unrecognized flags to the linker
10136 lt_prog_compiler_pic='-KPIC'
10137 lt_prog_compiler_static='-Bstatic'
10138 lt_prog_compiler_wl=''
10139 ;;
10140 *Sun\ C*)
10141 # Sun C 5.9
10142 lt_prog_compiler_pic='-KPIC'
10143 lt_prog_compiler_static='-Bstatic'
10144 lt_prog_compiler_wl='-Wl,'
10145 ;;
10146 esac
10147 ;;
10148 esac
10149 ;;
10150
10151 newsos6)
10152 lt_prog_compiler_pic='-KPIC'
10153 lt_prog_compiler_static='-Bstatic'
10154 ;;
10155
10156 *nto* | *qnx*)
10157 # QNX uses GNU C++, but need to define -shared option too, otherwise
10158 # it will coredump.
10159 lt_prog_compiler_pic='-fPIC -shared'
10160 ;;
10161
10162 osf3* | osf4* | osf5*)
10163 lt_prog_compiler_wl='-Wl,'
10164 # All OSF/1 code is PIC.
10165 lt_prog_compiler_static='-non_shared'
10166 ;;
10167
10168 rdos*)
10169 lt_prog_compiler_static='-non_shared'
10170 ;;
f0569246 10171
6bb11ab3
L
10172 solaris*)
10173 lt_prog_compiler_pic='-KPIC'
10174 lt_prog_compiler_static='-Bstatic'
10175 case $cc_basename in
10176 f77* | f90* | f95*)
10177 lt_prog_compiler_wl='-Qoption ld ';;
10178 *)
10179 lt_prog_compiler_wl='-Wl,';;
10180 esac
10181 ;;
f0569246 10182
6bb11ab3
L
10183 sunos4*)
10184 lt_prog_compiler_wl='-Qoption ld '
10185 lt_prog_compiler_pic='-PIC'
10186 lt_prog_compiler_static='-Bstatic'
10187 ;;
f0569246 10188
6bb11ab3
L
10189 sysv4 | sysv4.2uw2* | sysv4.3*)
10190 lt_prog_compiler_wl='-Wl,'
10191 lt_prog_compiler_pic='-KPIC'
10192 lt_prog_compiler_static='-Bstatic'
10193 ;;
10194
10195 sysv4*MP*)
10196 if test -d /usr/nec ;then
10197 lt_prog_compiler_pic='-Kconform_pic'
10198 lt_prog_compiler_static='-Bstatic'
10199 fi
10200 ;;
10201
10202 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10203 lt_prog_compiler_wl='-Wl,'
10204 lt_prog_compiler_pic='-KPIC'
10205 lt_prog_compiler_static='-Bstatic'
10206 ;;
10207
10208 unicos*)
10209 lt_prog_compiler_wl='-Wl,'
10210 lt_prog_compiler_can_build_shared=no
10211 ;;
10212
10213 uts4*)
10214 lt_prog_compiler_pic='-pic'
10215 lt_prog_compiler_static='-Bstatic'
10216 ;;
10217
10218 *)
10219 lt_prog_compiler_can_build_shared=no
10220 ;;
10221 esac
10222 fi
10223
10224case $host_os in
10225 # For platforms which do not support PIC, -DPIC is meaningless:
10226 *djgpp*)
10227 lt_prog_compiler_pic=
10228 ;;
10229 *)
10230 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10231 ;;
81ecdfbb 10232esac
6bb11ab3
L
10233{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
10234$as_echo "$lt_prog_compiler_pic" >&6; }
10235
10236
10237
10238
10239
10240
10241#
10242# Check to make sure the PIC flag actually works.
10243#
10244if test -n "$lt_prog_compiler_pic"; then
10245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10246$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
d0ac1c44 10247if ${lt_cv_prog_compiler_pic_works+:} false; then :
6bb11ab3 10248 $as_echo_n "(cached) " >&6
b7026657 10249else
6bb11ab3
L
10250 lt_cv_prog_compiler_pic_works=no
10251 ac_outfile=conftest.$ac_objext
10252 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10253 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10254 # Insert the option either (1) after the last *FLAGS variable, or
10255 # (2) before a word containing "conftest.", or (3) at the end.
10256 # Note that $ac_compile itself does not contain backslashes and begins
10257 # with a dollar sign (not a hyphen), so the echo should work correctly.
10258 # The option is referenced via a variable to avoid confusing sed.
10259 lt_compile=`echo "$ac_compile" | $SED \
10260 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10261 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10262 -e 's:$: $lt_compiler_flag:'`
10263 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10264 (eval "$lt_compile" 2>conftest.err)
10265 ac_status=$?
10266 cat conftest.err >&5
10267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10268 if (exit $ac_status) && test -s "$ac_outfile"; then
10269 # The compiler can only warn and ignore the option if not recognized
10270 # So say no if there are warnings other than the usual output.
10271 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10272 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10273 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10274 lt_cv_prog_compiler_pic_works=yes
10275 fi
10276 fi
10277 $RM conftest*
b7026657 10278
b7026657 10279fi
6bb11ab3
L
10280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10281$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10282
10283if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10284 case $lt_prog_compiler_pic in
10285 "" | " "*) ;;
10286 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10287 esac
10288else
10289 lt_prog_compiler_pic=
10290 lt_prog_compiler_can_build_shared=no
f0569246 10291fi
6bb11ab3
L
10292
10293fi
10294
10295
10296
10297
10298
10299
10300#
10301# Check to make sure the static flag actually works.
10302#
10303wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10305$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
d0ac1c44 10306if ${lt_cv_prog_compiler_static_works+:} false; then :
81ecdfbb 10307 $as_echo_n "(cached) " >&6
f0569246 10308else
6bb11ab3
L
10309 lt_cv_prog_compiler_static_works=no
10310 save_LDFLAGS="$LDFLAGS"
10311 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10312 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10313 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10314 # The linker can only warn and ignore the option if not recognized
10315 # So say no if there are warnings
10316 if test -s conftest.err; then
10317 # Append any errors to the config.log.
10318 cat conftest.err 1>&5
10319 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10320 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10321 if diff conftest.exp conftest.er2 >/dev/null; then
10322 lt_cv_prog_compiler_static_works=yes
10323 fi
10324 else
10325 lt_cv_prog_compiler_static_works=yes
10326 fi
10327 fi
10328 $RM -r conftest*
10329 LDFLAGS="$save_LDFLAGS"
f0569246 10330
6bb11ab3
L
10331fi
10332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10333$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
f0569246 10334
6bb11ab3
L
10335if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10336 :
b7026657 10337else
6bb11ab3 10338 lt_prog_compiler_static=
b7026657 10339fi
f0569246 10340
6bb11ab3
L
10341
10342
10343
10344
10345
10346
10347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10348$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
d0ac1c44 10349if ${lt_cv_prog_compiler_c_o+:} false; then :
6bb11ab3 10350 $as_echo_n "(cached) " >&6
81ecdfbb 10351else
6bb11ab3
L
10352 lt_cv_prog_compiler_c_o=no
10353 $RM -r conftest 2>/dev/null
10354 mkdir conftest
10355 cd conftest
10356 mkdir out
10357 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10358
10359 lt_compiler_flag="-o out/conftest2.$ac_objext"
10360 # Insert the option either (1) after the last *FLAGS variable, or
10361 # (2) before a word containing "conftest.", or (3) at the end.
10362 # Note that $ac_compile itself does not contain backslashes and begins
10363 # with a dollar sign (not a hyphen), so the echo should work correctly.
10364 lt_compile=`echo "$ac_compile" | $SED \
10365 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10366 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10367 -e 's:$: $lt_compiler_flag:'`
10368 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10369 (eval "$lt_compile" 2>out/conftest.err)
10370 ac_status=$?
10371 cat out/conftest.err >&5
10372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10373 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10374 then
10375 # The compiler can only warn and ignore the option if not recognized
10376 # So say no if there are warnings
10377 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10378 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10379 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10380 lt_cv_prog_compiler_c_o=yes
10381 fi
10382 fi
10383 chmod u+w . 2>&5
10384 $RM conftest*
10385 # SGI C++ compiler will create directory out/ii_files/ for
10386 # template instantiation
10387 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10388 $RM out/* && rmdir out
10389 cd ..
10390 $RM -r conftest
10391 $RM conftest*
10392
81ecdfbb 10393fi
6bb11ab3
L
10394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10395$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10396
10397
10398
10399
10400
10401
10402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10403$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
d0ac1c44 10404if ${lt_cv_prog_compiler_c_o+:} false; then :
81ecdfbb
RW
10405 $as_echo_n "(cached) " >&6
10406else
6bb11ab3
L
10407 lt_cv_prog_compiler_c_o=no
10408 $RM -r conftest 2>/dev/null
10409 mkdir conftest
10410 cd conftest
10411 mkdir out
10412 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10413
10414 lt_compiler_flag="-o out/conftest2.$ac_objext"
10415 # Insert the option either (1) after the last *FLAGS variable, or
10416 # (2) before a word containing "conftest.", or (3) at the end.
10417 # Note that $ac_compile itself does not contain backslashes and begins
10418 # with a dollar sign (not a hyphen), so the echo should work correctly.
10419 lt_compile=`echo "$ac_compile" | $SED \
10420 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10421 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10422 -e 's:$: $lt_compiler_flag:'`
10423 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10424 (eval "$lt_compile" 2>out/conftest.err)
10425 ac_status=$?
10426 cat out/conftest.err >&5
10427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10428 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10429 then
10430 # The compiler can only warn and ignore the option if not recognized
10431 # So say no if there are warnings
10432 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10433 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10434 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10435 lt_cv_prog_compiler_c_o=yes
10436 fi
10437 fi
10438 chmod u+w . 2>&5
10439 $RM conftest*
10440 # SGI C++ compiler will create directory out/ii_files/ for
10441 # template instantiation
10442 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10443 $RM out/* && rmdir out
10444 cd ..
10445 $RM -r conftest
10446 $RM conftest*
10447
10448fi
10449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10450$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10451
10452
10453
10454
10455hard_links="nottested"
10456if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10457 # do not overwrite the value of need_locks provided by the user
10458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10459$as_echo_n "checking if we can lock with hard links... " >&6; }
10460 hard_links=yes
10461 $RM conftest*
10462 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10463 touch conftest.a
10464 ln conftest.a conftest.b 2>&5 || hard_links=no
10465 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10467$as_echo "$hard_links" >&6; }
10468 if test "$hard_links" = no; then
10469 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10470$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10471 need_locks=warn
10472 fi
10473else
10474 need_locks=no
10475fi
10476
10477
10478
10479
10480
10481
10482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10483$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10484
10485 runpath_var=
10486 allow_undefined_flag=
10487 always_export_symbols=no
10488 archive_cmds=
10489 archive_expsym_cmds=
10490 compiler_needs_object=no
10491 enable_shared_with_static_runtimes=no
10492 export_dynamic_flag_spec=
10493 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10494 hardcode_automatic=no
10495 hardcode_direct=no
10496 hardcode_direct_absolute=no
10497 hardcode_libdir_flag_spec=
10498 hardcode_libdir_flag_spec_ld=
10499 hardcode_libdir_separator=
10500 hardcode_minus_L=no
10501 hardcode_shlibpath_var=unsupported
10502 inherit_rpath=no
10503 link_all_deplibs=unknown
10504 module_cmds=
10505 module_expsym_cmds=
10506 old_archive_from_new_cmds=
10507 old_archive_from_expsyms_cmds=
10508 thread_safe_flag_spec=
10509 whole_archive_flag_spec=
10510 # include_expsyms should be a list of space-separated symbols to be *always*
10511 # included in the symbol list
10512 include_expsyms=
10513 # exclude_expsyms can be an extended regexp of symbols to exclude
10514 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10515 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10516 # as well as any symbol that contains `d'.
10517 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10518 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10519 # platforms (ab)use it in PIC code, but their linkers get confused if
10520 # the symbol is explicitly referenced. Since portable code cannot
10521 # rely on this symbol name, it's probably fine to never include it in
10522 # preloaded symbol tables.
10523 # Exclude shared library initialization/finalization symbols.
10524 extract_expsyms_cmds=
10525
10526 case $host_os in
10527 cygwin* | mingw* | pw32* | cegcc*)
10528 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10529 # When not using gcc, we currently assume that we are using
10530 # Microsoft Visual C++.
10531 if test "$GCC" != yes; then
10532 with_gnu_ld=no
10533 fi
10534 ;;
10535 interix*)
10536 # we just hope/assume this is gcc and not c89 (= MSVC++)
10537 with_gnu_ld=yes
10538 ;;
10539 openbsd*)
10540 with_gnu_ld=no
10541 ;;
10542 esac
f0569246 10543
6bb11ab3
L
10544 ld_shlibs=yes
10545
10546 # On some targets, GNU ld is compatible enough with the native linker
10547 # that we're better off using the native interface for both.
10548 lt_use_gnu_ld_interface=no
10549 if test "$with_gnu_ld" = yes; then
10550 case $host_os in
10551 aix*)
10552 # The AIX port of GNU ld has always aspired to compatibility
10553 # with the native linker. However, as the warning in the GNU ld
10554 # block says, versions before 2.19.5* couldn't really create working
10555 # shared libraries, regardless of the interface used.
10556 case `$LD -v 2>&1` in
10557 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10558 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10559 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10560 *)
10561 lt_use_gnu_ld_interface=yes
10562 ;;
10563 esac
10564 ;;
10565 *)
10566 lt_use_gnu_ld_interface=yes
10567 ;;
10568 esac
10569 fi
f0569246 10570
6bb11ab3
L
10571 if test "$lt_use_gnu_ld_interface" = yes; then
10572 # If archive_cmds runs LD, not CC, wlarc should be empty
10573 wlarc='${wl}'
10574
10575 # Set some defaults for GNU ld with shared library support. These
10576 # are reset later if shared libraries are not supported. Putting them
10577 # here allows them to be overridden if necessary.
10578 runpath_var=LD_RUN_PATH
10579 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10580 export_dynamic_flag_spec='${wl}--export-dynamic'
10581 # ancient GNU ld didn't support --whole-archive et. al.
10582 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10583 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10584 else
10585 whole_archive_flag_spec=
10586 fi
10587 supports_anon_versioning=no
10588 case `$LD -v 2>&1` in
10589 *GNU\ gold*) supports_anon_versioning=yes ;;
10590 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10591 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10592 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10593 *\ 2.11.*) ;; # other 2.11 versions
10594 *) supports_anon_versioning=yes ;;
10595 esac
10596
10597 # See if GNU ld supports shared libraries.
10598 case $host_os in
10599 aix[3-9]*)
10600 # On AIX/PPC, the GNU linker is very broken
10601 if test "$host_cpu" != ia64; then
10602 ld_shlibs=no
10603 cat <<_LT_EOF 1>&2
10604
10605*** Warning: the GNU linker, at least up to release 2.19, is reported
10606*** to be unable to reliably create shared libraries on AIX.
10607*** Therefore, libtool is disabling shared libraries support. If you
10608*** really care for shared libraries, you may want to install binutils
10609*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10610*** You will then need to restart the configuration process.
10611
10612_LT_EOF
10613 fi
10614 ;;
10615
10616 amigaos*)
10617 case $host_cpu in
10618 powerpc)
10619 # see comment about AmigaOS4 .so support
10620 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10621 archive_expsym_cmds=''
10622 ;;
10623 m68k)
10624 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)'
10625 hardcode_libdir_flag_spec='-L$libdir'
10626 hardcode_minus_L=yes
10627 ;;
10628 esac
10629 ;;
10630
10631 beos*)
10632 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10633 allow_undefined_flag=unsupported
10634 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10635 # support --undefined. This deserves some investigation. FIXME
10636 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10637 else
10638 ld_shlibs=no
10639 fi
10640 ;;
10641
10642 cygwin* | mingw* | pw32* | cegcc*)
10643 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10644 # as there is no search path for DLLs.
10645 hardcode_libdir_flag_spec='-L$libdir'
10646 export_dynamic_flag_spec='${wl}--export-all-symbols'
10647 allow_undefined_flag=unsupported
10648 always_export_symbols=no
10649 enable_shared_with_static_runtimes=yes
10650 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10651
10652 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10653 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10654 # If the export-symbols file already is a .def file (1st line
10655 # is EXPORTS), use it as is; otherwise, prepend...
10656 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10657 cp $export_symbols $output_objdir/$soname.def;
10658 else
10659 echo EXPORTS > $output_objdir/$soname.def;
10660 cat $export_symbols >> $output_objdir/$soname.def;
10661 fi~
10662 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10663 else
10664 ld_shlibs=no
10665 fi
10666 ;;
10667
10668 haiku*)
10669 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10670 link_all_deplibs=yes
10671 ;;
10672
10673 interix[3-9]*)
10674 hardcode_direct=no
10675 hardcode_shlibpath_var=no
10676 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10677 export_dynamic_flag_spec='${wl}-E'
10678 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10679 # Instead, shared libraries are loaded at an image base (0x10000000 by
10680 # default) and relocated if they conflict, which is a slow very memory
10681 # consuming and fragmenting process. To avoid this, we pick a random,
10682 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10683 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10684 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10685 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'
10686 ;;
10687
10688 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10689 tmp_diet=no
10690 if test "$host_os" = linux-dietlibc; then
10691 case $cc_basename in
10692 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10693 esac
10694 fi
10695 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10696 && test "$tmp_diet" = no
10697 then
5cddc23a 10698 tmp_addflag=' $pic_flag'
6bb11ab3
L
10699 tmp_sharedflag='-shared'
10700 case $cc_basename,$host_cpu in
10701 pgcc*) # Portland Group C compiler
10702 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'
10703 tmp_addflag=' $pic_flag'
10704 ;;
10705 pgf77* | pgf90* | pgf95* | pgfortran*)
10706 # Portland Group f77 and f90 compilers
10707 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'
10708 tmp_addflag=' $pic_flag -Mnomain' ;;
10709 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10710 tmp_addflag=' -i_dynamic' ;;
10711 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10712 tmp_addflag=' -i_dynamic -nofor_main' ;;
10713 ifc* | ifort*) # Intel Fortran compiler
10714 tmp_addflag=' -nofor_main' ;;
10715 lf95*) # Lahey Fortran 8.1
10716 whole_archive_flag_spec=
10717 tmp_sharedflag='--shared' ;;
10718 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10719 tmp_sharedflag='-qmkshrobj'
10720 tmp_addflag= ;;
10721 nvcc*) # Cuda Compiler Driver 2.2
10722 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'
10723 compiler_needs_object=yes
10724 ;;
10725 esac
10726 case `$CC -V 2>&1 | sed 5q` in
10727 *Sun\ C*) # Sun C 5.9
10728 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'
10729 compiler_needs_object=yes
10730 tmp_sharedflag='-G' ;;
10731 *Sun\ F*) # Sun Fortran 8.3
10732 tmp_sharedflag='-G' ;;
10733 esac
10734 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10735
10736 if test "x$supports_anon_versioning" = xyes; then
10737 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10738 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10739 echo "local: *; };" >> $output_objdir/$libname.ver~
10740 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10741 fi
10742
10743 case $cc_basename in
10744 xlf* | bgf* | bgxlf* | mpixlf*)
10745 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10746 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10747 hardcode_libdir_flag_spec=
10748 hardcode_libdir_flag_spec_ld='-rpath $libdir'
10749 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10750 if test "x$supports_anon_versioning" = xyes; then
10751 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10752 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10753 echo "local: *; };" >> $output_objdir/$libname.ver~
10754 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10755 fi
10756 ;;
10757 esac
10758 else
10759 ld_shlibs=no
10760 fi
10761 ;;
10762
10763 netbsd*)
10764 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10765 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10766 wlarc=
10767 else
10768 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10769 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10770 fi
10771 ;;
10772
10773 solaris*)
10774 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10775 ld_shlibs=no
10776 cat <<_LT_EOF 1>&2
10777
10778*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10779*** create shared libraries on Solaris systems. Therefore, libtool
10780*** is disabling shared libraries support. We urge you to upgrade GNU
10781*** binutils to release 2.9.1 or newer. Another option is to modify
10782*** your PATH or compiler configuration so that the native linker is
10783*** used, and then restart.
10784
10785_LT_EOF
10786 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10787 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10788 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10789 else
10790 ld_shlibs=no
10791 fi
10792 ;;
10793
10794 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10795 case `$LD -v 2>&1` in
10796 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10797 ld_shlibs=no
10798 cat <<_LT_EOF 1>&2
10799
10800*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10801*** reliably create shared libraries on SCO systems. Therefore, libtool
10802*** is disabling shared libraries support. We urge you to upgrade GNU
10803*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10804*** your PATH or compiler configuration so that the native linker is
10805*** used, and then restart.
10806
10807_LT_EOF
10808 ;;
10809 *)
10810 # For security reasons, it is highly recommended that you always
10811 # use absolute paths for naming shared libraries, and exclude the
10812 # DT_RUNPATH tag from executables and libraries. But doing so
10813 # requires that you compile everything twice, which is a pain.
10814 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10815 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10816 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10817 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10818 else
10819 ld_shlibs=no
10820 fi
10821 ;;
10822 esac
10823 ;;
10824
10825 sunos4*)
10826 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10827 wlarc=
10828 hardcode_direct=yes
10829 hardcode_shlibpath_var=no
10830 ;;
10831
10832 *)
10833 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10834 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10835 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10836 else
10837 ld_shlibs=no
10838 fi
10839 ;;
10840 esac
10841
10842 if test "$ld_shlibs" = no; then
10843 runpath_var=
10844 hardcode_libdir_flag_spec=
10845 export_dynamic_flag_spec=
10846 whole_archive_flag_spec=
10847 fi
10848 else
10849 # PORTME fill in a description of your system's linker (not GNU ld)
10850 case $host_os in
10851 aix3*)
10852 allow_undefined_flag=unsupported
10853 always_export_symbols=yes
10854 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'
10855 # Note: this linker hardcodes the directories in LIBPATH if there
10856 # are no directories specified by -L.
10857 hardcode_minus_L=yes
10858 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10859 # Neither direct hardcoding nor static linking is supported with a
10860 # broken collect2.
10861 hardcode_direct=unsupported
10862 fi
10863 ;;
10864
10865 aix[4-9]*)
10866 if test "$host_cpu" = ia64; then
10867 # On IA64, the linker does run time linking by default, so we don't
10868 # have to do anything special.
10869 aix_use_runtimelinking=no
10870 exp_sym_flag='-Bexport'
10871 no_entry_flag=""
10872 else
10873 # If we're using GNU nm, then we don't want the "-C" option.
10874 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10875 # Also, AIX nm treats weak defined symbols like other global
10876 # defined symbols, whereas GNU nm marks them as "W".
10877 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10878 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'
10879 else
5c887dd5 10880 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
10881 fi
10882 aix_use_runtimelinking=no
10883
10884 # Test if we are trying to use run time linking or normal
10885 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10886 # need to do runtime linking.
10887 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10888 for ld_flag in $LDFLAGS; do
10889 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10890 aix_use_runtimelinking=yes
10891 break
10892 fi
10893 done
10894 ;;
10895 esac
10896
10897 exp_sym_flag='-bexport'
10898 no_entry_flag='-bnoentry'
10899 fi
10900
10901 # When large executables or shared objects are built, AIX ld can
10902 # have problems creating the table of contents. If linking a library
10903 # or program results in "error TOC overflow" add -mminimal-toc to
10904 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10905 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10906
10907 archive_cmds=''
10908 hardcode_direct=yes
10909 hardcode_direct_absolute=yes
10910 hardcode_libdir_separator=':'
10911 link_all_deplibs=yes
10912 file_list_spec='${wl}-f,'
10913
10914 if test "$GCC" = yes; then
10915 case $host_os in aix4.[012]|aix4.[012].*)
10916 # We only want to do this on AIX 4.2 and lower, the check
10917 # below for broken collect2 doesn't work under 4.3+
10918 collect2name=`${CC} -print-prog-name=collect2`
10919 if test -f "$collect2name" &&
10920 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10921 then
10922 # We have reworked collect2
10923 :
10924 else
10925 # We have old collect2
10926 hardcode_direct=unsupported
10927 # It fails to find uninstalled libraries when the uninstalled
10928 # path is not listed in the libpath. Setting hardcode_minus_L
10929 # to unsupported forces relinking
10930 hardcode_minus_L=yes
10931 hardcode_libdir_flag_spec='-L$libdir'
10932 hardcode_libdir_separator=
10933 fi
10934 ;;
10935 esac
10936 shared_flag='-shared'
10937 if test "$aix_use_runtimelinking" = yes; then
10938 shared_flag="$shared_flag "'${wl}-G'
10939 fi
10940 else
10941 # not using gcc
10942 if test "$host_cpu" = ia64; then
10943 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10944 # chokes on -Wl,-G. The following line is correct:
10945 shared_flag='-G'
10946 else
10947 if test "$aix_use_runtimelinking" = yes; then
10948 shared_flag='${wl}-G'
10949 else
10950 shared_flag='${wl}-bM:SRE'
10951 fi
10952 fi
10953 fi
10954
10955 export_dynamic_flag_spec='${wl}-bexpall'
10956 # It seems that -bexpall does not export symbols beginning with
10957 # underscore (_), so it is better to generate a list of symbols to export.
10958 always_export_symbols=yes
10959 if test "$aix_use_runtimelinking" = yes; then
10960 # Warning - without using the other runtime loading flags (-brtl),
10961 # -berok will link without error, but may produce a broken library.
10962 allow_undefined_flag='-berok'
10963 # Determine the default libpath from the value encoded in an
10964 # empty executable.
10965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
81ecdfbb
RW
10966/* end confdefs.h. */
10967
10968int
10969main ()
10970{
10971
10972 ;
10973 return 0;
10974}
10975_ACEOF
6bb11ab3 10976if ac_fn_c_try_link "$LINENO"; then :
b7026657 10977
6bb11ab3
L
10978lt_aix_libpath_sed='
10979 /Import File Strings/,/^$/ {
10980 /^0/ {
10981 s/^0 *\(.*\)$/\1/
10982 p
10983 }
10984 }'
10985aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10986# Check for a 64-bit object if we didn't find anything.
10987if test -z "$aix_libpath"; then
10988 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10989fi
10990fi
10991rm -f core conftest.err conftest.$ac_objext \
10992 conftest$ac_exeext conftest.$ac_ext
10993if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10994
10995 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10996 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"
10997 else
10998 if test "$host_cpu" = ia64; then
10999 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
11000 allow_undefined_flag="-z nodefs"
11001 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"
11002 else
11003 # Determine the default libpath from the value encoded in an
11004 # empty executable.
81ecdfbb
RW
11005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11006/* end confdefs.h. */
11007
11008int
11009main ()
11010{
11011
11012 ;
11013 return 0;
11014}
11015_ACEOF
6bb11ab3
L
11016if ac_fn_c_try_link "$LINENO"; then :
11017
11018lt_aix_libpath_sed='
11019 /Import File Strings/,/^$/ {
11020 /^0/ {
11021 s/^0 *\(.*\)$/\1/
11022 p
11023 }
11024 }'
11025aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11026# Check for a 64-bit object if we didn't find anything.
11027if test -z "$aix_libpath"; then
11028 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
81ecdfbb 11029fi
81ecdfbb 11030fi
6bb11ab3
L
11031rm -f core conftest.err conftest.$ac_objext \
11032 conftest$ac_exeext conftest.$ac_ext
11033if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11034
11035 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11036 # Warning - without using the other run time loading flags,
11037 # -berok will link without error, but may produce a broken library.
11038 no_undefined_flag=' ${wl}-bernotok'
11039 allow_undefined_flag=' ${wl}-berok'
11040 if test "$with_gnu_ld" = yes; then
11041 # We only use this code for GNU lds that support --whole-archive.
11042 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11043 else
11044 # Exported symbols can be pulled into shared objects from archives
11045 whole_archive_flag_spec='$convenience'
11046 fi
11047 archive_cmds_need_lc=yes
11048 # This is similar to how AIX traditionally builds its shared libraries.
11049 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'
11050 fi
11051 fi
11052 ;;
11053
11054 amigaos*)
11055 case $host_cpu in
11056 powerpc)
11057 # see comment about AmigaOS4 .so support
11058 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11059 archive_expsym_cmds=''
11060 ;;
11061 m68k)
11062 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)'
11063 hardcode_libdir_flag_spec='-L$libdir'
11064 hardcode_minus_L=yes
11065 ;;
11066 esac
11067 ;;
11068
11069 bsdi[45]*)
11070 export_dynamic_flag_spec=-rdynamic
11071 ;;
11072
11073 cygwin* | mingw* | pw32* | cegcc*)
11074 # When not using gcc, we currently assume that we are using
11075 # Microsoft Visual C++.
11076 # hardcode_libdir_flag_spec is actually meaningless, as there is
11077 # no search path for DLLs.
11078 hardcode_libdir_flag_spec=' '
11079 allow_undefined_flag=unsupported
11080 # Tell ltmain to make .lib files, not .a files.
11081 libext=lib
11082 # Tell ltmain to make .dll files, not .so files.
11083 shrext_cmds=".dll"
11084 # FIXME: Setting linknames here is a bad hack.
11085 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11086 # The linker will automatically build a .lib file if we build a DLL.
11087 old_archive_from_new_cmds='true'
11088 # FIXME: Should let the user specify the lib program.
11089 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11090 fix_srcfile_path='`cygpath -w "$srcfile"`'
11091 enable_shared_with_static_runtimes=yes
11092 ;;
11093
11094 darwin* | rhapsody*)
11095
11096
11097 archive_cmds_need_lc=no
11098 hardcode_direct=no
11099 hardcode_automatic=yes
11100 hardcode_shlibpath_var=unsupported
11101 if test "$lt_cv_ld_force_load" = "yes"; then
11102 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\"`'
f0569246 11103 else
6bb11ab3 11104 whole_archive_flag_spec=''
f0569246 11105 fi
6bb11ab3
L
11106 link_all_deplibs=yes
11107 allow_undefined_flag="$_lt_dar_allow_undefined"
11108 case $cc_basename in
11109 ifort*) _lt_dar_can_shared=yes ;;
11110 *) _lt_dar_can_shared=$GCC ;;
11111 esac
11112 if test "$_lt_dar_can_shared" = "yes"; then
11113 output_verbose_link_cmd=func_echo_all
11114 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11115 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11116 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}"
11117 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}"
11118
f0569246 11119 else
6bb11ab3 11120 ld_shlibs=no
f0569246 11121 fi
6bb11ab3
L
11122
11123 ;;
11124
11125 dgux*)
11126 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11127 hardcode_libdir_flag_spec='-L$libdir'
11128 hardcode_shlibpath_var=no
11129 ;;
11130
11131 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11132 # support. Future versions do this automatically, but an explicit c++rt0.o
11133 # does not break anything, and helps significantly (at the cost of a little
11134 # extra space).
11135 freebsd2.2*)
11136 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11137 hardcode_libdir_flag_spec='-R$libdir'
11138 hardcode_direct=yes
11139 hardcode_shlibpath_var=no
11140 ;;
11141
11142 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11143 freebsd2.*)
11144 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11145 hardcode_direct=yes
11146 hardcode_minus_L=yes
11147 hardcode_shlibpath_var=no
11148 ;;
11149
11150 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11151 freebsd* | dragonfly*)
11152 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
11153 hardcode_libdir_flag_spec='-R$libdir'
11154 hardcode_direct=yes
11155 hardcode_shlibpath_var=no
11156 ;;
11157
11158 hpux9*)
11159 if test "$GCC" = yes; then
11160 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'
11161 else
11162 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'
11163 fi
11164 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11165 hardcode_libdir_separator=:
11166 hardcode_direct=yes
11167
11168 # hardcode_minus_L: Not really in the search PATH,
11169 # but as the default location of the library.
11170 hardcode_minus_L=yes
11171 export_dynamic_flag_spec='${wl}-E'
11172 ;;
11173
11174 hpux10*)
11175 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11176 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11177 else
11178 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11179 fi
11180 if test "$with_gnu_ld" = no; then
11181 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11182 hardcode_libdir_flag_spec_ld='+b $libdir'
11183 hardcode_libdir_separator=:
11184 hardcode_direct=yes
11185 hardcode_direct_absolute=yes
11186 export_dynamic_flag_spec='${wl}-E'
11187 # hardcode_minus_L: Not really in the search PATH,
11188 # but as the default location of the library.
11189 hardcode_minus_L=yes
11190 fi
11191 ;;
11192
11193 hpux11*)
11194 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11195 case $host_cpu in
11196 hppa*64*)
11197 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11198 ;;
11199 ia64*)
11200 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11201 ;;
11202 *)
11203 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11204 ;;
11205 esac
11206 else
11207 case $host_cpu in
11208 hppa*64*)
11209 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11210 ;;
11211 ia64*)
11212 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11213 ;;
11214 *)
11215
11216 # Older versions of the 11.00 compiler do not understand -b yet
11217 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11219$as_echo_n "checking if $CC understands -b... " >&6; }
d0ac1c44 11220if ${lt_cv_prog_compiler__b+:} false; then :
81ecdfbb 11221 $as_echo_n "(cached) " >&6
f0569246 11222else
6bb11ab3
L
11223 lt_cv_prog_compiler__b=no
11224 save_LDFLAGS="$LDFLAGS"
11225 LDFLAGS="$LDFLAGS -b"
11226 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11227 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11228 # The linker can only warn and ignore the option if not recognized
11229 # So say no if there are warnings
11230 if test -s conftest.err; then
11231 # Append any errors to the config.log.
11232 cat conftest.err 1>&5
11233 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11234 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11235 if diff conftest.exp conftest.er2 >/dev/null; then
11236 lt_cv_prog_compiler__b=yes
11237 fi
11238 else
11239 lt_cv_prog_compiler__b=yes
11240 fi
11241 fi
11242 $RM -r conftest*
11243 LDFLAGS="$save_LDFLAGS"
f0569246 11244
6bb11ab3
L
11245fi
11246{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11247$as_echo "$lt_cv_prog_compiler__b" >&6; }
f0569246 11248
6bb11ab3
L
11249if test x"$lt_cv_prog_compiler__b" = xyes; then
11250 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11251else
11252 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11253fi
81ecdfbb 11254
6bb11ab3
L
11255 ;;
11256 esac
11257 fi
11258 if test "$with_gnu_ld" = no; then
11259 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11260 hardcode_libdir_separator=:
11261
11262 case $host_cpu in
11263 hppa*64*|ia64*)
11264 hardcode_direct=no
11265 hardcode_shlibpath_var=no
11266 ;;
11267 *)
11268 hardcode_direct=yes
11269 hardcode_direct_absolute=yes
11270 export_dynamic_flag_spec='${wl}-E'
11271
11272 # hardcode_minus_L: Not really in the search PATH,
11273 # but as the default location of the library.
11274 hardcode_minus_L=yes
11275 ;;
11276 esac
11277 fi
11278 ;;
11279
11280 irix5* | irix6* | nonstopux*)
11281 if test "$GCC" = yes; then
11282 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'
11283 # Try to use the -exported_symbol ld option, if it does not
11284 # work, assume that -exports_file does not work either and
11285 # implicitly export all symbols.
11286 save_LDFLAGS="$LDFLAGS"
11287 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11289/* end confdefs.h. */
11290int foo(void) {}
b7026657 11291_ACEOF
6bb11ab3
L
11292if ac_fn_c_try_link "$LINENO"; then :
11293 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'
c906108c 11294
f0569246 11295fi
6bb11ab3
L
11296rm -f core conftest.err conftest.$ac_objext \
11297 conftest$ac_exeext conftest.$ac_ext
11298 LDFLAGS="$save_LDFLAGS"
11299 else
11300 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'
11301 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'
11302 fi
11303 archive_cmds_need_lc='no'
11304 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11305 hardcode_libdir_separator=:
11306 inherit_rpath=yes
11307 link_all_deplibs=yes
11308 ;;
11309
11310 netbsd*)
11311 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11312 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11313 else
11314 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11315 fi
11316 hardcode_libdir_flag_spec='-R$libdir'
11317 hardcode_direct=yes
11318 hardcode_shlibpath_var=no
11319 ;;
11320
11321 newsos6)
11322 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11323 hardcode_direct=yes
11324 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11325 hardcode_libdir_separator=:
11326 hardcode_shlibpath_var=no
11327 ;;
11328
11329 *nto* | *qnx*)
11330 ;;
11331
11332 openbsd*)
11333 if test -f /usr/libexec/ld.so; then
11334 hardcode_direct=yes
11335 hardcode_shlibpath_var=no
11336 hardcode_direct_absolute=yes
11337 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11338 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11339 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11340 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11341 export_dynamic_flag_spec='${wl}-E'
11342 else
11343 case $host_os in
11344 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11345 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11346 hardcode_libdir_flag_spec='-R$libdir'
11347 ;;
11348 *)
11349 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11350 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11351 ;;
11352 esac
11353 fi
11354 else
11355 ld_shlibs=no
11356 fi
11357 ;;
11358
11359 os2*)
11360 hardcode_libdir_flag_spec='-L$libdir'
11361 hardcode_minus_L=yes
11362 allow_undefined_flag=unsupported
11363 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'
11364 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11365 ;;
11366
11367 osf3*)
11368 if test "$GCC" = yes; then
11369 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11370 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'
11371 else
11372 allow_undefined_flag=' -expect_unresolved \*'
11373 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'
11374 fi
11375 archive_cmds_need_lc='no'
11376 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11377 hardcode_libdir_separator=:
11378 ;;
11379
11380 osf4* | osf5*) # as osf3* with the addition of -msym flag
11381 if test "$GCC" = yes; then
11382 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11383 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'
11384 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11385 else
11386 allow_undefined_flag=' -expect_unresolved \*'
11387 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'
11388 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~
11389 $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'
11390
11391 # Both c and cxx compiler support -rpath directly
11392 hardcode_libdir_flag_spec='-rpath $libdir'
11393 fi
11394 archive_cmds_need_lc='no'
11395 hardcode_libdir_separator=:
11396 ;;
11397
11398 solaris*)
11399 no_undefined_flag=' -z defs'
11400 if test "$GCC" = yes; then
11401 wlarc='${wl}'
11402 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11403 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11404 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11405 else
11406 case `$CC -V 2>&1` in
11407 *"Compilers 5.0"*)
11408 wlarc=''
11409 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11410 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11411 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11412 ;;
11413 *)
11414 wlarc='${wl}'
11415 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11416 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11417 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11418 ;;
11419 esac
11420 fi
11421 hardcode_libdir_flag_spec='-R$libdir'
11422 hardcode_shlibpath_var=no
11423 case $host_os in
11424 solaris2.[0-5] | solaris2.[0-5].*) ;;
11425 *)
11426 # The compiler driver will combine and reorder linker options,
11427 # but understands `-z linker_flag'. GCC discards it without `$wl',
11428 # but is careful enough not to reorder.
11429 # Supported since Solaris 2.6 (maybe 2.5.1?)
11430 if test "$GCC" = yes; then
11431 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11432 else
11433 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11434 fi
11435 ;;
11436 esac
11437 link_all_deplibs=yes
11438 ;;
11439
11440 sunos4*)
11441 if test "x$host_vendor" = xsequent; then
11442 # Use $CC to link under sequent, because it throws in some extra .o
11443 # files that make .init and .fini sections work.
11444 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11445 else
11446 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11447 fi
11448 hardcode_libdir_flag_spec='-L$libdir'
11449 hardcode_direct=yes
11450 hardcode_minus_L=yes
11451 hardcode_shlibpath_var=no
11452 ;;
11453
11454 sysv4)
11455 case $host_vendor in
11456 sni)
11457 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11458 hardcode_direct=yes # is this really true???
11459 ;;
11460 siemens)
11461 ## LD is ld it makes a PLAMLIB
11462 ## CC just makes a GrossModule.
11463 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11464 reload_cmds='$CC -r -o $output$reload_objs'
11465 hardcode_direct=no
11466 ;;
11467 motorola)
11468 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11469 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11470 ;;
11471 esac
11472 runpath_var='LD_RUN_PATH'
11473 hardcode_shlibpath_var=no
11474 ;;
11475
11476 sysv4.3*)
11477 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11478 hardcode_shlibpath_var=no
11479 export_dynamic_flag_spec='-Bexport'
11480 ;;
11481
11482 sysv4*MP*)
11483 if test -d /usr/nec; then
11484 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11485 hardcode_shlibpath_var=no
11486 runpath_var=LD_RUN_PATH
11487 hardcode_runpath_var=yes
11488 ld_shlibs=yes
11489 fi
11490 ;;
11491
11492 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11493 no_undefined_flag='${wl}-z,text'
11494 archive_cmds_need_lc=no
11495 hardcode_shlibpath_var=no
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 sysv5* | sco3.2v5* | sco5v6*)
11508 # Note: We can NOT use -z defs as we might desire, because we do not
11509 # link with -lc, and that would cause any symbols used from libc to
11510 # always be unresolved, which means just about no library would
11511 # ever link correctly. If we're not using GNU ld we use -z text
11512 # though, which does catch some bad symbols but isn't as heavy-handed
11513 # as -z defs.
11514 no_undefined_flag='${wl}-z,text'
11515 allow_undefined_flag='${wl}-z,nodefs'
11516 archive_cmds_need_lc=no
11517 hardcode_shlibpath_var=no
11518 hardcode_libdir_flag_spec='${wl}-R,$libdir'
11519 hardcode_libdir_separator=':'
11520 link_all_deplibs=yes
11521 export_dynamic_flag_spec='${wl}-Bexport'
11522 runpath_var='LD_RUN_PATH'
11523
11524 if test "$GCC" = yes; then
11525 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11526 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11527 else
11528 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11529 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11530 fi
11531 ;;
11532
11533 uts4*)
11534 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11535 hardcode_libdir_flag_spec='-L$libdir'
11536 hardcode_shlibpath_var=no
11537 ;;
11538
11539 *)
11540 ld_shlibs=no
11541 ;;
11542 esac
11543
11544 if test x$host_vendor = xsni; then
11545 case $host in
11546 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11547 export_dynamic_flag_spec='${wl}-Blargedynsym'
11548 ;;
11549 esac
11550 fi
11551 fi
11552
11553{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11554$as_echo "$ld_shlibs" >&6; }
11555test "$ld_shlibs" = no && can_build_shared=no
11556
11557with_gnu_ld=$with_gnu_ld
11558
11559
11560
b7026657 11561
f0569246 11562
f0569246 11563
6ffe910a 11564
6ffe910a
MF
11565
11566
6ffe910a 11567
f0569246 11568
f0569246
AC
11569
11570
6bb11ab3
L
11571
11572
11573#
11574# Do we need to explicitly link libc?
11575#
11576case "x$archive_cmds_need_lc" in
11577x|xyes)
11578 # Assume -lc should be added
11579 archive_cmds_need_lc=yes
11580
11581 if test "$enable_shared" = yes && test "$GCC" = yes; then
11582 case $archive_cmds in
11583 *'~'*)
11584 # FIXME: we may have to deal with multi-command sequences.
11585 ;;
11586 '$CC '*)
11587 # Test whether the compiler implicitly links with -lc since on some
11588 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11589 # to ld, don't add -lc before -lgcc.
11590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11591$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
d0ac1c44 11592if ${lt_cv_archive_cmds_need_lc+:} false; then :
6ffe910a 11593 $as_echo_n "(cached) " >&6
b7026657 11594else
6bb11ab3
L
11595 $RM conftest*
11596 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11597
11598 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11599 (eval $ac_compile) 2>&5
11600 ac_status=$?
11601 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11602 test $ac_status = 0; } 2>conftest.err; then
11603 soname=conftest
11604 lib=conftest
11605 libobjs=conftest.$ac_objext
11606 deplibs=
11607 wl=$lt_prog_compiler_wl
11608 pic_flag=$lt_prog_compiler_pic
11609 compiler_flags=-v
11610 linker_flags=-v
11611 verstring=
11612 output_objdir=.
11613 libname=conftest
11614 lt_save_allow_undefined_flag=$allow_undefined_flag
11615 allow_undefined_flag=
11616 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11617 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11618 ac_status=$?
11619 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11620 test $ac_status = 0; }
11621 then
11622 lt_cv_archive_cmds_need_lc=no
11623 else
11624 lt_cv_archive_cmds_need_lc=yes
11625 fi
11626 allow_undefined_flag=$lt_save_allow_undefined_flag
11627 else
11628 cat conftest.err 1>&5
11629 fi
11630 $RM conftest*
c906108c 11631
6ffe910a 11632fi
6bb11ab3
L
11633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11634$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11635 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11636 ;;
11637 esac
11638 fi
11639 ;;
6ffe910a 11640esac
c906108c 11641
c906108c 11642
6ffe910a 11643
c906108c 11644
81ecdfbb 11645
35695fd6 11646
35695fd6 11647
35695fd6 11648
f0569246 11649
c906108c 11650
f0569246 11651
b7026657 11652
f0569246 11653
c906108c 11654
81ecdfbb 11655
c906108c 11656
f0569246
AC
11657
11658
81ecdfbb 11659
81ecdfbb 11660
81ecdfbb
RW
11661
11662
81ecdfbb 11663
81ecdfbb 11664
f0569246
AC
11665
11666
c906108c 11667
f0569246 11668
c906108c 11669
c906108c 11670
81ecdfbb 11671
b7026657 11672
c906108c 11673
f0569246 11674
81ecdfbb 11675
f0569246 11676
c906108c 11677
c906108c 11678
b7026657 11679
81ecdfbb 11680
b7026657 11681
c906108c 11682
c906108c 11683
b7026657
AC
11684
11685
11686
11687
6ffe910a 11688
2232061b
MF
11689
11690
2232061b 11691
2232061b
MF
11692
11693
2232061b
MF
11694
11695
2232061b 11696
2232061b
MF
11697
11698
6bb11ab3
L
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
11773
11774
11775
11776
11777
11778
11779
11780
11781
11782
11783
11784
11785
11786
11787
11788
11789
11790
11791
11792
11793
11794
11795
11796
11797
11798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11799$as_echo_n "checking dynamic linker characteristics... " >&6; }
11800
11801if test "$GCC" = yes; then
11802 case $host_os in
11803 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11804 *) lt_awk_arg="/^libraries:/" ;;
11805 esac
11806 case $host_os in
11807 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11808 *) lt_sed_strip_eq="s,=/,/,g" ;;
11809 esac
11810 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11811 case $lt_search_path_spec in
11812 *\;*)
11813 # if the path contains ";" then we assume it to be the separator
11814 # otherwise default to the standard path separator (i.e. ":") - it is
11815 # assumed that no part of a normal pathname contains ";" but that should
11816 # okay in the real world where ";" in dirpaths is itself problematic.
11817 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11818 ;;
11819 *)
11820 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11821 ;;
11822 esac
11823 # Ok, now we have the path, separated by spaces, we can step through it
11824 # and add multilib dir if necessary.
11825 lt_tmp_lt_search_path_spec=
11826 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11827 for lt_sys_path in $lt_search_path_spec; do
11828 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11829 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11830 else
11831 test -d "$lt_sys_path" && \
11832 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11833 fi
11834 done
11835 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11836BEGIN {RS=" "; FS="/|\n";} {
11837 lt_foo="";
11838 lt_count=0;
11839 for (lt_i = NF; lt_i > 0; lt_i--) {
11840 if ($lt_i != "" && $lt_i != ".") {
11841 if ($lt_i == "..") {
11842 lt_count++;
11843 } else {
11844 if (lt_count == 0) {
11845 lt_foo="/" $lt_i lt_foo;
11846 } else {
11847 lt_count--;
11848 }
11849 }
11850 }
11851 }
11852 if (lt_foo != "") { lt_freq[lt_foo]++; }
11853 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11854}'`
11855 # AWK program above erroneously prepends '/' to C:/dos/paths
11856 # for these hosts.
11857 case $host_os in
11858 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11859 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11860 esac
11861 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11862else
11863 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11864fi
11865library_names_spec=
11866libname_spec='lib$name'
11867soname_spec=
11868shrext_cmds=".so"
11869postinstall_cmds=
11870postuninstall_cmds=
11871finish_cmds=
11872finish_eval=
11873shlibpath_var=
11874shlibpath_overrides_runpath=unknown
11875version_type=none
11876dynamic_linker="$host_os ld.so"
11877sys_lib_dlsearch_path_spec="/lib /usr/lib"
11878need_lib_prefix=unknown
11879hardcode_into_libs=no
11880
11881# when you set need_version to no, make sure it does not cause -set_version
11882# flags to be left without arguments
11883need_version=unknown
11884
11885case $host_os in
11886aix3*)
11887 version_type=linux
11888 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11889 shlibpath_var=LIBPATH
11890
11891 # AIX 3 has no versioning support, so we append a major version to the name.
11892 soname_spec='${libname}${release}${shared_ext}$major'
11893 ;;
11894
11895aix[4-9]*)
11896 version_type=linux
11897 need_lib_prefix=no
11898 need_version=no
11899 hardcode_into_libs=yes
11900 if test "$host_cpu" = ia64; then
11901 # AIX 5 supports IA64
11902 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11903 shlibpath_var=LD_LIBRARY_PATH
11904 else
11905 # With GCC up to 2.95.x, collect2 would create an import file
11906 # for dependence libraries. The import file would start with
11907 # the line `#! .'. This would cause the generated library to
11908 # depend on `.', always an invalid library. This was fixed in
11909 # development snapshots of GCC prior to 3.0.
11910 case $host_os in
11911 aix4 | aix4.[01] | aix4.[01].*)
11912 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11913 echo ' yes '
11914 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11915 :
11916 else
11917 can_build_shared=no
11918 fi
11919 ;;
11920 esac
11921 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11922 # soname into executable. Probably we can add versioning support to
11923 # collect2, so additional links can be useful in future.
11924 if test "$aix_use_runtimelinking" = yes; then
11925 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11926 # instead of lib<name>.a to let people know that these are not
11927 # typical AIX shared libraries.
11928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11929 else
11930 # We preserve .a as extension for shared libraries through AIX4.2
11931 # and later when we are not doing run time linking.
11932 library_names_spec='${libname}${release}.a $libname.a'
11933 soname_spec='${libname}${release}${shared_ext}$major'
11934 fi
11935 shlibpath_var=LIBPATH
11936 fi
11937 ;;
11938
11939amigaos*)
11940 case $host_cpu in
11941 powerpc)
11942 # Since July 2007 AmigaOS4 officially supports .so libraries.
11943 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11945 ;;
11946 m68k)
11947 library_names_spec='$libname.ixlibrary $libname.a'
11948 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11949 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'
11950 ;;
11951 esac
11952 ;;
11953
11954beos*)
11955 library_names_spec='${libname}${shared_ext}'
11956 dynamic_linker="$host_os ld.so"
11957 shlibpath_var=LIBRARY_PATH
11958 ;;
11959
11960bsdi[45]*)
11961 version_type=linux
11962 need_version=no
11963 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11964 soname_spec='${libname}${release}${shared_ext}$major'
11965 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11966 shlibpath_var=LD_LIBRARY_PATH
11967 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11968 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11969 # the default ld.so.conf also contains /usr/contrib/lib and
11970 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11971 # libtool to hard-code these into programs
11972 ;;
11973
11974cygwin* | mingw* | pw32* | cegcc*)
11975 version_type=windows
11976 shrext_cmds=".dll"
11977 need_version=no
11978 need_lib_prefix=no
11979
11980 case $GCC,$host_os in
11981 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11982 library_names_spec='$libname.dll.a'
11983 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11984 postinstall_cmds='base_file=`basename \${file}`~
11985 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11986 dldir=$destdir/`dirname \$dlpath`~
11987 test -d \$dldir || mkdir -p \$dldir~
11988 $install_prog $dir/$dlname \$dldir/$dlname~
11989 chmod a+x \$dldir/$dlname~
11990 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11991 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11992 fi'
11993 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11994 dlpath=$dir/\$dldll~
11995 $RM \$dlpath'
11996 shlibpath_overrides_runpath=yes
11997
11998 case $host_os in
11999 cygwin*)
12000 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12001 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12002
12003 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12004 ;;
12005 mingw* | cegcc*)
12006 # MinGW DLLs use traditional 'lib' prefix
12007 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12008 ;;
12009 pw32*)
12010 # pw32 DLLs use 'pw' prefix rather than 'lib'
12011 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12012 ;;
12013 esac
12014 ;;
12015
12016 *)
12017 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12018 ;;
12019 esac
12020 dynamic_linker='Win32 ld.exe'
12021 # FIXME: first we should search . and the directory the executable is in
12022 shlibpath_var=PATH
12023 ;;
12024
12025darwin* | rhapsody*)
12026 dynamic_linker="$host_os dyld"
12027 version_type=darwin
12028 need_lib_prefix=no
12029 need_version=no
12030 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12031 soname_spec='${libname}${release}${major}$shared_ext'
12032 shlibpath_overrides_runpath=yes
12033 shlibpath_var=DYLD_LIBRARY_PATH
12034 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12035
12036 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12037 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12038 ;;
12039
12040dgux*)
12041 version_type=linux
12042 need_lib_prefix=no
12043 need_version=no
12044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12045 soname_spec='${libname}${release}${shared_ext}$major'
12046 shlibpath_var=LD_LIBRARY_PATH
12047 ;;
12048
12049freebsd* | dragonfly*)
12050 # DragonFly does not have aout. When/if they implement a new
12051 # versioning mechanism, adjust this.
12052 if test -x /usr/bin/objformat; then
12053 objformat=`/usr/bin/objformat`
12054 else
12055 case $host_os in
12056 freebsd[23].*) objformat=aout ;;
12057 *) objformat=elf ;;
12058 esac
12059 fi
12060 version_type=freebsd-$objformat
12061 case $version_type in
12062 freebsd-elf*)
12063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12064 need_version=no
12065 need_lib_prefix=no
12066 ;;
12067 freebsd-*)
12068 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12069 need_version=yes
12070 ;;
12071 esac
12072 shlibpath_var=LD_LIBRARY_PATH
12073 case $host_os in
12074 freebsd2.*)
12075 shlibpath_overrides_runpath=yes
12076 ;;
12077 freebsd3.[01]* | freebsdelf3.[01]*)
12078 shlibpath_overrides_runpath=yes
12079 hardcode_into_libs=yes
12080 ;;
12081 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12082 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12083 shlibpath_overrides_runpath=no
12084 hardcode_into_libs=yes
12085 ;;
12086 *) # from 4.6 on, and DragonFly
12087 shlibpath_overrides_runpath=yes
12088 hardcode_into_libs=yes
12089 ;;
12090 esac
12091 ;;
12092
6bb11ab3
L
12093haiku*)
12094 version_type=linux
12095 need_lib_prefix=no
12096 need_version=no
12097 dynamic_linker="$host_os runtime_loader"
12098 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12099 soname_spec='${libname}${release}${shared_ext}$major'
12100 shlibpath_var=LIBRARY_PATH
12101 shlibpath_overrides_runpath=yes
12102 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
12103 hardcode_into_libs=yes
12104 ;;
12105
12106hpux9* | hpux10* | hpux11*)
12107 # Give a soname corresponding to the major version so that dld.sl refuses to
12108 # link against other versions.
12109 version_type=sunos
12110 need_lib_prefix=no
12111 need_version=no
12112 case $host_cpu in
12113 ia64*)
12114 shrext_cmds='.so'
12115 hardcode_into_libs=yes
12116 dynamic_linker="$host_os dld.so"
12117 shlibpath_var=LD_LIBRARY_PATH
12118 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12120 soname_spec='${libname}${release}${shared_ext}$major'
12121 if test "X$HPUX_IA64_MODE" = X32; then
12122 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12123 else
12124 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12125 fi
12126 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12127 ;;
12128 hppa*64*)
12129 shrext_cmds='.sl'
12130 hardcode_into_libs=yes
12131 dynamic_linker="$host_os dld.sl"
12132 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12133 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12134 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12135 soname_spec='${libname}${release}${shared_ext}$major'
12136 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12137 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12138 ;;
12139 *)
12140 shrext_cmds='.sl'
12141 dynamic_linker="$host_os dld.sl"
12142 shlibpath_var=SHLIB_PATH
12143 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12144 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12145 soname_spec='${libname}${release}${shared_ext}$major'
12146 ;;
12147 esac
12148 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12149 postinstall_cmds='chmod 555 $lib'
12150 # or fails outright, so override atomically:
12151 install_override_mode=555
12152 ;;
12153
12154interix[3-9]*)
12155 version_type=linux
12156 need_lib_prefix=no
12157 need_version=no
12158 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12159 soname_spec='${libname}${release}${shared_ext}$major'
12160 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12161 shlibpath_var=LD_LIBRARY_PATH
12162 shlibpath_overrides_runpath=no
12163 hardcode_into_libs=yes
12164 ;;
12165
12166irix5* | irix6* | nonstopux*)
12167 case $host_os in
12168 nonstopux*) version_type=nonstopux ;;
12169 *)
12170 if test "$lt_cv_prog_gnu_ld" = yes; then
12171 version_type=linux
12172 else
12173 version_type=irix
12174 fi ;;
12175 esac
12176 need_lib_prefix=no
12177 need_version=no
12178 soname_spec='${libname}${release}${shared_ext}$major'
12179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12180 case $host_os in
12181 irix5* | nonstopux*)
12182 libsuff= shlibsuff=
12183 ;;
12184 *)
12185 case $LD in # libtool.m4 will add one of these switches to LD
12186 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12187 libsuff= shlibsuff= libmagic=32-bit;;
12188 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12189 libsuff=32 shlibsuff=N32 libmagic=N32;;
12190 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12191 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12192 *) libsuff= shlibsuff= libmagic=never-match;;
12193 esac
12194 ;;
12195 esac
12196 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12197 shlibpath_overrides_runpath=no
12198 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12199 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12200 hardcode_into_libs=yes
12201 ;;
12202
12203# No shared lib support for Linux oldld, aout, or coff.
12204linux*oldld* | linux*aout* | linux*coff*)
12205 dynamic_linker=no
12206 ;;
12207
12208# This must be Linux ELF.
46f900c0 12209linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6bb11ab3
L
12210 version_type=linux
12211 need_lib_prefix=no
12212 need_version=no
12213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12214 soname_spec='${libname}${release}${shared_ext}$major'
12215 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12216 shlibpath_var=LD_LIBRARY_PATH
12217 shlibpath_overrides_runpath=no
12218
12219 # Some binutils ld are patched to set DT_RUNPATH
d0ac1c44 12220 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
2232061b
MF
12221 $as_echo_n "(cached) " >&6
12222else
6bb11ab3
L
12223 lt_cv_shlibpath_overrides_runpath=no
12224 save_LDFLAGS=$LDFLAGS
12225 save_libdir=$libdir
12226 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12227 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2232061b
MF
12229/* end confdefs.h. */
12230
2232061b
MF
12231int
12232main ()
12233{
12234
12235 ;
12236 return 0;
12237}
12238_ACEOF
6bb11ab3
L
12239if ac_fn_c_try_link "$LINENO"; then :
12240 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12241 lt_cv_shlibpath_overrides_runpath=yes
2232061b 12242fi
2232061b 12243fi
6bb11ab3
L
12244rm -f core conftest.err conftest.$ac_objext \
12245 conftest$ac_exeext conftest.$ac_ext
12246 LDFLAGS=$save_LDFLAGS
12247 libdir=$save_libdir
2232061b 12248
6bb11ab3 12249fi
2232061b 12250
6bb11ab3 12251 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
2232061b 12252
6bb11ab3
L
12253 # This implies no fast_install, which is unacceptable.
12254 # Some rework will be needed to allow for fast_install
12255 # before this can be enabled.
12256 hardcode_into_libs=yes
2232061b 12257
6bb11ab3
L
12258 # Append ld.so.conf contents to the search path
12259 if test -f /etc/ld.so.conf; then
12260 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' ' '`
12261 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12262 fi
2232061b 12263
6bb11ab3
L
12264 # We used to test for /lib/ld.so.1 and disable shared libraries on
12265 # powerpc, because MkLinux only supported shared libraries with the
12266 # GNU dynamic linker. Since this was broken with cross compilers,
12267 # most powerpc-linux boxes support dynamic linking these days and
12268 # people can always --disable-shared, the test was removed, and we
12269 # assume the GNU/Linux dynamic linker is in use.
12270 dynamic_linker='GNU/Linux ld.so'
12271 ;;
12272
12273netbsd*)
12274 version_type=sunos
12275 need_lib_prefix=no
12276 need_version=no
12277 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12279 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12280 dynamic_linker='NetBSD (a.out) ld.so'
2232061b 12281 else
6bb11ab3
L
12282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12283 soname_spec='${libname}${release}${shared_ext}$major'
12284 dynamic_linker='NetBSD ld.elf_so'
12285 fi
12286 shlibpath_var=LD_LIBRARY_PATH
12287 shlibpath_overrides_runpath=yes
12288 hardcode_into_libs=yes
12289 ;;
12290
12291newsos6)
12292 version_type=linux
12293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12294 shlibpath_var=LD_LIBRARY_PATH
12295 shlibpath_overrides_runpath=yes
12296 ;;
12297
12298*nto* | *qnx*)
12299 version_type=qnx
12300 need_lib_prefix=no
12301 need_version=no
12302 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12303 soname_spec='${libname}${release}${shared_ext}$major'
12304 shlibpath_var=LD_LIBRARY_PATH
12305 shlibpath_overrides_runpath=no
12306 hardcode_into_libs=yes
12307 dynamic_linker='ldqnx.so'
12308 ;;
12309
12310openbsd*)
12311 version_type=sunos
12312 sys_lib_dlsearch_path_spec="/usr/lib"
12313 need_lib_prefix=no
12314 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12315 case $host_os in
12316 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12317 *) need_version=no ;;
12318 esac
12319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12320 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12321 shlibpath_var=LD_LIBRARY_PATH
12322 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12323 case $host_os in
12324 openbsd2.[89] | openbsd2.[89].*)
12325 shlibpath_overrides_runpath=no
12326 ;;
12327 *)
12328 shlibpath_overrides_runpath=yes
12329 ;;
12330 esac
12331 else
12332 shlibpath_overrides_runpath=yes
12333 fi
12334 ;;
12335
12336os2*)
12337 libname_spec='$name'
12338 shrext_cmds=".dll"
12339 need_lib_prefix=no
12340 library_names_spec='$libname${shared_ext} $libname.a'
12341 dynamic_linker='OS/2 ld.exe'
12342 shlibpath_var=LIBPATH
12343 ;;
12344
12345osf3* | osf4* | osf5*)
12346 version_type=osf
12347 need_lib_prefix=no
12348 need_version=no
12349 soname_spec='${libname}${release}${shared_ext}$major'
12350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12351 shlibpath_var=LD_LIBRARY_PATH
12352 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12353 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12354 ;;
12355
12356rdos*)
12357 dynamic_linker=no
12358 ;;
12359
12360solaris*)
12361 version_type=linux
12362 need_lib_prefix=no
12363 need_version=no
12364 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12365 soname_spec='${libname}${release}${shared_ext}$major'
12366 shlibpath_var=LD_LIBRARY_PATH
12367 shlibpath_overrides_runpath=yes
12368 hardcode_into_libs=yes
12369 # ldd complains unless libraries are executable
12370 postinstall_cmds='chmod +x $lib'
12371 ;;
12372
12373sunos4*)
12374 version_type=sunos
12375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12376 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12377 shlibpath_var=LD_LIBRARY_PATH
12378 shlibpath_overrides_runpath=yes
12379 if test "$with_gnu_ld" = yes; then
12380 need_lib_prefix=no
12381 fi
12382 need_version=yes
12383 ;;
12384
12385sysv4 | sysv4.3*)
12386 version_type=linux
12387 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12388 soname_spec='${libname}${release}${shared_ext}$major'
12389 shlibpath_var=LD_LIBRARY_PATH
12390 case $host_vendor in
12391 sni)
12392 shlibpath_overrides_runpath=no
12393 need_lib_prefix=no
12394 runpath_var=LD_RUN_PATH
12395 ;;
12396 siemens)
12397 need_lib_prefix=no
12398 ;;
12399 motorola)
12400 need_lib_prefix=no
12401 need_version=no
12402 shlibpath_overrides_runpath=no
12403 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12404 ;;
12405 esac
12406 ;;
12407
12408sysv4*MP*)
12409 if test -d /usr/nec ;then
12410 version_type=linux
12411 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12412 soname_spec='$libname${shared_ext}.$major'
12413 shlibpath_var=LD_LIBRARY_PATH
2232061b 12414 fi
6bb11ab3
L
12415 ;;
12416
12417sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12418 version_type=freebsd-elf
12419 need_lib_prefix=no
12420 need_version=no
12421 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12422 soname_spec='${libname}${release}${shared_ext}$major'
12423 shlibpath_var=LD_LIBRARY_PATH
12424 shlibpath_overrides_runpath=yes
12425 hardcode_into_libs=yes
12426 if test "$with_gnu_ld" = yes; then
12427 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12428 else
12429 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12430 case $host_os in
12431 sco3.2v5*)
12432 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12433 ;;
12434 esac
12435 fi
12436 sys_lib_dlsearch_path_spec='/usr/lib'
12437 ;;
12438
12439tpf*)
12440 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12441 version_type=linux
12442 need_lib_prefix=no
12443 need_version=no
12444 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12445 shlibpath_var=LD_LIBRARY_PATH
12446 shlibpath_overrides_runpath=no
12447 hardcode_into_libs=yes
12448 ;;
12449
12450uts4*)
12451 version_type=linux
12452 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12453 soname_spec='${libname}${release}${shared_ext}$major'
12454 shlibpath_var=LD_LIBRARY_PATH
12455 ;;
12456
12457*)
12458 dynamic_linker=no
12459 ;;
12460esac
12461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12462$as_echo "$dynamic_linker" >&6; }
12463test "$dynamic_linker" = no && can_build_shared=no
12464
12465variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12466if test "$GCC" = yes; then
12467 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
2232061b 12468fi
2232061b 12469
6bb11ab3
L
12470if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12471 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12472fi
12473if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12474 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12475fi
12476
12477
12478
12479
12480
12481
12482
12483
12484
12485
12486
12487
12488
12489
12490
12491
12492
12493
12494
12495
12496
12497
12498
12499
12500
12501
2232061b 12502
2232061b 12503
2232061b 12504
2232061b 12505
2232061b
MF
12506
12507
6ffe910a 12508
6ffe910a
MF
12509
12510
12511
12512
12513
2232061b 12514
6ffe910a
MF
12515
12516
12517
12518
6ffe910a 12519
6ffe910a 12520
6ffe910a
MF
12521
12522
6ffe910a 12523
6ffe910a 12524
6ffe910a
MF
12525
12526
5f3ef9d0 12527
5f3ef9d0
JB
12528
12529
12530
db2e4d67
MF
12531
12532
db2e4d67 12533
db2e4d67 12534
db2e4d67 12535
db2e4d67 12536
db2e4d67 12537
db2e4d67 12538
db2e4d67 12539
db2e4d67
MF
12540
12541
db2e4d67 12542
db2e4d67
MF
12543
12544
db2e4d67 12545
db2e4d67
MF
12546
12547
6ffe910a 12548
6ffe910a 12549
6ffe910a
MF
12550
12551
6ffe910a
MF
12552
12553
6ffe910a 12554
6ffe910a 12555
6ffe910a 12556
6ffe910a 12557
6ffe910a 12558
b7026657
AC
12559
12560
12561
c906108c 12562
b7026657 12563
b7026657 12564
b7026657 12565
b7026657 12566
c906108c 12567
6bb11ab3
L
12568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12569$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12570hardcode_action=
12571if test -n "$hardcode_libdir_flag_spec" ||
12572 test -n "$runpath_var" ||
12573 test "X$hardcode_automatic" = "Xyes" ; then
b7026657 12574
6bb11ab3
L
12575 # We can hardcode non-existent directories.
12576 if test "$hardcode_direct" != no &&
12577 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12578 # have to relink, otherwise we might link with an installed library
12579 # when we should be linking with a yet-to-be-installed one
12580 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12581 test "$hardcode_minus_L" != no; then
12582 # Linking always hardcodes the temporary library directory.
12583 hardcode_action=relink
12584 else
12585 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12586 hardcode_action=immediate
12587 fi
12588else
12589 # We cannot hardcode anything, or else we can only hardcode existing
12590 # directories.
12591 hardcode_action=unsupported
c906108c 12592fi
6bb11ab3
L
12593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12594$as_echo "$hardcode_action" >&6; }
b7026657 12595
6bb11ab3
L
12596if test "$hardcode_action" = relink ||
12597 test "$inherit_rpath" = yes; then
12598 # Fast installation is not supported
12599 enable_fast_install=no
12600elif test "$shlibpath_overrides_runpath" = yes ||
12601 test "$enable_shared" = no; then
12602 # Fast installation is not necessary
12603 enable_fast_install=needless
12604fi
c906108c 12605
6bb11ab3
L
12606
12607
12608
12609
12610
12611 if test "x$enable_dlopen" != xyes; then
12612 enable_dlopen=unknown
12613 enable_dlopen_self=unknown
12614 enable_dlopen_self_static=unknown
12615else
12616 lt_cv_dlopen=no
12617 lt_cv_dlopen_libs=
12618
12619 case $host_os in
12620 beos*)
12621 lt_cv_dlopen="load_add_on"
12622 lt_cv_dlopen_libs=
12623 lt_cv_dlopen_self=yes
12624 ;;
12625
12626 mingw* | pw32* | cegcc*)
12627 lt_cv_dlopen="LoadLibrary"
12628 lt_cv_dlopen_libs=
12629 ;;
12630
12631 cygwin*)
12632 lt_cv_dlopen="dlopen"
12633 lt_cv_dlopen_libs=
12634 ;;
12635
12636 darwin*)
12637 # if libdl is installed we need to link against it
12638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12639$as_echo_n "checking for dlopen in -ldl... " >&6; }
d0ac1c44 12640if ${ac_cv_lib_dl_dlopen+:} false; then :
6bb11ab3
L
12641 $as_echo_n "(cached) " >&6
12642else
12643 ac_check_lib_save_LIBS=$LIBS
12644LIBS="-ldl $LIBS"
12645cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12646/* end confdefs.h. */
12647
12648/* Override any GCC internal prototype to avoid an error.
12649 Use char because int might match the return type of a GCC
12650 builtin and then its argument prototype would still apply. */
12651#ifdef __cplusplus
12652extern "C"
12653#endif
12654char dlopen ();
12655int
12656main ()
12657{
12658return dlopen ();
12659 ;
12660 return 0;
12661}
b7026657 12662_ACEOF
6bb11ab3
L
12663if ac_fn_c_try_link "$LINENO"; then :
12664 ac_cv_lib_dl_dlopen=yes
12665else
12666 ac_cv_lib_dl_dlopen=no
12667fi
12668rm -f core conftest.err conftest.$ac_objext \
12669 conftest$ac_exeext conftest.$ac_ext
12670LIBS=$ac_check_lib_save_LIBS
12671fi
12672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12673$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
d0ac1c44 12674if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
6bb11ab3
L
12675 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12676else
12677
12678 lt_cv_dlopen="dyld"
12679 lt_cv_dlopen_libs=
12680 lt_cv_dlopen_self=yes
c906108c 12681
c906108c 12682fi
c906108c 12683
6bb11ab3 12684 ;;
c906108c 12685
6bb11ab3
L
12686 *)
12687 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
d0ac1c44 12688if test "x$ac_cv_func_shl_load" = xyes; then :
6bb11ab3
L
12689 lt_cv_dlopen="shl_load"
12690else
12691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12692$as_echo_n "checking for shl_load in -ldld... " >&6; }
d0ac1c44 12693if ${ac_cv_lib_dld_shl_load+:} false; then :
6bb11ab3
L
12694 $as_echo_n "(cached) " >&6
12695else
12696 ac_check_lib_save_LIBS=$LIBS
12697LIBS="-ldld $LIBS"
12698cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12699/* end confdefs.h. */
12700
12701/* Override any GCC internal prototype to avoid an error.
12702 Use char because int might match the return type of a GCC
12703 builtin and then its argument prototype would still apply. */
12704#ifdef __cplusplus
12705extern "C"
12706#endif
12707char shl_load ();
12708int
12709main ()
12710{
12711return shl_load ();
12712 ;
12713 return 0;
12714}
12715_ACEOF
12716if ac_fn_c_try_link "$LINENO"; then :
12717 ac_cv_lib_dld_shl_load=yes
12718else
12719 ac_cv_lib_dld_shl_load=no
12720fi
12721rm -f core conftest.err conftest.$ac_objext \
12722 conftest$ac_exeext conftest.$ac_ext
12723LIBS=$ac_check_lib_save_LIBS
12724fi
12725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12726$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
d0ac1c44 12727if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
6bb11ab3
L
12728 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12729else
12730 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
d0ac1c44 12731if test "x$ac_cv_func_dlopen" = xyes; then :
6bb11ab3
L
12732 lt_cv_dlopen="dlopen"
12733else
12734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12735$as_echo_n "checking for dlopen in -ldl... " >&6; }
d0ac1c44 12736if ${ac_cv_lib_dl_dlopen+:} false; then :
81ecdfbb 12737 $as_echo_n "(cached) " >&6
c906108c 12738else
b7026657 12739 ac_check_lib_save_LIBS=$LIBS
6bb11ab3 12740LIBS="-ldl $LIBS"
81ecdfbb 12741cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657
AC
12742/* end confdefs.h. */
12743
81ecdfbb
RW
12744/* Override any GCC internal prototype to avoid an error.
12745 Use char because int might match the return type of a GCC
12746 builtin and then its argument prototype would still apply. */
b7026657
AC
12747#ifdef __cplusplus
12748extern "C"
12749#endif
6bb11ab3 12750char dlopen ();
b7026657
AC
12751int
12752main ()
12753{
6bb11ab3 12754return dlopen ();
b7026657
AC
12755 ;
12756 return 0;
12757}
12758_ACEOF
81ecdfbb 12759if ac_fn_c_try_link "$LINENO"; then :
6bb11ab3 12760 ac_cv_lib_dl_dlopen=yes
b7026657 12761else
6bb11ab3 12762 ac_cv_lib_dl_dlopen=no
b7026657 12763fi
81ecdfbb
RW
12764rm -f core conftest.err conftest.$ac_objext \
12765 conftest$ac_exeext conftest.$ac_ext
b7026657
AC
12766LIBS=$ac_check_lib_save_LIBS
12767fi
6bb11ab3
L
12768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12769$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
d0ac1c44 12770if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
6bb11ab3
L
12771 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12772else
12773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12774$as_echo_n "checking for dlopen in -lsvld... " >&6; }
d0ac1c44 12775if ${ac_cv_lib_svld_dlopen+:} false; then :
81ecdfbb 12776 $as_echo_n "(cached) " >&6
c906108c 12777else
b7026657 12778 ac_check_lib_save_LIBS=$LIBS
6bb11ab3 12779LIBS="-lsvld $LIBS"
81ecdfbb 12780cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657
AC
12781/* end confdefs.h. */
12782
81ecdfbb
RW
12783/* Override any GCC internal prototype to avoid an error.
12784 Use char because int might match the return type of a GCC
12785 builtin and then its argument prototype would still apply. */
b7026657
AC
12786#ifdef __cplusplus
12787extern "C"
12788#endif
6bb11ab3 12789char dlopen ();
b7026657
AC
12790int
12791main ()
12792{
6bb11ab3 12793return dlopen ();
b7026657
AC
12794 ;
12795 return 0;
12796}
12797_ACEOF
81ecdfbb 12798if ac_fn_c_try_link "$LINENO"; then :
6bb11ab3 12799 ac_cv_lib_svld_dlopen=yes
b7026657 12800else
6bb11ab3 12801 ac_cv_lib_svld_dlopen=no
b7026657 12802fi
81ecdfbb
RW
12803rm -f core conftest.err conftest.$ac_objext \
12804 conftest$ac_exeext conftest.$ac_ext
b7026657
AC
12805LIBS=$ac_check_lib_save_LIBS
12806fi
6bb11ab3
L
12807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12808$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
d0ac1c44 12809if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
6bb11ab3 12810 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
5912fadd 12811else
6bb11ab3
L
12812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12813$as_echo_n "checking for dld_link in -ldld... " >&6; }
d0ac1c44 12814if ${ac_cv_lib_dld_dld_link+:} false; then :
81ecdfbb 12815 $as_echo_n "(cached) " >&6
b5bd9624 12816else
6bb11ab3
L
12817 ac_check_lib_save_LIBS=$LIBS
12818LIBS="-ldld $LIBS"
81ecdfbb 12819cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b5bd9624
HPN
12820/* end confdefs.h. */
12821
81ecdfbb
RW
12822/* Override any GCC internal prototype to avoid an error.
12823 Use char because int might match the return type of a GCC
b5bd9624 12824 builtin and then its argument prototype would still apply. */
b5bd9624
HPN
12825#ifdef __cplusplus
12826extern "C"
12827#endif
6bb11ab3 12828char dld_link ();
b5bd9624
HPN
12829int
12830main ()
12831{
6bb11ab3 12832return dld_link ();
b5bd9624
HPN
12833 ;
12834 return 0;
12835}
12836_ACEOF
6bb11ab3
L
12837if ac_fn_c_try_link "$LINENO"; then :
12838 ac_cv_lib_dld_dld_link=yes
12839else
12840 ac_cv_lib_dld_dld_link=no
12841fi
12842rm -f core conftest.err conftest.$ac_objext \
12843 conftest$ac_exeext conftest.$ac_ext
12844LIBS=$ac_check_lib_save_LIBS
12845fi
12846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12847$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
d0ac1c44 12848if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
6bb11ab3
L
12849 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12850fi
12851
12852
12853fi
12854
12855
12856fi
12857
12858
12859fi
12860
12861
12862fi
12863
12864
12865fi
12866
12867 ;;
12868 esac
12869
12870 if test "x$lt_cv_dlopen" != xno; then
12871 enable_dlopen=yes
b5bd9624 12872 else
6bb11ab3
L
12873 enable_dlopen=no
12874 fi
12875
12876 case $lt_cv_dlopen in
12877 dlopen)
12878 save_CPPFLAGS="$CPPFLAGS"
12879 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12880
12881 save_LDFLAGS="$LDFLAGS"
12882 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12883
12884 save_LIBS="$LIBS"
12885 LIBS="$lt_cv_dlopen_libs $LIBS"
12886
12887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12888$as_echo_n "checking whether a program can dlopen itself... " >&6; }
d0ac1c44 12889if ${lt_cv_dlopen_self+:} false; then :
6bb11ab3
L
12890 $as_echo_n "(cached) " >&6
12891else
12892 if test "$cross_compiling" = yes; then :
12893 lt_cv_dlopen_self=cross
12894else
12895 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12896 lt_status=$lt_dlunknown
12897 cat > conftest.$ac_ext <<_LT_EOF
50df264d 12898#line 12898 "configure"
6bb11ab3
L
12899#include "confdefs.h"
12900
12901#if HAVE_DLFCN_H
12902#include <dlfcn.h>
12903#endif
12904
12905#include <stdio.h>
12906
12907#ifdef RTLD_GLOBAL
12908# define LT_DLGLOBAL RTLD_GLOBAL
12909#else
12910# ifdef DL_GLOBAL
12911# define LT_DLGLOBAL DL_GLOBAL
12912# else
12913# define LT_DLGLOBAL 0
12914# endif
12915#endif
12916
12917/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12918 find out it does not work in some platform. */
12919#ifndef LT_DLLAZY_OR_NOW
12920# ifdef RTLD_LAZY
12921# define LT_DLLAZY_OR_NOW RTLD_LAZY
12922# else
12923# ifdef DL_LAZY
12924# define LT_DLLAZY_OR_NOW DL_LAZY
12925# else
12926# ifdef RTLD_NOW
12927# define LT_DLLAZY_OR_NOW RTLD_NOW
12928# else
12929# ifdef DL_NOW
12930# define LT_DLLAZY_OR_NOW DL_NOW
12931# else
12932# define LT_DLLAZY_OR_NOW 0
12933# endif
12934# endif
12935# endif
12936# endif
12937#endif
12938
12939/* When -fvisbility=hidden is used, assume the code has been annotated
12940 correspondingly for the symbols needed. */
12941#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12942void fnord () __attribute__((visibility("default")));
12943#endif
12944
12945void fnord () { int i=42; }
12946int main ()
12947{
12948 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12949 int status = $lt_dlunknown;
12950
12951 if (self)
12952 {
12953 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12954 else
12955 {
12956 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12957 else puts (dlerror ());
12958 }
12959 /* dlclose (self); */
12960 }
12961 else
12962 puts (dlerror ());
12963
12964 return status;
12965}
12966_LT_EOF
12967 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12968 (eval $ac_link) 2>&5
12969 ac_status=$?
12970 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12971 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12972 (./conftest; exit; ) >&5 2>/dev/null
12973 lt_status=$?
12974 case x$lt_status in
12975 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12976 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12977 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12978 esac
12979 else :
12980 # compilation failed
12981 lt_cv_dlopen_self=no
b5bd9624 12982 fi
b5bd9624 12983fi
6bb11ab3
L
12984rm -fr conftest*
12985
12986
b5bd9624 12987fi
6bb11ab3
L
12988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12989$as_echo "$lt_cv_dlopen_self" >&6; }
b5bd9624 12990
6bb11ab3
L
12991 if test "x$lt_cv_dlopen_self" = xyes; then
12992 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12994$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
d0ac1c44 12995if ${lt_cv_dlopen_self_static+:} false; then :
6bb11ab3 12996 $as_echo_n "(cached) " >&6
b5bd9624 12997else
6bb11ab3
L
12998 if test "$cross_compiling" = yes; then :
12999 lt_cv_dlopen_self_static=cross
13000else
13001 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13002 lt_status=$lt_dlunknown
13003 cat > conftest.$ac_ext <<_LT_EOF
50df264d 13004#line 13004 "configure"
6bb11ab3
L
13005#include "confdefs.h"
13006
13007#if HAVE_DLFCN_H
13008#include <dlfcn.h>
13009#endif
13010
13011#include <stdio.h>
13012
13013#ifdef RTLD_GLOBAL
13014# define LT_DLGLOBAL RTLD_GLOBAL
13015#else
13016# ifdef DL_GLOBAL
13017# define LT_DLGLOBAL DL_GLOBAL
13018# else
13019# define LT_DLGLOBAL 0
13020# endif
13021#endif
13022
13023/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13024 find out it does not work in some platform. */
13025#ifndef LT_DLLAZY_OR_NOW
13026# ifdef RTLD_LAZY
13027# define LT_DLLAZY_OR_NOW RTLD_LAZY
13028# else
13029# ifdef DL_LAZY
13030# define LT_DLLAZY_OR_NOW DL_LAZY
13031# else
13032# ifdef RTLD_NOW
13033# define LT_DLLAZY_OR_NOW RTLD_NOW
13034# else
13035# ifdef DL_NOW
13036# define LT_DLLAZY_OR_NOW DL_NOW
13037# else
13038# define LT_DLLAZY_OR_NOW 0
13039# endif
13040# endif
13041# endif
13042# endif
13043#endif
13044
13045/* When -fvisbility=hidden is used, assume the code has been annotated
13046 correspondingly for the symbols needed. */
13047#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13048void fnord () __attribute__((visibility("default")));
13049#endif
13050
13051void fnord () { int i=42; }
13052int main ()
13053{
13054 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13055 int status = $lt_dlunknown;
13056
13057 if (self)
13058 {
13059 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13060 else
13061 {
13062 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13063 else puts (dlerror ());
13064 }
13065 /* dlclose (self); */
13066 }
13067 else
13068 puts (dlerror ());
13069
13070 return status;
13071}
13072_LT_EOF
13073 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13074 (eval $ac_link) 2>&5
13075 ac_status=$?
13076 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13077 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13078 (./conftest; exit; ) >&5 2>/dev/null
13079 lt_status=$?
13080 case x$lt_status in
13081 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13082 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13083 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13084 esac
13085 else :
13086 # compilation failed
13087 lt_cv_dlopen_self_static=no
13088 fi
b5bd9624 13089fi
6bb11ab3
L
13090rm -fr conftest*
13091
13092
b5bd9624 13093fi
6bb11ab3
L
13094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13095$as_echo "$lt_cv_dlopen_self_static" >&6; }
13096 fi
13097
13098 CPPFLAGS="$save_CPPFLAGS"
13099 LDFLAGS="$save_LDFLAGS"
13100 LIBS="$save_LIBS"
13101 ;;
13102 esac
13103
13104 case $lt_cv_dlopen_self in
13105 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13106 *) enable_dlopen_self=unknown ;;
13107 esac
13108
13109 case $lt_cv_dlopen_self_static in
13110 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13111 *) enable_dlopen_self_static=unknown ;;
13112 esac
13113fi
13114
13115
13116
13117
13118
13119
13120
13121
13122
13123
13124
13125
13126
13127
13128
13129
13130
13131striplib=
13132old_striplib=
13133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13134$as_echo_n "checking whether stripping libraries is possible... " >&6; }
13135if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13136 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13137 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13139$as_echo "yes" >&6; }
13140else
13141# FIXME - insert some real tests, host_os isn't really good enough
13142 case $host_os in
13143 darwin*)
13144 if test -n "$STRIP" ; then
13145 striplib="$STRIP -x"
13146 old_striplib="$STRIP -S"
13147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13148$as_echo "yes" >&6; }
13149 else
13150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13151$as_echo "no" >&6; }
13152 fi
13153 ;;
13154 *)
13155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13156$as_echo "no" >&6; }
13157 ;;
13158 esac
13159fi
13160
13161
13162
13163
13164
13165
13166
13167
13168
13169
13170
13171
13172 # Report which library types will actually be built
13173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13174$as_echo_n "checking if libtool supports shared libraries... " >&6; }
13175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13176$as_echo "$can_build_shared" >&6; }
13177
13178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13179$as_echo_n "checking whether to build shared libraries... " >&6; }
13180 test "$can_build_shared" = "no" && enable_shared=no
13181
13182 # On AIX, shared libraries and static libraries use the same namespace, and
13183 # are all built from PIC.
13184 case $host_os in
13185 aix3*)
13186 test "$enable_shared" = yes && enable_static=no
13187 if test -n "$RANLIB"; then
13188 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13189 postinstall_cmds='$RANLIB $lib'
13190 fi
13191 ;;
13192
13193 aix[4-9]*)
13194 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13195 test "$enable_shared" = yes && enable_static=no
13196 fi
13197 ;;
13198 esac
13199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13200$as_echo "$enable_shared" >&6; }
13201
13202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13203$as_echo_n "checking whether to build static libraries... " >&6; }
13204 # Make sure either enable_shared or enable_static is yes.
13205 test "$enable_shared" = yes || enable_static=yes
13206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13207$as_echo "$enable_static" >&6; }
13208
13209
13210
13211
13212fi
13213ac_ext=c
13214ac_cpp='$CPP $CPPFLAGS'
13215ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13216ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13217ac_compiler_gnu=$ac_cv_c_compiler_gnu
13218
13219CC="$lt_save_CC"
13220
13221
13222
13223
13224
13225
13226
13227
13228
b5bd9624 13229
b5bd9624 13230
b5bd9624 13231
b5bd9624 13232
6bb11ab3
L
13233 ac_config_commands="$ac_config_commands libtool"
13234
13235
13236
13237
13238# Only expand once:
13239
13240
5912fadd 13241
b5bd9624 13242
c906108c
SS
13243. ${srcdir}/../../bfd/configure.host
13244
13245
13246
31e6ad7d
MF
13247
13248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
13249$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
13250 # Check whether --enable-maintainer-mode was given.
81ecdfbb 13251if test "${enable_maintainer_mode+set}" = set; then :
31e6ad7d
MF
13252 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
13253else
13254 USE_MAINTAINER_MODE=no
c906108c 13255fi
31e6ad7d
MF
13256
13257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
13258$as_echo "$USE_MAINTAINER_MODE" >&6; }
13259 if test $USE_MAINTAINER_MODE = yes; then
13260 MAINTAINER_MODE_TRUE=
13261 MAINTAINER_MODE_FALSE='#'
c906108c 13262else
31e6ad7d
MF
13263 MAINTAINER_MODE_TRUE='#'
13264 MAINTAINER_MODE_FALSE=
81ecdfbb 13265fi
c906108c 13266
31e6ad7d
MF
13267 MAINT=$MAINTAINER_MODE_TRUE
13268
13269
c906108c 13270
81ecdfbb 13271
ce39bd38
MF
13272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim debug setting" >&5
13273$as_echo_n "checking for sim debug setting... " >&6; }
13274sim_debug="0"
81ecdfbb
RW
13275# Check whether --enable-sim-debug was given.
13276if test "${enable_sim_debug+set}" = set; then :
13277 enableval=$enable_sim_debug; case "${enableval}" in
ce39bd38
MF
13278 yes) sim_debug="7";;
13279 no) sim_debug="0";;
13280 *) sim_debug="($enableval)";;
c906108c 13281esac
c906108c 13282fi
ce39bd38
MF
13283if test "$sim_debug" != "0"; then
13284
13285cat >>confdefs.h <<_ACEOF
13286#define DEBUG $sim_debug
13287_ACEOF
13288
81ecdfbb 13289fi
c906108c 13290
ce39bd38
MF
13291cat >>confdefs.h <<_ACEOF
13292#define WITH_DEBUG $sim_debug
13293_ACEOF
13294
13295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_debug" >&5
13296$as_echo "$sim_debug" >&6; }
c906108c 13297
81ecdfbb 13298
ce39bd38
MF
13299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim stdio debug behavior" >&5
13300$as_echo_n "checking for sim stdio debug behavior... " >&6; }
13301sim_stdio="0"
81ecdfbb
RW
13302# Check whether --enable-sim-stdio was given.
13303if test "${enable_sim_stdio+set}" = set; then :
13304 enableval=$enable_sim_stdio; case "${enableval}" in
ce39bd38
MF
13305 yes) sim_stdio="DO_USE_STDIO";;
13306 no) sim_stdio="DONT_USE_STDIO";;
d0ac1c44 13307 *) as_fn_error $? "Unknown value $enableval passed to --enable-sim-stdio" "$LINENO" 5;;
c906108c 13308esac
81ecdfbb 13309fi
c906108c 13310
ce39bd38
MF
13311cat >>confdefs.h <<_ACEOF
13312#define WITH_STDIO $sim_stdio
13313_ACEOF
13314
13315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_stdio" >&5
13316$as_echo "$sim_stdio" >&6; }
c906108c 13317
81ecdfbb 13318
ce39bd38
MF
13319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim trace settings" >&5
13320$as_echo_n "checking for sim trace settings... " >&6; }
13321sim_trace="~TRACE_debug"
81ecdfbb
RW
13322# Check whether --enable-sim-trace was given.
13323if test "${enable_sim_trace+set}" = set; then :
13324 enableval=$enable_sim_trace; case "${enableval}" in
ce39bd38
MF
13325 yes) sim_trace="-1";;
13326 no) sim_trace="0";;
c906108c 13327 [-0-9]*)
ce39bd38 13328 sim_trace="'(${enableval})'";;
2232061b 13329 [[:lower:]]*)
c906108c
SS
13330 sim_trace=""
13331 for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
13332 if test x"$sim_trace" = x; then
ce39bd38 13333 sim_trace="(TRACE_$x"
c906108c
SS
13334 else
13335 sim_trace="${sim_trace}|TRACE_$x"
13336 fi
13337 done
ce39bd38 13338 sim_trace="$sim_trace)" ;;
c906108c 13339esac
81ecdfbb 13340fi
c906108c 13341
ce39bd38
MF
13342cat >>confdefs.h <<_ACEOF
13343#define WITH_TRACE $sim_trace
13344_ACEOF
13345
13346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_trace" >&5
13347$as_echo "$sim_trace" >&6; }
c906108c 13348
81ecdfbb 13349
ce39bd38
MF
13350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim profile settings" >&5
13351$as_echo_n "checking for sim profile settings... " >&6; }
13352profile="1"
13353sim_profile="-1"
81ecdfbb
RW
13354# Check whether --enable-sim-profile was given.
13355if test "${enable_sim_profile+set}" = set; then :
13356 enableval=$enable_sim_profile; case "${enableval}" in
ce39bd38
MF
13357 yes) profile="1" sim_profile="-1";;
13358 no) profile="0" sim_profile="0";;
c906108c 13359 [-0-9]*)
ce39bd38 13360 profile="(${enableval})" sim_profile="(${enableval})";;
c906108c 13361 [a-z]*)
ce39bd38 13362 profile="1"
c906108c
SS
13363 sim_profile=""
13364 for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
13365 if test x"$sim_profile" = x; then
ce39bd38 13366 sim_profile="(PROFILE_$x"
c906108c
SS
13367 else
13368 sim_profile="${sim_profile}|PROFILE_$x"
13369 fi
13370 done
ce39bd38 13371 sim_profile="$sim_profile)" ;;
c906108c 13372esac
81ecdfbb 13373fi
c906108c 13374
ce39bd38
MF
13375cat >>confdefs.h <<_ACEOF
13376#define PROFILE $profile
13377_ACEOF
c906108c 13378
6efef468 13379
ce39bd38
MF
13380cat >>confdefs.h <<_ACEOF
13381#define WITH_PROFILE $sim_profile
13382_ACEOF
13383
13384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_profile" >&5
13385$as_echo "$sim_profile" >&6; }
13386
13387
13388
13389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable sim asserts" >&5
13390$as_echo_n "checking whether to enable sim asserts... " >&6; }
13391sim_assert="1"
35656e95
MF
13392# Check whether --enable-sim-assert was given.
13393if test "${enable_sim_assert+set}" = set; then :
13394 enableval=$enable_sim_assert; case "${enableval}" in
ce39bd38
MF
13395 yes) sim_assert="1";;
13396 no) sim_assert="0";;
d0ac1c44 13397 *) as_fn_error $? "--enable-sim-assert does not take a value" "$LINENO" 5;;
35656e95 13398esac
35656e95
MF
13399fi
13400
ce39bd38
MF
13401cat >>confdefs.h <<_ACEOF
13402#define WITH_ASSERT $sim_assert
13403_ACEOF
13404
13405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_assert" >&5
13406$as_echo "$sim_assert" >&6; }
13407
35656e95 13408
ce39bd38
MF
13409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking default sim environment setting" >&5
13410$as_echo_n "checking default sim environment setting... " >&6; }
13411sim_environment="ALL_ENVIRONMENT"
16f7876d
MF
13412# Check whether --enable-sim-environment was given.
13413if test "${enable_sim_environment+set}" = set; then :
13414 enableval=$enable_sim_environment; case "${enableval}" in
ce39bd38
MF
13415 all | ALL) sim_environment="ALL_ENVIRONMENT";;
13416 user | USER) sim_environment="USER_ENVIRONMENT";;
13417 virtual | VIRTUAL) sim_environment="VIRTUAL_ENVIRONMENT";;
13418 operating | OPERATING) sim_environment="OPERATING_ENVIRONMENT";;
d0ac1c44 13419 *) as_fn_error $? "Unknown value $enableval passed to --enable-sim-environment" "$LINENO" 5;;
16f7876d 13420esac
16f7876d
MF
13421fi
13422
ce39bd38
MF
13423cat >>confdefs.h <<_ACEOF
13424#define WITH_ENVIRONMENT $sim_environment
13425_ACEOF
13426
13427{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_environment" >&5
13428$as_echo "$sim_environment" >&6; }
13429
16f7876d 13430
347fe5bb
MF
13431sim_inline="-DDEFAULT_INLINE=0"
13432# Check whether --enable-sim-inline was given.
13433if test "${enable_sim_inline+set}" = set; then :
13434 enableval=$enable_sim_inline; sim_inline=""
13435case "$enableval" in
13436 no) sim_inline="-DDEFAULT_INLINE=0";;
13437 0) sim_inline="-DDEFAULT_INLINE=0";;
13438 yes | 2) sim_inline="-DDEFAULT_INLINE=ALL_C_INLINE";;
13439 1) sim_inline="-DDEFAULT_INLINE=INLINE_LOCALS";;
13440 *) for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
13441 new_flag=""
13442 case "$x" in
13443 *_INLINE=*) new_flag="-D$x";;
13444 *=*) new_flag=`echo "$x" | sed -e "s/=/_INLINE=/" -e "s/^/-D/"`;;
13445 *_INLINE) new_flag="-D$x=ALL_C_INLINE";;
13446 *) new_flag="-D$x""_INLINE=ALL_C_INLINE";;
13447 esac
13448 if test x"$sim_inline" = x""; then
13449 sim_inline="$new_flag"
13450 else
13451 sim_inline="$sim_inline $new_flag"
13452 fi
13453 done;;
13454esac
13455if test x"$silent" != x"yes" && test x"$sim_inline" != x""; then
13456 echo "Setting inline flags = $sim_inline" 6>&1
13457fi
13458fi
13459
13460
13461
81ecdfbb
RW
13462
13463# Check whether --with-pkgversion was given.
13464if test "${with_pkgversion+set}" = set; then :
13465 withval=$with_pkgversion; case "$withval" in
d0ac1c44 13466 yes) as_fn_error $? "package version not specified" "$LINENO" 5 ;;
6efef468
JM
13467 no) PKGVERSION= ;;
13468 *) PKGVERSION="($withval) " ;;
13469 esac
13470else
bf12d44e 13471 PKGVERSION="(SIM) "
6efef468 13472
81ecdfbb
RW
13473fi
13474
6efef468
JM
13475
13476
13477
13478
81ecdfbb
RW
13479# Check whether --with-bugurl was given.
13480if test "${with_bugurl+set}" = set; then :
13481 withval=$with_bugurl; case "$withval" in
d0ac1c44 13482 yes) as_fn_error $? "bug URL not specified" "$LINENO" 5 ;;
6efef468
JM
13483 no) BUGURL=
13484 ;;
13485 *) BUGURL="$withval"
13486 ;;
13487 esac
13488else
dfb856ba 13489 BUGURL="https://www.gnu.org/software/gdb/bugs/"
6efef468 13490
81ecdfbb
RW
13491fi
13492
6efef468
JM
13493 case ${BUGURL} in
13494 "")
13495 REPORT_BUGS_TO=
13496 REPORT_BUGS_TEXI=
13497 ;;
13498 *)
13499 REPORT_BUGS_TO="<$BUGURL>"
13500 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
13501 ;;
13502 esac;
13503
13504
13505
13506
13507cat >>confdefs.h <<_ACEOF
13508#define PKGVERSION "$PKGVERSION"
13509_ACEOF
13510
13511
13512cat >>confdefs.h <<_ACEOF
13513#define REPORT_BUGS_TO "$REPORT_BUGS_TO"
13514_ACEOF
13515
13516
81ecdfbb
RW
13517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
13518$as_echo_n "checking return type of signal handlers... " >&6; }
d0ac1c44 13519if ${ac_cv_type_signal+:} false; then :
81ecdfbb 13520 $as_echo_n "(cached) " >&6
c906108c 13521else
81ecdfbb 13522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657 13523/* end confdefs.h. */
c906108c
SS
13524#include <sys/types.h>
13525#include <signal.h>
c906108c 13526
b7026657
AC
13527int
13528main ()
13529{
81ecdfbb 13530return *(signal (0, 0)) (0) == 1;
b7026657
AC
13531 ;
13532 return 0;
13533}
13534_ACEOF
81ecdfbb
RW
13535if ac_fn_c_try_compile "$LINENO"; then :
13536 ac_cv_type_signal=int
b7026657 13537else
81ecdfbb 13538 ac_cv_type_signal=void
b7026657 13539fi
81ecdfbb 13540rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b7026657 13541fi
81ecdfbb
RW
13542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
13543$as_echo "$ac_cv_type_signal" >&6; }
b7026657
AC
13544
13545cat >>confdefs.h <<_ACEOF
13546#define RETSIGTYPE $ac_cv_type_signal
13547_ACEOF
13548
13549
13550
13551
13552
b7026657 13553
6ffe910a 13554
b7026657 13555# In the Cygwin environment, we need some additional flags.
81ecdfbb
RW
13556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cygwin" >&5
13557$as_echo_n "checking for cygwin... " >&6; }
d0ac1c44 13558if ${sim_cv_os_cygwin+:} false; then :
81ecdfbb 13559 $as_echo_n "(cached) " >&6
b7026657 13560else
81ecdfbb 13561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657
AC
13562/* end confdefs.h. */
13563
13564#ifdef __CYGWIN__
13565lose
13566#endif
13567_ACEOF
13568if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
81ecdfbb 13569 $EGREP "lose" >/dev/null 2>&1; then :
b7026657
AC
13570 sim_cv_os_cygwin=yes
13571else
13572 sim_cv_os_cygwin=no
13573fi
13574rm -f conftest*
13575
13576fi
81ecdfbb
RW
13577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_cv_os_cygwin" >&5
13578$as_echo "$sim_cv_os_cygwin" >&6; }
b7026657 13579
c1230d1b
JS
13580# Keep in sync with gdb's configure.ac list.
13581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
b909d38d 13582$as_echo_n "checking for library containing tgetent... " >&6; }
d0ac1c44 13583if ${ac_cv_search_tgetent+:} false; then :
81ecdfbb 13584 $as_echo_n "(cached) " >&6
b7026657 13585else
b909d38d 13586 ac_func_search_save_LIBS=$LIBS
81ecdfbb 13587cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657
AC
13588/* end confdefs.h. */
13589
b909d38d
MF
13590/* Override any GCC internal prototype to avoid an error.
13591 Use char because int might match the return type of a GCC
13592 builtin and then its argument prototype would still apply. */
13593#ifdef __cplusplus
13594extern "C"
13595#endif
13596char tgetent ();
b7026657
AC
13597int
13598main ()
13599{
b909d38d 13600return tgetent ();
b7026657
AC
13601 ;
13602 return 0;
13603}
13604_ACEOF
b909d38d
MF
13605for ac_lib in '' termcap tinfo curses ncurses; do
13606 if test -z "$ac_lib"; then
13607 ac_res="none required"
13608 else
13609 ac_res=-l$ac_lib
13610 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13611 fi
13612 if ac_fn_c_try_link "$LINENO"; then :
13613 ac_cv_search_tgetent=$ac_res
b7026657 13614fi
81ecdfbb 13615rm -f core conftest.err conftest.$ac_objext \
b909d38d 13616 conftest$ac_exeext
d0ac1c44 13617 if ${ac_cv_search_tgetent+:} false; then :
b909d38d 13618 break
b7026657 13619fi
b909d38d 13620done
d0ac1c44 13621if ${ac_cv_search_tgetent+:} false; then :
b909d38d
MF
13622
13623else
13624 ac_cv_search_tgetent=no
13625fi
13626rm conftest.$ac_ext
13627LIBS=$ac_func_search_save_LIBS
13628fi
13629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
13630$as_echo "$ac_cv_search_tgetent" >&6; }
13631ac_res=$ac_cv_search_tgetent
13632if test "$ac_res" != no; then :
13633 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13634 TERMCAP=$ac_cv_search_tgetent
b7026657
AC
13635else
13636 TERMCAP=""
13637fi
13638
c1230d1b
JS
13639if test x$sim_cv_os_cygwin = xyes; then
13640 TERMCAP="${TERMCAP} -luser32"
b7026657
AC
13641fi
13642
13643
70a9be63
HPN
13644# We prefer the in-tree readline. Top-level dependencies make sure
13645# src/readline (if it's there) is configured before src/sim.
13646if test -r ../../readline/Makefile; then
13647 READLINE=../../readline/libreadline.a
13648else
81ecdfbb
RW
13649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
13650$as_echo_n "checking for readline in -lreadline... " >&6; }
d0ac1c44 13651if ${ac_cv_lib_readline_readline+:} false; then :
81ecdfbb 13652 $as_echo_n "(cached) " >&6
70a9be63
HPN
13653else
13654 ac_check_lib_save_LIBS=$LIBS
13655LIBS="-lreadline $TERMCAP $LIBS"
81ecdfbb 13656cat confdefs.h - <<_ACEOF >conftest.$ac_ext
70a9be63
HPN
13657/* end confdefs.h. */
13658
81ecdfbb
RW
13659/* Override any GCC internal prototype to avoid an error.
13660 Use char because int might match the return type of a GCC
13661 builtin and then its argument prototype would still apply. */
70a9be63
HPN
13662#ifdef __cplusplus
13663extern "C"
13664#endif
70a9be63
HPN
13665char readline ();
13666int
13667main ()
13668{
81ecdfbb 13669return readline ();
70a9be63
HPN
13670 ;
13671 return 0;
13672}
13673_ACEOF
81ecdfbb 13674if ac_fn_c_try_link "$LINENO"; then :
70a9be63
HPN
13675 ac_cv_lib_readline_readline=yes
13676else
81ecdfbb 13677 ac_cv_lib_readline_readline=no
70a9be63 13678fi
81ecdfbb
RW
13679rm -f core conftest.err conftest.$ac_objext \
13680 conftest$ac_exeext conftest.$ac_ext
70a9be63
HPN
13681LIBS=$ac_check_lib_save_LIBS
13682fi
81ecdfbb
RW
13683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
13684$as_echo "$ac_cv_lib_readline_readline" >&6; }
d0ac1c44 13685if test "x$ac_cv_lib_readline_readline" = xyes; then :
70a9be63
HPN
13686 READLINE=-lreadline
13687else
d0ac1c44 13688 as_fn_error $? "the required \"readline\" library is missing" "$LINENO" 5
70a9be63
HPN
13689fi
13690
13691fi
13692
b7026657 13693
b7026657
AC
13694cgen_breaks=""
13695if grep CGEN_MAINT $srcdir/Makefile.in >/dev/null; then
13696cgen_breaks="break cgen_rtx_error";
13697fi
13698
81ecdfbb 13699ac_config_files="$ac_config_files Makefile.sim:Makefile.in"
38f48d72 13700
81ecdfbb 13701ac_config_files="$ac_config_files Make-common.sim:../common/Make-common.in"
38f48d72 13702
81ecdfbb 13703ac_config_files="$ac_config_files .gdbinit:../common/gdbinit.in"
38f48d72 13704
81ecdfbb 13705ac_config_commands="$ac_config_commands Makefile"
38f48d72 13706
81ecdfbb 13707ac_config_commands="$ac_config_commands stamp-h"
38f48d72 13708
b7026657
AC
13709cat >confcache <<\_ACEOF
13710# This file is a shell script that caches the results of configure
13711# tests run on this system so they can be shared between configure
13712# scripts and configure runs, see configure's option --config-cache.
13713# It is not useful on other systems. If it contains results you don't
13714# want to keep, you may remove or edit it.
13715#
13716# config.status only pays attention to the cache file if you give it
13717# the --recheck option to rerun configure.
13718#
13719# `ac_cv_env_foo' variables (set or unset) will be overridden when
13720# loading this file, other *unset* `ac_cv_foo' will be assigned the
13721# following values.
13722
13723_ACEOF
13724
13725# The following way of writing the cache mishandles newlines in values,
13726# but we know of no workaround that is simple, portable, and efficient.
81ecdfbb 13727# So, we kill variables containing newlines.
b7026657
AC
13728# Ultrix sh set writes to stderr and can't be redirected directly,
13729# and sets the high bit in the cache file unless we assign to the vars.
81ecdfbb
RW
13730(
13731 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13732 eval ac_val=\$$ac_var
13733 case $ac_val in #(
13734 *${as_nl}*)
13735 case $ac_var in #(
13736 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13737$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13738 esac
13739 case $ac_var in #(
13740 _ | IFS | as_nl) ;; #(
13741 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13742 *) { eval $ac_var=; unset $ac_var;} ;;
13743 esac ;;
13744 esac
13745 done
13746
b7026657 13747 (set) 2>&1 |
81ecdfbb
RW
13748 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13749 *${as_nl}ac_space=\ *)
13750 # `set' does not quote correctly, so add quotes: double-quote
13751 # substitution turns \\\\ into \\, and sed turns \\ into \.
b7026657
AC
13752 sed -n \
13753 "s/'/'\\\\''/g;
13754 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
81ecdfbb 13755 ;; #(
b7026657
AC
13756 *)
13757 # `set' quotes correctly as required by POSIX, so do not add quotes.
81ecdfbb 13758 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
b7026657 13759 ;;
81ecdfbb
RW
13760 esac |
13761 sort
13762) |
b7026657 13763 sed '
81ecdfbb 13764 /^ac_cv_env_/b end
b7026657 13765 t clear
81ecdfbb 13766 :clear
b7026657
AC
13767 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13768 t end
81ecdfbb
RW
13769 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13770 :end' >>confcache
13771if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13772 if test -w "$cache_file"; then
d0ac1c44 13773 if test "x$cache_file" != "x/dev/null"; then
81ecdfbb
RW
13774 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13775$as_echo "$as_me: updating cache $cache_file" >&6;}
d0ac1c44
SM
13776 if test ! -f "$cache_file" || test -h "$cache_file"; then
13777 cat confcache >"$cache_file"
13778 else
13779 case $cache_file in #(
13780 */* | ?:*)
13781 mv -f confcache "$cache_file"$$ &&
13782 mv -f "$cache_file"$$ "$cache_file" ;; #(
13783 *)
13784 mv -f confcache "$cache_file" ;;
13785 esac
13786 fi
13787 fi
b7026657 13788 else
81ecdfbb
RW
13789 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13790$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
b7026657
AC
13791 fi
13792fi
13793rm -f confcache
13794
13795test "x$prefix" = xNONE && prefix=$ac_default_prefix
13796# Let make expand exec_prefix.
13797test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13798
b7026657
AC
13799DEFS=-DHAVE_CONFIG_H
13800
13801ac_libobjs=
13802ac_ltlibobjs=
d0ac1c44 13803U=
b7026657
AC
13804for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13805 # 1. Remove the extension, and $U if already installed.
81ecdfbb
RW
13806 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13807 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13808 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13809 # will be set to the directory where LIBOBJS objects are built.
13810 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13811 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
b7026657
AC
13812done
13813LIBOBJS=$ac_libobjs
13814
13815LTLIBOBJS=$ac_ltlibobjs
13816
13817
0cb8d851 13818
db2e4d67 13819if test -z "${GMAKE_TRUE}" && test -z "${GMAKE_FALSE}"; then
d0ac1c44 13820 as_fn_error $? "conditional \"GMAKE\" was never defined.
db2e4d67
MF
13821Usually this means the macro was only invoked conditionally." "$LINENO" 5
13822fi
6bb11ab3 13823if test -z "${PLUGINS_TRUE}" && test -z "${PLUGINS_FALSE}"; then
d0ac1c44 13824 as_fn_error $? "conditional \"PLUGINS\" was never defined.
6bb11ab3
L
13825Usually this means the macro was only invoked conditionally." "$LINENO" 5
13826fi
31e6ad7d 13827if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
d0ac1c44 13828 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
31e6ad7d
MF
13829Usually this means the macro was only invoked conditionally." "$LINENO" 5
13830fi
b7026657 13831
d0ac1c44 13832: "${CONFIG_STATUS=./config.status}"
81ecdfbb 13833ac_write_fail=0
b7026657
AC
13834ac_clean_files_save=$ac_clean_files
13835ac_clean_files="$ac_clean_files $CONFIG_STATUS"
81ecdfbb
RW
13836{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13837$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13838as_write_fail=0
13839cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
b7026657
AC
13840#! $SHELL
13841# Generated by $as_me.
13842# Run this file to recreate the current configuration.
13843# Compiler output produced by configure, useful for debugging
13844# configure, is in config.log if it exists.
13845
13846debug=false
13847ac_cs_recheck=false
13848ac_cs_silent=false
b7026657 13849
81ecdfbb
RW
13850SHELL=\${CONFIG_SHELL-$SHELL}
13851export SHELL
13852_ASEOF
13853cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13854## -------------------- ##
13855## M4sh Initialization. ##
13856## -------------------- ##
13857
13858# Be more Bourne compatible
13859DUALCASE=1; export DUALCASE # for MKS sh
13860if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
b7026657
AC
13861 emulate sh
13862 NULLCMD=:
81ecdfbb 13863 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
b7026657
AC
13864 # is contrary to our usage. Disable this feature.
13865 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
13866 setopt NO_GLOB_SUBST
13867else
13868 case `(set -o) 2>/dev/null` in #(
13869 *posix*) :
13870 set -o posix ;; #(
13871 *) :
13872 ;;
13873esac
b7026657 13874fi
b7026657 13875
81ecdfbb
RW
13876
13877as_nl='
13878'
13879export as_nl
13880# Printing a long string crashes Solaris 7 /usr/bin/printf.
13881as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13882as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13883as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13884# Prefer a ksh shell builtin over an external printf program on Solaris,
13885# but without wasting forks for bash or zsh.
13886if test -z "$BASH_VERSION$ZSH_VERSION" \
13887 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13888 as_echo='print -r --'
13889 as_echo_n='print -rn --'
13890elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13891 as_echo='printf %s\n'
13892 as_echo_n='printf %s'
13893else
13894 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13895 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13896 as_echo_n='/usr/ucb/echo -n'
13897 else
13898 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13899 as_echo_n_body='eval
13900 arg=$1;
13901 case $arg in #(
13902 *"$as_nl"*)
13903 expr "X$arg" : "X\\(.*\\)$as_nl";
13904 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13905 esac;
13906 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13907 '
13908 export as_echo_n_body
13909 as_echo_n='sh -c $as_echo_n_body as_echo'
13910 fi
13911 export as_echo_body
13912 as_echo='sh -c $as_echo_body as_echo'
13913fi
13914
13915# The user is always right.
13916if test "${PATH_SEPARATOR+set}" != set; then
13917 PATH_SEPARATOR=:
13918 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13919 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13920 PATH_SEPARATOR=';'
13921 }
b7026657
AC
13922fi
13923
13924
81ecdfbb
RW
13925# IFS
13926# We need space, tab and new line, in precisely that order. Quoting is
13927# there to prevent editors from complaining about space-tab.
13928# (If _AS_PATH_WALK were called with IFS unset, it would disable word
13929# splitting by setting IFS to empty value.)
13930IFS=" "" $as_nl"
13931
13932# Find who we are. Look in the path if we contain no directory separator.
d0ac1c44 13933as_myself=
81ecdfbb
RW
13934case $0 in #((
13935 *[\\/]* ) as_myself=$0 ;;
13936 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13937for as_dir in $PATH
13938do
13939 IFS=$as_save_IFS
13940 test -z "$as_dir" && as_dir=.
13941 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13942 done
13943IFS=$as_save_IFS
13944
13945 ;;
13946esac
13947# We did not find ourselves, most probably we were run as `sh COMMAND'
13948# in which case we are not to be found in the path.
13949if test "x$as_myself" = x; then
13950 as_myself=$0
13951fi
13952if test ! -f "$as_myself"; then
13953 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13954 exit 1
13955fi
13956
13957# Unset variables that we do not need and which cause bugs (e.g. in
13958# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13959# suppresses any "Segmentation fault" message there. '((' could
13960# trigger a bug in pdksh 5.2.14.
13961for as_var in BASH_ENV ENV MAIL MAILPATH
13962do eval test x\${$as_var+set} = xset \
13963 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13964done
b7026657
AC
13965PS1='$ '
13966PS2='> '
13967PS4='+ '
13968
13969# NLS nuisances.
81ecdfbb
RW
13970LC_ALL=C
13971export LC_ALL
13972LANGUAGE=C
13973export LANGUAGE
13974
13975# CDPATH.
13976(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13977
13978
d0ac1c44
SM
13979# as_fn_error STATUS ERROR [LINENO LOG_FD]
13980# ----------------------------------------
81ecdfbb
RW
13981# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13982# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
d0ac1c44 13983# script with STATUS, using 1 if that was 0.
81ecdfbb
RW
13984as_fn_error ()
13985{
d0ac1c44
SM
13986 as_status=$1; test $as_status -eq 0 && as_status=1
13987 if test "$4"; then
13988 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13989 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
b7026657 13990 fi
d0ac1c44 13991 $as_echo "$as_me: error: $2" >&2
81ecdfbb
RW
13992 as_fn_exit $as_status
13993} # as_fn_error
13994
13995
13996# as_fn_set_status STATUS
13997# -----------------------
13998# Set $? to STATUS, without forking.
13999as_fn_set_status ()
14000{
14001 return $1
14002} # as_fn_set_status
14003
14004# as_fn_exit STATUS
14005# -----------------
14006# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14007as_fn_exit ()
14008{
14009 set +e
14010 as_fn_set_status $1
14011 exit $1
14012} # as_fn_exit
14013
14014# as_fn_unset VAR
14015# ---------------
14016# Portably unset VAR.
14017as_fn_unset ()
14018{
14019 { eval $1=; unset $1;}
14020}
14021as_unset=as_fn_unset
14022# as_fn_append VAR VALUE
14023# ----------------------
14024# Append the text in VALUE to the end of the definition contained in VAR. Take
14025# advantage of any shell optimizations that allow amortized linear growth over
14026# repeated appends, instead of the typical quadratic growth present in naive
14027# implementations.
14028if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14029 eval 'as_fn_append ()
14030 {
14031 eval $1+=\$2
14032 }'
14033else
14034 as_fn_append ()
14035 {
14036 eval $1=\$$1\$2
14037 }
14038fi # as_fn_append
14039
14040# as_fn_arith ARG...
14041# ------------------
14042# Perform arithmetic evaluation on the ARGs, and store the result in the
14043# global $as_val. Take advantage of shells that can avoid forks. The arguments
14044# must be portable across $(()) and expr.
14045if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14046 eval 'as_fn_arith ()
14047 {
14048 as_val=$(( $* ))
14049 }'
14050else
14051 as_fn_arith ()
14052 {
14053 as_val=`expr "$@" || test $? -eq 1`
14054 }
14055fi # as_fn_arith
14056
b7026657 14057
81ecdfbb
RW
14058if expr a : '\(a\)' >/dev/null 2>&1 &&
14059 test "X`expr 00001 : '.*\(...\)'`" = X001; then
b7026657 14060 as_expr=expr
c906108c 14061else
b7026657 14062 as_expr=false
c906108c
SS
14063fi
14064
81ecdfbb 14065if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
b7026657
AC
14066 as_basename=basename
14067else
14068 as_basename=false
14069fi
c906108c 14070
81ecdfbb
RW
14071if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14072 as_dirname=dirname
14073else
14074 as_dirname=false
14075fi
c906108c 14076
81ecdfbb 14077as_me=`$as_basename -- "$0" ||
b7026657
AC
14078$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14079 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
14080 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14081$as_echo X/"$0" |
14082 sed '/^.*\/\([^/][^/]*\)\/*$/{
14083 s//\1/
14084 q
14085 }
14086 /^X\/\(\/\/\)$/{
14087 s//\1/
14088 q
14089 }
14090 /^X\/\(\/\).*/{
14091 s//\1/
14092 q
14093 }
14094 s/.*/./; q'`
c906108c 14095
b7026657
AC
14096# Avoid depending upon Character Ranges.
14097as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14098as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14099as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14100as_cr_digits='0123456789'
14101as_cr_alnum=$as_cr_Letters$as_cr_digits
cd0fc7c3 14102
81ecdfbb
RW
14103ECHO_C= ECHO_N= ECHO_T=
14104case `echo -n x` in #(((((
14105-n*)
14106 case `echo 'xy\c'` in
14107 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14108 xy) ECHO_C='\c';;
14109 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14110 ECHO_T=' ';;
14111 esac;;
14112*)
14113 ECHO_N='-n';;
b7026657 14114esac
c906108c 14115
81ecdfbb
RW
14116rm -f conf$$ conf$$.exe conf$$.file
14117if test -d conf$$.dir; then
14118 rm -f conf$$.dir/conf$$.file
c906108c 14119else
81ecdfbb
RW
14120 rm -f conf$$.dir
14121 mkdir conf$$.dir 2>/dev/null
c906108c 14122fi
81ecdfbb
RW
14123if (echo >conf$$.file) 2>/dev/null; then
14124 if ln -s conf$$.file conf$$ 2>/dev/null; then
b7026657 14125 as_ln_s='ln -s'
81ecdfbb
RW
14126 # ... but there are two gotchas:
14127 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14128 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
d0ac1c44 14129 # In both cases, we have to default to `cp -pR'.
81ecdfbb 14130 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
d0ac1c44 14131 as_ln_s='cp -pR'
81ecdfbb
RW
14132 elif ln conf$$.file conf$$ 2>/dev/null; then
14133 as_ln_s=ln
14134 else
d0ac1c44 14135 as_ln_s='cp -pR'
b7026657 14136 fi
7a292a7a 14137else
d0ac1c44 14138 as_ln_s='cp -pR'
b7026657 14139fi
81ecdfbb
RW
14140rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14141rmdir conf$$.dir 2>/dev/null
14142
7a292a7a 14143
81ecdfbb
RW
14144# as_fn_mkdir_p
14145# -------------
14146# Create "$as_dir" as a directory, including parents if necessary.
14147as_fn_mkdir_p ()
14148{
14149
14150 case $as_dir in #(
14151 -*) as_dir=./$as_dir;;
14152 esac
14153 test -d "$as_dir" || eval $as_mkdir_p || {
14154 as_dirs=
14155 while :; do
14156 case $as_dir in #(
14157 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14158 *) as_qdir=$as_dir;;
14159 esac
14160 as_dirs="'$as_qdir' $as_dirs"
14161 as_dir=`$as_dirname -- "$as_dir" ||
14162$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14163 X"$as_dir" : 'X\(//\)[^/]' \| \
14164 X"$as_dir" : 'X\(//\)$' \| \
14165 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14166$as_echo X"$as_dir" |
14167 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14168 s//\1/
14169 q
14170 }
14171 /^X\(\/\/\)[^/].*/{
14172 s//\1/
14173 q
14174 }
14175 /^X\(\/\/\)$/{
14176 s//\1/
14177 q
14178 }
14179 /^X\(\/\).*/{
14180 s//\1/
14181 q
14182 }
14183 s/.*/./; q'`
14184 test -d "$as_dir" && break
14185 done
14186 test -z "$as_dirs" || eval "mkdir $as_dirs"
d0ac1c44 14187 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
81ecdfbb
RW
14188
14189
14190} # as_fn_mkdir_p
b7026657 14191if mkdir -p . 2>/dev/null; then
81ecdfbb 14192 as_mkdir_p='mkdir -p "$as_dir"'
7a292a7a 14193else
b7026657
AC
14194 test -d ./-p && rmdir ./-p
14195 as_mkdir_p=false
7a292a7a 14196fi
7a292a7a 14197
d0ac1c44
SM
14198
14199# as_fn_executable_p FILE
14200# -----------------------
14201# Test if FILE is an executable regular file.
14202as_fn_executable_p ()
14203{
14204 test -f "$1" && test -x "$1"
14205} # as_fn_executable_p
14206as_test_x='test -x'
14207as_executable_p=as_fn_executable_p
7a292a7a 14208
b7026657
AC
14209# Sed expression to map a string onto a valid CPP name.
14210as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7a292a7a 14211
b7026657
AC
14212# Sed expression to map a string onto a valid variable name.
14213as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14214
14215
b7026657 14216exec 6>&1
81ecdfbb
RW
14217## ----------------------------------- ##
14218## Main body of $CONFIG_STATUS script. ##
14219## ----------------------------------- ##
14220_ASEOF
14221test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14222
14223cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14224# Save the log message, to keep $0 and so on meaningful, and to
b7026657 14225# report actual input values of CONFIG_FILES etc. instead of their
81ecdfbb
RW
14226# values after options handling.
14227ac_log="
b7026657 14228This file was extended by $as_me, which was
d0ac1c44 14229generated by GNU Autoconf 2.69. Invocation command line was
b7026657
AC
14230
14231 CONFIG_FILES = $CONFIG_FILES
14232 CONFIG_HEADERS = $CONFIG_HEADERS
14233 CONFIG_LINKS = $CONFIG_LINKS
14234 CONFIG_COMMANDS = $CONFIG_COMMANDS
14235 $ $0 $@
14236
81ecdfbb
RW
14237on `(hostname || uname -n) 2>/dev/null | sed 1q`
14238"
14239
b7026657
AC
14240_ACEOF
14241
81ecdfbb
RW
14242case $ac_config_files in *"
14243"*) set x $ac_config_files; shift; ac_config_files=$*;;
14244esac
c906108c 14245
81ecdfbb
RW
14246case $ac_config_headers in *"
14247"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14248esac
b7026657 14249
c906108c 14250
81ecdfbb
RW
14251cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14252# Files that config.status was made for.
14253config_files="$ac_config_files"
14254config_headers="$ac_config_headers"
81ecdfbb 14255config_commands="$ac_config_commands"
c906108c 14256
81ecdfbb 14257_ACEOF
c906108c 14258
81ecdfbb 14259cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
b7026657 14260ac_cs_usage="\
81ecdfbb
RW
14261\`$as_me' instantiates files and other configuration actions
14262from templates according to the current configuration. Unless the files
14263and actions are specified as TAGs, all are instantiated by default.
c906108c 14264
81ecdfbb 14265Usage: $0 [OPTION]... [TAG]...
c906108c 14266
b7026657 14267 -h, --help print this help, then exit
81ecdfbb 14268 -V, --version print version number and configuration settings, then exit
d0ac1c44 14269 --config print configuration, then exit
81ecdfbb
RW
14270 -q, --quiet, --silent
14271 do not print progress messages
b7026657
AC
14272 -d, --debug don't remove temporary files
14273 --recheck update $as_me by reconfiguring in the same conditions
81ecdfbb
RW
14274 --file=FILE[:TEMPLATE]
14275 instantiate the configuration file FILE
14276 --header=FILE[:TEMPLATE]
14277 instantiate the configuration header FILE
379832de 14278
b7026657
AC
14279Configuration files:
14280$config_files
14281
14282Configuration headers:
14283$config_headers
14284
b7026657
AC
14285Configuration commands:
14286$config_commands
14287
81ecdfbb 14288Report bugs to the package provider."
b7026657 14289
81ecdfbb
RW
14290_ACEOF
14291cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
d0ac1c44 14292ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
b7026657
AC
14293ac_cs_version="\\
14294config.status
d0ac1c44
SM
14295configured by $0, generated by GNU Autoconf 2.69,
14296 with options \\"\$ac_cs_config\\"
b7026657 14297
d0ac1c44 14298Copyright (C) 2012 Free Software Foundation, Inc.
b7026657
AC
14299This config.status script is free software; the Free Software Foundation
14300gives unlimited permission to copy, distribute and modify it."
81ecdfbb
RW
14301
14302ac_pwd='$ac_pwd'
14303srcdir='$srcdir'
14304INSTALL='$INSTALL'
6bb11ab3 14305AWK='$AWK'
81ecdfbb 14306test -n "\$AWK" || AWK=awk
b7026657
AC
14307_ACEOF
14308
81ecdfbb
RW
14309cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14310# The default lists apply if the user does not specify any file.
b7026657
AC
14311ac_need_defaults=:
14312while test $# != 0
14313do
14314 case $1 in
d0ac1c44 14315 --*=?*)
81ecdfbb
RW
14316 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14317 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
b7026657 14318 ac_shift=:
c906108c 14319 ;;
d0ac1c44
SM
14320 --*=)
14321 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14322 ac_optarg=
14323 ac_shift=:
14324 ;;
81ecdfbb 14325 *)
b7026657
AC
14326 ac_option=$1
14327 ac_optarg=$2
14328 ac_shift=shift
c906108c 14329 ;;
b7026657 14330 esac
c906108c 14331
b7026657
AC
14332 case $ac_option in
14333 # Handling of the options.
b7026657
AC
14334 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14335 ac_cs_recheck=: ;;
81ecdfbb
RW
14336 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14337 $as_echo "$ac_cs_version"; exit ;;
d0ac1c44
SM
14338 --config | --confi | --conf | --con | --co | --c )
14339 $as_echo "$ac_cs_config"; exit ;;
81ecdfbb 14340 --debug | --debu | --deb | --de | --d | -d )
b7026657
AC
14341 debug=: ;;
14342 --file | --fil | --fi | --f )
14343 $ac_shift
81ecdfbb
RW
14344 case $ac_optarg in
14345 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
d0ac1c44 14346 '') as_fn_error $? "missing file argument" ;;
81ecdfbb
RW
14347 esac
14348 as_fn_append CONFIG_FILES " '$ac_optarg'"
b7026657
AC
14349 ac_need_defaults=false;;
14350 --header | --heade | --head | --hea )
14351 $ac_shift
81ecdfbb
RW
14352 case $ac_optarg in
14353 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14354 esac
14355 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
b7026657 14356 ac_need_defaults=false;;
81ecdfbb
RW
14357 --he | --h)
14358 # Conflict between --help and --header
d0ac1c44 14359 as_fn_error $? "ambiguous option: \`$1'
81ecdfbb
RW
14360Try \`$0 --help' for more information.";;
14361 --help | --hel | -h )
14362 $as_echo "$ac_cs_usage"; exit ;;
b7026657
AC
14363 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14364 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14365 ac_cs_silent=: ;;
c906108c 14366
b7026657 14367 # This is an error.
d0ac1c44 14368 -*) as_fn_error $? "unrecognized option: \`$1'
81ecdfbb 14369Try \`$0 --help' for more information." ;;
c906108c 14370
81ecdfbb
RW
14371 *) as_fn_append ac_config_targets " $1"
14372 ac_need_defaults=false ;;
b7026657
AC
14373
14374 esac
14375 shift
14376done
14377
14378ac_configure_extra_args=
14379
14380if $ac_cs_silent; then
14381 exec 6>/dev/null
14382 ac_configure_extra_args="$ac_configure_extra_args --silent"
c906108c
SS
14383fi
14384
b7026657 14385_ACEOF
81ecdfbb 14386cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
b7026657 14387if \$ac_cs_recheck; then
d0ac1c44 14388 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
81ecdfbb
RW
14389 shift
14390 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14391 CONFIG_SHELL='$SHELL'
14392 export CONFIG_SHELL
14393 exec "\$@"
b7026657 14394fi
c906108c 14395
b7026657 14396_ACEOF
81ecdfbb
RW
14397cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14398exec 5>>config.log
14399{
14400 echo
14401 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14402## Running $as_me. ##
14403_ASBOX
14404 $as_echo "$ac_log"
14405} >&5
c906108c 14406
81ecdfbb
RW
14407_ACEOF
14408cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
db2e4d67
MF
14409#
14410# INIT-COMMANDS
14411#
14412ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
14413
6bb11ab3
L
14414
14415# The HP-UX ksh and POSIX shell print the target directory to stdout
14416# if CDPATH is set.
14417(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14418
14419sed_quote_subst='$sed_quote_subst'
14420double_quote_subst='$double_quote_subst'
14421delay_variable_subst='$delay_variable_subst'
14422macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14423macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14424enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14425enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14426pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14427enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14428SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14429ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14430host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14431host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14432host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14433build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14434build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14435build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14436SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14437Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14438GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14439EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14440FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14441LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14442NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14443LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14444max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14445ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14446exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14447lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14448lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14449lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14450reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14451reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14452OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14453deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14454file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14455AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14456AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14457STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14458RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14459old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14460old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14461old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14462lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14463CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14464CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14465compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14466GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14467lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14468lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14469lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14470lt_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"`'
14471objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14472MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14473lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14474lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14475lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14476lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14477lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14478need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14479DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14480NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14481LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14482OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14483OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14484libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14485shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14486extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14487archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14488enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14489export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14490whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14491compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14492old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14493old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14494archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14495archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14496module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14497module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14498with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14499allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14500no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14501hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14502hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
14503hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14504hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14505hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14506hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14507hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14508hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14509inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14510link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14511fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
14512always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14513export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14514exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14515include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14516prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14517file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14518variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14519need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14520need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14521version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14522runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14523shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14524shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14525libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14526library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14527soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14528install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14529postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14530postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14531finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14532finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14533hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14534sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14535sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
14536hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14537enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14538enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14539enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14540old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14541striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14542
14543LTCC='$LTCC'
14544LTCFLAGS='$LTCFLAGS'
14545compiler='$compiler_DEFAULT'
14546
14547# A function that is used when there is no print builtin or printf.
14548func_fallback_echo ()
14549{
14550 eval 'cat <<_LTECHO_EOF
14551\$1
14552_LTECHO_EOF'
14553}
14554
14555# Quote evaled strings.
14556for var in SHELL \
14557ECHO \
14558SED \
14559GREP \
14560EGREP \
14561FGREP \
14562LD \
14563NM \
14564LN_S \
14565lt_SP2NL \
14566lt_NL2SP \
14567reload_flag \
14568OBJDUMP \
14569deplibs_check_method \
14570file_magic_cmd \
14571AR \
14572AR_FLAGS \
14573STRIP \
14574RANLIB \
14575CC \
14576CFLAGS \
14577compiler \
14578lt_cv_sys_global_symbol_pipe \
14579lt_cv_sys_global_symbol_to_cdecl \
14580lt_cv_sys_global_symbol_to_c_name_address \
14581lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14582lt_prog_compiler_no_builtin_flag \
14583lt_prog_compiler_wl \
14584lt_prog_compiler_pic \
14585lt_prog_compiler_static \
14586lt_cv_prog_compiler_c_o \
14587need_locks \
14588DSYMUTIL \
14589NMEDIT \
14590LIPO \
14591OTOOL \
14592OTOOL64 \
14593shrext_cmds \
14594export_dynamic_flag_spec \
14595whole_archive_flag_spec \
14596compiler_needs_object \
14597with_gnu_ld \
14598allow_undefined_flag \
14599no_undefined_flag \
14600hardcode_libdir_flag_spec \
14601hardcode_libdir_flag_spec_ld \
14602hardcode_libdir_separator \
14603fix_srcfile_path \
14604exclude_expsyms \
14605include_expsyms \
14606file_list_spec \
14607variables_saved_for_relink \
14608libname_spec \
14609library_names_spec \
14610soname_spec \
14611install_override_mode \
14612finish_eval \
14613old_striplib \
14614striplib; do
14615 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14616 *[\\\\\\\`\\"\\\$]*)
14617 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14618 ;;
14619 *)
14620 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14621 ;;
14622 esac
14623done
14624
14625# Double-quote double-evaled strings.
14626for var in reload_cmds \
14627old_postinstall_cmds \
14628old_postuninstall_cmds \
14629old_archive_cmds \
14630extract_expsyms_cmds \
14631old_archive_from_new_cmds \
14632old_archive_from_expsyms_cmds \
14633archive_cmds \
14634archive_expsym_cmds \
14635module_cmds \
14636module_expsym_cmds \
14637export_symbols_cmds \
14638prelink_cmds \
14639postinstall_cmds \
14640postuninstall_cmds \
14641finish_cmds \
14642sys_lib_search_path_spec \
14643sys_lib_dlsearch_path_spec; do
14644 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14645 *[\\\\\\\`\\"\\\$]*)
14646 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14647 ;;
14648 *)
14649 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14650 ;;
14651 esac
14652done
14653
14654ac_aux_dir='$ac_aux_dir'
14655xsi_shell='$xsi_shell'
14656lt_shell_append='$lt_shell_append'
14657
14658# See if we are running on zsh, and set the options which allow our
14659# commands through without removal of \ escapes INIT.
14660if test -n "\${ZSH_VERSION+set}" ; then
14661 setopt NO_GLOB_SUBST
14662fi
14663
14664
14665 PACKAGE='$PACKAGE'
14666 VERSION='$VERSION'
14667 TIMESTAMP='$TIMESTAMP'
14668 RM='$RM'
14669 ofile='$ofile'
14670
14671
14672
14673
81ecdfbb 14674_ACEOF
c906108c 14675
81ecdfbb 14676cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
c906108c 14677
81ecdfbb 14678# Handling of arguments.
b7026657 14679for ac_config_target in $ac_config_targets
c906108c 14680do
81ecdfbb
RW
14681 case $ac_config_target in
14682 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
db2e4d67 14683 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
6bb11ab3 14684 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
81ecdfbb
RW
14685 "Makefile.sim") CONFIG_FILES="$CONFIG_FILES Makefile.sim:Makefile.in" ;;
14686 "Make-common.sim") CONFIG_FILES="$CONFIG_FILES Make-common.sim:../common/Make-common.in" ;;
14687 ".gdbinit") CONFIG_FILES="$CONFIG_FILES .gdbinit:../common/gdbinit.in" ;;
14688 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
14689 "stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS stamp-h" ;;
14690
d0ac1c44 14691 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
c906108c
SS
14692 esac
14693done
14694
81ecdfbb 14695
b7026657
AC
14696# If the user did not use the arguments to specify the items to instantiate,
14697# then the envvar interface is used. Set only those that are not.
14698# We use the long form for the default assignment because of an extremely
14699# bizarre bug on SunOS 4.1.3.
14700if $ac_need_defaults; then
14701 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14702 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
b7026657
AC
14703 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14704fi
14705
14706# Have a temporary directory for convenience. Make it in the build tree
81ecdfbb 14707# simply because there is no reason against having it here, and in addition,
b7026657 14708# creating and moving files from /tmp can sometimes cause problems.
81ecdfbb
RW
14709# Hook for its removal unless debugging.
14710# Note that there is a small window in which the directory will not be cleaned:
14711# after its creation but before its name has been assigned to `$tmp'.
b7026657
AC
14712$debug ||
14713{
d0ac1c44 14714 tmp= ac_tmp=
81ecdfbb 14715 trap 'exit_status=$?
d0ac1c44
SM
14716 : "${ac_tmp:=$tmp}"
14717 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
81ecdfbb
RW
14718' 0
14719 trap 'as_fn_exit 1' 1 2 13 15
b7026657 14720}
b7026657
AC
14721# Create a (secure) tmp directory for tmp files.
14722
14723{
81ecdfbb 14724 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
d0ac1c44 14725 test -d "$tmp"
b7026657
AC
14726} ||
14727{
81ecdfbb
RW
14728 tmp=./conf$$-$RANDOM
14729 (umask 077 && mkdir "$tmp")
d0ac1c44
SM
14730} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14731ac_tmp=$tmp
c906108c 14732
81ecdfbb
RW
14733# Set up the scripts for CONFIG_FILES section.
14734# No need to generate them if there are no CONFIG_FILES.
14735# This happens for instance with `./config.status config.h'.
14736if test -n "$CONFIG_FILES"; then
c906108c 14737
c906108c 14738
81ecdfbb
RW
14739ac_cr=`echo X | tr X '\015'`
14740# On cygwin, bash can eat \r inside `` if the user requested igncr.
14741# But we know of no other shell where ac_cr would be empty at this
14742# point, so we can use a bashism as a fallback.
14743if test "x$ac_cr" = x; then
14744 eval ac_cr=\$\'\\r\'
14745fi
14746ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14747if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
d0ac1c44 14748 ac_cs_awk_cr='\\r'
81ecdfbb
RW
14749else
14750 ac_cs_awk_cr=$ac_cr
14751fi
b7026657 14752
d0ac1c44 14753echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
b7026657
AC
14754_ACEOF
14755
81ecdfbb
RW
14756
14757{
14758 echo "cat >conf$$subs.awk <<_ACEOF" &&
14759 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14760 echo "_ACEOF"
14761} >conf$$subs.sh ||
d0ac1c44
SM
14762 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14763ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
81ecdfbb
RW
14764ac_delim='%!_!# '
14765for ac_last_try in false false false false false :; do
14766 . ./conf$$subs.sh ||
d0ac1c44 14767 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
81ecdfbb
RW
14768
14769 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14770 if test $ac_delim_n = $ac_delim_num; then
14771 break
14772 elif $ac_last_try; then
d0ac1c44 14773 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
81ecdfbb
RW
14774 else
14775 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
c906108c 14776 fi
81ecdfbb
RW
14777done
14778rm -f conf$$subs.sh
c906108c 14779
81ecdfbb 14780cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
d0ac1c44 14781cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
b7026657 14782_ACEOF
81ecdfbb
RW
14783sed -n '
14784h
14785s/^/S["/; s/!.*/"]=/
14786p
14787g
14788s/^[^!]*!//
14789:repl
14790t repl
14791s/'"$ac_delim"'$//
14792t delim
14793:nl
14794h
d0ac1c44 14795s/\(.\{148\}\)..*/\1/
81ecdfbb
RW
14796t more1
14797s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14798p
14799n
14800b repl
14801:more1
14802s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14803p
14804g
14805s/.\{148\}//
14806t nl
14807:delim
14808h
d0ac1c44 14809s/\(.\{148\}\)..*/\1/
81ecdfbb
RW
14810t more2
14811s/["\\]/\\&/g; s/^/"/; s/$/"/
14812p
14813b
14814:more2
14815s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14816p
14817g
14818s/.\{148\}//
14819t delim
14820' <conf$$subs.awk | sed '
14821/^[^""]/{
14822 N
14823 s/\n//
14824}
14825' >>$CONFIG_STATUS || ac_write_fail=1
14826rm -f conf$$subs.awk
14827cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14828_ACAWK
d0ac1c44 14829cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
81ecdfbb
RW
14830 for (key in S) S_is_set[key] = 1
14831 FS = "\a"
b7026657 14832
81ecdfbb
RW
14833}
14834{
14835 line = $ 0
14836 nfields = split(line, field, "@")
14837 substed = 0
14838 len = length(field[1])
14839 for (i = 2; i < nfields; i++) {
14840 key = field[i]
14841 keylen = length(key)
14842 if (S_is_set[key]) {
14843 value = S[key]
14844 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14845 len += length(value) + length(field[++i])
14846 substed = 1
14847 } else
14848 len += 1 + keylen
14849 }
14850
14851 print line
14852}
b7026657 14853
81ecdfbb
RW
14854_ACAWK
14855_ACEOF
14856cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14857if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14858 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
b7026657 14859else
81ecdfbb 14860 cat
d0ac1c44
SM
14861fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14862 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
81ecdfbb 14863_ACEOF
c906108c 14864
d0ac1c44
SM
14865# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14866# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
81ecdfbb
RW
14867# trailing colons and then remove the whole line if VPATH becomes empty
14868# (actually we leave an empty line to preserve line numbers).
14869if test "x$srcdir" = x.; then
d0ac1c44
SM
14870 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
14871h
14872s///
14873s/^/:/
14874s/[ ]*$/:/
14875s/:\$(srcdir):/:/g
14876s/:\${srcdir}:/:/g
14877s/:@srcdir@:/:/g
14878s/^:*//
81ecdfbb 14879s/:*$//
d0ac1c44
SM
14880x
14881s/\(=[ ]*\).*/\1/
14882G
14883s/\n//
81ecdfbb
RW
14884s/^[^=]*=[ ]*$//
14885}'
14886fi
c906108c 14887
81ecdfbb
RW
14888cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14889fi # test -n "$CONFIG_FILES"
c906108c 14890
81ecdfbb
RW
14891# Set up the scripts for CONFIG_HEADERS section.
14892# No need to generate them if there are no CONFIG_HEADERS.
14893# This happens for instance with `./config.status Makefile'.
14894if test -n "$CONFIG_HEADERS"; then
d0ac1c44 14895cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
81ecdfbb
RW
14896BEGIN {
14897_ACEOF
b7026657 14898
81ecdfbb
RW
14899# Transform confdefs.h into an awk script `defines.awk', embedded as
14900# here-document in config.status, that substitutes the proper values into
14901# config.h.in to produce config.h.
c906108c 14902
81ecdfbb
RW
14903# Create a delimiter string that does not exist in confdefs.h, to ease
14904# handling of long lines.
14905ac_delim='%!_!# '
14906for ac_last_try in false false :; do
d0ac1c44
SM
14907 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14908 if test -z "$ac_tt"; then
81ecdfbb
RW
14909 break
14910 elif $ac_last_try; then
d0ac1c44 14911 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
b7026657 14912 else
81ecdfbb 14913 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
b7026657 14914 fi
b7026657 14915done
81ecdfbb
RW
14916
14917# For the awk script, D is an array of macro values keyed by name,
14918# likewise P contains macro parameters if any. Preserve backslash
14919# newline sequences.
14920
14921ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14922sed -n '
14923s/.\{148\}/&'"$ac_delim"'/g
14924t rset
14925:rset
14926s/^[ ]*#[ ]*define[ ][ ]*/ /
14927t def
14928d
14929:def
14930s/\\$//
14931t bsnl
14932s/["\\]/\\&/g
14933s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14934D["\1"]=" \3"/p
14935s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14936d
14937:bsnl
14938s/["\\]/\\&/g
14939s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14940D["\1"]=" \3\\\\\\n"\\/p
14941t cont
14942s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14943t cont
14944d
14945:cont
14946n
14947s/.\{148\}/&'"$ac_delim"'/g
14948t clear
14949:clear
14950s/\\$//
14951t bsnlc
14952s/["\\]/\\&/g; s/^/"/; s/$/"/p
14953d
14954:bsnlc
14955s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14956b cont
14957' <confdefs.h | sed '
14958s/'"$ac_delim"'/"\\\
14959"/g' >>$CONFIG_STATUS || ac_write_fail=1
14960
14961cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14962 for (key in D) D_is_set[key] = 1
14963 FS = "\a"
14964}
14965/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14966 line = \$ 0
14967 split(line, arg, " ")
14968 if (arg[1] == "#") {
14969 defundef = arg[2]
14970 mac1 = arg[3]
14971 } else {
14972 defundef = substr(arg[1], 2)
14973 mac1 = arg[2]
14974 }
14975 split(mac1, mac2, "(") #)
14976 macro = mac2[1]
14977 prefix = substr(line, 1, index(line, defundef) - 1)
14978 if (D_is_set[macro]) {
14979 # Preserve the white space surrounding the "#".
14980 print prefix "define", macro P[macro] D[macro]
14981 next
14982 } else {
14983 # Replace #undef with comments. This is necessary, for example,
14984 # in the case of _POSIX_SOURCE, which is predefined and required
14985 # on some systems where configure will not decide to define it.
14986 if (defundef == "undef") {
14987 print "/*", prefix defundef, macro, "*/"
14988 next
14989 }
14990 }
14991}
14992{ print }
14993_ACAWK
b7026657 14994_ACEOF
81ecdfbb 14995cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
d0ac1c44 14996 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
81ecdfbb 14997fi # test -n "$CONFIG_HEADERS"
b7026657 14998
c906108c 14999
99d8e879 15000eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
81ecdfbb
RW
15001shift
15002for ac_tag
15003do
15004 case $ac_tag in
15005 :[FHLC]) ac_mode=$ac_tag; continue;;
15006 esac
15007 case $ac_mode$ac_tag in
15008 :[FHL]*:*);;
d0ac1c44 15009 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
81ecdfbb
RW
15010 :[FH]-) ac_tag=-:-;;
15011 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
c906108c 15012 esac
81ecdfbb
RW
15013 ac_save_IFS=$IFS
15014 IFS=:
15015 set x $ac_tag
15016 IFS=$ac_save_IFS
15017 shift
15018 ac_file=$1
15019 shift
c906108c 15020
81ecdfbb
RW
15021 case $ac_mode in
15022 :L) ac_source=$1;;
15023 :[FH])
15024 ac_file_inputs=
15025 for ac_f
15026 do
15027 case $ac_f in
d0ac1c44 15028 -) ac_f="$ac_tmp/stdin";;
81ecdfbb
RW
15029 *) # Look for the file first in the build tree, then in the source tree
15030 # (if the path is not absolute). The absolute path cannot be DOS-style,
15031 # because $ac_f cannot contain `:'.
15032 test -f "$ac_f" ||
15033 case $ac_f in
15034 [\\/$]*) false;;
15035 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15036 esac ||
d0ac1c44 15037 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
b7026657 15038 esac
81ecdfbb
RW
15039 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15040 as_fn_append ac_file_inputs " '$ac_f'"
15041 done
b7026657 15042
81ecdfbb
RW
15043 # Let's still pretend it is `configure' which instantiates (i.e., don't
15044 # use $as_me), people would be surprised to read:
15045 # /* config.h. Generated by config.status. */
15046 configure_input='Generated from '`
15047 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15048 `' by configure.'
15049 if test x"$ac_file" != x-; then
15050 configure_input="$ac_file. $configure_input"
15051 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15052$as_echo "$as_me: creating $ac_file" >&6;}
15053 fi
15054 # Neutralize special characters interpreted by sed in replacement strings.
15055 case $configure_input in #(
15056 *\&* | *\|* | *\\* )
15057 ac_sed_conf_input=`$as_echo "$configure_input" |
15058 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15059 *) ac_sed_conf_input=$configure_input;;
15060 esac
b7026657 15061
81ecdfbb 15062 case $ac_tag in
d0ac1c44
SM
15063 *:-:* | *:-) cat >"$ac_tmp/stdin" \
15064 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
81ecdfbb
RW
15065 esac
15066 ;;
15067 esac
b7026657 15068
81ecdfbb 15069 ac_dir=`$as_dirname -- "$ac_file" ||
b7026657
AC
15070$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15071 X"$ac_file" : 'X\(//\)[^/]' \| \
15072 X"$ac_file" : 'X\(//\)$' \| \
81ecdfbb
RW
15073 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15074$as_echo X"$ac_file" |
15075 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15076 s//\1/
15077 q
15078 }
15079 /^X\(\/\/\)[^/].*/{
15080 s//\1/
15081 q
15082 }
15083 /^X\(\/\/\)$/{
15084 s//\1/
15085 q
15086 }
15087 /^X\(\/\).*/{
15088 s//\1/
15089 q
15090 }
15091 s/.*/./; q'`
15092 as_dir="$ac_dir"; as_fn_mkdir_p
b7026657
AC
15093 ac_builddir=.
15094
81ecdfbb
RW
15095case "$ac_dir" in
15096.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15097*)
15098 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15099 # A ".." for each directory in $ac_dir_suffix.
15100 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15101 case $ac_top_builddir_sub in
15102 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15103 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15104 esac ;;
15105esac
15106ac_abs_top_builddir=$ac_pwd
15107ac_abs_builddir=$ac_pwd$ac_dir_suffix
15108# for backward compatibility:
15109ac_top_builddir=$ac_top_build_prefix
b7026657
AC
15110
15111case $srcdir in
81ecdfbb 15112 .) # We are building in place.
b7026657 15113 ac_srcdir=.
81ecdfbb
RW
15114 ac_top_srcdir=$ac_top_builddir_sub
15115 ac_abs_top_srcdir=$ac_pwd ;;
15116 [\\/]* | ?:[\\/]* ) # Absolute name.
b7026657 15117 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
15118 ac_top_srcdir=$srcdir
15119 ac_abs_top_srcdir=$srcdir ;;
15120 *) # Relative name.
15121 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15122 ac_top_srcdir=$ac_top_build_prefix$srcdir
15123 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
b7026657 15124esac
81ecdfbb 15125ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
b7026657 15126
c906108c 15127
81ecdfbb
RW
15128 case $ac_mode in
15129 :F)
15130 #
15131 # CONFIG_FILE
15132 #
b7026657 15133
81ecdfbb
RW
15134 case $INSTALL in
15135 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15136 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
c906108c 15137 esac
81ecdfbb 15138_ACEOF
c906108c 15139
81ecdfbb
RW
15140cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15141# If the template does not know about datarootdir, expand it.
15142# FIXME: This hack should be removed a few years after 2.60.
15143ac_datarootdir_hack=; ac_datarootdir_seen=
15144ac_sed_dataroot='
15145/datarootdir/ {
15146 p
15147 q
15148}
15149/@datadir@/p
15150/@docdir@/p
15151/@infodir@/p
15152/@localedir@/p
15153/@mandir@/p'
15154case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15155*datarootdir*) ac_datarootdir_seen=yes;;
15156*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15157 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15158$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15159_ACEOF
15160cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15161 ac_datarootdir_hack='
15162 s&@datadir@&$datadir&g
15163 s&@docdir@&$docdir&g
15164 s&@infodir@&$infodir&g
15165 s&@localedir@&$localedir&g
15166 s&@mandir@&$mandir&g
15167 s&\\\${datarootdir}&$datarootdir&g' ;;
15168esac
b7026657 15169_ACEOF
b7026657 15170
81ecdfbb
RW
15171# Neutralize VPATH when `$srcdir' = `.'.
15172# Shell code in configure.ac might set extrasub.
15173# FIXME: do we really want to maintain this feature?
15174cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15175ac_sed_extra="$ac_vpsub
15176$extrasub
15177_ACEOF
15178cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15179:t
15180/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15181s|@configure_input@|$ac_sed_conf_input|;t t
15182s&@top_builddir@&$ac_top_builddir_sub&;t t
15183s&@top_build_prefix@&$ac_top_build_prefix&;t t
15184s&@srcdir@&$ac_srcdir&;t t
15185s&@abs_srcdir@&$ac_abs_srcdir&;t t
15186s&@top_srcdir@&$ac_top_srcdir&;t t
15187s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15188s&@builddir@&$ac_builddir&;t t
15189s&@abs_builddir@&$ac_abs_builddir&;t t
15190s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15191s&@INSTALL@&$ac_INSTALL&;t t
15192$ac_datarootdir_hack
15193"
d0ac1c44
SM
15194eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15195 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
81ecdfbb
RW
15196
15197test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
d0ac1c44
SM
15198 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15199 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
15200 "$ac_tmp/out"`; test -z "$ac_out"; } &&
81ecdfbb 15201 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
d0ac1c44 15202which seems to be undefined. Please make sure it is defined" >&5
81ecdfbb 15203$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
d0ac1c44 15204which seems to be undefined. Please make sure it is defined" >&2;}
81ecdfbb 15205
d0ac1c44 15206 rm -f "$ac_tmp/stdin"
81ecdfbb 15207 case $ac_file in
d0ac1c44
SM
15208 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15209 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
81ecdfbb 15210 esac \
d0ac1c44 15211 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
81ecdfbb
RW
15212 ;;
15213 :H)
15214 #
15215 # CONFIG_HEADER
15216 #
15217 if test x"$ac_file" != x-; then
15218 {
15219 $as_echo "/* $configure_input */" \
d0ac1c44
SM
15220 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15221 } >"$ac_tmp/config.h" \
15222 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15223 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
81ecdfbb
RW
15224 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15225$as_echo "$as_me: $ac_file is unchanged" >&6;}
15226 else
15227 rm -f "$ac_file"
d0ac1c44
SM
15228 mv "$ac_tmp/config.h" "$ac_file" \
15229 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
81ecdfbb 15230 fi
b7026657 15231 else
81ecdfbb 15232 $as_echo "/* $configure_input */" \
d0ac1c44
SM
15233 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15234 || as_fn_error $? "could not create -" "$LINENO" 5
81ecdfbb
RW
15235 fi
15236 ;;
b7026657 15237
81ecdfbb
RW
15238 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15239$as_echo "$as_me: executing $ac_file commands" >&6;}
15240 ;;
15241 esac
b7026657
AC
15242
15243
81ecdfbb 15244 case $ac_file$ac_mode in
db2e4d67 15245 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
6bb11ab3
L
15246 "libtool":C)
15247
15248 # See if we are running on zsh, and set the options which allow our
15249 # commands through without removal of \ escapes.
15250 if test -n "${ZSH_VERSION+set}" ; then
15251 setopt NO_GLOB_SUBST
15252 fi
15253
15254 cfgfile="${ofile}T"
15255 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15256 $RM "$cfgfile"
15257
15258 cat <<_LT_EOF >> "$cfgfile"
15259#! $SHELL
15260
15261# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15262# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15263# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15264# NOTE: Changes made to this file will be lost: look at ltmain.sh.
15265#
15266# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15267# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
15268# Written by Gordon Matzigkeit, 1996
15269#
15270# This file is part of GNU Libtool.
15271#
15272# GNU Libtool is free software; you can redistribute it and/or
15273# modify it under the terms of the GNU General Public License as
15274# published by the Free Software Foundation; either version 2 of
15275# the License, or (at your option) any later version.
15276#
15277# As a special exception to the GNU General Public License,
15278# if you distribute this file as part of a program or library that
15279# is built using GNU Libtool, you may include this file under the
15280# same distribution terms that you use for the rest of that program.
15281#
15282# GNU Libtool is distributed in the hope that it will be useful,
15283# but WITHOUT ANY WARRANTY; without even the implied warranty of
15284# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15285# GNU General Public License for more details.
15286#
15287# You should have received a copy of the GNU General Public License
15288# along with GNU Libtool; see the file COPYING. If not, a copy
15289# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15290# obtained by writing to the Free Software Foundation, Inc.,
15291# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15292
15293
15294# The names of the tagged configurations supported by this script.
15295available_tags=""
15296
15297# ### BEGIN LIBTOOL CONFIG
15298
15299# Which release of libtool.m4 was used?
15300macro_version=$macro_version
15301macro_revision=$macro_revision
15302
15303# Whether or not to build shared libraries.
15304build_libtool_libs=$enable_shared
15305
15306# Whether or not to build static libraries.
15307build_old_libs=$enable_static
15308
15309# What type of objects to build.
15310pic_mode=$pic_mode
15311
15312# Whether or not to optimize for fast installation.
15313fast_install=$enable_fast_install
15314
15315# Shell to use when invoking shell scripts.
15316SHELL=$lt_SHELL
15317
15318# An echo program that protects backslashes.
15319ECHO=$lt_ECHO
15320
15321# The host system.
15322host_alias=$host_alias
15323host=$host
15324host_os=$host_os
15325
15326# The build system.
15327build_alias=$build_alias
15328build=$build
15329build_os=$build_os
15330
15331# A sed program that does not truncate output.
15332SED=$lt_SED
15333
15334# Sed that helps us avoid accidentally triggering echo(1) options like -n.
15335Xsed="\$SED -e 1s/^X//"
15336
15337# A grep program that handles long lines.
15338GREP=$lt_GREP
15339
15340# An ERE matcher.
15341EGREP=$lt_EGREP
15342
15343# A literal string matcher.
15344FGREP=$lt_FGREP
15345
15346# A BSD- or MS-compatible name lister.
15347NM=$lt_NM
15348
15349# Whether we need soft or hard links.
15350LN_S=$lt_LN_S
15351
15352# What is the maximum length of a command?
15353max_cmd_len=$max_cmd_len
15354
15355# Object file suffix (normally "o").
15356objext=$ac_objext
15357
15358# Executable file suffix (normally "").
15359exeext=$exeext
15360
15361# whether the shell understands "unset".
15362lt_unset=$lt_unset
15363
15364# turn spaces into newlines.
15365SP2NL=$lt_lt_SP2NL
15366
15367# turn newlines into spaces.
15368NL2SP=$lt_lt_NL2SP
15369
15370# An object symbol dumper.
15371OBJDUMP=$lt_OBJDUMP
15372
15373# Method to check whether dependent libraries are shared objects.
15374deplibs_check_method=$lt_deplibs_check_method
15375
15376# Command to use when deplibs_check_method == "file_magic".
15377file_magic_cmd=$lt_file_magic_cmd
15378
15379# The archiver.
15380AR=$lt_AR
15381AR_FLAGS=$lt_AR_FLAGS
15382
15383# A symbol stripping program.
15384STRIP=$lt_STRIP
15385
15386# Commands used to install an old-style archive.
15387RANLIB=$lt_RANLIB
15388old_postinstall_cmds=$lt_old_postinstall_cmds
15389old_postuninstall_cmds=$lt_old_postuninstall_cmds
15390
15391# Whether to use a lock for old archive extraction.
15392lock_old_archive_extraction=$lock_old_archive_extraction
15393
15394# A C compiler.
15395LTCC=$lt_CC
15396
15397# LTCC compiler flags.
15398LTCFLAGS=$lt_CFLAGS
15399
15400# Take the output of nm and produce a listing of raw symbols and C names.
15401global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15402
15403# Transform the output of nm in a proper C declaration.
15404global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15405
15406# Transform the output of nm in a C name address pair.
15407global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15408
15409# Transform the output of nm in a C name address pair when lib prefix is needed.
15410global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15411
15412# The name of the directory that contains temporary libtool files.
15413objdir=$objdir
15414
15415# Used to examine libraries when file_magic_cmd begins with "file".
15416MAGIC_CMD=$MAGIC_CMD
15417
15418# Must we lock files when doing compilation?
15419need_locks=$lt_need_locks
15420
15421# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15422DSYMUTIL=$lt_DSYMUTIL
15423
15424# Tool to change global to local symbols on Mac OS X.
15425NMEDIT=$lt_NMEDIT
15426
15427# Tool to manipulate fat objects and archives on Mac OS X.
15428LIPO=$lt_LIPO
15429
15430# ldd/readelf like tool for Mach-O binaries on Mac OS X.
15431OTOOL=$lt_OTOOL
15432
15433# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15434OTOOL64=$lt_OTOOL64
15435
15436# Old archive suffix (normally "a").
15437libext=$libext
15438
15439# Shared library suffix (normally ".so").
15440shrext_cmds=$lt_shrext_cmds
15441
15442# The commands to extract the exported symbol list from a shared archive.
15443extract_expsyms_cmds=$lt_extract_expsyms_cmds
15444
15445# Variables whose values should be saved in libtool wrapper scripts and
15446# restored at link time.
15447variables_saved_for_relink=$lt_variables_saved_for_relink
15448
15449# Do we need the "lib" prefix for modules?
15450need_lib_prefix=$need_lib_prefix
15451
15452# Do we need a version for libraries?
15453need_version=$need_version
15454
15455# Library versioning type.
15456version_type=$version_type
15457
15458# Shared library runtime path variable.
15459runpath_var=$runpath_var
15460
15461# Shared library path variable.
15462shlibpath_var=$shlibpath_var
15463
15464# Is shlibpath searched before the hard-coded library search path?
15465shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15466
15467# Format of library name prefix.
15468libname_spec=$lt_libname_spec
15469
15470# List of archive names. First name is the real one, the rest are links.
15471# The last name is the one that the linker finds with -lNAME
15472library_names_spec=$lt_library_names_spec
15473
15474# The coded name of the library, if different from the real name.
15475soname_spec=$lt_soname_spec
15476
15477# Permission mode override for installation of shared libraries.
15478install_override_mode=$lt_install_override_mode
15479
15480# Command to use after installation of a shared archive.
15481postinstall_cmds=$lt_postinstall_cmds
15482
15483# Command to use after uninstallation of a shared archive.
15484postuninstall_cmds=$lt_postuninstall_cmds
15485
15486# Commands used to finish a libtool library installation in a directory.
15487finish_cmds=$lt_finish_cmds
15488
15489# As "finish_cmds", except a single script fragment to be evaled but
15490# not shown.
15491finish_eval=$lt_finish_eval
15492
15493# Whether we should hardcode library paths into libraries.
15494hardcode_into_libs=$hardcode_into_libs
15495
15496# Compile-time system search path for libraries.
15497sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15498
15499# Run-time system search path for libraries.
15500sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15501
15502# Whether dlopen is supported.
15503dlopen_support=$enable_dlopen
15504
15505# Whether dlopen of programs is supported.
15506dlopen_self=$enable_dlopen_self
15507
15508# Whether dlopen of statically linked programs is supported.
15509dlopen_self_static=$enable_dlopen_self_static
15510
15511# Commands to strip libraries.
15512old_striplib=$lt_old_striplib
15513striplib=$lt_striplib
15514
15515
15516# The linker used to build libraries.
15517LD=$lt_LD
15518
15519# How to create reloadable object files.
15520reload_flag=$lt_reload_flag
15521reload_cmds=$lt_reload_cmds
15522
15523# Commands used to build an old-style archive.
15524old_archive_cmds=$lt_old_archive_cmds
15525
15526# A language specific compiler.
15527CC=$lt_compiler
15528
15529# Is the compiler the GNU compiler?
15530with_gcc=$GCC
15531
15532# Compiler flag to turn off builtin functions.
15533no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15534
15535# How to pass a linker flag through the compiler.
15536wl=$lt_lt_prog_compiler_wl
15537
15538# Additional compiler flags for building library objects.
15539pic_flag=$lt_lt_prog_compiler_pic
15540
15541# Compiler flag to prevent dynamic linking.
15542link_static_flag=$lt_lt_prog_compiler_static
15543
15544# Does compiler simultaneously support -c and -o options?
15545compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15546
15547# Whether or not to add -lc for building shared libraries.
15548build_libtool_need_lc=$archive_cmds_need_lc
15549
15550# Whether or not to disallow shared libs when runtime libs are static.
15551allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15552
15553# Compiler flag to allow reflexive dlopens.
15554export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15555
15556# Compiler flag to generate shared objects directly from archives.
15557whole_archive_flag_spec=$lt_whole_archive_flag_spec
15558
15559# Whether the compiler copes with passing no objects directly.
15560compiler_needs_object=$lt_compiler_needs_object
15561
15562# Create an old-style archive from a shared archive.
15563old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15564
15565# Create a temporary old-style archive to link instead of a shared archive.
15566old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15567
15568# Commands used to build a shared archive.
15569archive_cmds=$lt_archive_cmds
15570archive_expsym_cmds=$lt_archive_expsym_cmds
15571
15572# Commands used to build a loadable module if different from building
15573# a shared archive.
15574module_cmds=$lt_module_cmds
15575module_expsym_cmds=$lt_module_expsym_cmds
15576
15577# Whether we are building with GNU ld or not.
15578with_gnu_ld=$lt_with_gnu_ld
15579
15580# Flag that allows shared libraries with undefined symbols to be built.
15581allow_undefined_flag=$lt_allow_undefined_flag
15582
15583# Flag that enforces no undefined symbols.
15584no_undefined_flag=$lt_no_undefined_flag
15585
15586# Flag to hardcode \$libdir into a binary during linking.
15587# This must work even if \$libdir does not exist
15588hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15589
15590# If ld is used when linking, flag to hardcode \$libdir into a binary
15591# during linking. This must work even if \$libdir does not exist.
15592hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15593
15594# Whether we need a single "-rpath" flag with a separated argument.
15595hardcode_libdir_separator=$lt_hardcode_libdir_separator
15596
15597# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15598# DIR into the resulting binary.
15599hardcode_direct=$hardcode_direct
15600
15601# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15602# DIR into the resulting binary and the resulting library dependency is
15603# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15604# library is relocated.
15605hardcode_direct_absolute=$hardcode_direct_absolute
15606
15607# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15608# into the resulting binary.
15609hardcode_minus_L=$hardcode_minus_L
15610
15611# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15612# into the resulting binary.
15613hardcode_shlibpath_var=$hardcode_shlibpath_var
15614
15615# Set to "yes" if building a shared library automatically hardcodes DIR
15616# into the library and all subsequent libraries and executables linked
15617# against it.
15618hardcode_automatic=$hardcode_automatic
15619
15620# Set to yes if linker adds runtime paths of dependent libraries
15621# to runtime path list.
15622inherit_rpath=$inherit_rpath
15623
15624# Whether libtool must link a program against all its dependency libraries.
15625link_all_deplibs=$link_all_deplibs
15626
15627# Fix the shell variable \$srcfile for the compiler.
15628fix_srcfile_path=$lt_fix_srcfile_path
15629
15630# Set to "yes" if exported symbols are required.
15631always_export_symbols=$always_export_symbols
15632
15633# The commands to list exported symbols.
15634export_symbols_cmds=$lt_export_symbols_cmds
15635
15636# Symbols that should not be listed in the preloaded symbols.
15637exclude_expsyms=$lt_exclude_expsyms
15638
15639# Symbols that must always be exported.
15640include_expsyms=$lt_include_expsyms
15641
15642# Commands necessary for linking programs (against libraries) with templates.
15643prelink_cmds=$lt_prelink_cmds
15644
15645# Specify filename containing input files.
15646file_list_spec=$lt_file_list_spec
15647
15648# How to hardcode a shared library path into an executable.
15649hardcode_action=$hardcode_action
15650
15651# ### END LIBTOOL CONFIG
15652
15653_LT_EOF
15654
15655 case $host_os in
15656 aix3*)
15657 cat <<\_LT_EOF >> "$cfgfile"
15658# AIX sometimes has problems with the GCC collect2 program. For some
15659# reason, if we set the COLLECT_NAMES environment variable, the problems
15660# vanish in a puff of smoke.
15661if test "X${COLLECT_NAMES+set}" != Xset; then
15662 COLLECT_NAMES=
15663 export COLLECT_NAMES
15664fi
15665_LT_EOF
15666 ;;
15667 esac
15668
15669
15670ltmain="$ac_aux_dir/ltmain.sh"
15671
15672
15673 # We use sed instead of cat because bash on DJGPP gets confused if
15674 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15675 # text mode, it properly converts lines to CR/LF. This bash problem
15676 # is reportedly fixed, but why not run on old versions too?
15677 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
15678 || (rm -f "$cfgfile"; exit 1)
15679
15680 case $xsi_shell in
15681 yes)
15682 cat << \_LT_EOF >> "$cfgfile"
15683
15684# func_dirname file append nondir_replacement
15685# Compute the dirname of FILE. If nonempty, add APPEND to the result,
15686# otherwise set result to NONDIR_REPLACEMENT.
15687func_dirname ()
15688{
15689 case ${1} in
15690 */*) func_dirname_result="${1%/*}${2}" ;;
15691 * ) func_dirname_result="${3}" ;;
15692 esac
15693}
15694
15695# func_basename file
15696func_basename ()
15697{
15698 func_basename_result="${1##*/}"
15699}
15700
15701# func_dirname_and_basename file append nondir_replacement
15702# perform func_basename and func_dirname in a single function
15703# call:
15704# dirname: Compute the dirname of FILE. If nonempty,
15705# add APPEND to the result, otherwise set result
15706# to NONDIR_REPLACEMENT.
15707# value returned in "$func_dirname_result"
15708# basename: Compute filename of FILE.
15709# value retuned in "$func_basename_result"
15710# Implementation must be kept synchronized with func_dirname
15711# and func_basename. For efficiency, we do not delegate to
15712# those functions but instead duplicate the functionality here.
15713func_dirname_and_basename ()
15714{
15715 case ${1} in
15716 */*) func_dirname_result="${1%/*}${2}" ;;
15717 * ) func_dirname_result="${3}" ;;
15718 esac
15719 func_basename_result="${1##*/}"
15720}
15721
15722# func_stripname prefix suffix name
15723# strip PREFIX and SUFFIX off of NAME.
15724# PREFIX and SUFFIX must not contain globbing or regex special
15725# characters, hashes, percent signs, but SUFFIX may contain a leading
15726# dot (in which case that matches only a dot).
15727func_stripname ()
15728{
15729 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
15730 # positional parameters, so assign one to ordinary parameter first.
15731 func_stripname_result=${3}
15732 func_stripname_result=${func_stripname_result#"${1}"}
15733 func_stripname_result=${func_stripname_result%"${2}"}
15734}
15735
15736# func_opt_split
15737func_opt_split ()
15738{
15739 func_opt_split_opt=${1%%=*}
15740 func_opt_split_arg=${1#*=}
15741}
15742
15743# func_lo2o object
15744func_lo2o ()
15745{
15746 case ${1} in
15747 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
15748 *) func_lo2o_result=${1} ;;
15749 esac
15750}
15751
15752# func_xform libobj-or-source
15753func_xform ()
15754{
15755 func_xform_result=${1%.*}.lo
15756}
15757
15758# func_arith arithmetic-term...
15759func_arith ()
15760{
15761 func_arith_result=$(( $* ))
15762}
15763
15764# func_len string
15765# STRING may not start with a hyphen.
15766func_len ()
15767{
15768 func_len_result=${#1}
15769}
15770
15771_LT_EOF
15772 ;;
15773 *) # Bourne compatible functions.
15774 cat << \_LT_EOF >> "$cfgfile"
15775
15776# func_dirname file append nondir_replacement
15777# Compute the dirname of FILE. If nonempty, add APPEND to the result,
15778# otherwise set result to NONDIR_REPLACEMENT.
15779func_dirname ()
15780{
15781 # Extract subdirectory from the argument.
15782 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
15783 if test "X$func_dirname_result" = "X${1}"; then
15784 func_dirname_result="${3}"
15785 else
15786 func_dirname_result="$func_dirname_result${2}"
15787 fi
15788}
15789
15790# func_basename file
15791func_basename ()
15792{
15793 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
15794}
15795
15796
15797# func_stripname prefix suffix name
15798# strip PREFIX and SUFFIX off of NAME.
15799# PREFIX and SUFFIX must not contain globbing or regex special
15800# characters, hashes, percent signs, but SUFFIX may contain a leading
15801# dot (in which case that matches only a dot).
15802# func_strip_suffix prefix name
15803func_stripname ()
15804{
15805 case ${2} in
15806 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
15807 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
15808 esac
15809}
15810
15811# sed scripts:
15812my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
15813my_sed_long_arg='1s/^-[^=]*=//'
15814
15815# func_opt_split
15816func_opt_split ()
15817{
15818 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
15819 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
15820}
15821
15822# func_lo2o object
15823func_lo2o ()
15824{
15825 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
15826}
15827
15828# func_xform libobj-or-source
15829func_xform ()
15830{
15831 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
15832}
15833
15834# func_arith arithmetic-term...
15835func_arith ()
15836{
15837 func_arith_result=`expr "$@"`
15838}
15839
15840# func_len string
15841# STRING may not start with a hyphen.
15842func_len ()
15843{
15844 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
15845}
15846
15847_LT_EOF
15848esac
15849
15850case $lt_shell_append in
15851 yes)
15852 cat << \_LT_EOF >> "$cfgfile"
15853
15854# func_append var value
15855# Append VALUE to the end of shell variable VAR.
15856func_append ()
15857{
15858 eval "$1+=\$2"
15859}
15860_LT_EOF
15861 ;;
15862 *)
15863 cat << \_LT_EOF >> "$cfgfile"
15864
15865# func_append var value
15866# Append VALUE to the end of shell variable VAR.
15867func_append ()
15868{
15869 eval "$1=\$$1\$2"
15870}
15871
15872_LT_EOF
15873 ;;
15874 esac
15875
15876
15877 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
15878 || (rm -f "$cfgfile"; exit 1)
15879
15880 mv -f "$cfgfile" "$ofile" ||
15881 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15882 chmod +x "$ofile"
15883
15884 ;;
81ecdfbb 15885 "Makefile":C) echo "Merging Makefile.sim+Make-common.sim into Makefile ..."
38f48d72
AC
15886 rm -f Makesim1.tmp Makesim2.tmp Makefile
15887 sed -n -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ p' <Make-common.sim >Makesim1.tmp
15888 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >Makesim2.tmp
15889 sed -e '/^## COMMON_PRE_/ r Makesim1.tmp' \
c906108c
SS
15890 -e '/^## COMMON_POST_/ r Makesim2.tmp' \
15891 <Makefile.sim >Makefile
38f48d72 15892 rm -f Makefile.sim Make-common.sim Makesim1.tmp Makesim2.tmp
b7026657 15893 ;;
81ecdfbb
RW
15894 "stamp-h":C) echo > stamp-h ;;
15895
b7026657 15896 esac
81ecdfbb 15897done # for ac_tag
c906108c 15898
b7026657 15899
81ecdfbb 15900as_fn_exit 0
b7026657 15901_ACEOF
b7026657
AC
15902ac_clean_files=$ac_clean_files_save
15903
81ecdfbb 15904test $ac_write_fail = 0 ||
d0ac1c44 15905 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
81ecdfbb 15906
b7026657
AC
15907
15908# configure is writing to config.log, and then calls config.status.
15909# config.status does its own redirection, appending to config.log.
15910# Unfortunately, on DOS this fails, as config.log is still kept open
15911# by configure, so config.status won't be able to write to it; its
15912# output is simply discarded. So we exec the FD to /dev/null,
15913# effectively closing config.log, so it can be properly (re)opened and
15914# appended to by config.status. When coming back to configure, we
15915# need to make the FD available again.
15916if test "$no_create" != yes; then
15917 ac_cs_success=:
15918 ac_config_status_args=
15919 test "$silent" = yes &&
15920 ac_config_status_args="$ac_config_status_args --quiet"
15921 exec 5>/dev/null
15922 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15923 exec 5>>config.log
15924 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15925 # would make configure fail if this is the last instruction.
d0ac1c44 15926 $ac_cs_success || as_fn_exit 1
81ecdfbb
RW
15927fi
15928if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15929 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15930$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
b7026657 15931fi
c906108c
SS
15932
15933