]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - sim/erc32/configure
sim: unify environment build settings
[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
760b3e8b 634sim_reserved_bits
760b3e8b
MF
635sim_default_model
636sim_scache
637sim_float
638sim_endian
639sim_bitsize
640sim_alignment
81ecdfbb 641cgen_breaks
2694bce9 642READLINE_CFLAGS
81ecdfbb
RW
643READLINE
644TERMCAP
645REPORT_BUGS_TEXI
646REPORT_BUGS_TO
647PKGVERSION
81ecdfbb 648MAINT
31e6ad7d
MF
649MAINTAINER_MODE_FALSE
650MAINTAINER_MODE_TRUE
6bb11ab3
L
651lt_cv_dlopen_libs
652OTOOL64
653OTOOL
654LIPO
655NMEDIT
656DSYMUTIL
657AWK
658STRIP
659OBJDUMP
660LN_S
661NM
662ac_ct_DUMPBIN
663DUMPBIN
664LD
665FGREP
666SED
667LIBTOOL
668PLUGINS_FALSE
669PLUGINS_TRUE
aadc9410
MF
670zlibinc
671zlibdir
81ecdfbb
RW
672CATOBJEXT
673GENCAT
674INSTOBJEXT
675DATADIRNAME
676CATALOGS
677POSUB
678GMSGFMT
679XGETTEXT
680INCINTL
681LIBINTL_DEP
682LIBINTL
683USE_NLS
db2e4d67
MF
684CCDEPMODE
685DEPDIR
686am__leading_dot
5f3ef9d0 687PACKAGE
46f900c0 688C_DIALECT
81ecdfbb
RW
689RANLIB
690AR
c2783492 691LDFLAGS_FOR_BUILD
c25ea03d 692CFLAGS_FOR_BUILD
aa0fca16 693RANLIB_FOR_BUILD
81ecdfbb 694CC_FOR_BUILD
aa0fca16 695AR_FOR_BUILD
81ecdfbb
RW
696INSTALL_DATA
697INSTALL_SCRIPT
698INSTALL_PROGRAM
2232061b
MF
699EGREP
700GREP
c2783492
MF
701CPP
702OBJEXT
703EXEEXT
704ac_ct_CC
705CPPFLAGS
706LDFLAGS
707CFLAGS
708CC
81ecdfbb
RW
709target_os
710target_vendor
711target_cpu
712target
713host_os
714host_vendor
715host_cpu
716host
717build_os
718build_vendor
719build_cpu
720build
81ecdfbb
RW
721target_alias
722host_alias
723build_alias
724LIBS
725ECHO_T
726ECHO_N
727ECHO_C
728DEFS
729mandir
730localedir
731libdir
732psdir
733pdfdir
734dvidir
735htmldir
736infodir
737docdir
738oldincludedir
739includedir
740localstatedir
741sharedstatedir
742sysconfdir
743datadir
744datarootdir
745libexecdir
746sbindir
747bindir
748program_transform_name
749prefix
750exec_prefix
751PACKAGE_URL
752PACKAGE_BUGREPORT
753PACKAGE_STRING
754PACKAGE_VERSION
755PACKAGE_TARNAME
756PACKAGE_NAME
757PATH_SEPARATOR
136da8cd
MF
758SHELL
759WERROR_CFLAGS
760WARN_CFLAGS
66d055c7
MF
761sim_inline
762sim_hw
763sim_hw_objs
764sim_hw_cflags'
b7026657 765ac_subst_files=''
81ecdfbb
RW
766ac_user_opts='
767enable_option_checking
aadc9410 768with_system_zlib
6bb11ab3
L
769enable_plugins
770enable_shared
771enable_static
772with_pic
773enable_fast_install
774with_gnu_ld
775enable_libtool_lock
81ecdfbb 776enable_maintainer_mode
81ecdfbb
RW
777enable_sim_debug
778enable_sim_stdio
779enable_sim_trace
780enable_sim_profile
347fe5bb 781enable_sim_inline
81ecdfbb
RW
782with_pkgversion
783with_bugurl
5c1008a4
MF
784enable_werror
785enable_build_warnings
786enable_sim_build_warnings
66d055c7 787enable_sim_hardware
81ecdfbb
RW
788'
789 ac_precious_vars='build_alias
790host_alias
791target_alias
792CC
793CFLAGS
794LDFLAGS
795LIBS
796CPPFLAGS
797CPP'
798
c906108c
SS
799
800# Initialize some variables set by options.
b7026657
AC
801ac_init_help=
802ac_init_version=false
81ecdfbb
RW
803ac_unrecognized_opts=
804ac_unrecognized_sep=
c906108c
SS
805# The variables have the same names as the options, with
806# dashes changed to underlines.
b7026657 807cache_file=/dev/null
c906108c 808exec_prefix=NONE
c906108c 809no_create=
c906108c
SS
810no_recursion=
811prefix=NONE
812program_prefix=NONE
813program_suffix=NONE
814program_transform_name=s,x,x,
815silent=
816site=
817srcdir=
c906108c
SS
818verbose=
819x_includes=NONE
820x_libraries=NONE
b7026657
AC
821
822# Installation directory options.
823# These are left unexpanded so users can "make install exec_prefix=/foo"
824# and all the variables that are supposed to be based on exec_prefix
825# by default will actually change.
826# Use braces instead of parens because sh, perl, etc. also accept them.
81ecdfbb 827# (The list follows the same order as the GNU Coding Standards.)
c906108c
SS
828bindir='${exec_prefix}/bin'
829sbindir='${exec_prefix}/sbin'
830libexecdir='${exec_prefix}/libexec'
81ecdfbb
RW
831datarootdir='${prefix}/share'
832datadir='${datarootdir}'
c906108c
SS
833sysconfdir='${prefix}/etc'
834sharedstatedir='${prefix}/com'
835localstatedir='${prefix}/var'
c906108c
SS
836includedir='${prefix}/include'
837oldincludedir='/usr/include'
81ecdfbb
RW
838docdir='${datarootdir}/doc/${PACKAGE}'
839infodir='${datarootdir}/info'
840htmldir='${docdir}'
841dvidir='${docdir}'
842pdfdir='${docdir}'
843psdir='${docdir}'
844libdir='${exec_prefix}/lib'
845localedir='${datarootdir}/locale'
846mandir='${datarootdir}/man'
c906108c 847
c906108c 848ac_prev=
81ecdfbb 849ac_dashdash=
c906108c
SS
850for ac_option
851do
c906108c
SS
852 # If the previous option needs an argument, assign it.
853 if test -n "$ac_prev"; then
81ecdfbb 854 eval $ac_prev=\$ac_option
c906108c
SS
855 ac_prev=
856 continue
857 fi
858
81ecdfbb 859 case $ac_option in
d0ac1c44
SM
860 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
861 *=) ac_optarg= ;;
862 *) ac_optarg=yes ;;
81ecdfbb 863 esac
c906108c
SS
864
865 # Accept the important Cygnus configure options, so we can diagnose typos.
866
81ecdfbb
RW
867 case $ac_dashdash$ac_option in
868 --)
869 ac_dashdash=yes ;;
c906108c
SS
870
871 -bindir | --bindir | --bindi | --bind | --bin | --bi)
872 ac_prev=bindir ;;
873 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
b7026657 874 bindir=$ac_optarg ;;
c906108c
SS
875
876 -build | --build | --buil | --bui | --bu)
b7026657 877 ac_prev=build_alias ;;
c906108c 878 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
b7026657 879 build_alias=$ac_optarg ;;
c906108c
SS
880
881 -cache-file | --cache-file | --cache-fil | --cache-fi \
882 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
883 ac_prev=cache_file ;;
884 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
885 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
b7026657
AC
886 cache_file=$ac_optarg ;;
887
888 --config-cache | -C)
889 cache_file=config.cache ;;
c906108c 890
81ecdfbb 891 -datadir | --datadir | --datadi | --datad)
c906108c 892 ac_prev=datadir ;;
81ecdfbb 893 -datadir=* | --datadir=* | --datadi=* | --datad=*)
b7026657 894 datadir=$ac_optarg ;;
c906108c 895
81ecdfbb
RW
896 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
897 | --dataroo | --dataro | --datar)
898 ac_prev=datarootdir ;;
899 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
900 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
901 datarootdir=$ac_optarg ;;
902
c906108c 903 -disable-* | --disable-*)
81ecdfbb 904 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
c906108c 905 # Reject names that are not valid shell variable names.
81ecdfbb 906 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 907 as_fn_error $? "invalid feature name: $ac_useropt"
81ecdfbb
RW
908 ac_useropt_orig=$ac_useropt
909 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
910 case $ac_user_opts in
911 *"
912"enable_$ac_useropt"
913"*) ;;
914 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
915 ac_unrecognized_sep=', ';;
916 esac
917 eval enable_$ac_useropt=no ;;
918
919 -docdir | --docdir | --docdi | --doc | --do)
920 ac_prev=docdir ;;
921 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
922 docdir=$ac_optarg ;;
923
924 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
925 ac_prev=dvidir ;;
926 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
927 dvidir=$ac_optarg ;;
c906108c
SS
928
929 -enable-* | --enable-*)
81ecdfbb 930 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
c906108c 931 # Reject names that are not valid shell variable names.
81ecdfbb 932 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 933 as_fn_error $? "invalid feature name: $ac_useropt"
81ecdfbb
RW
934 ac_useropt_orig=$ac_useropt
935 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
936 case $ac_user_opts in
937 *"
938"enable_$ac_useropt"
939"*) ;;
940 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
941 ac_unrecognized_sep=', ';;
c906108c 942 esac
81ecdfbb 943 eval enable_$ac_useropt=\$ac_optarg ;;
c906108c
SS
944
945 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
946 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
947 | --exec | --exe | --ex)
948 ac_prev=exec_prefix ;;
949 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
950 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
951 | --exec=* | --exe=* | --ex=*)
b7026657 952 exec_prefix=$ac_optarg ;;
c906108c
SS
953
954 -gas | --gas | --ga | --g)
955 # Obsolete; use --with-gas.
956 with_gas=yes ;;
957
b7026657
AC
958 -help | --help | --hel | --he | -h)
959 ac_init_help=long ;;
960 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
961 ac_init_help=recursive ;;
962 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
963 ac_init_help=short ;;
c906108c
SS
964
965 -host | --host | --hos | --ho)
b7026657 966 ac_prev=host_alias ;;
c906108c 967 -host=* | --host=* | --hos=* | --ho=*)
b7026657 968 host_alias=$ac_optarg ;;
c906108c 969
81ecdfbb
RW
970 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
971 ac_prev=htmldir ;;
972 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
973 | --ht=*)
974 htmldir=$ac_optarg ;;
975
c906108c
SS
976 -includedir | --includedir | --includedi | --included | --include \
977 | --includ | --inclu | --incl | --inc)
978 ac_prev=includedir ;;
979 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
980 | --includ=* | --inclu=* | --incl=* | --inc=*)
b7026657 981 includedir=$ac_optarg ;;
c906108c
SS
982
983 -infodir | --infodir | --infodi | --infod | --info | --inf)
984 ac_prev=infodir ;;
985 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
b7026657 986 infodir=$ac_optarg ;;
c906108c
SS
987
988 -libdir | --libdir | --libdi | --libd)
989 ac_prev=libdir ;;
990 -libdir=* | --libdir=* | --libdi=* | --libd=*)
b7026657 991 libdir=$ac_optarg ;;
c906108c
SS
992
993 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
994 | --libexe | --libex | --libe)
995 ac_prev=libexecdir ;;
996 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
997 | --libexe=* | --libex=* | --libe=*)
b7026657 998 libexecdir=$ac_optarg ;;
c906108c 999
81ecdfbb
RW
1000 -localedir | --localedir | --localedi | --localed | --locale)
1001 ac_prev=localedir ;;
1002 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1003 localedir=$ac_optarg ;;
1004
c906108c 1005 -localstatedir | --localstatedir | --localstatedi | --localstated \
81ecdfbb 1006 | --localstate | --localstat | --localsta | --localst | --locals)
c906108c
SS
1007 ac_prev=localstatedir ;;
1008 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
81ecdfbb 1009 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
b7026657 1010 localstatedir=$ac_optarg ;;
c906108c
SS
1011
1012 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1013 ac_prev=mandir ;;
1014 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
b7026657 1015 mandir=$ac_optarg ;;
c906108c
SS
1016
1017 -nfp | --nfp | --nf)
1018 # Obsolete; use --without-fp.
1019 with_fp=no ;;
1020
1021 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
b7026657 1022 | --no-cr | --no-c | -n)
c906108c
SS
1023 no_create=yes ;;
1024
1025 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1026 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1027 no_recursion=yes ;;
1028
1029 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1030 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1031 | --oldin | --oldi | --old | --ol | --o)
1032 ac_prev=oldincludedir ;;
1033 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1034 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1035 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
b7026657 1036 oldincludedir=$ac_optarg ;;
c906108c
SS
1037
1038 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1039 ac_prev=prefix ;;
1040 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
b7026657 1041 prefix=$ac_optarg ;;
c906108c
SS
1042
1043 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1044 | --program-pre | --program-pr | --program-p)
1045 ac_prev=program_prefix ;;
1046 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1047 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
b7026657 1048 program_prefix=$ac_optarg ;;
c906108c
SS
1049
1050 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1051 | --program-suf | --program-su | --program-s)
1052 ac_prev=program_suffix ;;
1053 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1054 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
b7026657 1055 program_suffix=$ac_optarg ;;
c906108c
SS
1056
1057 -program-transform-name | --program-transform-name \
1058 | --program-transform-nam | --program-transform-na \
1059 | --program-transform-n | --program-transform- \
1060 | --program-transform | --program-transfor \
1061 | --program-transfo | --program-transf \
1062 | --program-trans | --program-tran \
1063 | --progr-tra | --program-tr | --program-t)
1064 ac_prev=program_transform_name ;;
1065 -program-transform-name=* | --program-transform-name=* \
1066 | --program-transform-nam=* | --program-transform-na=* \
1067 | --program-transform-n=* | --program-transform-=* \
1068 | --program-transform=* | --program-transfor=* \
1069 | --program-transfo=* | --program-transf=* \
1070 | --program-trans=* | --program-tran=* \
1071 | --progr-tra=* | --program-tr=* | --program-t=*)
b7026657 1072 program_transform_name=$ac_optarg ;;
c906108c 1073
81ecdfbb
RW
1074 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1075 ac_prev=pdfdir ;;
1076 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1077 pdfdir=$ac_optarg ;;
1078
1079 -psdir | --psdir | --psdi | --psd | --ps)
1080 ac_prev=psdir ;;
1081 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1082 psdir=$ac_optarg ;;
1083
c906108c
SS
1084 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1085 | -silent | --silent | --silen | --sile | --sil)
1086 silent=yes ;;
1087
1088 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1089 ac_prev=sbindir ;;
1090 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1091 | --sbi=* | --sb=*)
b7026657 1092 sbindir=$ac_optarg ;;
c906108c
SS
1093
1094 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1095 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1096 | --sharedst | --shareds | --shared | --share | --shar \
1097 | --sha | --sh)
1098 ac_prev=sharedstatedir ;;
1099 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1100 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1101 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1102 | --sha=* | --sh=*)
b7026657 1103 sharedstatedir=$ac_optarg ;;
c906108c
SS
1104
1105 -site | --site | --sit)
1106 ac_prev=site ;;
1107 -site=* | --site=* | --sit=*)
b7026657 1108 site=$ac_optarg ;;
eb2d80b4 1109
c906108c
SS
1110 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1111 ac_prev=srcdir ;;
1112 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
b7026657 1113 srcdir=$ac_optarg ;;
c906108c
SS
1114
1115 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1116 | --syscon | --sysco | --sysc | --sys | --sy)
1117 ac_prev=sysconfdir ;;
1118 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1119 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
b7026657 1120 sysconfdir=$ac_optarg ;;
c906108c
SS
1121
1122 -target | --target | --targe | --targ | --tar | --ta | --t)
b7026657 1123 ac_prev=target_alias ;;
c906108c 1124 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
b7026657 1125 target_alias=$ac_optarg ;;
c906108c
SS
1126
1127 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1128 verbose=yes ;;
1129
b7026657
AC
1130 -version | --version | --versio | --versi | --vers | -V)
1131 ac_init_version=: ;;
c906108c
SS
1132
1133 -with-* | --with-*)
81ecdfbb 1134 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
c906108c 1135 # Reject names that are not valid shell variable names.
81ecdfbb 1136 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 1137 as_fn_error $? "invalid package name: $ac_useropt"
81ecdfbb
RW
1138 ac_useropt_orig=$ac_useropt
1139 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1140 case $ac_user_opts in
1141 *"
1142"with_$ac_useropt"
1143"*) ;;
1144 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1145 ac_unrecognized_sep=', ';;
c906108c 1146 esac
81ecdfbb 1147 eval with_$ac_useropt=\$ac_optarg ;;
c906108c
SS
1148
1149 -without-* | --without-*)
81ecdfbb 1150 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
c906108c 1151 # Reject names that are not valid shell variable names.
81ecdfbb 1152 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 1153 as_fn_error $? "invalid package name: $ac_useropt"
81ecdfbb
RW
1154 ac_useropt_orig=$ac_useropt
1155 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1156 case $ac_user_opts in
1157 *"
1158"with_$ac_useropt"
1159"*) ;;
1160 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1161 ac_unrecognized_sep=', ';;
1162 esac
1163 eval with_$ac_useropt=no ;;
c906108c
SS
1164
1165 --x)
1166 # Obsolete; use --with-x.
1167 with_x=yes ;;
1168
1169 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1170 | --x-incl | --x-inc | --x-in | --x-i)
1171 ac_prev=x_includes ;;
1172 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1173 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
b7026657 1174 x_includes=$ac_optarg ;;
c906108c
SS
1175
1176 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1177 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1178 ac_prev=x_libraries ;;
1179 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1180 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
b7026657 1181 x_libraries=$ac_optarg ;;
c906108c 1182
d0ac1c44
SM
1183 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1184Try \`$0 --help' for more information"
c906108c
SS
1185 ;;
1186
b7026657
AC
1187 *=*)
1188 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1189 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1190 case $ac_envvar in #(
1191 '' | [0-9]* | *[!_$as_cr_alnum]* )
d0ac1c44 1192 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
81ecdfbb
RW
1193 esac
1194 eval $ac_envvar=\$ac_optarg
b7026657
AC
1195 export $ac_envvar ;;
1196
c906108c 1197 *)
b7026657 1198 # FIXME: should be removed in autoconf 3.0.
81ecdfbb 1199 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
b7026657 1200 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
81ecdfbb 1201 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
d0ac1c44 1202 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
c906108c
SS
1203 ;;
1204
1205 esac
1206done
1207
1208if test -n "$ac_prev"; then
b7026657 1209 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
d0ac1c44 1210 as_fn_error $? "missing argument to $ac_option"
c906108c 1211fi
c906108c 1212
81ecdfbb
RW
1213if test -n "$ac_unrecognized_opts"; then
1214 case $enable_option_checking in
1215 no) ;;
d0ac1c44 1216 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
81ecdfbb 1217 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
b7026657 1218 esac
81ecdfbb 1219fi
c906108c 1220
81ecdfbb
RW
1221# Check all directory arguments for consistency.
1222for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1223 datadir sysconfdir sharedstatedir localstatedir includedir \
1224 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1225 libdir localedir mandir
c906108c 1226do
81ecdfbb
RW
1227 eval ac_val=\$$ac_var
1228 # Remove trailing slashes.
1229 case $ac_val in
1230 */ )
1231 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1232 eval $ac_var=\$ac_val;;
1233 esac
1234 # Be sure to have absolute directory names.
b7026657 1235 case $ac_val in
81ecdfbb
RW
1236 [\\/$]* | ?:[\\/]* ) continue;;
1237 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
c906108c 1238 esac
d0ac1c44 1239 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
c906108c
SS
1240done
1241
b7026657
AC
1242# There might be people who depend on the old broken behavior: `$host'
1243# used to hold the argument of --host etc.
1244# FIXME: To remove some day.
1245build=$build_alias
1246host=$host_alias
1247target=$target_alias
1248
1249# FIXME: To remove some day.
1250if test "x$host_alias" != x; then
1251 if test "x$build_alias" = x; then
1252 cross_compiling=maybe
b7026657
AC
1253 elif test "x$build_alias" != "x$host_alias"; then
1254 cross_compiling=yes
1255 fi
1256fi
c906108c 1257
b7026657
AC
1258ac_tool_prefix=
1259test -n "$host_alias" && ac_tool_prefix=$host_alias-
1260
1261test "$silent" = yes && exec 6>/dev/null
c906108c 1262
c906108c 1263
81ecdfbb
RW
1264ac_pwd=`pwd` && test -n "$ac_pwd" &&
1265ac_ls_di=`ls -di .` &&
1266ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
d0ac1c44 1267 as_fn_error $? "working directory cannot be determined"
81ecdfbb 1268test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
d0ac1c44 1269 as_fn_error $? "pwd does not report name of working directory"
81ecdfbb
RW
1270
1271
c906108c
SS
1272# Find the source files, if location was not specified.
1273if test -z "$srcdir"; then
1274 ac_srcdir_defaulted=yes
81ecdfbb
RW
1275 # Try the directory containing this script, then the parent directory.
1276 ac_confdir=`$as_dirname -- "$as_myself" ||
1277$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1278 X"$as_myself" : 'X\(//\)[^/]' \| \
1279 X"$as_myself" : 'X\(//\)$' \| \
1280 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1281$as_echo X"$as_myself" |
1282 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1283 s//\1/
1284 q
1285 }
1286 /^X\(\/\/\)[^/].*/{
1287 s//\1/
1288 q
1289 }
1290 /^X\(\/\/\)$/{
1291 s//\1/
1292 q
1293 }
1294 /^X\(\/\).*/{
1295 s//\1/
1296 q
1297 }
1298 s/.*/./; q'`
c906108c 1299 srcdir=$ac_confdir
81ecdfbb 1300 if test ! -r "$srcdir/$ac_unique_file"; then
c906108c
SS
1301 srcdir=..
1302 fi
1303else
1304 ac_srcdir_defaulted=no
1305fi
81ecdfbb
RW
1306if test ! -r "$srcdir/$ac_unique_file"; then
1307 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
d0ac1c44 1308 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
81ecdfbb
RW
1309fi
1310ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1311ac_abs_confdir=`(
d0ac1c44 1312 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
81ecdfbb
RW
1313 pwd)`
1314# When building in place, set srcdir=.
1315if test "$ac_abs_confdir" = "$ac_pwd"; then
1316 srcdir=.
1317fi
1318# Remove unnecessary trailing slashes from srcdir.
1319# Double slashes in file names in object file debugging info
1320# mess up M-x gdb in Emacs.
1321case $srcdir in
1322*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1323esac
1324for ac_var in $ac_precious_vars; do
1325 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1326 eval ac_env_${ac_var}_value=\$${ac_var}
1327 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1328 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1329done
c906108c 1330
b7026657
AC
1331#
1332# Report the --help message.
1333#
1334if test "$ac_init_help" = "long"; then
1335 # Omit some internal or obsolete options to make the list less imposing.
1336 # This message is too long to be a string in the A/UX 3.1 sh.
1337 cat <<_ACEOF
1338\`configure' configures this package to adapt to many kinds of systems.
c906108c 1339
b7026657 1340Usage: $0 [OPTION]... [VAR=VALUE]...
c906108c 1341
b7026657
AC
1342To assign environment variables (e.g., CC, CFLAGS...), specify them as
1343VAR=VALUE. See below for descriptions of some of the useful variables.
c906108c 1344
b7026657 1345Defaults for the options are specified in brackets.
c906108c 1346
b7026657
AC
1347Configuration:
1348 -h, --help display this help and exit
1349 --help=short display options specific to this package
1350 --help=recursive display the short help of all the included packages
1351 -V, --version display version information and exit
d0ac1c44 1352 -q, --quiet, --silent do not print \`checking ...' messages
b7026657
AC
1353 --cache-file=FILE cache test results in FILE [disabled]
1354 -C, --config-cache alias for \`--cache-file=config.cache'
1355 -n, --no-create do not create output files
1356 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1357
b7026657
AC
1358Installation directories:
1359 --prefix=PREFIX install architecture-independent files in PREFIX
81ecdfbb 1360 [$ac_default_prefix]
b7026657 1361 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
81ecdfbb 1362 [PREFIX]
c906108c 1363
b7026657
AC
1364By default, \`make install' will install all the files in
1365\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1366an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1367for instance \`--prefix=\$HOME'.
c906108c 1368
b7026657
AC
1369For better control, use the options below.
1370
1371Fine tuning of the installation directories:
81ecdfbb
RW
1372 --bindir=DIR user executables [EPREFIX/bin]
1373 --sbindir=DIR system admin executables [EPREFIX/sbin]
1374 --libexecdir=DIR program executables [EPREFIX/libexec]
1375 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1376 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1377 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1378 --libdir=DIR object code libraries [EPREFIX/lib]
1379 --includedir=DIR C header files [PREFIX/include]
1380 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1381 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1382 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1383 --infodir=DIR info documentation [DATAROOTDIR/info]
1384 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1385 --mandir=DIR man documentation [DATAROOTDIR/man]
1386 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1387 --htmldir=DIR html documentation [DOCDIR]
1388 --dvidir=DIR dvi documentation [DOCDIR]
1389 --pdfdir=DIR pdf documentation [DOCDIR]
1390 --psdir=DIR ps documentation [DOCDIR]
b7026657
AC
1391_ACEOF
1392
1393 cat <<\_ACEOF
1394
1395Program names:
1396 --program-prefix=PREFIX prepend PREFIX to installed program names
1397 --program-suffix=SUFFIX append SUFFIX to installed program names
1398 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1399
1400System types:
1401 --build=BUILD configure for building on BUILD [guessed]
1402 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1403 --target=TARGET configure for building compilers for TARGET [HOST]
1404_ACEOF
c906108c 1405fi
b7026657
AC
1406
1407if test -n "$ac_init_help"; then
1408
1409 cat <<\_ACEOF
1410
1411Optional Features:
81ecdfbb 1412 --disable-option-checking ignore unrecognized --enable/--with options
b7026657
AC
1413 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1414 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
faa743bb 1415 --enable-plugins Enable support for plugins
6bb11ab3
L
1416 --enable-shared[=PKGS] build shared libraries [default=yes]
1417 --enable-static[=PKGS] build static libraries [default=yes]
1418 --enable-fast-install[=PKGS]
1419 optimize for fast installation [default=yes]
1420 --disable-libtool-lock avoid locking (might break parallel builds)
d0ac1c44
SM
1421 --enable-maintainer-mode
1422 enable make rules and dependencies not useful (and
1423 sometimes confusing) to the casual installer
8d0978fb
MF
1424 --enable-sim-debug=opts Enable debugging flags (for developers of the sim
1425 itself)
1426 --enable-sim-stdio Specify whether to use stdio for console
1427 input/output
1428 --enable-sim-trace=opts Enable tracing of simulated programs
1429 --enable-sim-profile=opts
1430 Enable profiling flags
347fe5bb
MF
1431 --enable-sim-inline=inlines
1432 Specify which functions should be inlined
5c1008a4
MF
1433 --enable-werror treat compile warnings as errors
1434 --enable-build-warnings enable build-time compiler warnings if gcc is used
1435 --enable-sim-build-warnings
1436 enable SIM specific build-time compiler warnings if
1437 gcc is used
66d055c7
MF
1438 --enable-sim-hardware=LIST
1439 Specify the hardware to be included in the build.
b7026657 1440
6efef468
JM
1441Optional Packages:
1442 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1443 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
aadc9410 1444 --with-system-zlib use installed libz
6bb11ab3
L
1445 --with-pic try to use only PIC/non-PIC objects [default=use
1446 both]
1447 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
bf12d44e 1448 --with-pkgversion=PKG Use PKG in the version string in place of "SIM"
6efef468
JM
1449 --with-bugurl=URL Direct users to URL to report a bug
1450
b7026657
AC
1451Some influential environment variables:
1452 CC C compiler command
1453 CFLAGS C compiler flags
1454 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1455 nonstandard directory <lib dir>
81ecdfbb 1456 LIBS libraries to pass to the linker, e.g. -l<library>
d0ac1c44 1457 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
81ecdfbb 1458 you have headers in a nonstandard directory <include dir>
b7026657
AC
1459 CPP C preprocessor
1460
1461Use these variables to override the choices made by `configure' or to help
1462it to find libraries and programs with nonstandard names/locations.
1463
81ecdfbb 1464Report bugs to the package provider.
b7026657 1465_ACEOF
81ecdfbb 1466ac_status=$?
c906108c
SS
1467fi
1468
b7026657
AC
1469if test "$ac_init_help" = "recursive"; then
1470 # If there are subdirs, report their specific --help.
b7026657 1471 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
81ecdfbb
RW
1472 test -d "$ac_dir" ||
1473 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1474 continue
b7026657 1475 ac_builddir=.
c906108c 1476
81ecdfbb
RW
1477case "$ac_dir" in
1478.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1479*)
1480 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1481 # A ".." for each directory in $ac_dir_suffix.
1482 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1483 case $ac_top_builddir_sub in
1484 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1485 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1486 esac ;;
1487esac
1488ac_abs_top_builddir=$ac_pwd
1489ac_abs_builddir=$ac_pwd$ac_dir_suffix
1490# for backward compatibility:
1491ac_top_builddir=$ac_top_build_prefix
c906108c 1492
b7026657 1493case $srcdir in
81ecdfbb 1494 .) # We are building in place.
b7026657 1495 ac_srcdir=.
81ecdfbb
RW
1496 ac_top_srcdir=$ac_top_builddir_sub
1497 ac_abs_top_srcdir=$ac_pwd ;;
1498 [\\/]* | ?:[\\/]* ) # Absolute name.
b7026657 1499 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
1500 ac_top_srcdir=$srcdir
1501 ac_abs_top_srcdir=$srcdir ;;
1502 *) # Relative name.
1503 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1504 ac_top_srcdir=$ac_top_build_prefix$srcdir
1505 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
b7026657 1506esac
81ecdfbb
RW
1507ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1508
1509 cd "$ac_dir" || { ac_status=$?; continue; }
1510 # Check for guested configure.
1511 if test -f "$ac_srcdir/configure.gnu"; then
1512 echo &&
1513 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1514 elif test -f "$ac_srcdir/configure"; then
1515 echo &&
1516 $SHELL "$ac_srcdir/configure" --help=recursive
b7026657 1517 else
81ecdfbb
RW
1518 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1519 fi || ac_status=$?
1520 cd "$ac_pwd" || { ac_status=$?; break; }
b7026657
AC
1521 done
1522fi
1523
81ecdfbb 1524test -n "$ac_init_help" && exit $ac_status
b7026657
AC
1525if $ac_init_version; then
1526 cat <<\_ACEOF
81ecdfbb 1527configure
d0ac1c44 1528generated by GNU Autoconf 2.69
b7026657 1529
d0ac1c44 1530Copyright (C) 2012 Free Software Foundation, Inc.
b7026657
AC
1531This configure script is free software; the Free Software Foundation
1532gives unlimited permission to copy, distribute and modify it.
1533_ACEOF
81ecdfbb 1534 exit
b7026657 1535fi
b7026657 1536
81ecdfbb
RW
1537## ------------------------ ##
1538## Autoconf initialization. ##
1539## ------------------------ ##
b7026657 1540
81ecdfbb
RW
1541# ac_fn_c_try_compile LINENO
1542# --------------------------
1543# Try to compile conftest.$ac_ext, and return whether this succeeded.
1544ac_fn_c_try_compile ()
b7026657 1545{
81ecdfbb
RW
1546 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1547 rm -f conftest.$ac_objext
1548 if { { ac_try="$ac_compile"
1549case "(($ac_try" in
1550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1551 *) ac_try_echo=$ac_try;;
1552esac
1553eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1554$as_echo "$ac_try_echo"; } >&5
1555 (eval "$ac_compile") 2>conftest.err
1556 ac_status=$?
1557 if test -s conftest.err; then
1558 grep -v '^ *+' conftest.err >conftest.er1
1559 cat conftest.er1 >&5
1560 mv -f conftest.er1 conftest.err
1561 fi
1562 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1563 test $ac_status = 0; } && {
1564 test -z "$ac_c_werror_flag" ||
1565 test ! -s conftest.err
1566 } && test -s conftest.$ac_objext; then :
1567 ac_retval=0
1568else
1569 $as_echo "$as_me: failed program was:" >&5
1570sed 's/^/| /' conftest.$ac_ext >&5
b7026657 1571
81ecdfbb
RW
1572 ac_retval=1
1573fi
d0ac1c44
SM
1574 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1575 as_fn_set_status $ac_retval
b7026657 1576
81ecdfbb 1577} # ac_fn_c_try_compile
b7026657 1578
81ecdfbb
RW
1579# ac_fn_c_try_cpp LINENO
1580# ----------------------
1581# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1582ac_fn_c_try_cpp ()
1583{
1584 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1585 if { { ac_try="$ac_cpp conftest.$ac_ext"
1586case "(($ac_try" in
1587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1588 *) ac_try_echo=$ac_try;;
1589esac
1590eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1591$as_echo "$ac_try_echo"; } >&5
1592 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1593 ac_status=$?
1594 if test -s conftest.err; then
1595 grep -v '^ *+' conftest.err >conftest.er1
1596 cat conftest.er1 >&5
1597 mv -f conftest.er1 conftest.err
1598 fi
1599 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
d0ac1c44 1600 test $ac_status = 0; } > conftest.i && {
81ecdfbb
RW
1601 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1602 test ! -s conftest.err
1603 }; then :
1604 ac_retval=0
1605else
1606 $as_echo "$as_me: failed program was:" >&5
1607sed 's/^/| /' conftest.$ac_ext >&5
b7026657 1608
81ecdfbb
RW
1609 ac_retval=1
1610fi
d0ac1c44
SM
1611 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1612 as_fn_set_status $ac_retval
b7026657 1613
81ecdfbb 1614} # ac_fn_c_try_cpp
b7026657 1615
81ecdfbb
RW
1616# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1617# -------------------------------------------------------
1618# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1619# the include files in INCLUDES and setting the cache variable VAR
1620# accordingly.
1621ac_fn_c_check_header_mongrel ()
1622{
1623 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
d0ac1c44 1624 if eval \${$3+:} false; then :
81ecdfbb
RW
1625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1626$as_echo_n "checking for $2... " >&6; }
d0ac1c44 1627if eval \${$3+:} false; then :
81ecdfbb
RW
1628 $as_echo_n "(cached) " >&6
1629fi
1630eval ac_res=\$$3
1631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1632$as_echo "$ac_res" >&6; }
1633else
1634 # Is the header compilable?
1635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1636$as_echo_n "checking $2 usability... " >&6; }
1637cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1638/* end confdefs.h. */
1639$4
1640#include <$2>
1641_ACEOF
1642if ac_fn_c_try_compile "$LINENO"; then :
1643 ac_header_compiler=yes
1644else
1645 ac_header_compiler=no
1646fi
1647rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1649$as_echo "$ac_header_compiler" >&6; }
1650
1651# Is the header present?
1652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1653$as_echo_n "checking $2 presence... " >&6; }
1654cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1655/* end confdefs.h. */
1656#include <$2>
1657_ACEOF
1658if ac_fn_c_try_cpp "$LINENO"; then :
1659 ac_header_preproc=yes
1660else
1661 ac_header_preproc=no
1662fi
d0ac1c44 1663rm -f conftest.err conftest.i conftest.$ac_ext
81ecdfbb
RW
1664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1665$as_echo "$ac_header_preproc" >&6; }
1666
1667# So? What about this header?
1668case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1669 yes:no: )
1670 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1671$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1672 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1673$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1674 ;;
1675 no:yes:* )
1676 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1677$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1678 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1679$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1680 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1681$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1682 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1683$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1684 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1685$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1686 ;;
1687esac
1688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1689$as_echo_n "checking for $2... " >&6; }
d0ac1c44 1690if eval \${$3+:} false; then :
81ecdfbb
RW
1691 $as_echo_n "(cached) " >&6
1692else
1693 eval "$3=\$ac_header_compiler"
1694fi
1695eval ac_res=\$$3
1696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1697$as_echo "$ac_res" >&6; }
1698fi
d0ac1c44 1699 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
81ecdfbb
RW
1700
1701} # ac_fn_c_check_header_mongrel
1702
1703# ac_fn_c_try_run LINENO
1704# ----------------------
1705# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1706# that executables *can* be run.
1707ac_fn_c_try_run ()
1708{
1709 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1710 if { { ac_try="$ac_link"
1711case "(($ac_try" in
1712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1713 *) ac_try_echo=$ac_try;;
1714esac
1715eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1716$as_echo "$ac_try_echo"; } >&5
1717 (eval "$ac_link") 2>&5
1718 ac_status=$?
1719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1720 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1721 { { case "(($ac_try" in
1722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1723 *) ac_try_echo=$ac_try;;
1724esac
1725eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1726$as_echo "$ac_try_echo"; } >&5
1727 (eval "$ac_try") 2>&5
1728 ac_status=$?
1729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1730 test $ac_status = 0; }; }; then :
1731 ac_retval=0
1732else
1733 $as_echo "$as_me: program exited with status $ac_status" >&5
1734 $as_echo "$as_me: failed program was:" >&5
1735sed 's/^/| /' conftest.$ac_ext >&5
1736
1737 ac_retval=$ac_status
1738fi
1739 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
d0ac1c44
SM
1740 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1741 as_fn_set_status $ac_retval
81ecdfbb
RW
1742
1743} # ac_fn_c_try_run
1744
1745# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1746# -------------------------------------------------------
1747# Tests whether HEADER exists and can be compiled using the include files in
1748# INCLUDES, setting the cache variable VAR accordingly.
1749ac_fn_c_check_header_compile ()
1750{
1751 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1753$as_echo_n "checking for $2... " >&6; }
d0ac1c44 1754if eval \${$3+:} false; then :
81ecdfbb
RW
1755 $as_echo_n "(cached) " >&6
1756else
1757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1758/* end confdefs.h. */
1759$4
1760#include <$2>
1761_ACEOF
1762if ac_fn_c_try_compile "$LINENO"; then :
1763 eval "$3=yes"
1764else
1765 eval "$3=no"
1766fi
1767rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1768fi
1769eval ac_res=\$$3
1770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1771$as_echo "$ac_res" >&6; }
d0ac1c44 1772 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
81ecdfbb
RW
1773
1774} # ac_fn_c_check_header_compile
1775
1776# ac_fn_c_try_link LINENO
1777# -----------------------
1778# Try to link conftest.$ac_ext, and return whether this succeeded.
1779ac_fn_c_try_link ()
1780{
1781 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1782 rm -f conftest.$ac_objext conftest$ac_exeext
1783 if { { ac_try="$ac_link"
1784case "(($ac_try" in
1785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1786 *) ac_try_echo=$ac_try;;
1787esac
1788eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1789$as_echo "$ac_try_echo"; } >&5
1790 (eval "$ac_link") 2>conftest.err
1791 ac_status=$?
1792 if test -s conftest.err; then
1793 grep -v '^ *+' conftest.err >conftest.er1
1794 cat conftest.er1 >&5
1795 mv -f conftest.er1 conftest.err
1796 fi
1797 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1798 test $ac_status = 0; } && {
1799 test -z "$ac_c_werror_flag" ||
1800 test ! -s conftest.err
1801 } && test -s conftest$ac_exeext && {
1802 test "$cross_compiling" = yes ||
d0ac1c44 1803 test -x conftest$ac_exeext
81ecdfbb
RW
1804 }; then :
1805 ac_retval=0
1806else
1807 $as_echo "$as_me: failed program was:" >&5
1808sed 's/^/| /' conftest.$ac_ext >&5
1809
1810 ac_retval=1
1811fi
1812 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1813 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1814 # interfere with the next link command; also delete a directory that is
1815 # left behind by Apple's compiler. We do this before executing the actions.
1816 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
d0ac1c44
SM
1817 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1818 as_fn_set_status $ac_retval
81ecdfbb
RW
1819
1820} # ac_fn_c_try_link
1821
1822# ac_fn_c_check_func LINENO FUNC VAR
1823# ----------------------------------
1824# Tests whether FUNC exists, setting the cache variable VAR accordingly
1825ac_fn_c_check_func ()
1826{
1827 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1829$as_echo_n "checking for $2... " >&6; }
d0ac1c44 1830if eval \${$3+:} false; then :
81ecdfbb
RW
1831 $as_echo_n "(cached) " >&6
1832else
1833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1834/* end confdefs.h. */
1835/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1836 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1837#define $2 innocuous_$2
1838
1839/* System header to define __stub macros and hopefully few prototypes,
1840 which can conflict with char $2 (); below.
1841 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1842 <limits.h> exists even on freestanding compilers. */
1843
1844#ifdef __STDC__
1845# include <limits.h>
1846#else
1847# include <assert.h>
1848#endif
1849
1850#undef $2
1851
1852/* Override any GCC internal prototype to avoid an error.
1853 Use char because int might match the return type of a GCC
1854 builtin and then its argument prototype would still apply. */
1855#ifdef __cplusplus
1856extern "C"
1857#endif
1858char $2 ();
1859/* The GNU C library defines this for functions which it implements
1860 to always fail with ENOSYS. Some functions are actually named
1861 something starting with __ and the normal name is an alias. */
1862#if defined __stub_$2 || defined __stub___$2
1863choke me
1864#endif
1865
1866int
1867main ()
1868{
1869return $2 ();
1870 ;
1871 return 0;
1872}
1873_ACEOF
1874if ac_fn_c_try_link "$LINENO"; then :
1875 eval "$3=yes"
1876else
1877 eval "$3=no"
1878fi
1879rm -f core conftest.err conftest.$ac_objext \
1880 conftest$ac_exeext conftest.$ac_ext
1881fi
1882eval ac_res=\$$3
1883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1884$as_echo "$ac_res" >&6; }
d0ac1c44 1885 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
81ecdfbb
RW
1886
1887} # ac_fn_c_check_func
1888cat >config.log <<_ACEOF
1889This file contains any messages produced by compilers while
1890running configure, to aid debugging if configure makes a mistake.
1891
1892It was created by $as_me, which was
d0ac1c44 1893generated by GNU Autoconf 2.69. Invocation command line was
81ecdfbb
RW
1894
1895 $ $0 $@
1896
1897_ACEOF
1898exec 5>>config.log
1899{
1900cat <<_ASUNAME
1901## --------- ##
1902## Platform. ##
1903## --------- ##
1904
1905hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1906uname -m = `(uname -m) 2>/dev/null || echo unknown`
1907uname -r = `(uname -r) 2>/dev/null || echo unknown`
1908uname -s = `(uname -s) 2>/dev/null || echo unknown`
1909uname -v = `(uname -v) 2>/dev/null || echo unknown`
1910
1911/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1912/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1913
1914/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1915/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1916/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1917/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1918/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1919/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1920/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1921
1922_ASUNAME
1923
1924as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1925for as_dir in $PATH
1926do
1927 IFS=$as_save_IFS
1928 test -z "$as_dir" && as_dir=.
1929 $as_echo "PATH: $as_dir"
1930 done
1931IFS=$as_save_IFS
1932
1933} >&5
1934
1935cat >&5 <<_ACEOF
b7026657
AC
1936
1937
1938## ----------- ##
1939## Core tests. ##
1940## ----------- ##
1941
1942_ACEOF
1943
1944
1945# Keep a trace of the command line.
1946# Strip out --no-create and --no-recursion so they do not pile up.
1947# Strip out --silent because we don't want to record it for future runs.
1948# Also quote any args containing shell meta-characters.
1949# Make two passes to allow for proper duplicate-argument suppression.
1950ac_configure_args=
1951ac_configure_args0=
1952ac_configure_args1=
b7026657
AC
1953ac_must_keep_next=false
1954for ac_pass in 1 2
1955do
1956 for ac_arg
1957 do
1958 case $ac_arg in
1959 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1960 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1961 | -silent | --silent | --silen | --sile | --sil)
1962 continue ;;
81ecdfbb
RW
1963 *\'*)
1964 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
b7026657
AC
1965 esac
1966 case $ac_pass in
81ecdfbb 1967 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
b7026657 1968 2)
81ecdfbb 1969 as_fn_append ac_configure_args1 " '$ac_arg'"
b7026657
AC
1970 if test $ac_must_keep_next = true; then
1971 ac_must_keep_next=false # Got value, back to normal.
1972 else
1973 case $ac_arg in
1974 *=* | --config-cache | -C | -disable-* | --disable-* \
1975 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1976 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1977 | -with-* | --with-* | -without-* | --without-* | --x)
1978 case "$ac_configure_args0 " in
1979 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1980 esac
1981 ;;
1982 -* ) ac_must_keep_next=true ;;
1983 esac
1984 fi
81ecdfbb 1985 as_fn_append ac_configure_args " '$ac_arg'"
b7026657
AC
1986 ;;
1987 esac
1988 done
1989done
81ecdfbb
RW
1990{ ac_configure_args0=; unset ac_configure_args0;}
1991{ ac_configure_args1=; unset ac_configure_args1;}
b7026657
AC
1992
1993# When interrupted or exit'd, cleanup temporary files, and complete
1994# config.log. We remove comments because anyway the quotes in there
1995# would cause problems or look ugly.
81ecdfbb
RW
1996# WARNING: Use '\'' to represent an apostrophe within the trap.
1997# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
b7026657
AC
1998trap 'exit_status=$?
1999 # Save into config.log some information that might help in debugging.
2000 {
2001 echo
2002
d0ac1c44 2003 $as_echo "## ---------------- ##
b7026657 2004## Cache variables. ##
d0ac1c44 2005## ---------------- ##"
b7026657
AC
2006 echo
2007 # The following way of writing the cache mishandles newlines in values,
81ecdfbb
RW
2008(
2009 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2010 eval ac_val=\$$ac_var
2011 case $ac_val in #(
2012 *${as_nl}*)
2013 case $ac_var in #(
2014 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2015$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2016 esac
2017 case $ac_var in #(
2018 _ | IFS | as_nl) ;; #(
2019 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2020 *) { eval $ac_var=; unset $ac_var;} ;;
2021 esac ;;
2022 esac
2023 done
b7026657 2024 (set) 2>&1 |
81ecdfbb
RW
2025 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2026 *${as_nl}ac_space=\ *)
b7026657 2027 sed -n \
81ecdfbb
RW
2028 "s/'\''/'\''\\\\'\'''\''/g;
2029 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2030 ;; #(
b7026657 2031 *)
81ecdfbb 2032 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
b7026657 2033 ;;
81ecdfbb
RW
2034 esac |
2035 sort
2036)
b7026657
AC
2037 echo
2038
d0ac1c44 2039 $as_echo "## ----------------- ##
b7026657 2040## Output variables. ##
d0ac1c44 2041## ----------------- ##"
b7026657
AC
2042 echo
2043 for ac_var in $ac_subst_vars
2044 do
81ecdfbb
RW
2045 eval ac_val=\$$ac_var
2046 case $ac_val in
2047 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2048 esac
2049 $as_echo "$ac_var='\''$ac_val'\''"
b7026657
AC
2050 done | sort
2051 echo
2052
2053 if test -n "$ac_subst_files"; then
d0ac1c44 2054 $as_echo "## ------------------- ##
81ecdfbb 2055## File substitutions. ##
d0ac1c44 2056## ------------------- ##"
b7026657
AC
2057 echo
2058 for ac_var in $ac_subst_files
2059 do
81ecdfbb
RW
2060 eval ac_val=\$$ac_var
2061 case $ac_val in
2062 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2063 esac
2064 $as_echo "$ac_var='\''$ac_val'\''"
b7026657
AC
2065 done | sort
2066 echo
2067 fi
2068
2069 if test -s confdefs.h; then
d0ac1c44 2070 $as_echo "## ----------- ##
b7026657 2071## confdefs.h. ##
d0ac1c44 2072## ----------- ##"
b7026657 2073 echo
81ecdfbb 2074 cat confdefs.h
b7026657
AC
2075 echo
2076 fi
2077 test "$ac_signal" != 0 &&
81ecdfbb
RW
2078 $as_echo "$as_me: caught signal $ac_signal"
2079 $as_echo "$as_me: exit $exit_status"
b7026657 2080 } >&5
81ecdfbb
RW
2081 rm -f core *.core core.conftest.* &&
2082 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
b7026657 2083 exit $exit_status
81ecdfbb 2084' 0
b7026657 2085for ac_signal in 1 2 13 15; do
81ecdfbb 2086 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
b7026657
AC
2087done
2088ac_signal=0
2089
2090# confdefs.h avoids OS command line length limits that DEFS can exceed.
81ecdfbb
RW
2091rm -f -r conftest* confdefs.h
2092
2093$as_echo "/* confdefs.h */" > confdefs.h
b7026657
AC
2094
2095# Predefined preprocessor variables.
2096
2097cat >>confdefs.h <<_ACEOF
2098#define PACKAGE_NAME "$PACKAGE_NAME"
2099_ACEOF
2100
b7026657
AC
2101cat >>confdefs.h <<_ACEOF
2102#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2103_ACEOF
2104
b7026657
AC
2105cat >>confdefs.h <<_ACEOF
2106#define PACKAGE_VERSION "$PACKAGE_VERSION"
2107_ACEOF
2108
b7026657
AC
2109cat >>confdefs.h <<_ACEOF
2110#define PACKAGE_STRING "$PACKAGE_STRING"
2111_ACEOF
2112
b7026657
AC
2113cat >>confdefs.h <<_ACEOF
2114#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2115_ACEOF
2116
81ecdfbb
RW
2117cat >>confdefs.h <<_ACEOF
2118#define PACKAGE_URL "$PACKAGE_URL"
2119_ACEOF
2120
b7026657
AC
2121
2122# Let the site file select an alternate cache file if it wants to.
81ecdfbb
RW
2123# Prefer an explicitly selected file to automatically selected ones.
2124ac_site_file1=NONE
2125ac_site_file2=NONE
2126if test -n "$CONFIG_SITE"; then
d0ac1c44
SM
2127 # We do not want a PATH search for config.site.
2128 case $CONFIG_SITE in #((
2129 -*) ac_site_file1=./$CONFIG_SITE;;
2130 */*) ac_site_file1=$CONFIG_SITE;;
2131 *) ac_site_file1=./$CONFIG_SITE;;
2132 esac
81ecdfbb
RW
2133elif test "x$prefix" != xNONE; then
2134 ac_site_file1=$prefix/share/config.site
2135 ac_site_file2=$prefix/etc/config.site
2136else
2137 ac_site_file1=$ac_default_prefix/share/config.site
2138 ac_site_file2=$ac_default_prefix/etc/config.site
2139fi
2140for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2141do
2142 test "x$ac_site_file" = xNONE && continue
d0ac1c44 2143 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
81ecdfbb
RW
2144 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2145$as_echo "$as_me: loading site script $ac_site_file" >&6;}
b7026657 2146 sed 's/^/| /' "$ac_site_file" >&5
d0ac1c44
SM
2147 . "$ac_site_file" \
2148 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2149$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2150as_fn_error $? "failed to load site script $ac_site_file
2151See \`config.log' for more details" "$LINENO" 5; }
b7026657
AC
2152 fi
2153done
2154
2155if test -r "$cache_file"; then
d0ac1c44
SM
2156 # Some versions of bash will fail to source /dev/null (special files
2157 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2158 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
81ecdfbb
RW
2159 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2160$as_echo "$as_me: loading cache $cache_file" >&6;}
b7026657 2161 case $cache_file in
81ecdfbb
RW
2162 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2163 *) . "./$cache_file";;
b7026657
AC
2164 esac
2165 fi
2166else
81ecdfbb
RW
2167 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2168$as_echo "$as_me: creating cache $cache_file" >&6;}
b7026657
AC
2169 >$cache_file
2170fi
2171
2172# Check that the precious variables saved in the cache have kept the same
2173# value.
2174ac_cache_corrupted=false
81ecdfbb 2175for ac_var in $ac_precious_vars; do
b7026657
AC
2176 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2177 eval ac_new_set=\$ac_env_${ac_var}_set
81ecdfbb
RW
2178 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2179 eval ac_new_val=\$ac_env_${ac_var}_value
b7026657
AC
2180 case $ac_old_set,$ac_new_set in
2181 set,)
81ecdfbb
RW
2182 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2183$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
b7026657
AC
2184 ac_cache_corrupted=: ;;
2185 ,set)
81ecdfbb
RW
2186 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2187$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
b7026657
AC
2188 ac_cache_corrupted=: ;;
2189 ,);;
2190 *)
2191 if test "x$ac_old_val" != "x$ac_new_val"; then
81ecdfbb
RW
2192 # differences in whitespace do not lead to failure.
2193 ac_old_val_w=`echo x $ac_old_val`
2194 ac_new_val_w=`echo x $ac_new_val`
2195 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2196 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2197$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2198 ac_cache_corrupted=:
2199 else
2200 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2201$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2202 eval $ac_var=\$ac_old_val
2203 fi
2204 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2205$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2206 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2207$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
b7026657
AC
2208 fi;;
2209 esac
2210 # Pass precious variables to config.status.
2211 if test "$ac_new_set" = set; then
2212 case $ac_new_val in
81ecdfbb 2213 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
b7026657
AC
2214 *) ac_arg=$ac_var=$ac_new_val ;;
2215 esac
2216 case " $ac_configure_args " in
2217 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
81ecdfbb 2218 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
b7026657
AC
2219 esac
2220 fi
2221done
2222if $ac_cache_corrupted; then
81ecdfbb
RW
2223 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2224$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2225 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2226$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
d0ac1c44 2227 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
b7026657 2228fi
81ecdfbb
RW
2229## -------------------- ##
2230## Main body of script. ##
2231## -------------------- ##
b7026657
AC
2232
2233ac_ext=c
2234ac_cpp='$CPP $CPPFLAGS'
2235ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2236ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2237ac_compiler_gnu=$ac_cv_c_compiler_gnu
2238
2239
6bb11ab3
L
2240
2241
2242
2243
2244
c2783492
MF
2245ac_aux_dir=
2246for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2247 if test -f "$ac_dir/install-sh"; then
2248 ac_aux_dir=$ac_dir
2249 ac_install_sh="$ac_aux_dir/install-sh -c"
2250 break
2251 elif test -f "$ac_dir/install.sh"; then
2252 ac_aux_dir=$ac_dir
2253 ac_install_sh="$ac_aux_dir/install.sh -c"
2254 break
2255 elif test -f "$ac_dir/shtool"; then
2256 ac_aux_dir=$ac_dir
2257 ac_install_sh="$ac_aux_dir/shtool install -c"
2258 break
2259 fi
2260done
2261if test -z "$ac_aux_dir"; then
2262 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2263fi
2264
2265# These three variables are undocumented and unsupported,
2266# and are intended to be withdrawn in a future Autoconf release.
2267# They can cause serious problems if a builder's source tree is in a directory
2268# whose full name contains unusual characters.
2269ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2270ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2271ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2272
2273
2274# Make sure we can run config.sub.
2275$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2276 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2277
2278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2279$as_echo_n "checking build system type... " >&6; }
2280if ${ac_cv_build+:} false; then :
2281 $as_echo_n "(cached) " >&6
2282else
2283 ac_build_alias=$build_alias
2284test "x$ac_build_alias" = x &&
2285 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2286test "x$ac_build_alias" = x &&
2287 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2288ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2289 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2290
2291fi
2292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2293$as_echo "$ac_cv_build" >&6; }
2294case $ac_cv_build in
2295*-*-*) ;;
2296*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2297esac
2298build=$ac_cv_build
2299ac_save_IFS=$IFS; IFS='-'
2300set x $ac_cv_build
2301shift
2302build_cpu=$1
2303build_vendor=$2
2304shift; shift
2305# Remember, the first character of IFS is used to create $*,
2306# except with old shells:
2307build_os=$*
2308IFS=$ac_save_IFS
2309case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2310
2311
2312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2313$as_echo_n "checking host system type... " >&6; }
2314if ${ac_cv_host+:} false; then :
2315 $as_echo_n "(cached) " >&6
2316else
2317 if test "x$host_alias" = x; then
2318 ac_cv_host=$ac_cv_build
2319else
2320 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2321 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2322fi
2323
2324fi
2325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2326$as_echo "$ac_cv_host" >&6; }
2327case $ac_cv_host in
2328*-*-*) ;;
2329*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2330esac
2331host=$ac_cv_host
2332ac_save_IFS=$IFS; IFS='-'
2333set x $ac_cv_host
2334shift
2335host_cpu=$1
2336host_vendor=$2
2337shift; shift
2338# Remember, the first character of IFS is used to create $*,
2339# except with old shells:
2340host_os=$*
2341IFS=$ac_save_IFS
2342case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2343
2344
2345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2346$as_echo_n "checking target system type... " >&6; }
2347if ${ac_cv_target+:} false; then :
2348 $as_echo_n "(cached) " >&6
2349else
2350 if test "x$target_alias" = x; then
2351 ac_cv_target=$ac_cv_host
2352else
2353 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2354 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2355fi
2356
2357fi
2358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2359$as_echo "$ac_cv_target" >&6; }
2360case $ac_cv_target in
2361*-*-*) ;;
2362*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2363esac
2364target=$ac_cv_target
2365ac_save_IFS=$IFS; IFS='-'
2366set x $ac_cv_target
2367shift
2368target_cpu=$1
2369target_vendor=$2
2370shift; shift
2371# Remember, the first character of IFS is used to create $*,
2372# except with old shells:
2373target_os=$*
2374IFS=$ac_save_IFS
2375case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2376
2377
2378# The aliases save the names the user supplied, while $host etc.
2379# will get canonicalized.
2380test -n "$target_alias" &&
2381 test "$program_prefix$program_suffix$program_transform_name" = \
2382 NONENONEs,x,x, &&
2383 program_prefix=${target_alias}-
6bb11ab3
L
2384ac_ext=c
2385ac_cpp='$CPP $CPPFLAGS'
2386ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2387ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2388ac_compiler_gnu=$ac_cv_c_compiler_gnu
2389if test -n "$ac_tool_prefix"; then
2390 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2391set dummy ${ac_tool_prefix}gcc; ac_word=$2
2392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2393$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 2394if ${ac_cv_prog_CC+:} false; then :
6bb11ab3
L
2395 $as_echo_n "(cached) " >&6
2396else
2397 if test -n "$CC"; then
2398 ac_cv_prog_CC="$CC" # Let the user override the test.
2399else
2400as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2401for as_dir in $PATH
2402do
2403 IFS=$as_save_IFS
2404 test -z "$as_dir" && as_dir=.
2405 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 2406 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
2407 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2408 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2409 break 2
2410 fi
2411done
2412 done
2413IFS=$as_save_IFS
2414
2415fi
2416fi
2417CC=$ac_cv_prog_CC
2418if test -n "$CC"; then
2419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2420$as_echo "$CC" >&6; }
2421else
2422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2423$as_echo "no" >&6; }
2424fi
2425
2426
2427fi
2428if test -z "$ac_cv_prog_CC"; then
2429 ac_ct_CC=$CC
2430 # Extract the first word of "gcc", so it can be a program name with args.
2431set dummy gcc; ac_word=$2
2432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2433$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 2434if ${ac_cv_prog_ac_ct_CC+:} false; then :
6bb11ab3
L
2435 $as_echo_n "(cached) " >&6
2436else
2437 if test -n "$ac_ct_CC"; then
2438 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2439else
2440as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2441for as_dir in $PATH
2442do
2443 IFS=$as_save_IFS
2444 test -z "$as_dir" && as_dir=.
2445 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 2446 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
2447 ac_cv_prog_ac_ct_CC="gcc"
2448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2449 break 2
2450 fi
2451done
2452 done
2453IFS=$as_save_IFS
2454
2455fi
2456fi
2457ac_ct_CC=$ac_cv_prog_ac_ct_CC
2458if test -n "$ac_ct_CC"; then
2459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2460$as_echo "$ac_ct_CC" >&6; }
2461else
2462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2463$as_echo "no" >&6; }
2464fi
2465
2466 if test "x$ac_ct_CC" = x; then
2467 CC=""
2468 else
2469 case $cross_compiling:$ac_tool_warned in
2470yes:)
2471{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2472$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2473ac_tool_warned=yes ;;
2474esac
2475 CC=$ac_ct_CC
2476 fi
2477else
2478 CC="$ac_cv_prog_CC"
2479fi
2480
2481if test -z "$CC"; then
2482 if test -n "$ac_tool_prefix"; then
2483 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2484set dummy ${ac_tool_prefix}cc; ac_word=$2
2485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2486$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 2487if ${ac_cv_prog_CC+:} false; then :
6bb11ab3
L
2488 $as_echo_n "(cached) " >&6
2489else
2490 if test -n "$CC"; then
2491 ac_cv_prog_CC="$CC" # Let the user override the test.
2492else
2493as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2494for as_dir in $PATH
2495do
2496 IFS=$as_save_IFS
2497 test -z "$as_dir" && as_dir=.
2498 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 2499 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
2500 ac_cv_prog_CC="${ac_tool_prefix}cc"
2501 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2502 break 2
2503 fi
2504done
2505 done
2506IFS=$as_save_IFS
2507
2508fi
2509fi
2510CC=$ac_cv_prog_CC
2511if test -n "$CC"; then
2512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2513$as_echo "$CC" >&6; }
2514else
2515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2516$as_echo "no" >&6; }
2517fi
2518
2519
2520 fi
2521fi
2522if test -z "$CC"; then
2523 # Extract the first word of "cc", so it can be a program name with args.
2524set dummy cc; ac_word=$2
2525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2526$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 2527if ${ac_cv_prog_CC+:} false; then :
6bb11ab3
L
2528 $as_echo_n "(cached) " >&6
2529else
2530 if test -n "$CC"; then
2531 ac_cv_prog_CC="$CC" # Let the user override the test.
2532else
2533 ac_prog_rejected=no
2534as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2535for as_dir in $PATH
2536do
2537 IFS=$as_save_IFS
2538 test -z "$as_dir" && as_dir=.
2539 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 2540 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
2541 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2542 ac_prog_rejected=yes
2543 continue
2544 fi
2545 ac_cv_prog_CC="cc"
2546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2547 break 2
2548 fi
2549done
2550 done
2551IFS=$as_save_IFS
2552
2553if test $ac_prog_rejected = yes; then
2554 # We found a bogon in the path, so make sure we never use it.
2555 set dummy $ac_cv_prog_CC
2556 shift
2557 if test $# != 0; then
2558 # We chose a different compiler from the bogus one.
2559 # However, it has the same basename, so the bogon will be chosen
2560 # first if we set CC to just the basename; use the full file name.
2561 shift
2562 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2563 fi
2564fi
2565fi
2566fi
2567CC=$ac_cv_prog_CC
2568if test -n "$CC"; then
2569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2570$as_echo "$CC" >&6; }
2571else
2572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2573$as_echo "no" >&6; }
2574fi
2575
2576
2577fi
2578if test -z "$CC"; then
2579 if test -n "$ac_tool_prefix"; then
2580 for ac_prog in cl.exe
2581 do
2582 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2583set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2585$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 2586if ${ac_cv_prog_CC+:} false; then :
6bb11ab3
L
2587 $as_echo_n "(cached) " >&6
2588else
2589 if test -n "$CC"; then
2590 ac_cv_prog_CC="$CC" # Let the user override the test.
2591else
2592as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2593for as_dir in $PATH
2594do
2595 IFS=$as_save_IFS
2596 test -z "$as_dir" && as_dir=.
2597 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 2598 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
2599 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2600 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2601 break 2
2602 fi
2603done
2604 done
2605IFS=$as_save_IFS
2606
2607fi
2608fi
2609CC=$ac_cv_prog_CC
2610if test -n "$CC"; then
2611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2612$as_echo "$CC" >&6; }
2613else
2614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2615$as_echo "no" >&6; }
2616fi
2617
2618
2619 test -n "$CC" && break
2620 done
2621fi
2622if test -z "$CC"; then
2623 ac_ct_CC=$CC
2624 for ac_prog in cl.exe
2625do
2626 # Extract the first word of "$ac_prog", so it can be a program name with args.
2627set dummy $ac_prog; ac_word=$2
2628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2629$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 2630if ${ac_cv_prog_ac_ct_CC+:} false; then :
6bb11ab3
L
2631 $as_echo_n "(cached) " >&6
2632else
2633 if test -n "$ac_ct_CC"; then
2634 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2635else
2636as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2637for as_dir in $PATH
2638do
2639 IFS=$as_save_IFS
2640 test -z "$as_dir" && as_dir=.
2641 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 2642 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
2643 ac_cv_prog_ac_ct_CC="$ac_prog"
2644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2645 break 2
2646 fi
2647done
2648 done
2649IFS=$as_save_IFS
2650
2651fi
2652fi
2653ac_ct_CC=$ac_cv_prog_ac_ct_CC
2654if test -n "$ac_ct_CC"; then
2655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2656$as_echo "$ac_ct_CC" >&6; }
2657else
2658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2659$as_echo "no" >&6; }
2660fi
2661
2662
2663 test -n "$ac_ct_CC" && break
2664done
2665
2666 if test "x$ac_ct_CC" = x; then
2667 CC=""
2668 else
2669 case $cross_compiling:$ac_tool_warned in
2670yes:)
2671{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2672$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2673ac_tool_warned=yes ;;
2674esac
2675 CC=$ac_ct_CC
2676 fi
2677fi
2678
2679fi
2680
2681
2682test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2683$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
2684as_fn_error $? "no acceptable C compiler found in \$PATH
2685See \`config.log' for more details" "$LINENO" 5; }
6bb11ab3
L
2686
2687# Provide some information about the compiler.
2688$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2689set X $ac_compile
2690ac_compiler=$2
2691for ac_option in --version -v -V -qversion; do
2692 { { ac_try="$ac_compiler $ac_option >&5"
2693case "(($ac_try" in
2694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2695 *) ac_try_echo=$ac_try;;
2696esac
2697eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2698$as_echo "$ac_try_echo"; } >&5
2699 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2700 ac_status=$?
2701 if test -s conftest.err; then
2702 sed '10a\
2703... rest of stderr output deleted ...
2704 10q' conftest.err >conftest.er1
2705 cat conftest.er1 >&5
6bb11ab3 2706 fi
d0ac1c44 2707 rm -f conftest.er1 conftest.err
6bb11ab3
L
2708 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2709 test $ac_status = 0; }
2710done
2711
2712cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2713/* end confdefs.h. */
2714
2715int
2716main ()
2717{
2718
2719 ;
2720 return 0;
2721}
2722_ACEOF
2723ac_clean_files_save=$ac_clean_files
d0ac1c44 2724ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
6bb11ab3
L
2725# Try to create an executable without -o first, disregard a.out.
2726# It will help us diagnose broken compilers, and finding out an intuition
2727# of exeext.
d0ac1c44
SM
2728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2729$as_echo_n "checking whether the C compiler works... " >&6; }
6bb11ab3
L
2730ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2731
2732# The possible output files:
2733ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2734
2735ac_rmfiles=
2736for ac_file in $ac_files
2737do
2738 case $ac_file in
2739 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2740 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2741 esac
2742done
2743rm -f $ac_rmfiles
2744
2745if { { ac_try="$ac_link_default"
2746case "(($ac_try" in
2747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2748 *) ac_try_echo=$ac_try;;
2749esac
2750eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2751$as_echo "$ac_try_echo"; } >&5
2752 (eval "$ac_link_default") 2>&5
2753 ac_status=$?
2754 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2755 test $ac_status = 0; }; then :
2756 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2757# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2758# in a Makefile. We should not override ac_cv_exeext if it was cached,
2759# so that the user can short-circuit this test for compilers unknown to
2760# Autoconf.
2761for ac_file in $ac_files ''
2762do
2763 test -f "$ac_file" || continue
2764 case $ac_file in
2765 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2766 ;;
2767 [ab].out )
2768 # We found the default executable, but exeext='' is most
2769 # certainly right.
2770 break;;
2771 *.* )
2772 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2773 then :; else
2774 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2775 fi
2776 # We set ac_cv_exeext here because the later test for it is not
2777 # safe: cross compilers may not add the suffix if given an `-o'
2778 # argument, so we may need to know it at that point already.
2779 # Even if this section looks crufty: it has the advantage of
2780 # actually working.
2781 break;;
2782 * )
2783 break;;
2784 esac
2785done
2786test "$ac_cv_exeext" = no && ac_cv_exeext=
2787
2788else
2789 ac_file=''
2790fi
6bb11ab3 2791if test -z "$ac_file"; then :
d0ac1c44
SM
2792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2793$as_echo "no" >&6; }
2794$as_echo "$as_me: failed program was:" >&5
6bb11ab3
L
2795sed 's/^/| /' conftest.$ac_ext >&5
2796
2797{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2798$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
2799as_fn_error 77 "C compiler cannot create executables
2800See \`config.log' for more details" "$LINENO" 5; }
2801else
2802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2803$as_echo "yes" >&6; }
6bb11ab3 2804fi
d0ac1c44
SM
2805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2806$as_echo_n "checking for C compiler default output file name... " >&6; }
2807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2808$as_echo "$ac_file" >&6; }
6bb11ab3
L
2809ac_exeext=$ac_cv_exeext
2810
d0ac1c44 2811rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
6bb11ab3 2812ac_clean_files=$ac_clean_files_save
6bb11ab3
L
2813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2814$as_echo_n "checking for suffix of executables... " >&6; }
2815if { { ac_try="$ac_link"
2816case "(($ac_try" in
2817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2818 *) ac_try_echo=$ac_try;;
2819esac
2820eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2821$as_echo "$ac_try_echo"; } >&5
2822 (eval "$ac_link") 2>&5
2823 ac_status=$?
2824 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2825 test $ac_status = 0; }; then :
2826 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2827# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2828# work properly (i.e., refer to `conftest.exe'), while it won't with
2829# `rm'.
2830for ac_file in conftest.exe conftest conftest.*; do
2831 test -f "$ac_file" || continue
2832 case $ac_file in
2833 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2834 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2835 break;;
2836 * ) break;;
2837 esac
2838done
2839else
2840 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2841$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
2842as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2843See \`config.log' for more details" "$LINENO" 5; }
6bb11ab3 2844fi
d0ac1c44 2845rm -f conftest conftest$ac_cv_exeext
6bb11ab3
L
2846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2847$as_echo "$ac_cv_exeext" >&6; }
2848
2849rm -f conftest.$ac_ext
2850EXEEXT=$ac_cv_exeext
2851ac_exeext=$EXEEXT
d0ac1c44
SM
2852cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2853/* end confdefs.h. */
2854#include <stdio.h>
2855int
2856main ()
2857{
2858FILE *f = fopen ("conftest.out", "w");
2859 return ferror (f) || fclose (f) != 0;
2860
2861 ;
2862 return 0;
2863}
2864_ACEOF
2865ac_clean_files="$ac_clean_files conftest.out"
2866# Check that the compiler produces executables we can run. If not, either
2867# the compiler is broken, or we cross compile.
2868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2869$as_echo_n "checking whether we are cross compiling... " >&6; }
2870if test "$cross_compiling" != yes; then
2871 { { ac_try="$ac_link"
2872case "(($ac_try" in
2873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2874 *) ac_try_echo=$ac_try;;
2875esac
2876eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2877$as_echo "$ac_try_echo"; } >&5
2878 (eval "$ac_link") 2>&5
2879 ac_status=$?
2880 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2881 test $ac_status = 0; }
2882 if { ac_try='./conftest$ac_cv_exeext'
2883 { { case "(($ac_try" in
2884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2885 *) ac_try_echo=$ac_try;;
2886esac
2887eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2888$as_echo "$ac_try_echo"; } >&5
2889 (eval "$ac_try") 2>&5
2890 ac_status=$?
2891 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2892 test $ac_status = 0; }; }; then
2893 cross_compiling=no
2894 else
2895 if test "$cross_compiling" = maybe; then
2896 cross_compiling=yes
2897 else
2898 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2899$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2900as_fn_error $? "cannot run C compiled programs.
2901If you meant to cross compile, use \`--host'.
2902See \`config.log' for more details" "$LINENO" 5; }
2903 fi
2904 fi
2905fi
2906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2907$as_echo "$cross_compiling" >&6; }
2908
2909rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2910ac_clean_files=$ac_clean_files_save
6bb11ab3
L
2911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2912$as_echo_n "checking for suffix of object files... " >&6; }
d0ac1c44 2913if ${ac_cv_objext+:} false; then :
6bb11ab3
L
2914 $as_echo_n "(cached) " >&6
2915else
2916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2917/* end confdefs.h. */
2918
2919int
2920main ()
2921{
2922
2923 ;
2924 return 0;
2925}
2926_ACEOF
2927rm -f conftest.o conftest.obj
2928if { { ac_try="$ac_compile"
2929case "(($ac_try" in
2930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2931 *) ac_try_echo=$ac_try;;
2932esac
2933eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2934$as_echo "$ac_try_echo"; } >&5
2935 (eval "$ac_compile") 2>&5
2936 ac_status=$?
2937 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2938 test $ac_status = 0; }; then :
2939 for ac_file in conftest.o conftest.obj conftest.*; do
2940 test -f "$ac_file" || continue;
2941 case $ac_file in
2942 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2943 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2944 break;;
2945 esac
2946done
2947else
2948 $as_echo "$as_me: failed program was:" >&5
2949sed 's/^/| /' conftest.$ac_ext >&5
2950
2951{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2952$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
2953as_fn_error $? "cannot compute suffix of object files: cannot compile
2954See \`config.log' for more details" "$LINENO" 5; }
6bb11ab3
L
2955fi
2956rm -f conftest.$ac_cv_objext conftest.$ac_ext
2957fi
2958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2959$as_echo "$ac_cv_objext" >&6; }
2960OBJEXT=$ac_cv_objext
2961ac_objext=$OBJEXT
2962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2963$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
d0ac1c44 2964if ${ac_cv_c_compiler_gnu+:} false; then :
6bb11ab3
L
2965 $as_echo_n "(cached) " >&6
2966else
2967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2968/* end confdefs.h. */
2969
2970int
2971main ()
2972{
2973#ifndef __GNUC__
2974 choke me
2975#endif
2976
2977 ;
2978 return 0;
2979}
2980_ACEOF
2981if ac_fn_c_try_compile "$LINENO"; then :
2982 ac_compiler_gnu=yes
2983else
2984 ac_compiler_gnu=no
2985fi
2986rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2987ac_cv_c_compiler_gnu=$ac_compiler_gnu
2988
2989fi
2990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2991$as_echo "$ac_cv_c_compiler_gnu" >&6; }
2992if test $ac_compiler_gnu = yes; then
2993 GCC=yes
2994else
2995 GCC=
2996fi
2997ac_test_CFLAGS=${CFLAGS+set}
2998ac_save_CFLAGS=$CFLAGS
2999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3000$as_echo_n "checking whether $CC accepts -g... " >&6; }
d0ac1c44 3001if ${ac_cv_prog_cc_g+:} false; then :
6bb11ab3
L
3002 $as_echo_n "(cached) " >&6
3003else
3004 ac_save_c_werror_flag=$ac_c_werror_flag
3005 ac_c_werror_flag=yes
3006 ac_cv_prog_cc_g=no
3007 CFLAGS="-g"
3008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3009/* end confdefs.h. */
3010
3011int
3012main ()
3013{
3014
3015 ;
3016 return 0;
3017}
3018_ACEOF
3019if ac_fn_c_try_compile "$LINENO"; then :
3020 ac_cv_prog_cc_g=yes
3021else
3022 CFLAGS=""
3023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3024/* end confdefs.h. */
3025
3026int
3027main ()
3028{
3029
3030 ;
3031 return 0;
3032}
3033_ACEOF
3034if ac_fn_c_try_compile "$LINENO"; then :
3035
3036else
3037 ac_c_werror_flag=$ac_save_c_werror_flag
3038 CFLAGS="-g"
3039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3040/* end confdefs.h. */
3041
3042int
3043main ()
3044{
3045
3046 ;
3047 return 0;
3048}
3049_ACEOF
3050if ac_fn_c_try_compile "$LINENO"; then :
3051 ac_cv_prog_cc_g=yes
3052fi
3053rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3054fi
3055rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3056fi
3057rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3058 ac_c_werror_flag=$ac_save_c_werror_flag
3059fi
3060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3061$as_echo "$ac_cv_prog_cc_g" >&6; }
3062if test "$ac_test_CFLAGS" = set; then
3063 CFLAGS=$ac_save_CFLAGS
3064elif test $ac_cv_prog_cc_g = yes; then
3065 if test "$GCC" = yes; then
3066 CFLAGS="-g -O2"
3067 else
3068 CFLAGS="-g"
3069 fi
3070else
3071 if test "$GCC" = yes; then
3072 CFLAGS="-O2"
3073 else
3074 CFLAGS=
3075 fi
3076fi
3077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3078$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
d0ac1c44 3079if ${ac_cv_prog_cc_c89+:} false; then :
6bb11ab3
L
3080 $as_echo_n "(cached) " >&6
3081else
3082 ac_cv_prog_cc_c89=no
3083ac_save_CC=$CC
3084cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3085/* end confdefs.h. */
3086#include <stdarg.h>
3087#include <stdio.h>
d0ac1c44 3088struct stat;
6bb11ab3
L
3089/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3090struct buf { int x; };
3091FILE * (*rcsopen) (struct buf *, struct stat *, int);
3092static char *e (p, i)
3093 char **p;
3094 int i;
3095{
3096 return p[i];
3097}
3098static char *f (char * (*g) (char **, int), char **p, ...)
3099{
3100 char *s;
3101 va_list v;
3102 va_start (v,p);
3103 s = g (p, va_arg (v,int));
3104 va_end (v);
3105 return s;
3106}
3107
3108/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3109 function prototypes and stuff, but not '\xHH' hex character constants.
3110 These don't provoke an error unfortunately, instead are silently treated
3111 as 'x'. The following induces an error, until -std is added to get
3112 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3113 array size at least. It's necessary to write '\x00'==0 to get something
3114 that's true only with -std. */
3115int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3116
3117/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3118 inside strings and character constants. */
3119#define FOO(x) 'x'
3120int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3121
3122int test (int i, double x);
3123struct s1 {int (*f) (int a);};
3124struct s2 {int (*f) (double a);};
3125int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3126int argc;
3127char **argv;
3128int
3129main ()
3130{
3131return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3132 ;
3133 return 0;
3134}
3135_ACEOF
3136for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3137 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3138do
3139 CC="$ac_save_CC $ac_arg"
3140 if ac_fn_c_try_compile "$LINENO"; then :
3141 ac_cv_prog_cc_c89=$ac_arg
3142fi
3143rm -f core conftest.err conftest.$ac_objext
3144 test "x$ac_cv_prog_cc_c89" != "xno" && break
3145done
3146rm -f conftest.$ac_ext
3147CC=$ac_save_CC
3148
3149fi
3150# AC_CACHE_VAL
3151case "x$ac_cv_prog_cc_c89" in
3152 x)
3153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3154$as_echo "none needed" >&6; } ;;
3155 xno)
3156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3157$as_echo "unsupported" >&6; } ;;
3158 *)
3159 CC="$CC $ac_cv_prog_cc_c89"
3160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3161$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3162esac
3163if test "x$ac_cv_prog_cc_c89" != xno; then :
3164
3165fi
3166
3167ac_ext=c
3168ac_cpp='$CPP $CPPFLAGS'
3169ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3170ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3171ac_compiler_gnu=$ac_cv_c_compiler_gnu
3172
c2783492 3173
ebe9564b
MF
3174ac_ext=c
3175ac_cpp='$CPP $CPPFLAGS'
3176ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3177ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3178ac_compiler_gnu=$ac_cv_c_compiler_gnu
3179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3180$as_echo_n "checking how to run the C preprocessor... " >&6; }
3181# On Suns, sometimes $CPP names a directory.
3182if test -n "$CPP" && test -d "$CPP"; then
3183 CPP=
3184fi
3185if test -z "$CPP"; then
3186 if ${ac_cv_prog_CPP+:} false; then :
3187 $as_echo_n "(cached) " >&6
3188else
3189 # Double quotes because CPP needs to be expanded
3190 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3191 do
3192 ac_preproc_ok=false
3193for ac_c_preproc_warn_flag in '' yes
3194do
3195 # Use a header file that comes with gcc, so configuring glibc
3196 # with a fresh cross-compiler works.
3197 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3198 # <limits.h> exists even on freestanding compilers.
3199 # On the NeXT, cc -E runs the code through the compiler's parser,
3200 # not just through cpp. "Syntax error" is here to catch this case.
3201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3202/* end confdefs.h. */
3203#ifdef __STDC__
3204# include <limits.h>
3205#else
3206# include <assert.h>
3207#endif
3208 Syntax error
3209_ACEOF
3210if ac_fn_c_try_cpp "$LINENO"; then :
3211
3212else
3213 # Broken: fails on valid input.
3214continue
3215fi
3216rm -f conftest.err conftest.i conftest.$ac_ext
3217
3218 # OK, works on sane cases. Now check whether nonexistent headers
3219 # can be detected and how.
3220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3221/* end confdefs.h. */
3222#include <ac_nonexistent.h>
3223_ACEOF
3224if ac_fn_c_try_cpp "$LINENO"; then :
3225 # Broken: success on invalid input.
3226continue
3227else
3228 # Passes both tests.
3229ac_preproc_ok=:
3230break
3231fi
3232rm -f conftest.err conftest.i conftest.$ac_ext
3233
3234done
3235# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3236rm -f conftest.i conftest.err conftest.$ac_ext
3237if $ac_preproc_ok; then :
3238 break
3239fi
3240
3241 done
3242 ac_cv_prog_CPP=$CPP
3243
3244fi
3245 CPP=$ac_cv_prog_CPP
3246else
3247 ac_cv_prog_CPP=$CPP
3248fi
3249{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3250$as_echo "$CPP" >&6; }
3251ac_preproc_ok=false
3252for ac_c_preproc_warn_flag in '' yes
3253do
3254 # Use a header file that comes with gcc, so configuring glibc
3255 # with a fresh cross-compiler works.
3256 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3257 # <limits.h> exists even on freestanding compilers.
3258 # On the NeXT, cc -E runs the code through the compiler's parser,
3259 # not just through cpp. "Syntax error" is here to catch this case.
3260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3261/* end confdefs.h. */
3262#ifdef __STDC__
3263# include <limits.h>
3264#else
3265# include <assert.h>
3266#endif
3267 Syntax error
3268_ACEOF
3269if ac_fn_c_try_cpp "$LINENO"; then :
3270
3271else
3272 # Broken: fails on valid input.
3273continue
3274fi
3275rm -f conftest.err conftest.i conftest.$ac_ext
3276
3277 # OK, works on sane cases. Now check whether nonexistent headers
3278 # can be detected and how.
3279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3280/* end confdefs.h. */
3281#include <ac_nonexistent.h>
3282_ACEOF
3283if ac_fn_c_try_cpp "$LINENO"; then :
3284 # Broken: success on invalid input.
3285continue
3286else
3287 # Passes both tests.
3288ac_preproc_ok=:
3289break
3290fi
3291rm -f conftest.err conftest.i conftest.$ac_ext
3292
3293done
3294# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3295rm -f conftest.i conftest.err conftest.$ac_ext
3296if $ac_preproc_ok; then :
3297
3298else
3299 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3300$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3301as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3302See \`config.log' for more details" "$LINENO" 5; }
3303fi
3304
3305ac_ext=c
3306ac_cpp='$CPP $CPPFLAGS'
3307ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3308ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3309ac_compiler_gnu=$ac_cv_c_compiler_gnu
3310
6bb11ab3
L
3311
3312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3313$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
d0ac1c44 3314if ${ac_cv_path_GREP+:} false; then :
6bb11ab3
L
3315 $as_echo_n "(cached) " >&6
3316else
3317 if test -z "$GREP"; then
3318 ac_path_GREP_found=false
3319 # Loop through the user's path and test for each of PROGNAME-LIST
3320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3321for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3322do
3323 IFS=$as_save_IFS
3324 test -z "$as_dir" && as_dir=.
3325 for ac_prog in grep ggrep; do
3326 for ac_exec_ext in '' $ac_executable_extensions; do
3327 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
d0ac1c44 3328 as_fn_executable_p "$ac_path_GREP" || continue
6bb11ab3
L
3329# Check for GNU ac_path_GREP and select it if it is found.
3330 # Check for GNU $ac_path_GREP
3331case `"$ac_path_GREP" --version 2>&1` in
3332*GNU*)
3333 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3334*)
3335 ac_count=0
3336 $as_echo_n 0123456789 >"conftest.in"
3337 while :
3338 do
3339 cat "conftest.in" "conftest.in" >"conftest.tmp"
3340 mv "conftest.tmp" "conftest.in"
3341 cp "conftest.in" "conftest.nl"
3342 $as_echo 'GREP' >> "conftest.nl"
3343 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3344 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3345 as_fn_arith $ac_count + 1 && ac_count=$as_val
3346 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3347 # Best one so far, save it but keep looking for a better one
3348 ac_cv_path_GREP="$ac_path_GREP"
3349 ac_path_GREP_max=$ac_count
3350 fi
3351 # 10*(2^10) chars as input seems more than enough
3352 test $ac_count -gt 10 && break
3353 done
3354 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3355esac
3356
3357 $ac_path_GREP_found && break 3
3358 done
3359 done
3360 done
3361IFS=$as_save_IFS
3362 if test -z "$ac_cv_path_GREP"; then
d0ac1c44 3363 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6bb11ab3
L
3364 fi
3365else
3366 ac_cv_path_GREP=$GREP
3367fi
3368
3369fi
3370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3371$as_echo "$ac_cv_path_GREP" >&6; }
3372 GREP="$ac_cv_path_GREP"
3373
3374
3375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3376$as_echo_n "checking for egrep... " >&6; }
d0ac1c44 3377if ${ac_cv_path_EGREP+:} false; then :
6bb11ab3
L
3378 $as_echo_n "(cached) " >&6
3379else
3380 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3381 then ac_cv_path_EGREP="$GREP -E"
3382 else
3383 if test -z "$EGREP"; then
3384 ac_path_EGREP_found=false
3385 # Loop through the user's path and test for each of PROGNAME-LIST
3386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3387for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3388do
3389 IFS=$as_save_IFS
3390 test -z "$as_dir" && as_dir=.
3391 for ac_prog in egrep; do
3392 for ac_exec_ext in '' $ac_executable_extensions; do
3393 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
d0ac1c44 3394 as_fn_executable_p "$ac_path_EGREP" || continue
6bb11ab3
L
3395# Check for GNU ac_path_EGREP and select it if it is found.
3396 # Check for GNU $ac_path_EGREP
3397case `"$ac_path_EGREP" --version 2>&1` in
3398*GNU*)
3399 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3400*)
3401 ac_count=0
3402 $as_echo_n 0123456789 >"conftest.in"
3403 while :
3404 do
3405 cat "conftest.in" "conftest.in" >"conftest.tmp"
3406 mv "conftest.tmp" "conftest.in"
3407 cp "conftest.in" "conftest.nl"
3408 $as_echo 'EGREP' >> "conftest.nl"
3409 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3410 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3411 as_fn_arith $ac_count + 1 && ac_count=$as_val
3412 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3413 # Best one so far, save it but keep looking for a better one
3414 ac_cv_path_EGREP="$ac_path_EGREP"
3415 ac_path_EGREP_max=$ac_count
3416 fi
3417 # 10*(2^10) chars as input seems more than enough
3418 test $ac_count -gt 10 && break
3419 done
3420 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3421esac
3422
3423 $ac_path_EGREP_found && break 3
3424 done
3425 done
3426 done
3427IFS=$as_save_IFS
3428 if test -z "$ac_cv_path_EGREP"; then
d0ac1c44 3429 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6bb11ab3
L
3430 fi
3431else
3432 ac_cv_path_EGREP=$EGREP
3433fi
3434
3435 fi
3436fi
3437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3438$as_echo "$ac_cv_path_EGREP" >&6; }
3439 EGREP="$ac_cv_path_EGREP"
3440
3441
3442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3443$as_echo_n "checking for ANSI C header files... " >&6; }
d0ac1c44 3444if ${ac_cv_header_stdc+:} false; then :
6bb11ab3
L
3445 $as_echo_n "(cached) " >&6
3446else
3447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3448/* end confdefs.h. */
3449#include <stdlib.h>
3450#include <stdarg.h>
3451#include <string.h>
3452#include <float.h>
3453
3454int
3455main ()
3456{
3457
3458 ;
3459 return 0;
3460}
3461_ACEOF
3462if ac_fn_c_try_compile "$LINENO"; then :
3463 ac_cv_header_stdc=yes
3464else
3465 ac_cv_header_stdc=no
3466fi
3467rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3468
3469if test $ac_cv_header_stdc = yes; then
3470 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3472/* end confdefs.h. */
3473#include <string.h>
3474
3475_ACEOF
3476if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3477 $EGREP "memchr" >/dev/null 2>&1; then :
3478
3479else
3480 ac_cv_header_stdc=no
3481fi
3482rm -f conftest*
3483
3484fi
3485
3486if test $ac_cv_header_stdc = yes; then
3487 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3489/* end confdefs.h. */
3490#include <stdlib.h>
3491
3492_ACEOF
3493if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3494 $EGREP "free" >/dev/null 2>&1; then :
3495
3496else
3497 ac_cv_header_stdc=no
3498fi
3499rm -f conftest*
3500
3501fi
3502
3503if test $ac_cv_header_stdc = yes; then
3504 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3505 if test "$cross_compiling" = yes; then :
3506 :
3507else
3508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3509/* end confdefs.h. */
3510#include <ctype.h>
3511#include <stdlib.h>
3512#if ((' ' & 0x0FF) == 0x020)
3513# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3514# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3515#else
3516# define ISLOWER(c) \
3517 (('a' <= (c) && (c) <= 'i') \
3518 || ('j' <= (c) && (c) <= 'r') \
3519 || ('s' <= (c) && (c) <= 'z'))
3520# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3521#endif
3522
3523#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3524int
3525main ()
3526{
3527 int i;
3528 for (i = 0; i < 256; i++)
3529 if (XOR (islower (i), ISLOWER (i))
3530 || toupper (i) != TOUPPER (i))
3531 return 2;
3532 return 0;
3533}
3534_ACEOF
3535if ac_fn_c_try_run "$LINENO"; then :
3536
3537else
3538 ac_cv_header_stdc=no
3539fi
3540rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3541 conftest.$ac_objext conftest.beam conftest.$ac_ext
3542fi
3543
3544fi
3545fi
3546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3547$as_echo "$ac_cv_header_stdc" >&6; }
3548if test $ac_cv_header_stdc = yes; then
3549
3550$as_echo "#define STDC_HEADERS 1" >>confdefs.h
3551
3552fi
3553
3554# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3555for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3556 inttypes.h stdint.h unistd.h
3557do :
3558 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3559ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3560"
d0ac1c44 3561if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6bb11ab3
L
3562 cat >>confdefs.h <<_ACEOF
3563#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3564_ACEOF
3565
3566fi
3567
3568done
3569
3570
3571
3572 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
d0ac1c44 3573if test "x$ac_cv_header_minix_config_h" = xyes; then :
6bb11ab3
L
3574 MINIX=yes
3575else
3576 MINIX=
3577fi
3578
3579
3580 if test "$MINIX" = yes; then
3581
3582$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3583
3584
3585$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3586
3587
3588$as_echo "#define _MINIX 1" >>confdefs.h
3589
3590 fi
3591
3592
3593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3594$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
d0ac1c44 3595if ${ac_cv_safe_to_define___extensions__+:} false; then :
6bb11ab3
L
3596 $as_echo_n "(cached) " >&6
3597else
3598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3599/* end confdefs.h. */
3600
d0ac1c44
SM
3601# define __EXTENSIONS__ 1
3602 $ac_includes_default
6bb11ab3
L
3603int
3604main ()
3605{
3606
3607 ;
3608 return 0;
3609}
3610_ACEOF
3611if ac_fn_c_try_compile "$LINENO"; then :
3612 ac_cv_safe_to_define___extensions__=yes
3613else
3614 ac_cv_safe_to_define___extensions__=no
3615fi
3616rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3617fi
3618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3619$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3620 test $ac_cv_safe_to_define___extensions__ = yes &&
3621 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3622
3623 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3624
3625 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3626
3627 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3628
3629 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3630
3631
3632test "$program_prefix" != NONE &&
3633 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3634# Use a double $ so make ignores it.
3635test "$program_suffix" != NONE &&
3636 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3637# Double any \ or $.
3638# By default was `s,x,x', remove it if useless.
3639ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3640program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3641
3642# Find a good install program. We prefer a C program (faster),
3643# so one script is as good as another. But avoid the broken or
3644# incompatible versions:
3645# SysV /etc/install, /usr/sbin/install
3646# SunOS /usr/etc/install
3647# IRIX /sbin/install
3648# AIX /bin/install
3649# AmigaOS /C/install, which installs bootblocks on floppy discs
3650# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3651# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3652# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3653# OS/2's system install, which has a completely different semantic
3654# ./install, which can be erroneously created by make from ./install.sh.
3655# Reject install programs that cannot install multiple files.
3656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3657$as_echo_n "checking for a BSD-compatible install... " >&6; }
3658if test -z "$INSTALL"; then
d0ac1c44 3659if ${ac_cv_path_install+:} false; then :
6bb11ab3
L
3660 $as_echo_n "(cached) " >&6
3661else
3662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3663for as_dir in $PATH
3664do
3665 IFS=$as_save_IFS
3666 test -z "$as_dir" && as_dir=.
3667 # Account for people who put trailing slashes in PATH elements.
3668case $as_dir/ in #((
3669 ./ | .// | /[cC]/* | \
3670 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3671 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3672 /usr/ucb/* ) ;;
3673 *)
3674 # OSF1 and SCO ODT 3.0 have their own names for install.
3675 # Don't use installbsd from OSF since it installs stuff as root
3676 # by default.
3677 for ac_prog in ginstall scoinst install; do
3678 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 3679 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
6bb11ab3
L
3680 if test $ac_prog = install &&
3681 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3682 # AIX install. It has an incompatible calling convention.
3683 :
3684 elif test $ac_prog = install &&
3685 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3686 # program-specific install script used by HP pwplus--don't use.
3687 :
3688 else
3689 rm -rf conftest.one conftest.two conftest.dir
3690 echo one > conftest.one
3691 echo two > conftest.two
3692 mkdir conftest.dir
3693 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3694 test -s conftest.one && test -s conftest.two &&
3695 test -s conftest.dir/conftest.one &&
3696 test -s conftest.dir/conftest.two
3697 then
3698 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3699 break 3
3700 fi
3701 fi
3702 fi
3703 done
3704 done
3705 ;;
3706esac
3707
3708 done
3709IFS=$as_save_IFS
3710
3711rm -rf conftest.one conftest.two conftest.dir
3712
3713fi
3714 if test "${ac_cv_path_install+set}" = set; then
3715 INSTALL=$ac_cv_path_install
3716 else
3717 # As a last resort, use the slow shell script. Don't cache a
3718 # value for INSTALL within a source directory, because that will
3719 # break other packages using the cache if that directory is
3720 # removed, or if the value is a relative name.
3721 INSTALL=$ac_install_sh
3722 fi
3723fi
3724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3725$as_echo "$INSTALL" >&6; }
3726
3727# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3728# It thinks the first close brace ends the variable substitution.
3729test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3730
3731test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3732
3733test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3734
3735rm -rf .tst 2>/dev/null
3736mkdir .tst 2>/dev/null
3737if test -d .tst; then
3738 am__leading_dot=.
3739else
3740 am__leading_dot=_
3741fi
3742rmdir .tst 2>/dev/null
3743
3744DEPDIR="${am__leading_dot}deps"
3745
3746case `pwd` in
3747 *\ * | *\ *)
3748 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3749$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3750esac
3751
3752
3753
3754macro_version='2.2.7a'
3755macro_revision='1.3134'
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769ltmain="$ac_aux_dir/ltmain.sh"
3770
3771# Backslashify metacharacters that are still active within
3772# double-quoted strings.
3773sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3774
3775# Same as above, but do not quote variable references.
3776double_quote_subst='s/\(["`\\]\)/\\\1/g'
3777
3778# Sed substitution to delay expansion of an escaped shell variable in a
3779# double_quote_subst'ed string.
3780delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3781
3782# Sed substitution to delay expansion of an escaped single quote.
3783delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3784
3785# Sed substitution to avoid accidental globbing in evaled expressions
3786no_glob_subst='s/\*/\\\*/g'
3787
3788ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3789ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3790ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3791
3792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3793$as_echo_n "checking how to print strings... " >&6; }
3794# Test print first, because it will be a builtin if present.
3795if test "X`print -r -- -n 2>/dev/null`" = X-n && \
3796 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3797 ECHO='print -r --'
3798elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3799 ECHO='printf %s\n'
3800else
3801 # Use this function as a fallback that always works.
3802 func_fallback_echo ()
3803 {
3804 eval 'cat <<_LTECHO_EOF
3805$1
3806_LTECHO_EOF'
3807 }
3808 ECHO='func_fallback_echo'
3809fi
3810
3811# func_echo_all arg...
3812# Invoke $ECHO with all args, space-separated.
3813func_echo_all ()
3814{
3815 $ECHO ""
3816}
3817
3818case "$ECHO" in
3819 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3820$as_echo "printf" >&6; } ;;
3821 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3822$as_echo "print -r" >&6; } ;;
3823 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3824$as_echo "cat" >&6; } ;;
3825esac
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3841$as_echo_n "checking for a sed that does not truncate output... " >&6; }
d0ac1c44 3842if ${ac_cv_path_SED+:} false; then :
6bb11ab3
L
3843 $as_echo_n "(cached) " >&6
3844else
3845 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3846 for ac_i in 1 2 3 4 5 6 7; do
3847 ac_script="$ac_script$as_nl$ac_script"
3848 done
3849 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3850 { ac_script=; unset ac_script;}
3851 if test -z "$SED"; then
3852 ac_path_SED_found=false
3853 # Loop through the user's path and test for each of PROGNAME-LIST
3854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3855for as_dir in $PATH
3856do
3857 IFS=$as_save_IFS
3858 test -z "$as_dir" && as_dir=.
3859 for ac_prog in sed gsed; do
3860 for ac_exec_ext in '' $ac_executable_extensions; do
3861 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
d0ac1c44 3862 as_fn_executable_p "$ac_path_SED" || continue
6bb11ab3
L
3863# Check for GNU ac_path_SED and select it if it is found.
3864 # Check for GNU $ac_path_SED
3865case `"$ac_path_SED" --version 2>&1` in
3866*GNU*)
3867 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3868*)
3869 ac_count=0
3870 $as_echo_n 0123456789 >"conftest.in"
3871 while :
3872 do
3873 cat "conftest.in" "conftest.in" >"conftest.tmp"
3874 mv "conftest.tmp" "conftest.in"
3875 cp "conftest.in" "conftest.nl"
3876 $as_echo '' >> "conftest.nl"
3877 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3878 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3879 as_fn_arith $ac_count + 1 && ac_count=$as_val
3880 if test $ac_count -gt ${ac_path_SED_max-0}; then
3881 # Best one so far, save it but keep looking for a better one
3882 ac_cv_path_SED="$ac_path_SED"
3883 ac_path_SED_max=$ac_count
3884 fi
3885 # 10*(2^10) chars as input seems more than enough
3886 test $ac_count -gt 10 && break
3887 done
3888 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3889esac
3890
3891 $ac_path_SED_found && break 3
3892 done
3893 done
3894 done
3895IFS=$as_save_IFS
3896 if test -z "$ac_cv_path_SED"; then
d0ac1c44 3897 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6bb11ab3
L
3898 fi
3899else
3900 ac_cv_path_SED=$SED
3901fi
3902
3903fi
3904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3905$as_echo "$ac_cv_path_SED" >&6; }
3906 SED="$ac_cv_path_SED"
3907 rm -f conftest.sed
3908
3909test -z "$SED" && SED=sed
3910Xsed="$SED -e 1s/^X//"
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
3923$as_echo_n "checking for fgrep... " >&6; }
d0ac1c44 3924if ${ac_cv_path_FGREP+:} false; then :
6bb11ab3
L
3925 $as_echo_n "(cached) " >&6
3926else
3927 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3928 then ac_cv_path_FGREP="$GREP -F"
3929 else
3930 if test -z "$FGREP"; then
3931 ac_path_FGREP_found=false
3932 # Loop through the user's path and test for each of PROGNAME-LIST
3933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3934for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3935do
3936 IFS=$as_save_IFS
3937 test -z "$as_dir" && as_dir=.
3938 for ac_prog in fgrep; do
3939 for ac_exec_ext in '' $ac_executable_extensions; do
3940 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
d0ac1c44 3941 as_fn_executable_p "$ac_path_FGREP" || continue
6bb11ab3
L
3942# Check for GNU ac_path_FGREP and select it if it is found.
3943 # Check for GNU $ac_path_FGREP
3944case `"$ac_path_FGREP" --version 2>&1` in
3945*GNU*)
3946 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3947*)
3948 ac_count=0
3949 $as_echo_n 0123456789 >"conftest.in"
3950 while :
3951 do
3952 cat "conftest.in" "conftest.in" >"conftest.tmp"
3953 mv "conftest.tmp" "conftest.in"
3954 cp "conftest.in" "conftest.nl"
3955 $as_echo 'FGREP' >> "conftest.nl"
3956 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
3957 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3958 as_fn_arith $ac_count + 1 && ac_count=$as_val
3959 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
3960 # Best one so far, save it but keep looking for a better one
3961 ac_cv_path_FGREP="$ac_path_FGREP"
3962 ac_path_FGREP_max=$ac_count
3963 fi
3964 # 10*(2^10) chars as input seems more than enough
3965 test $ac_count -gt 10 && break
3966 done
3967 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3968esac
3969
3970 $ac_path_FGREP_found && break 3
3971 done
3972 done
3973 done
3974IFS=$as_save_IFS
3975 if test -z "$ac_cv_path_FGREP"; then
d0ac1c44 3976 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6bb11ab3
L
3977 fi
3978else
3979 ac_cv_path_FGREP=$FGREP
3980fi
3981
3982 fi
3983fi
3984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
3985$as_echo "$ac_cv_path_FGREP" >&6; }
3986 FGREP="$ac_cv_path_FGREP"
3987
3988
3989test -z "$GREP" && GREP=grep
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009# Check whether --with-gnu-ld was given.
4010if test "${with_gnu_ld+set}" = set; then :
4011 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4012else
4013 with_gnu_ld=no
4014fi
4015
4016ac_prog=ld
4017if test "$GCC" = yes; then
4018 # Check if gcc -print-prog-name=ld gives a path.
4019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4020$as_echo_n "checking for ld used by $CC... " >&6; }
4021 case $host in
4022 *-*-mingw*)
4023 # gcc leaves a trailing carriage return which upsets mingw
4024 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4025 *)
4026 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4027 esac
4028 case $ac_prog in
4029 # Accept absolute paths.
4030 [\\/]* | ?:[\\/]*)
4031 re_direlt='/[^/][^/]*/\.\./'
4032 # Canonicalize the pathname of ld
4033 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4034 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4035 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4036 done
4037 test -z "$LD" && LD="$ac_prog"
4038 ;;
4039 "")
4040 # If it fails, then pretend we aren't using GCC.
4041 ac_prog=ld
4042 ;;
4043 *)
4044 # If it is relative, then search for the first ld in PATH.
4045 with_gnu_ld=unknown
4046 ;;
4047 esac
4048elif test "$with_gnu_ld" = yes; then
4049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4050$as_echo_n "checking for GNU ld... " >&6; }
4051else
4052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4053$as_echo_n "checking for non-GNU ld... " >&6; }
4054fi
d0ac1c44 4055if ${lt_cv_path_LD+:} false; then :
6bb11ab3
L
4056 $as_echo_n "(cached) " >&6
4057else
4058 if test -z "$LD"; then
4059 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4060 for ac_dir in $PATH; do
4061 IFS="$lt_save_ifs"
4062 test -z "$ac_dir" && ac_dir=.
4063 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4064 lt_cv_path_LD="$ac_dir/$ac_prog"
4065 # Check to see if the program is GNU ld. I'd rather use --version,
4066 # but apparently some variants of GNU ld only accept -v.
4067 # Break only if it was the GNU/non-GNU ld that we prefer.
4068 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4069 *GNU* | *'with BFD'*)
4070 test "$with_gnu_ld" != no && break
4071 ;;
4072 *)
4073 test "$with_gnu_ld" != yes && break
4074 ;;
4075 esac
4076 fi
4077 done
4078 IFS="$lt_save_ifs"
4079else
4080 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4081fi
4082fi
4083
4084LD="$lt_cv_path_LD"
4085if test -n "$LD"; then
4086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4087$as_echo "$LD" >&6; }
4088else
4089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4090$as_echo "no" >&6; }
4091fi
d0ac1c44 4092test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6bb11ab3
L
4093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4094$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
d0ac1c44 4095if ${lt_cv_prog_gnu_ld+:} false; then :
6bb11ab3
L
4096 $as_echo_n "(cached) " >&6
4097else
4098 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4099case `$LD -v 2>&1 </dev/null` in
4100*GNU* | *'with BFD'*)
4101 lt_cv_prog_gnu_ld=yes
4102 ;;
4103*)
4104 lt_cv_prog_gnu_ld=no
4105 ;;
4106esac
4107fi
4108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4109$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4110with_gnu_ld=$lt_cv_prog_gnu_ld
4111
4112
4113
4114
4115
4116
4117
4118
4119
4120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4121$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
d0ac1c44 4122if ${lt_cv_path_NM+:} false; then :
6bb11ab3
L
4123 $as_echo_n "(cached) " >&6
4124else
4125 if test -n "$NM"; then
4126 # Let the user override the test.
4127 lt_cv_path_NM="$NM"
4128else
4129 lt_nm_to_check="${ac_tool_prefix}nm"
4130 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4131 lt_nm_to_check="$lt_nm_to_check nm"
4132 fi
4133 for lt_tmp_nm in $lt_nm_to_check; do
4134 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4135 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4136 IFS="$lt_save_ifs"
4137 test -z "$ac_dir" && ac_dir=.
4138 tmp_nm="$ac_dir/$lt_tmp_nm"
4139 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4140 # Check to see if the nm accepts a BSD-compat flag.
4141 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4142 # nm: unknown option "B" ignored
4143 # Tru64's nm complains that /dev/null is an invalid object file
4144 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4145 */dev/null* | *'Invalid file or object type'*)
4146 lt_cv_path_NM="$tmp_nm -B"
4147 break
4148 ;;
4149 *)
4150 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4151 */dev/null*)
4152 lt_cv_path_NM="$tmp_nm -p"
4153 break
4154 ;;
4155 *)
4156 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4157 continue # so that we can try to find one that supports BSD flags
4158 ;;
4159 esac
4160 ;;
4161 esac
4162 fi
4163 done
4164 IFS="$lt_save_ifs"
4165 done
4166 : ${lt_cv_path_NM=no}
4167fi
4168fi
4169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4170$as_echo "$lt_cv_path_NM" >&6; }
4171if test "$lt_cv_path_NM" != "no"; then
4172 NM="$lt_cv_path_NM"
4173else
4174 # Didn't find any BSD compatible name lister, look for dumpbin.
4175 if test -n "$DUMPBIN"; then :
4176 # Let the user override the test.
4177 else
4178 if test -n "$ac_tool_prefix"; then
4179 for ac_prog in dumpbin "link -dump"
4180 do
4181 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4182set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4184$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4185if ${ac_cv_prog_DUMPBIN+:} false; then :
6bb11ab3
L
4186 $as_echo_n "(cached) " >&6
4187else
4188 if test -n "$DUMPBIN"; then
4189 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4190else
4191as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4192for as_dir in $PATH
4193do
4194 IFS=$as_save_IFS
4195 test -z "$as_dir" && as_dir=.
4196 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4197 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
4198 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4200 break 2
4201 fi
4202done
4203 done
4204IFS=$as_save_IFS
4205
4206fi
4207fi
4208DUMPBIN=$ac_cv_prog_DUMPBIN
4209if test -n "$DUMPBIN"; then
4210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4211$as_echo "$DUMPBIN" >&6; }
4212else
4213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4214$as_echo "no" >&6; }
4215fi
4216
4217
4218 test -n "$DUMPBIN" && break
4219 done
4220fi
4221if test -z "$DUMPBIN"; then
4222 ac_ct_DUMPBIN=$DUMPBIN
4223 for ac_prog in dumpbin "link -dump"
4224do
4225 # Extract the first word of "$ac_prog", so it can be a program name with args.
4226set dummy $ac_prog; ac_word=$2
4227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4228$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4229if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6bb11ab3
L
4230 $as_echo_n "(cached) " >&6
4231else
4232 if test -n "$ac_ct_DUMPBIN"; then
4233 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4234else
4235as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4236for as_dir in $PATH
4237do
4238 IFS=$as_save_IFS
4239 test -z "$as_dir" && as_dir=.
4240 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4241 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
4242 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4244 break 2
4245 fi
4246done
4247 done
4248IFS=$as_save_IFS
4249
4250fi
4251fi
4252ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4253if test -n "$ac_ct_DUMPBIN"; then
4254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4255$as_echo "$ac_ct_DUMPBIN" >&6; }
4256else
4257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4258$as_echo "no" >&6; }
4259fi
4260
4261
4262 test -n "$ac_ct_DUMPBIN" && break
4263done
4264
4265 if test "x$ac_ct_DUMPBIN" = x; then
4266 DUMPBIN=":"
4267 else
4268 case $cross_compiling:$ac_tool_warned in
4269yes:)
4270{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4271$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4272ac_tool_warned=yes ;;
4273esac
4274 DUMPBIN=$ac_ct_DUMPBIN
4275 fi
4276fi
4277
4278 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4279 *COFF*)
4280 DUMPBIN="$DUMPBIN -symbols"
4281 ;;
4282 *)
4283 DUMPBIN=:
4284 ;;
4285 esac
4286 fi
4287
4288 if test "$DUMPBIN" != ":"; then
4289 NM="$DUMPBIN"
4290 fi
4291fi
4292test -z "$NM" && NM=nm
4293
4294
4295
4296
4297
4298
4299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4300$as_echo_n "checking the name lister ($NM) interface... " >&6; }
d0ac1c44 4301if ${lt_cv_nm_interface+:} false; then :
6bb11ab3
L
4302 $as_echo_n "(cached) " >&6
4303else
4304 lt_cv_nm_interface="BSD nm"
4305 echo "int some_variable = 0;" > conftest.$ac_ext
4306 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4307 (eval "$ac_compile" 2>conftest.err)
4308 cat conftest.err >&5
4309 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4310 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4311 cat conftest.err >&5
4312 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4313 cat conftest.out >&5
4314 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4315 lt_cv_nm_interface="MS dumpbin"
4316 fi
4317 rm -f conftest*
4318fi
4319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4320$as_echo "$lt_cv_nm_interface" >&6; }
4321
4322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4323$as_echo_n "checking whether ln -s works... " >&6; }
4324LN_S=$as_ln_s
4325if test "$LN_S" = "ln -s"; then
4326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4327$as_echo "yes" >&6; }
4328else
4329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4330$as_echo "no, using $LN_S" >&6; }
4331fi
4332
4333# find the maximum length of command line arguments
4334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4335$as_echo_n "checking the maximum length of command line arguments... " >&6; }
d0ac1c44 4336if ${lt_cv_sys_max_cmd_len+:} false; then :
6bb11ab3
L
4337 $as_echo_n "(cached) " >&6
4338else
4339 i=0
4340 teststring="ABCD"
4341
4342 case $build_os in
4343 msdosdjgpp*)
4344 # On DJGPP, this test can blow up pretty badly due to problems in libc
4345 # (any single argument exceeding 2000 bytes causes a buffer overrun
4346 # during glob expansion). Even if it were fixed, the result of this
4347 # check would be larger than it should be.
4348 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4349 ;;
4350
4351 gnu*)
4352 # Under GNU Hurd, this test is not required because there is
4353 # no limit to the length of command line arguments.
4354 # Libtool will interpret -1 as no limit whatsoever
4355 lt_cv_sys_max_cmd_len=-1;
4356 ;;
4357
4358 cygwin* | mingw* | cegcc*)
4359 # On Win9x/ME, this test blows up -- it succeeds, but takes
4360 # about 5 minutes as the teststring grows exponentially.
4361 # Worse, since 9x/ME are not pre-emptively multitasking,
4362 # you end up with a "frozen" computer, even though with patience
4363 # the test eventually succeeds (with a max line length of 256k).
4364 # Instead, let's just punt: use the minimum linelength reported by
4365 # all of the supported platforms: 8192 (on NT/2K/XP).
4366 lt_cv_sys_max_cmd_len=8192;
4367 ;;
4368
4369 mint*)
4370 # On MiNT this can take a long time and run out of memory.
4371 lt_cv_sys_max_cmd_len=8192;
4372 ;;
4373
4374 amigaos*)
4375 # On AmigaOS with pdksh, this test takes hours, literally.
4376 # So we just punt and use a minimum line length of 8192.
4377 lt_cv_sys_max_cmd_len=8192;
4378 ;;
4379
4380 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4381 # This has been around since 386BSD, at least. Likely further.
4382 if test -x /sbin/sysctl; then
4383 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4384 elif test -x /usr/sbin/sysctl; then
4385 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4386 else
4387 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4388 fi
4389 # And add a safety zone
4390 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4391 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4392 ;;
4393
4394 interix*)
4395 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4396 lt_cv_sys_max_cmd_len=196608
4397 ;;
4398
4399 osf*)
4400 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4401 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4402 # nice to cause kernel panics so lets avoid the loop below.
4403 # First set a reasonable default.
4404 lt_cv_sys_max_cmd_len=16384
4405 #
4406 if test -x /sbin/sysconfig; then
4407 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4408 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4409 esac
4410 fi
4411 ;;
4412 sco3.2v5*)
4413 lt_cv_sys_max_cmd_len=102400
4414 ;;
4415 sysv5* | sco5v6* | sysv4.2uw2*)
4416 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4417 if test -n "$kargmax"; then
4418 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4419 else
4420 lt_cv_sys_max_cmd_len=32768
4421 fi
4422 ;;
4423 *)
4424 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4425 if test -n "$lt_cv_sys_max_cmd_len"; then
4426 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4427 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4428 else
4429 # Make teststring a little bigger before we do anything with it.
4430 # a 1K string should be a reasonable start.
4431 for i in 1 2 3 4 5 6 7 8 ; do
4432 teststring=$teststring$teststring
4433 done
4434 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4435 # If test is not a shell built-in, we'll probably end up computing a
4436 # maximum length that is only half of the actual maximum length, but
4437 # we can't tell.
4438 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
4439 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4440 test $i != 17 # 1/2 MB should be enough
4441 do
4442 i=`expr $i + 1`
4443 teststring=$teststring$teststring
4444 done
4445 # Only check the string length outside the loop.
4446 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4447 teststring=
4448 # Add a significant safety factor because C++ compilers can tack on
4449 # massive amounts of additional arguments before passing them to the
4450 # linker. It appears as though 1/2 is a usable value.
4451 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4452 fi
4453 ;;
4454 esac
4455
4456fi
4457
4458if test -n $lt_cv_sys_max_cmd_len ; then
4459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4460$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4461else
4462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4463$as_echo "none" >&6; }
4464fi
4465max_cmd_len=$lt_cv_sys_max_cmd_len
4466
4467
4468
4469
4470
4471
4472: ${CP="cp -f"}
4473: ${MV="mv -f"}
4474: ${RM="rm -f"}
4475
4476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4477$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4478# Try some XSI features
4479xsi_shell=no
4480( _lt_dummy="a/b/c"
4481 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4482 = c,a/b,, \
4483 && eval 'test $(( 1 + 1 )) -eq 2 \
4484 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4485 && xsi_shell=yes
4486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4487$as_echo "$xsi_shell" >&6; }
4488
4489
4490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4491$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4492lt_shell_append=no
4493( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4494 >/dev/null 2>&1 \
4495 && lt_shell_append=yes
4496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4497$as_echo "$lt_shell_append" >&6; }
4498
4499
4500if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4501 lt_unset=unset
4502else
4503 lt_unset=false
4504fi
4505
4506
4507
4508
4509
4510# test EBCDIC or ASCII
4511case `echo X|tr X '\101'` in
4512 A) # ASCII based system
4513 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4514 lt_SP2NL='tr \040 \012'
4515 lt_NL2SP='tr \015\012 \040\040'
4516 ;;
4517 *) # EBCDIC based system
4518 lt_SP2NL='tr \100 \n'
4519 lt_NL2SP='tr \r\n \100\100'
4520 ;;
4521esac
4522
4523
4524
4525
4526
4527
4528
4529
4530
4531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4532$as_echo_n "checking for $LD option to reload object files... " >&6; }
d0ac1c44 4533if ${lt_cv_ld_reload_flag+:} false; then :
6bb11ab3
L
4534 $as_echo_n "(cached) " >&6
4535else
4536 lt_cv_ld_reload_flag='-r'
4537fi
4538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4539$as_echo "$lt_cv_ld_reload_flag" >&6; }
4540reload_flag=$lt_cv_ld_reload_flag
4541case $reload_flag in
4542"" | " "*) ;;
4543*) reload_flag=" $reload_flag" ;;
4544esac
4545reload_cmds='$LD$reload_flag -o $output$reload_objs'
4546case $host_os in
4547 darwin*)
4548 if test "$GCC" = yes; then
4549 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4550 else
4551 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4552 fi
4553 ;;
4554esac
4555
4556
4557
4558
4559
4560
4561
4562
4563
4564if test -n "$ac_tool_prefix"; then
4565 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4566set dummy ${ac_tool_prefix}objdump; ac_word=$2
4567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4568$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4569if ${ac_cv_prog_OBJDUMP+:} false; then :
6bb11ab3
L
4570 $as_echo_n "(cached) " >&6
4571else
4572 if test -n "$OBJDUMP"; then
4573 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4574else
4575as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4576for as_dir in $PATH
4577do
4578 IFS=$as_save_IFS
4579 test -z "$as_dir" && as_dir=.
4580 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4581 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
4582 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4584 break 2
4585 fi
4586done
4587 done
4588IFS=$as_save_IFS
4589
4590fi
4591fi
4592OBJDUMP=$ac_cv_prog_OBJDUMP
4593if test -n "$OBJDUMP"; then
4594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4595$as_echo "$OBJDUMP" >&6; }
4596else
4597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4598$as_echo "no" >&6; }
4599fi
4600
4601
4602fi
4603if test -z "$ac_cv_prog_OBJDUMP"; then
4604 ac_ct_OBJDUMP=$OBJDUMP
4605 # Extract the first word of "objdump", so it can be a program name with args.
4606set dummy objdump; ac_word=$2
4607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4608$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4609if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6bb11ab3
L
4610 $as_echo_n "(cached) " >&6
4611else
4612 if test -n "$ac_ct_OBJDUMP"; then
4613 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4614else
4615as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4616for as_dir in $PATH
4617do
4618 IFS=$as_save_IFS
4619 test -z "$as_dir" && as_dir=.
4620 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4621 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
4622 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4624 break 2
4625 fi
4626done
4627 done
4628IFS=$as_save_IFS
4629
4630fi
4631fi
4632ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4633if test -n "$ac_ct_OBJDUMP"; then
4634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4635$as_echo "$ac_ct_OBJDUMP" >&6; }
4636else
4637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4638$as_echo "no" >&6; }
4639fi
4640
4641 if test "x$ac_ct_OBJDUMP" = x; then
4642 OBJDUMP="false"
4643 else
4644 case $cross_compiling:$ac_tool_warned in
4645yes:)
4646{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4647$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4648ac_tool_warned=yes ;;
4649esac
4650 OBJDUMP=$ac_ct_OBJDUMP
4651 fi
4652else
4653 OBJDUMP="$ac_cv_prog_OBJDUMP"
4654fi
4655
4656test -z "$OBJDUMP" && OBJDUMP=objdump
4657
4658
4659
4660
4661
4662
4663
4664
4665
4666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4667$as_echo_n "checking how to recognize dependent libraries... " >&6; }
d0ac1c44 4668if ${lt_cv_deplibs_check_method+:} false; then :
6bb11ab3
L
4669 $as_echo_n "(cached) " >&6
4670else
4671 lt_cv_file_magic_cmd='$MAGIC_CMD'
4672lt_cv_file_magic_test_file=
4673lt_cv_deplibs_check_method='unknown'
4674# Need to set the preceding variable on all platforms that support
4675# interlibrary dependencies.
4676# 'none' -- dependencies not supported.
4677# `unknown' -- same as none, but documents that we really don't know.
4678# 'pass_all' -- all dependencies passed with no checks.
4679# 'test_compile' -- check by making test program.
4680# 'file_magic [[regex]]' -- check by looking for files in library path
4681# which responds to the $file_magic_cmd with a given extended regex.
4682# If you have `file' or equivalent on your system and you're not sure
4683# whether `pass_all' will *always* work, you probably want this one.
4684
4685case $host_os in
4686aix[4-9]*)
4687 lt_cv_deplibs_check_method=pass_all
4688 ;;
4689
4690beos*)
4691 lt_cv_deplibs_check_method=pass_all
4692 ;;
4693
4694bsdi[45]*)
4695 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4696 lt_cv_file_magic_cmd='/usr/bin/file -L'
4697 lt_cv_file_magic_test_file=/shlib/libc.so
4698 ;;
4699
4700cygwin*)
4701 # func_win32_libid is a shell function defined in ltmain.sh
4702 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4703 lt_cv_file_magic_cmd='func_win32_libid'
4704 ;;
4705
4706mingw* | pw32*)
4707 # Base MSYS/MinGW do not provide the 'file' command needed by
4708 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4709 # unless we find 'file', for example because we are cross-compiling.
4710 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
4711 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
4712 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4713 lt_cv_file_magic_cmd='func_win32_libid'
4714 else
4715 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4716 lt_cv_file_magic_cmd='$OBJDUMP -f'
4717 fi
4718 ;;
4719
4720cegcc*)
4721 # use the weaker test based on 'objdump'. See mingw*.
4722 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4723 lt_cv_file_magic_cmd='$OBJDUMP -f'
4724 ;;
4725
4726darwin* | rhapsody*)
4727 lt_cv_deplibs_check_method=pass_all
4728 ;;
4729
4730freebsd* | dragonfly*)
4731 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4732 case $host_cpu in
4733 i*86 )
4734 # Not sure whether the presence of OpenBSD here was a mistake.
4735 # Let's accept both of them until this is cleared up.
4736 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4737 lt_cv_file_magic_cmd=/usr/bin/file
4738 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4739 ;;
4740 esac
4741 else
4742 lt_cv_deplibs_check_method=pass_all
4743 fi
4744 ;;
4745
4746gnu*)
4747 lt_cv_deplibs_check_method=pass_all
4748 ;;
4749
4750haiku*)
4751 lt_cv_deplibs_check_method=pass_all
4752 ;;
4753
4754hpux10.20* | hpux11*)
4755 lt_cv_file_magic_cmd=/usr/bin/file
4756 case $host_cpu in
4757 ia64*)
4758 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4759 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4760 ;;
4761 hppa*64*)
4762 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]'
4763 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4764 ;;
4765 *)
4766 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
4767 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4768 ;;
4769 esac
4770 ;;
4771
4772interix[3-9]*)
4773 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4774 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4775 ;;
4776
4777irix5* | irix6* | nonstopux*)
4778 case $LD in
4779 *-32|*"-32 ") libmagic=32-bit;;
4780 *-n32|*"-n32 ") libmagic=N32;;
4781 *-64|*"-64 ") libmagic=64-bit;;
4782 *) libmagic=never-match;;
4783 esac
4784 lt_cv_deplibs_check_method=pass_all
4785 ;;
4786
4787# This must be Linux ELF.
4788linux* | k*bsd*-gnu | kopensolaris*-gnu)
4789 lt_cv_deplibs_check_method=pass_all
4790 ;;
4791
4792netbsd*)
4793 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4794 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4795 else
4796 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4797 fi
4798 ;;
4799
4800newos6*)
4801 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4802 lt_cv_file_magic_cmd=/usr/bin/file
4803 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4804 ;;
4805
4806*nto* | *qnx*)
4807 lt_cv_deplibs_check_method=pass_all
4808 ;;
4809
4810openbsd*)
4811 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4812 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4813 else
4814 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4815 fi
4816 ;;
4817
4818osf3* | osf4* | osf5*)
4819 lt_cv_deplibs_check_method=pass_all
4820 ;;
4821
4822rdos*)
4823 lt_cv_deplibs_check_method=pass_all
4824 ;;
4825
4826solaris*)
4827 lt_cv_deplibs_check_method=pass_all
4828 ;;
4829
4830sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4831 lt_cv_deplibs_check_method=pass_all
4832 ;;
4833
4834sysv4 | sysv4.3*)
4835 case $host_vendor in
4836 motorola)
4837 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]'
4838 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4839 ;;
4840 ncr)
4841 lt_cv_deplibs_check_method=pass_all
4842 ;;
4843 sequent)
4844 lt_cv_file_magic_cmd='/bin/file'
4845 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4846 ;;
4847 sni)
4848 lt_cv_file_magic_cmd='/bin/file'
4849 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4850 lt_cv_file_magic_test_file=/lib/libc.so
4851 ;;
4852 siemens)
4853 lt_cv_deplibs_check_method=pass_all
4854 ;;
4855 pc)
4856 lt_cv_deplibs_check_method=pass_all
4857 ;;
4858 esac
4859 ;;
4860
4861tpf*)
4862 lt_cv_deplibs_check_method=pass_all
4863 ;;
4864esac
4865
4866fi
4867{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
4868$as_echo "$lt_cv_deplibs_check_method" >&6; }
4869file_magic_cmd=$lt_cv_file_magic_cmd
4870deplibs_check_method=$lt_cv_deplibs_check_method
4871test -z "$deplibs_check_method" && deplibs_check_method=unknown
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881
4882
4883
68ed2854
MF
4884plugin_option=
4885plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
4886for plugin in $plugin_names; do
4887 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
4888 if test x$plugin_so = x$plugin; then
4889 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
4890 fi
4891 if test x$plugin_so != x$plugin; then
4892 plugin_option="--plugin $plugin_so"
4893 break
4894 fi
4895done
4896
6bb11ab3
L
4897if test -n "$ac_tool_prefix"; then
4898 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4899set dummy ${ac_tool_prefix}ar; ac_word=$2
4900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4901$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4902if ${ac_cv_prog_AR+:} false; then :
6bb11ab3
L
4903 $as_echo_n "(cached) " >&6
4904else
4905 if test -n "$AR"; then
4906 ac_cv_prog_AR="$AR" # Let the user override the test.
4907else
4908as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4909for as_dir in $PATH
4910do
4911 IFS=$as_save_IFS
4912 test -z "$as_dir" && as_dir=.
4913 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4914 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
4915 ac_cv_prog_AR="${ac_tool_prefix}ar"
4916 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4917 break 2
4918 fi
4919done
4920 done
4921IFS=$as_save_IFS
4922
4923fi
4924fi
4925AR=$ac_cv_prog_AR
4926if test -n "$AR"; then
4927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4928$as_echo "$AR" >&6; }
4929else
4930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4931$as_echo "no" >&6; }
4932fi
4933
4934
4935fi
4936if test -z "$ac_cv_prog_AR"; then
4937 ac_ct_AR=$AR
4938 # Extract the first word of "ar", so it can be a program name with args.
4939set dummy ar; ac_word=$2
4940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4941$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4942if ${ac_cv_prog_ac_ct_AR+:} false; then :
6bb11ab3
L
4943 $as_echo_n "(cached) " >&6
4944else
4945 if test -n "$ac_ct_AR"; then
4946 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4947else
4948as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4949for as_dir in $PATH
4950do
4951 IFS=$as_save_IFS
4952 test -z "$as_dir" && as_dir=.
4953 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4954 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
4955 ac_cv_prog_ac_ct_AR="ar"
4956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4957 break 2
4958 fi
4959done
4960 done
4961IFS=$as_save_IFS
4962
4963fi
4964fi
4965ac_ct_AR=$ac_cv_prog_ac_ct_AR
4966if test -n "$ac_ct_AR"; then
4967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4968$as_echo "$ac_ct_AR" >&6; }
4969else
4970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4971$as_echo "no" >&6; }
4972fi
4973
4974 if test "x$ac_ct_AR" = x; then
4975 AR="false"
4976 else
4977 case $cross_compiling:$ac_tool_warned in
4978yes:)
4979{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4980$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4981ac_tool_warned=yes ;;
4982esac
4983 AR=$ac_ct_AR
4984 fi
4985else
4986 AR="$ac_cv_prog_AR"
4987fi
4988
4989test -z "$AR" && AR=ar
68ed2854
MF
4990if test -n "$plugin_option"; then
4991 if $AR --help 2>&1 | grep -q "\--plugin"; then
aa09469f
MF
4992 touch conftest.c
4993 $AR $plugin_option rc conftest.a conftest.c
4994 if test "$?" != 0; then
4995 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
4996$as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
4997 else
4998 AR="$AR $plugin_option"
4999 fi
5000 rm -f conftest.*
68ed2854
MF
5001 fi
5002fi
6bb11ab3
L
5003test -z "$AR_FLAGS" && AR_FLAGS=cru
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015if test -n "$ac_tool_prefix"; then
5016 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5017set dummy ${ac_tool_prefix}strip; ac_word=$2
5018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5019$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5020if ${ac_cv_prog_STRIP+:} false; then :
6bb11ab3
L
5021 $as_echo_n "(cached) " >&6
5022else
5023 if test -n "$STRIP"; then
5024 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5025else
5026as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5027for as_dir in $PATH
5028do
5029 IFS=$as_save_IFS
5030 test -z "$as_dir" && as_dir=.
5031 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5032 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
5033 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5035 break 2
5036 fi
5037done
5038 done
5039IFS=$as_save_IFS
5040
5041fi
5042fi
5043STRIP=$ac_cv_prog_STRIP
5044if test -n "$STRIP"; then
5045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5046$as_echo "$STRIP" >&6; }
5047else
5048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5049$as_echo "no" >&6; }
5050fi
5051
5052
5053fi
5054if test -z "$ac_cv_prog_STRIP"; then
5055 ac_ct_STRIP=$STRIP
5056 # Extract the first word of "strip", so it can be a program name with args.
5057set dummy strip; ac_word=$2
5058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5059$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5060if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6bb11ab3
L
5061 $as_echo_n "(cached) " >&6
5062else
5063 if test -n "$ac_ct_STRIP"; then
5064 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5065else
5066as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5067for as_dir in $PATH
5068do
5069 IFS=$as_save_IFS
5070 test -z "$as_dir" && as_dir=.
5071 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5072 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
5073 ac_cv_prog_ac_ct_STRIP="strip"
5074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5075 break 2
5076 fi
5077done
5078 done
5079IFS=$as_save_IFS
5080
5081fi
5082fi
5083ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5084if test -n "$ac_ct_STRIP"; then
5085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5086$as_echo "$ac_ct_STRIP" >&6; }
5087else
5088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5089$as_echo "no" >&6; }
5090fi
5091
5092 if test "x$ac_ct_STRIP" = x; then
5093 STRIP=":"
5094 else
5095 case $cross_compiling:$ac_tool_warned in
5096yes:)
5097{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5098$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5099ac_tool_warned=yes ;;
5100esac
5101 STRIP=$ac_ct_STRIP
5102 fi
5103else
5104 STRIP="$ac_cv_prog_STRIP"
5105fi
5106
5107test -z "$STRIP" && STRIP=:
5108
5109
5110
5111
5112
5113
5114if test -n "$ac_tool_prefix"; then
5115 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5116set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5118$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5119if ${ac_cv_prog_RANLIB+:} false; then :
6bb11ab3
L
5120 $as_echo_n "(cached) " >&6
5121else
5122 if test -n "$RANLIB"; then
5123 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5124else
5125as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5126for as_dir in $PATH
5127do
5128 IFS=$as_save_IFS
5129 test -z "$as_dir" && as_dir=.
5130 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5131 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
5132 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5134 break 2
5135 fi
5136done
5137 done
5138IFS=$as_save_IFS
5139
5140fi
5141fi
5142RANLIB=$ac_cv_prog_RANLIB
5143if test -n "$RANLIB"; then
5144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5145$as_echo "$RANLIB" >&6; }
5146else
5147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5148$as_echo "no" >&6; }
5149fi
5150
5151
5152fi
5153if test -z "$ac_cv_prog_RANLIB"; then
5154 ac_ct_RANLIB=$RANLIB
5155 # Extract the first word of "ranlib", so it can be a program name with args.
5156set dummy ranlib; ac_word=$2
5157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5158$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5159if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6bb11ab3
L
5160 $as_echo_n "(cached) " >&6
5161else
5162 if test -n "$ac_ct_RANLIB"; then
5163 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5164else
5165as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5166for as_dir in $PATH
5167do
5168 IFS=$as_save_IFS
5169 test -z "$as_dir" && as_dir=.
5170 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5171 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
5172 ac_cv_prog_ac_ct_RANLIB="ranlib"
5173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5174 break 2
5175 fi
5176done
5177 done
5178IFS=$as_save_IFS
5179
5180fi
5181fi
5182ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5183if test -n "$ac_ct_RANLIB"; then
5184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5185$as_echo "$ac_ct_RANLIB" >&6; }
5186else
5187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5188$as_echo "no" >&6; }
5189fi
5190
5191 if test "x$ac_ct_RANLIB" = x; then
5192 RANLIB=":"
5193 else
5194 case $cross_compiling:$ac_tool_warned in
5195yes:)
5196{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5197$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5198ac_tool_warned=yes ;;
5199esac
5200 RANLIB=$ac_ct_RANLIB
5201 fi
5202else
5203 RANLIB="$ac_cv_prog_RANLIB"
5204fi
5205
5206test -z "$RANLIB" && RANLIB=:
68ed2854
MF
5207if test -n "$plugin_option" && test "$RANLIB" != ":"; then
5208 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
5209 RANLIB="$RANLIB $plugin_option"
5210 fi
5211fi
6bb11ab3
L
5212
5213
5214
5215
5216
5217
5218# Determine commands to create old-style static archives.
5219old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5220old_postinstall_cmds='chmod 644 $oldlib'
5221old_postuninstall_cmds=
5222
5223if test -n "$RANLIB"; then
5224 case $host_os in
5225 openbsd*)
5226 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5227 ;;
5228 *)
5229 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5230 ;;
5231 esac
5232 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5233fi
5234
5235case $host_os in
5236 darwin*)
5237 lock_old_archive_extraction=yes ;;
5238 *)
5239 lock_old_archive_extraction=no ;;
5240esac
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262for ac_prog in gawk mawk nawk awk
5263do
5264 # Extract the first word of "$ac_prog", so it can be a program name with args.
5265set dummy $ac_prog; ac_word=$2
5266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5267$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5268if ${ac_cv_prog_AWK+:} false; then :
6bb11ab3
L
5269 $as_echo_n "(cached) " >&6
5270else
5271 if test -n "$AWK"; then
5272 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5273else
5274as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5275for as_dir in $PATH
5276do
5277 IFS=$as_save_IFS
5278 test -z "$as_dir" && as_dir=.
5279 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5280 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
5281 ac_cv_prog_AWK="$ac_prog"
5282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5283 break 2
5284 fi
5285done
5286 done
5287IFS=$as_save_IFS
5288
5289fi
5290fi
5291AWK=$ac_cv_prog_AWK
5292if test -n "$AWK"; then
5293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5294$as_echo "$AWK" >&6; }
5295else
5296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5297$as_echo "no" >&6; }
5298fi
5299
5300
5301 test -n "$AWK" && break
5302done
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322# If no C compiler was specified, use CC.
5323LTCC=${LTCC-"$CC"}
5324
5325# If no C compiler flags were specified, use CFLAGS.
5326LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5327
5328# Allow CC to be a program name with arguments.
5329compiler=$CC
5330
5331
5332# Check for command to grab the raw symbol name followed by C symbol from nm.
5333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5334$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
d0ac1c44 5335if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6bb11ab3
L
5336 $as_echo_n "(cached) " >&6
5337else
5338
5339# These are sane defaults that work on at least a few old systems.
5340# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5341
5342# Character class describing NM global symbol codes.
5343symcode='[BCDEGRST]'
5344
5345# Regexp to match symbols that can be accessed directly from C.
5346sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5347
5348# Define system-specific variables.
5349case $host_os in
5350aix*)
5351 symcode='[BCDT]'
5352 ;;
5353cygwin* | mingw* | pw32* | cegcc*)
5354 symcode='[ABCDGISTW]'
5355 ;;
5356hpux*)
5357 if test "$host_cpu" = ia64; then
5358 symcode='[ABCDEGRST]'
5359 fi
5360 ;;
5361irix* | nonstopux*)
5362 symcode='[BCDEGRST]'
5363 ;;
5364osf*)
5365 symcode='[BCDEGQRST]'
5366 ;;
5367solaris*)
5368 symcode='[BDRT]'
5369 ;;
5370sco3.2v5*)
5371 symcode='[DT]'
5372 ;;
5373sysv4.2uw2*)
5374 symcode='[DT]'
5375 ;;
5376sysv5* | sco5v6* | unixware* | OpenUNIX*)
5377 symcode='[ABDT]'
5378 ;;
5379sysv4)
5380 symcode='[DFNSTU]'
5381 ;;
5382esac
5383
5384# If we're using GNU nm, then use its standard symbol codes.
5385case `$NM -V 2>&1` in
5386*GNU* | *'with BFD'*)
5387 symcode='[ABCDGIRSTW]' ;;
5388esac
5389
5390# Transform an extracted symbol line into a proper C declaration.
5391# Some systems (esp. on ia64) link data and code symbols differently,
5392# so use this general approach.
5393lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5394
5395# Transform an extracted symbol line into symbol name and symbol address
5396lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5397lt_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'"
5398
5399# Handle CRLF in mingw tool chain
5400opt_cr=
5401case $build_os in
5402mingw*)
5403 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5404 ;;
5405esac
5406
5407# Try without a prefix underscore, then with it.
5408for ac_symprfx in "" "_"; do
5409
5410 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5411 symxfrm="\\1 $ac_symprfx\\2 \\2"
5412
5413 # Write the raw and C identifiers.
5414 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5415 # Fake it for dumpbin and say T for any non-static function
5416 # and D for any global variable.
5417 # Also find C++ and __fastcall symbols from MSVC++,
5418 # which start with @ or ?.
5419 lt_cv_sys_global_symbol_pipe="$AWK '"\
5420" {last_section=section; section=\$ 3};"\
5421" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5422" \$ 0!~/External *\|/{next};"\
5423" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5424" {if(hide[section]) next};"\
5425" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5426" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5427" s[1]~/^[@?]/{print s[1], s[1]; next};"\
5428" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5429" ' prfx=^$ac_symprfx"
5430 else
5431 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5432 fi
5433
5434 # Check to see that the pipe works correctly.
5435 pipe_works=no
5436
5437 rm -f conftest*
5438 cat > conftest.$ac_ext <<_LT_EOF
5439#ifdef __cplusplus
5440extern "C" {
5441#endif
5442char nm_test_var;
5443void nm_test_func(void);
5444void nm_test_func(void){}
5445#ifdef __cplusplus
5446}
5447#endif
5448int main(){nm_test_var='a';nm_test_func();return(0);}
5449_LT_EOF
5450
5451 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5452 (eval $ac_compile) 2>&5
5453 ac_status=$?
5454 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5455 test $ac_status = 0; }; then
5456 # Now try to grab the symbols.
5457 nlist=conftest.nm
5458 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5459 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5460 ac_status=$?
5461 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5462 test $ac_status = 0; } && test -s "$nlist"; then
5463 # Try sorting and uniquifying the output.
5464 if sort "$nlist" | uniq > "$nlist"T; then
5465 mv -f "$nlist"T "$nlist"
5466 else
5467 rm -f "$nlist"T
5468 fi
5469
5470 # Make sure that we snagged all the symbols we need.
5471 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5472 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5473 cat <<_LT_EOF > conftest.$ac_ext
5474#ifdef __cplusplus
5475extern "C" {
5476#endif
5477
5478_LT_EOF
5479 # Now generate the symbol file.
5480 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5481
5482 cat <<_LT_EOF >> conftest.$ac_ext
5483
5484/* The mapping between symbol names and symbols. */
5485const struct {
5486 const char *name;
5487 void *address;
5488}
5489lt__PROGRAM__LTX_preloaded_symbols[] =
5490{
5491 { "@PROGRAM@", (void *) 0 },
5492_LT_EOF
5493 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5494 cat <<\_LT_EOF >> conftest.$ac_ext
5495 {0, (void *) 0}
5496};
5497
5498/* This works around a problem in FreeBSD linker */
5499#ifdef FREEBSD_WORKAROUND
5500static const void *lt_preloaded_setup() {
5501 return lt__PROGRAM__LTX_preloaded_symbols;
5502}
5503#endif
5504
5505#ifdef __cplusplus
5506}
5507#endif
5508_LT_EOF
5509 # Now try linking the two files.
5510 mv conftest.$ac_objext conftstm.$ac_objext
5511 lt_save_LIBS="$LIBS"
5512 lt_save_CFLAGS="$CFLAGS"
5513 LIBS="conftstm.$ac_objext"
5514 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5515 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5516 (eval $ac_link) 2>&5
5517 ac_status=$?
5518 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5519 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5520 pipe_works=yes
5521 fi
5522 LIBS="$lt_save_LIBS"
5523 CFLAGS="$lt_save_CFLAGS"
5524 else
5525 echo "cannot find nm_test_func in $nlist" >&5
5526 fi
5527 else
5528 echo "cannot find nm_test_var in $nlist" >&5
5529 fi
5530 else
5531 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5532 fi
5533 else
5534 echo "$progname: failed program was:" >&5
5535 cat conftest.$ac_ext >&5
5536 fi
5537 rm -rf conftest* conftst*
5538
5539 # Do not use the global_symbol_pipe unless it works.
5540 if test "$pipe_works" = yes; then
5541 break
5542 else
5543 lt_cv_sys_global_symbol_pipe=
5544 fi
5545done
5546
5547fi
5548
5549if test -z "$lt_cv_sys_global_symbol_pipe"; then
5550 lt_cv_sys_global_symbol_to_cdecl=
5551fi
5552if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5554$as_echo "failed" >&6; }
5555else
5556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5557$as_echo "ok" >&6; }
5558fi
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575
5576
5577
5578
5579
5580
5581# Check whether --enable-libtool-lock was given.
5582if test "${enable_libtool_lock+set}" = set; then :
5583 enableval=$enable_libtool_lock;
5584fi
5585
5586test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5587
5588# Some flags need to be propagated to the compiler or linker for good
5589# libtool support.
5590case $host in
5591ia64-*-hpux*)
5592 # Find out which ABI we are using.
5593 echo 'int i;' > conftest.$ac_ext
5594 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5595 (eval $ac_compile) 2>&5
5596 ac_status=$?
5597 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5598 test $ac_status = 0; }; then
5599 case `/usr/bin/file conftest.$ac_objext` in
5600 *ELF-32*)
5601 HPUX_IA64_MODE="32"
5602 ;;
5603 *ELF-64*)
5604 HPUX_IA64_MODE="64"
5605 ;;
5606 esac
5607 fi
5608 rm -rf conftest*
5609 ;;
5610*-*-irix6*)
5611 # Find out which ABI we are using.
5612 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
5613 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5614 (eval $ac_compile) 2>&5
5615 ac_status=$?
5616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5617 test $ac_status = 0; }; then
5618 if test "$lt_cv_prog_gnu_ld" = yes; then
5619 case `/usr/bin/file conftest.$ac_objext` in
5620 *32-bit*)
5621 LD="${LD-ld} -melf32bsmip"
5622 ;;
5623 *N32*)
5624 LD="${LD-ld} -melf32bmipn32"
5625 ;;
5626 *64-bit*)
5627 LD="${LD-ld} -melf64bmip"
5628 ;;
5629 esac
5630 else
5631 case `/usr/bin/file conftest.$ac_objext` in
5632 *32-bit*)
5633 LD="${LD-ld} -32"
5634 ;;
5635 *N32*)
5636 LD="${LD-ld} -n32"
5637 ;;
5638 *64-bit*)
5639 LD="${LD-ld} -64"
5640 ;;
5641 esac
5642 fi
5643 fi
5644 rm -rf conftest*
5645 ;;
5646
bf3d9781 5647x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6bb11ab3
L
5648s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5649 # Find out which ABI we are using.
5650 echo 'int i;' > conftest.$ac_ext
5651 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5652 (eval $ac_compile) 2>&5
5653 ac_status=$?
5654 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5655 test $ac_status = 0; }; then
5656 case `/usr/bin/file conftest.o` in
5657 *32-bit*)
5658 case $host in
5659 x86_64-*kfreebsd*-gnu)
5660 LD="${LD-ld} -m elf_i386_fbsd"
5661 ;;
5662 x86_64-*linux*)
5663 case `/usr/bin/file conftest.o` in
5664 *x86-64*)
5665 LD="${LD-ld} -m elf32_x86_64"
5666 ;;
5667 *)
5668 LD="${LD-ld} -m elf_i386"
5669 ;;
5670 esac
5671 ;;
bf3d9781
AM
5672 powerpc64le-*linux*)
5673 LD="${LD-ld} -m elf32lppclinux"
5674 ;;
5675 powerpc64-*linux*)
6bb11ab3
L
5676 LD="${LD-ld} -m elf32ppclinux"
5677 ;;
5678 s390x-*linux*)
5679 LD="${LD-ld} -m elf_s390"
5680 ;;
5681 sparc64-*linux*)
5682 LD="${LD-ld} -m elf32_sparc"
5683 ;;
5684 esac
5685 ;;
5686 *64-bit*)
5687 case $host in
5688 x86_64-*kfreebsd*-gnu)
5689 LD="${LD-ld} -m elf_x86_64_fbsd"
5690 ;;
5691 x86_64-*linux*)
5692 LD="${LD-ld} -m elf_x86_64"
5693 ;;
bf3d9781
AM
5694 powerpcle-*linux*)
5695 LD="${LD-ld} -m elf64lppc"
5696 ;;
5697 powerpc-*linux*)
6bb11ab3
L
5698 LD="${LD-ld} -m elf64ppc"
5699 ;;
5700 s390*-*linux*|s390*-*tpf*)
5701 LD="${LD-ld} -m elf64_s390"
5702 ;;
5703 sparc*-*linux*)
5704 LD="${LD-ld} -m elf64_sparc"
5705 ;;
5706 esac
5707 ;;
5708 esac
5709 fi
5710 rm -rf conftest*
5711 ;;
5712
5713*-*-sco3.2v5*)
5714 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5715 SAVE_CFLAGS="$CFLAGS"
5716 CFLAGS="$CFLAGS -belf"
5717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5718$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
d0ac1c44 5719if ${lt_cv_cc_needs_belf+:} false; then :
6bb11ab3
L
5720 $as_echo_n "(cached) " >&6
5721else
5722 ac_ext=c
5723ac_cpp='$CPP $CPPFLAGS'
5724ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5725ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5726ac_compiler_gnu=$ac_cv_c_compiler_gnu
5727
5728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5729/* end confdefs.h. */
5730
5731int
5732main ()
5733{
5734
5735 ;
5736 return 0;
5737}
5738_ACEOF
5739if ac_fn_c_try_link "$LINENO"; then :
5740 lt_cv_cc_needs_belf=yes
5741else
5742 lt_cv_cc_needs_belf=no
5743fi
5744rm -f core conftest.err conftest.$ac_objext \
5745 conftest$ac_exeext conftest.$ac_ext
5746 ac_ext=c
5747ac_cpp='$CPP $CPPFLAGS'
5748ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5749ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5750ac_compiler_gnu=$ac_cv_c_compiler_gnu
5751
5752fi
5753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
5754$as_echo "$lt_cv_cc_needs_belf" >&6; }
5755 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5756 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5757 CFLAGS="$SAVE_CFLAGS"
5758 fi
5759 ;;
5760sparc*-*solaris*)
5761 # Find out which ABI we are using.
5762 echo 'int i;' > conftest.$ac_ext
5763 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5764 (eval $ac_compile) 2>&5
5765 ac_status=$?
5766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5767 test $ac_status = 0; }; then
5768 case `/usr/bin/file conftest.o` in
5769 *64-bit*)
5770 case $lt_cv_prog_gnu_ld in
5771 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5772 *)
5773 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5774 LD="${LD-ld} -64"
5775 fi
5776 ;;
5777 esac
5778 ;;
5779 esac
5780 fi
5781 rm -rf conftest*
5782 ;;
5783esac
5784
5785need_locks="$enable_libtool_lock"
5786
5787
5788 case $host_os in
5789 rhapsody* | darwin*)
5790 if test -n "$ac_tool_prefix"; then
5791 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5792set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5794$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5795if ${ac_cv_prog_DSYMUTIL+:} false; then :
6bb11ab3
L
5796 $as_echo_n "(cached) " >&6
5797else
5798 if test -n "$DSYMUTIL"; then
5799 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5800else
5801as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5802for as_dir in $PATH
5803do
5804 IFS=$as_save_IFS
5805 test -z "$as_dir" && as_dir=.
5806 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5807 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
5808 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5810 break 2
5811 fi
5812done
5813 done
5814IFS=$as_save_IFS
5815
5816fi
5817fi
5818DSYMUTIL=$ac_cv_prog_DSYMUTIL
5819if test -n "$DSYMUTIL"; then
5820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
5821$as_echo "$DSYMUTIL" >&6; }
5822else
5823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5824$as_echo "no" >&6; }
5825fi
5826
5827
5828fi
5829if test -z "$ac_cv_prog_DSYMUTIL"; then
5830 ac_ct_DSYMUTIL=$DSYMUTIL
5831 # Extract the first word of "dsymutil", so it can be a program name with args.
5832set dummy dsymutil; ac_word=$2
5833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5834$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5835if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6bb11ab3
L
5836 $as_echo_n "(cached) " >&6
5837else
5838 if test -n "$ac_ct_DSYMUTIL"; then
5839 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5840else
5841as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5842for as_dir in $PATH
5843do
5844 IFS=$as_save_IFS
5845 test -z "$as_dir" && as_dir=.
5846 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5847 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
5848 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5850 break 2
5851 fi
5852done
5853 done
5854IFS=$as_save_IFS
5855
5856fi
5857fi
5858ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5859if test -n "$ac_ct_DSYMUTIL"; then
5860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
5861$as_echo "$ac_ct_DSYMUTIL" >&6; }
5862else
5863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5864$as_echo "no" >&6; }
5865fi
5866
5867 if test "x$ac_ct_DSYMUTIL" = x; then
5868 DSYMUTIL=":"
5869 else
5870 case $cross_compiling:$ac_tool_warned in
5871yes:)
5872{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5873$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5874ac_tool_warned=yes ;;
5875esac
5876 DSYMUTIL=$ac_ct_DSYMUTIL
5877 fi
5878else
5879 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
5880fi
5881
5882 if test -n "$ac_tool_prefix"; then
5883 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
5884set dummy ${ac_tool_prefix}nmedit; ac_word=$2
5885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5886$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5887if ${ac_cv_prog_NMEDIT+:} false; then :
6bb11ab3
L
5888 $as_echo_n "(cached) " >&6
5889else
5890 if test -n "$NMEDIT"; then
5891 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
5892else
5893as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5894for as_dir in $PATH
5895do
5896 IFS=$as_save_IFS
5897 test -z "$as_dir" && as_dir=.
5898 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5899 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
5900 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
5901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5902 break 2
5903 fi
5904done
5905 done
5906IFS=$as_save_IFS
5907
5908fi
5909fi
5910NMEDIT=$ac_cv_prog_NMEDIT
5911if test -n "$NMEDIT"; then
5912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
5913$as_echo "$NMEDIT" >&6; }
5914else
5915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5916$as_echo "no" >&6; }
5917fi
5918
5919
5920fi
5921if test -z "$ac_cv_prog_NMEDIT"; then
5922 ac_ct_NMEDIT=$NMEDIT
5923 # Extract the first word of "nmedit", so it can be a program name with args.
5924set dummy nmedit; ac_word=$2
5925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5926$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5927if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6bb11ab3
L
5928 $as_echo_n "(cached) " >&6
5929else
5930 if test -n "$ac_ct_NMEDIT"; then
5931 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
5932else
5933as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5934for as_dir in $PATH
5935do
5936 IFS=$as_save_IFS
5937 test -z "$as_dir" && as_dir=.
5938 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5939 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
5940 ac_cv_prog_ac_ct_NMEDIT="nmedit"
5941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5942 break 2
5943 fi
5944done
5945 done
5946IFS=$as_save_IFS
5947
5948fi
5949fi
5950ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
5951if test -n "$ac_ct_NMEDIT"; then
5952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
5953$as_echo "$ac_ct_NMEDIT" >&6; }
5954else
5955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5956$as_echo "no" >&6; }
5957fi
5958
5959 if test "x$ac_ct_NMEDIT" = x; then
5960 NMEDIT=":"
5961 else
5962 case $cross_compiling:$ac_tool_warned in
5963yes:)
5964{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5965$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5966ac_tool_warned=yes ;;
5967esac
5968 NMEDIT=$ac_ct_NMEDIT
5969 fi
5970else
5971 NMEDIT="$ac_cv_prog_NMEDIT"
5972fi
5973
5974 if test -n "$ac_tool_prefix"; then
5975 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
5976set dummy ${ac_tool_prefix}lipo; ac_word=$2
5977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5978$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5979if ${ac_cv_prog_LIPO+:} false; then :
6bb11ab3
L
5980 $as_echo_n "(cached) " >&6
5981else
5982 if test -n "$LIPO"; then
5983 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
5984else
5985as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5986for as_dir in $PATH
5987do
5988 IFS=$as_save_IFS
5989 test -z "$as_dir" && as_dir=.
5990 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5991 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
5992 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
5993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5994 break 2
5995 fi
5996done
5997 done
5998IFS=$as_save_IFS
5999
6000fi
6001fi
6002LIPO=$ac_cv_prog_LIPO
6003if test -n "$LIPO"; then
6004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6005$as_echo "$LIPO" >&6; }
6006else
6007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6008$as_echo "no" >&6; }
6009fi
6010
6011
6012fi
6013if test -z "$ac_cv_prog_LIPO"; then
6014 ac_ct_LIPO=$LIPO
6015 # Extract the first word of "lipo", so it can be a program name with args.
6016set dummy lipo; ac_word=$2
6017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6018$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6019if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6bb11ab3
L
6020 $as_echo_n "(cached) " >&6
6021else
6022 if test -n "$ac_ct_LIPO"; then
6023 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6024else
6025as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6026for as_dir in $PATH
6027do
6028 IFS=$as_save_IFS
6029 test -z "$as_dir" && as_dir=.
6030 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6031 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
6032 ac_cv_prog_ac_ct_LIPO="lipo"
6033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6034 break 2
6035 fi
6036done
6037 done
6038IFS=$as_save_IFS
6039
6040fi
6041fi
6042ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6043if test -n "$ac_ct_LIPO"; then
6044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6045$as_echo "$ac_ct_LIPO" >&6; }
6046else
6047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6048$as_echo "no" >&6; }
6049fi
6050
6051 if test "x$ac_ct_LIPO" = x; then
6052 LIPO=":"
6053 else
6054 case $cross_compiling:$ac_tool_warned in
6055yes:)
6056{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6057$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6058ac_tool_warned=yes ;;
6059esac
6060 LIPO=$ac_ct_LIPO
6061 fi
6062else
6063 LIPO="$ac_cv_prog_LIPO"
6064fi
6065
6066 if test -n "$ac_tool_prefix"; then
6067 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6068set dummy ${ac_tool_prefix}otool; ac_word=$2
6069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6070$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6071if ${ac_cv_prog_OTOOL+:} false; then :
6bb11ab3
L
6072 $as_echo_n "(cached) " >&6
6073else
6074 if test -n "$OTOOL"; then
6075 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6076else
6077as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6078for as_dir in $PATH
6079do
6080 IFS=$as_save_IFS
6081 test -z "$as_dir" && as_dir=.
6082 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6083 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
6084 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6086 break 2
6087 fi
6088done
6089 done
6090IFS=$as_save_IFS
6091
6092fi
6093fi
6094OTOOL=$ac_cv_prog_OTOOL
6095if test -n "$OTOOL"; then
6096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6097$as_echo "$OTOOL" >&6; }
6098else
6099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6100$as_echo "no" >&6; }
6101fi
6102
6103
6104fi
6105if test -z "$ac_cv_prog_OTOOL"; then
6106 ac_ct_OTOOL=$OTOOL
6107 # Extract the first word of "otool", so it can be a program name with args.
6108set dummy otool; ac_word=$2
6109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6110$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6111if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6bb11ab3
L
6112 $as_echo_n "(cached) " >&6
6113else
6114 if test -n "$ac_ct_OTOOL"; then
6115 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6116else
6117as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6118for as_dir in $PATH
6119do
6120 IFS=$as_save_IFS
6121 test -z "$as_dir" && as_dir=.
6122 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6123 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
6124 ac_cv_prog_ac_ct_OTOOL="otool"
6125 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6126 break 2
6127 fi
6128done
6129 done
6130IFS=$as_save_IFS
6131
6132fi
6133fi
6134ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6135if test -n "$ac_ct_OTOOL"; then
6136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6137$as_echo "$ac_ct_OTOOL" >&6; }
6138else
6139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6140$as_echo "no" >&6; }
6141fi
6142
6143 if test "x$ac_ct_OTOOL" = x; then
6144 OTOOL=":"
6145 else
6146 case $cross_compiling:$ac_tool_warned in
6147yes:)
6148{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6149$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6150ac_tool_warned=yes ;;
6151esac
6152 OTOOL=$ac_ct_OTOOL
6153 fi
6154else
6155 OTOOL="$ac_cv_prog_OTOOL"
6156fi
6157
6158 if test -n "$ac_tool_prefix"; then
6159 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6160set dummy ${ac_tool_prefix}otool64; ac_word=$2
6161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6162$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6163if ${ac_cv_prog_OTOOL64+:} false; then :
6bb11ab3
L
6164 $as_echo_n "(cached) " >&6
6165else
6166 if test -n "$OTOOL64"; then
6167 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6168else
6169as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6170for as_dir in $PATH
6171do
6172 IFS=$as_save_IFS
6173 test -z "$as_dir" && as_dir=.
6174 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6175 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
6176 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6178 break 2
6179 fi
6180done
6181 done
6182IFS=$as_save_IFS
6183
6184fi
6185fi
6186OTOOL64=$ac_cv_prog_OTOOL64
6187if test -n "$OTOOL64"; then
6188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6189$as_echo "$OTOOL64" >&6; }
6190else
6191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6192$as_echo "no" >&6; }
6193fi
6194
6195
6196fi
6197if test -z "$ac_cv_prog_OTOOL64"; then
6198 ac_ct_OTOOL64=$OTOOL64
6199 # Extract the first word of "otool64", so it can be a program name with args.
6200set dummy otool64; ac_word=$2
6201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6202$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6203if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6bb11ab3
L
6204 $as_echo_n "(cached) " >&6
6205else
6206 if test -n "$ac_ct_OTOOL64"; then
6207 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6208else
6209as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6210for as_dir in $PATH
6211do
6212 IFS=$as_save_IFS
6213 test -z "$as_dir" && as_dir=.
6214 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6215 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
6216 ac_cv_prog_ac_ct_OTOOL64="otool64"
6217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6218 break 2
6219 fi
6220done
6221 done
6222IFS=$as_save_IFS
6223
6224fi
6225fi
6226ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6227if test -n "$ac_ct_OTOOL64"; then
6228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6229$as_echo "$ac_ct_OTOOL64" >&6; }
6230else
6231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6232$as_echo "no" >&6; }
6233fi
6234
6235 if test "x$ac_ct_OTOOL64" = x; then
6236 OTOOL64=":"
6237 else
6238 case $cross_compiling:$ac_tool_warned in
6239yes:)
6240{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6241$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6242ac_tool_warned=yes ;;
6243esac
6244 OTOOL64=$ac_ct_OTOOL64
6245 fi
6246else
6247 OTOOL64="$ac_cv_prog_OTOOL64"
6248fi
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6277$as_echo_n "checking for -single_module linker flag... " >&6; }
d0ac1c44 6278if ${lt_cv_apple_cc_single_mod+:} false; then :
6bb11ab3
L
6279 $as_echo_n "(cached) " >&6
6280else
6281 lt_cv_apple_cc_single_mod=no
6282 if test -z "${LT_MULTI_MODULE}"; then
6283 # By default we will add the -single_module flag. You can override
6284 # by either setting the environment variable LT_MULTI_MODULE
6285 # non-empty at configure time, or by adding -multi_module to the
6286 # link flags.
6287 rm -rf libconftest.dylib*
6288 echo "int foo(void){return 1;}" > conftest.c
6289 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6290-dynamiclib -Wl,-single_module conftest.c" >&5
6291 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6292 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6293 _lt_result=$?
6294 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6295 lt_cv_apple_cc_single_mod=yes
6296 else
6297 cat conftest.err >&5
6298 fi
6299 rm -rf libconftest.dylib*
6300 rm -f conftest.*
6301 fi
6302fi
6303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6304$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6306$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
d0ac1c44 6307if ${lt_cv_ld_exported_symbols_list+:} false; then :
6bb11ab3
L
6308 $as_echo_n "(cached) " >&6
6309else
6310 lt_cv_ld_exported_symbols_list=no
6311 save_LDFLAGS=$LDFLAGS
6312 echo "_main" > conftest.sym
6313 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6315/* end confdefs.h. */
6316
6317int
6318main ()
6319{
6320
6321 ;
6322 return 0;
6323}
6324_ACEOF
6325if ac_fn_c_try_link "$LINENO"; then :
6326 lt_cv_ld_exported_symbols_list=yes
6327else
6328 lt_cv_ld_exported_symbols_list=no
6329fi
6330rm -f core conftest.err conftest.$ac_objext \
6331 conftest$ac_exeext conftest.$ac_ext
6332 LDFLAGS="$save_LDFLAGS"
6333
6334fi
6335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6336$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6338$as_echo_n "checking for -force_load linker flag... " >&6; }
d0ac1c44 6339if ${lt_cv_ld_force_load+:} false; then :
6bb11ab3
L
6340 $as_echo_n "(cached) " >&6
6341else
6342 lt_cv_ld_force_load=no
6343 cat > conftest.c << _LT_EOF
6344int forced_loaded() { return 2;}
6345_LT_EOF
6346 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6347 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6348 echo "$AR cru libconftest.a conftest.o" >&5
6349 $AR cru libconftest.a conftest.o 2>&5
6350 cat > conftest.c << _LT_EOF
6351int main() { return 0;}
6352_LT_EOF
6353 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6354 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6355 _lt_result=$?
6356 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
6357 lt_cv_ld_force_load=yes
6358 else
6359 cat conftest.err >&5
6360 fi
6361 rm -f conftest.err libconftest.a conftest conftest.c
6362 rm -rf conftest.dSYM
6363
6364fi
6365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6366$as_echo "$lt_cv_ld_force_load" >&6; }
6367 case $host_os in
6368 rhapsody* | darwin1.[012])
6369 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6370 darwin1.*)
6371 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6372 darwin*) # darwin 5.x on
6373 # if running on 10.5 or later, the deployment target defaults
6374 # to the OS version, if on x86, and 10.4, the deployment
6375 # target defaults to 10.4. Don't you love it?
6376 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6377 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6378 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
5cddc23a 6379 10.[012][,.]*)
6bb11ab3
L
6380 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6381 10.*)
6382 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6383 esac
6384 ;;
6385 esac
6386 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6387 _lt_dar_single_mod='$single_module'
6388 fi
6389 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6390 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6391 else
6392 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6393 fi
6394 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
6395 _lt_dsymutil='~$DSYMUTIL $lib || :'
6396 else
6397 _lt_dsymutil=
6398 fi
6399 ;;
6400 esac
6401
6402for ac_header in dlfcn.h
6403do :
6404 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6405"
d0ac1c44 6406if test "x$ac_cv_header_dlfcn_h" = xyes; then :
6bb11ab3
L
6407 cat >>confdefs.h <<_ACEOF
6408#define HAVE_DLFCN_H 1
6409_ACEOF
6410
6411fi
6412
6413done
6414
6415
6416
ebe9564b 6417
6bb11ab3 6418
0cb8d851
MF
6419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
6420$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
d0ac1c44 6421if ${ac_cv_c_bigendian+:} false; then :
0cb8d851
MF
6422 $as_echo_n "(cached) " >&6
6423else
6424 ac_cv_c_bigendian=unknown
6425 # See if we're dealing with a universal compiler.
6426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6427/* end confdefs.h. */
6428#ifndef __APPLE_CC__
6429 not a universal capable compiler
6430 #endif
6431 typedef int dummy;
6432
6433_ACEOF
6434if ac_fn_c_try_compile "$LINENO"; then :
6435
6436 # Check for potential -arch flags. It is not universal unless
6437 # there are at least two -arch flags with different values.
6438 ac_arch=
6439 ac_prev=
6440 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
6441 if test -n "$ac_prev"; then
6442 case $ac_word in
6443 i?86 | x86_64 | ppc | ppc64)
6444 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
6445 ac_arch=$ac_word
6446 else
6447 ac_cv_c_bigendian=universal
6448 break
6449 fi
6450 ;;
6451 esac
6452 ac_prev=
6453 elif test "x$ac_word" = "x-arch"; then
6454 ac_prev=arch
6455 fi
6456 done
6457fi
6458rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6459 if test $ac_cv_c_bigendian = unknown; then
6460 # See if sys/param.h defines the BYTE_ORDER macro.
6461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6462/* end confdefs.h. */
6463#include <sys/types.h>
6464 #include <sys/param.h>
6465
6466int
6467main ()
6468{
6469#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
6470 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
6471 && LITTLE_ENDIAN)
6472 bogus endian macros
6473 #endif
6474
6475 ;
6476 return 0;
6477}
6478_ACEOF
6479if ac_fn_c_try_compile "$LINENO"; then :
6480 # It does; now see whether it defined to BIG_ENDIAN or not.
6481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6482/* end confdefs.h. */
6483#include <sys/types.h>
6484 #include <sys/param.h>
6485
6486int
6487main ()
6488{
6489#if BYTE_ORDER != BIG_ENDIAN
6490 not big endian
6491 #endif
6492
6493 ;
6494 return 0;
6495}
6496_ACEOF
6497if ac_fn_c_try_compile "$LINENO"; then :
6498 ac_cv_c_bigendian=yes
6499else
6500 ac_cv_c_bigendian=no
6501fi
6502rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6503fi
6504rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6505 fi
6506 if test $ac_cv_c_bigendian = unknown; then
6507 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
6508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6509/* end confdefs.h. */
6510#include <limits.h>
6511
6512int
6513main ()
6514{
6515#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
6516 bogus endian macros
6517 #endif
6518
6519 ;
6520 return 0;
6521}
6522_ACEOF
6523if ac_fn_c_try_compile "$LINENO"; then :
6524 # It does; now see whether it defined to _BIG_ENDIAN or not.
6525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6526/* end confdefs.h. */
6527#include <limits.h>
6528
6529int
6530main ()
6531{
6532#ifndef _BIG_ENDIAN
6533 not big endian
6534 #endif
6535
6536 ;
6537 return 0;
6538}
6539_ACEOF
6540if ac_fn_c_try_compile "$LINENO"; then :
6541 ac_cv_c_bigendian=yes
6542else
6543 ac_cv_c_bigendian=no
6544fi
6545rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6546fi
6547rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6548 fi
6549 if test $ac_cv_c_bigendian = unknown; then
6550 # Compile a test program.
6551 if test "$cross_compiling" = yes; then :
6552 # Try to guess by grepping values from an object file.
6553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6554/* end confdefs.h. */
6555short int ascii_mm[] =
6556 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
6557 short int ascii_ii[] =
6558 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
6559 int use_ascii (int i) {
6560 return ascii_mm[i] + ascii_ii[i];
6561 }
6562 short int ebcdic_ii[] =
6563 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
6564 short int ebcdic_mm[] =
6565 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
6566 int use_ebcdic (int i) {
6567 return ebcdic_mm[i] + ebcdic_ii[i];
6568 }
6569 extern int foo;
6570
6571int
6572main ()
6573{
6574return use_ascii (foo) == use_ebcdic (foo);
6575 ;
6576 return 0;
6577}
6578_ACEOF
6579if ac_fn_c_try_compile "$LINENO"; then :
6580 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
6581 ac_cv_c_bigendian=yes
6582 fi
6583 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
6584 if test "$ac_cv_c_bigendian" = unknown; then
6585 ac_cv_c_bigendian=no
6586 else
6587 # finding both strings is unlikely to happen, but who knows?
6588 ac_cv_c_bigendian=unknown
6589 fi
6590 fi
6591fi
6592rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6593else
6594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6595/* end confdefs.h. */
6596$ac_includes_default
6597int
6598main ()
6599{
6600
6601 /* Are we little or big endian? From Harbison&Steele. */
6602 union
6603 {
6604 long int l;
6605 char c[sizeof (long int)];
6606 } u;
6607 u.l = 1;
6608 return u.c[sizeof (long int) - 1] == 1;
6609
6610 ;
6611 return 0;
6612}
6613_ACEOF
6614if ac_fn_c_try_run "$LINENO"; then :
6615 ac_cv_c_bigendian=no
6616else
6617 ac_cv_c_bigendian=yes
6618fi
6619rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6620 conftest.$ac_objext conftest.beam conftest.$ac_ext
6621fi
6622
6623 fi
6624fi
6625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
6626$as_echo "$ac_cv_c_bigendian" >&6; }
6627 case $ac_cv_c_bigendian in #(
6628 yes)
6629 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
6630;; #(
6631 no)
6632 ;; #(
6633 universal)
6634
6635$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
6636
6637 ;; #(
6638 *)
d0ac1c44 6639 as_fn_error $? "unknown endianness
0cb8d851
MF
6640 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
6641 esac
6642
6bb11ab3
L
6643
6644
6645
c25ea03d 6646if test "x$cross_compiling" = "xno"; then
aa0fca16 6647 : "${AR_FOR_BUILD:=\$(AR)}"
c25ea03d 6648 : "${CC_FOR_BUILD:=\$(CC)}"
aa0fca16 6649 : "${RANLIB_FOR_BUILD:=\$(RANLIB)}"
c25ea03d 6650 : "${CFLAGS_FOR_BUILD:=\$(CFLAGS)}"
c2783492 6651 : "${LDFLAGS_FOR_BUILD:=\$(LDFLAGS)}"
c25ea03d 6652else
aa0fca16 6653 : "${AR_FOR_BUILD:=ar}"
c25ea03d 6654 : "${CC_FOR_BUILD:=gcc}"
aa0fca16 6655 : "${RANLIB_FOR_BUILD:=ranlib}"
c25ea03d 6656 : "${CFLAGS_FOR_BUILD:=-g -O}"
c2783492 6657 : "${LDLFAGS_FOR_BUILD:=}"
6bb11ab3
L
6658fi
6659
6660
6661
c25ea03d 6662
c2783492 6663
aa0fca16
MF
6664
6665
a3e2cc64
MF
6666if test -n "$ac_tool_prefix"; then
6667 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6668set dummy ${ac_tool_prefix}ar; ac_word=$2
6669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6670$as_echo_n "checking for $ac_word... " >&6; }
6671if ${ac_cv_prog_AR+:} false; then :
6672 $as_echo_n "(cached) " >&6
6673else
6674 if test -n "$AR"; then
6675 ac_cv_prog_AR="$AR" # Let the user override the test.
6676else
6677as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6678for as_dir in $PATH
6679do
6680 IFS=$as_save_IFS
6681 test -z "$as_dir" && as_dir=.
6682 for ac_exec_ext in '' $ac_executable_extensions; do
6683 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6684 ac_cv_prog_AR="${ac_tool_prefix}ar"
6685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6686 break 2
6687 fi
6688done
6689 done
6690IFS=$as_save_IFS
6691
6692fi
6693fi
6694AR=$ac_cv_prog_AR
6695if test -n "$AR"; then
6696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6697$as_echo "$AR" >&6; }
6698else
6699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6700$as_echo "no" >&6; }
6701fi
6702
6703
6704fi
6705if test -z "$ac_cv_prog_AR"; then
6706 ac_ct_AR=$AR
6707 # Extract the first word of "ar", so it can be a program name with args.
6708set dummy ar; ac_word=$2
6709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6710$as_echo_n "checking for $ac_word... " >&6; }
6711if ${ac_cv_prog_ac_ct_AR+:} false; then :
6712 $as_echo_n "(cached) " >&6
6713else
6714 if test -n "$ac_ct_AR"; then
6715 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6716else
6717as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6718for as_dir in $PATH
6719do
6720 IFS=$as_save_IFS
6721 test -z "$as_dir" && as_dir=.
6722 for ac_exec_ext in '' $ac_executable_extensions; do
6723 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6724 ac_cv_prog_ac_ct_AR="ar"
6725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6726 break 2
6727 fi
6728done
6729 done
6730IFS=$as_save_IFS
6731
6732fi
6733fi
6734ac_ct_AR=$ac_cv_prog_ac_ct_AR
6735if test -n "$ac_ct_AR"; then
6736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6737$as_echo "$ac_ct_AR" >&6; }
6738else
6739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6740$as_echo "no" >&6; }
6741fi
6742
6743 if test "x$ac_ct_AR" = x; then
6744 AR=""
6745 else
6746 case $cross_compiling:$ac_tool_warned in
6747yes:)
6748{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6749$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6750ac_tool_warned=yes ;;
6751esac
6752 AR=$ac_ct_AR
6753 fi
6754else
6755 AR="$ac_cv_prog_AR"
6756fi
6bb11ab3
L
6757
6758if test -n "$ac_tool_prefix"; then
6759 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6760set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6762$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6763if ${ac_cv_prog_RANLIB+:} false; then :
6bb11ab3
L
6764 $as_echo_n "(cached) " >&6
6765else
6766 if test -n "$RANLIB"; then
6767 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6768else
6769as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6770for as_dir in $PATH
6771do
6772 IFS=$as_save_IFS
6773 test -z "$as_dir" && as_dir=.
6774 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6775 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
6776 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6778 break 2
6779 fi
6780done
6781 done
6782IFS=$as_save_IFS
6783
6784fi
6785fi
6786RANLIB=$ac_cv_prog_RANLIB
6787if test -n "$RANLIB"; then
6788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6789$as_echo "$RANLIB" >&6; }
6790else
6791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6792$as_echo "no" >&6; }
6793fi
6794
6795
6796fi
6797if test -z "$ac_cv_prog_RANLIB"; then
6798 ac_ct_RANLIB=$RANLIB
6799 # Extract the first word of "ranlib", so it can be a program name with args.
6800set dummy ranlib; ac_word=$2
6801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6802$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6803if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6bb11ab3
L
6804 $as_echo_n "(cached) " >&6
6805else
6806 if test -n "$ac_ct_RANLIB"; then
6807 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6808else
6809as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6810for as_dir in $PATH
6811do
6812 IFS=$as_save_IFS
6813 test -z "$as_dir" && as_dir=.
6814 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6815 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
6816 ac_cv_prog_ac_ct_RANLIB="ranlib"
6817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6818 break 2
6819 fi
6820done
6821 done
6822IFS=$as_save_IFS
6823
6824fi
6825fi
6826ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6827if test -n "$ac_ct_RANLIB"; then
6828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6829$as_echo "$ac_ct_RANLIB" >&6; }
6830else
6831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6832$as_echo "no" >&6; }
6833fi
6834
6835 if test "x$ac_ct_RANLIB" = x; then
6836 RANLIB=":"
6837 else
6838 case $cross_compiling:$ac_tool_warned in
6839yes:)
6840{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6841$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6842ac_tool_warned=yes ;;
6843esac
6844 RANLIB=$ac_ct_RANLIB
6845 fi
6846else
6847 RANLIB="$ac_cv_prog_RANLIB"
6848fi
6849
6850
46f900c0
MF
6851# Require C11 or newer. Autoconf-2.70 provides ac_cv_prog_cc_c11 when using
6852# AC_PROG_CC, but we're still using Autoconf-2.69, and the newest it understands
6853# is C99. So handle it ourselves.
6854:
6855C_DIALECT=
6856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C11 is supported by default" >&5
6857$as_echo_n "checking whether C11 is supported by default... " >&6; }
6858cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6859/* end confdefs.h. */
6860
6861#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
6862# error "C11 support not found"
6863#endif
6864
6865_ACEOF
6866if ac_fn_c_try_compile "$LINENO"; then :
6867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6868$as_echo "yes" >&6; }
6869else
6870
6871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6872$as_echo "no" >&6; }
6873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -std=c11 support" >&5
6874$as_echo_n "checking for -std=c11 support... " >&6; }
6875 ac_save_CC="$CC"
6876 CC="$CC -std=c11"
6877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6878/* end confdefs.h. */
6879
6880#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
6881# error "C11 support not found"
6882#endif
6883
6884_ACEOF
6885if ac_fn_c_try_compile "$LINENO"; then :
6886
6887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6888$as_echo "yes" >&6; }
6889 CC="$ac_save_CC"
6890 C_DIALECT="-std=c11"
6891
6892else
6893 as_fn_error $? "C11 is required" "$LINENO" 5
6894fi
6895rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6896fi
6897rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6898
6899
c2783492
MF
6900ac_config_headers="$ac_config_headers config.h:config.in"
6901
6902
6bb11ab3
L
6903# Some of the common include files depend on bfd.h, and bfd.h checks
6904# that config.h is included first by testing that the PACKAGE macro
6905# is defined.
6906PACKAGE=sim
6907
6908cat >>confdefs.h <<_ACEOF
6909#define PACKAGE "$PACKAGE"
6910_ACEOF
6911
6912
6913
6914# Dependency checking.
6915ac_config_commands="$ac_config_commands depdir"
6916
6917
6918depcc="$CC" am_compiler_list=
6919
6920am_depcomp=$ac_aux_dir/depcomp
6921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6922$as_echo_n "checking dependency style of $depcc... " >&6; }
d0ac1c44 6923if ${am_cv_CC_dependencies_compiler_type+:} false; then :
6bb11ab3
L
6924 $as_echo_n "(cached) " >&6
6925else
6926 if test -f "$am_depcomp"; then
6927 # We make a subdir and do the tests there. Otherwise we can end up
6928 # making bogus files that we don't know about and never remove. For
6929 # instance it was reported that on HP-UX the gcc test will end up
6930 # making a dummy file named `D' -- because `-MD' means `put the output
6931 # in D'.
6932 mkdir conftest.dir
6933 # Copy depcomp to subdir because otherwise we won't find it if we're
6934 # using a relative directory.
6935 cp "$am_depcomp" conftest.dir
6936 cd conftest.dir
6937 # We will build objects and dependencies in a subdirectory because
6938 # it helps to detect inapplicable dependency modes. For instance
6939 # both Tru64's cc and ICC support -MD to output dependencies as a
6940 # side effect of compilation, but ICC will put the dependencies in
6941 # the current directory while Tru64 will put them in the object
6942 # directory.
6943 mkdir sub
6944
6945 am_cv_CC_dependencies_compiler_type=none
6946 if test "$am_compiler_list" = ""; then
6947 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6948 fi
6949 for depmode in $am_compiler_list; do
6950 if test $depmode = none; then break; fi
6951
6952 $as_echo "$as_me:$LINENO: trying $depmode" >&5
6953 # Setup a source with many dependencies, because some compilers
6954 # like to wrap large dependency lists on column 80 (with \), and
6955 # we should not choose a depcomp mode which is confused by this.
6956 #
6957 # We need to recreate these files for each test, as the compiler may
6958 # overwrite some of them when testing with obscure command lines.
6959 # This happens at least with the AIX C compiler.
6960 : > sub/conftest.c
6961 for i in 1 2 3 4 5 6; do
6962 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6963 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6964 # Solaris 8's {/usr,}/bin/sh.
6965 touch sub/conftst$i.h
6966 done
6967 echo "include sub/conftest.Po" > confmf
6968
6969 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6970 # mode. It turns out that the SunPro C++ compiler does not properly
6971 # handle `-M -o', and we need to detect this.
6972 depcmd="depmode=$depmode \
6973 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6974 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6975 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
6976 echo "| $depcmd" | sed -e 's/ */ /g' >&5
6977 if env $depcmd > conftest.err 2>&1 &&
6978 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
6979 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
6980 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
6981 # icc doesn't choke on unknown options, it will just issue warnings
6982 # or remarks (even with -Werror). So we grep stderr for any message
6983 # that says an option was ignored or not supported.
6984 # When given -MP, icc 7.0 and 7.1 complain thusly:
6985 # icc: Command line warning: ignoring option '-M'; no argument required
6986 # The diagnosis changed in icc 8.0:
6987 # icc: Command line remark: option '-MP' not supported
6988 if (grep 'ignoring option' conftest.err ||
6989 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6990 am_cv_CC_dependencies_compiler_type=$depmode
6991 $as_echo "$as_me:$LINENO: success" >&5
6992 break
6993 fi
6994 fi
6995 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
6996 sed -e 's/^/| /' < conftest.err >&5
6997 done
6998
6999 cd ..
7000 rm -rf conftest.dir
7001else
7002 am_cv_CC_dependencies_compiler_type=none
7003fi
7004
7005fi
7006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
7007$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
7008if test x${am_cv_CC_dependencies_compiler_type-none} = xnone
d0ac1c44 7009then as_fn_error $? "no usable dependency style found" "$LINENO" 5
6bb11ab3
L
7010else CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
7011
7012fi
7013
7014
6bb11ab3
L
7015ALL_LINGUAS=
7016# If we haven't got the data from the intl directory,
7017# assume NLS is disabled.
7018USE_NLS=no
7019LIBINTL=
7020LIBINTL_DEP=
7021INCINTL=
7022XGETTEXT=
7023GMSGFMT=
7024POSUB=
7025
7026if test -f ../../intl/config.intl; then
7027 . ../../intl/config.intl
7028fi
7029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
7030$as_echo_n "checking whether NLS is requested... " >&6; }
7031if test x"$USE_NLS" != xyes; then
7032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7033$as_echo "no" >&6; }
7034else
7035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7036$as_echo "yes" >&6; }
7037
7038$as_echo "#define ENABLE_NLS 1" >>confdefs.h
7039
7040
7041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
7042$as_echo_n "checking for catalogs to be installed... " >&6; }
7043 # Look for .po and .gmo files in the source directory.
7044 CATALOGS=
7045 XLINGUAS=
7046 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
7047 # If there aren't any .gmo files the shell will give us the
7048 # literal string "../path/to/srcdir/po/*.gmo" which has to be
7049 # weeded out.
7050 case "$cat" in *\**)
7051 continue;;
7052 esac
7053 # The quadruple backslash is collapsed to a double backslash
7054 # by the backticks, then collapsed again by the double quotes,
7055 # leaving us with one backslash in the sed expression (right
7056 # before the dot that mustn't act as a wildcard).
7057 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
7058 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
7059 # The user is allowed to set LINGUAS to a list of languages to
7060 # install catalogs for. If it's empty that means "all of them."
7061 if test "x$LINGUAS" = x; then
7062 CATALOGS="$CATALOGS $cat"
7063 XLINGUAS="$XLINGUAS $lang"
7064 else
7065 case "$LINGUAS" in *$lang*)
7066 CATALOGS="$CATALOGS $cat"
7067 XLINGUAS="$XLINGUAS $lang"
7068 ;;
7069 esac
7070 fi
7071 done
7072 LINGUAS="$XLINGUAS"
7073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
7074$as_echo "$LINGUAS" >&6; }
7075
7076
7077 DATADIRNAME=share
7078
7079 INSTOBJEXT=.mo
7080
7081 GENCAT=gencat
7082
7083 CATOBJEXT=.gmo
7084
7085fi
7086
6bb11ab3
L
7087# Check for socket libraries
7088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for bind in -lsocket" >&5
7089$as_echo_n "checking for bind in -lsocket... " >&6; }
d0ac1c44 7090if ${ac_cv_lib_socket_bind+:} false; then :
6bb11ab3
L
7091 $as_echo_n "(cached) " >&6
7092else
7093 ac_check_lib_save_LIBS=$LIBS
7094LIBS="-lsocket $LIBS"
7095cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7096/* end confdefs.h. */
7097
7098/* Override any GCC internal prototype to avoid an error.
7099 Use char because int might match the return type of a GCC
7100 builtin and then its argument prototype would still apply. */
7101#ifdef __cplusplus
7102extern "C"
7103#endif
7104char bind ();
7105int
7106main ()
7107{
7108return bind ();
7109 ;
7110 return 0;
7111}
7112_ACEOF
7113if ac_fn_c_try_link "$LINENO"; then :
7114 ac_cv_lib_socket_bind=yes
7115else
7116 ac_cv_lib_socket_bind=no
7117fi
7118rm -f core conftest.err conftest.$ac_objext \
7119 conftest$ac_exeext conftest.$ac_ext
7120LIBS=$ac_check_lib_save_LIBS
7121fi
7122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_bind" >&5
7123$as_echo "$ac_cv_lib_socket_bind" >&6; }
d0ac1c44 7124if test "x$ac_cv_lib_socket_bind" = xyes; then :
6bb11ab3
L
7125 cat >>confdefs.h <<_ACEOF
7126#define HAVE_LIBSOCKET 1
7127_ACEOF
7128
7129 LIBS="-lsocket $LIBS"
7130
7131fi
7132
7133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
7134$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
d0ac1c44 7135if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
6bb11ab3
L
7136 $as_echo_n "(cached) " >&6
7137else
7138 ac_check_lib_save_LIBS=$LIBS
7139LIBS="-lnsl $LIBS"
7140cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7141/* end confdefs.h. */
7142
7143/* Override any GCC internal prototype to avoid an error.
7144 Use char because int might match the return type of a GCC
7145 builtin and then its argument prototype would still apply. */
7146#ifdef __cplusplus
7147extern "C"
7148#endif
7149char gethostbyname ();
7150int
7151main ()
7152{
7153return gethostbyname ();
7154 ;
7155 return 0;
7156}
7157_ACEOF
7158if ac_fn_c_try_link "$LINENO"; then :
7159 ac_cv_lib_nsl_gethostbyname=yes
7160else
7161 ac_cv_lib_nsl_gethostbyname=no
7162fi
7163rm -f core conftest.err conftest.$ac_objext \
7164 conftest$ac_exeext conftest.$ac_ext
7165LIBS=$ac_check_lib_save_LIBS
7166fi
7167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
7168$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
d0ac1c44 7169if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
6bb11ab3
L
7170 cat >>confdefs.h <<_ACEOF
7171#define HAVE_LIBNSL 1
7172_ACEOF
7173
7174 LIBS="-lnsl $LIBS"
7175
7176fi
7177
7178
7179# BFD conditionally uses zlib, so we must link it in if libbfd does, by
7180# using the same condition.
7181
aadc9410 7182 # Use the system's zlib library.
7fed4b0b
L
7183 zlibdir="-L\$(top_builddir)/../zlib"
7184 zlibinc="-I\$(top_srcdir)/../zlib"
6bb11ab3 7185
aadc9410
MF
7186# Check whether --with-system-zlib was given.
7187if test "${with_system_zlib+set}" = set; then :
0ceaf1ec
L
7188 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
7189 zlibdir=
7190 zlibinc=
7191 fi
6bb11ab3
L
7192
7193fi
7194
6bb11ab3 7195
6bb11ab3 7196
6bb11ab3
L
7197
7198
7199# BFD uses libdl when when plugins enabled.
7200
faa743bb
RM
7201 maybe_plugins=no
7202 for ac_header in dlfcn.h
7203do :
7204 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7205"
d0ac1c44 7206if test "x$ac_cv_header_dlfcn_h" = xyes; then :
faa743bb
RM
7207 cat >>confdefs.h <<_ACEOF
7208#define HAVE_DLFCN_H 1
7209_ACEOF
7210 maybe_plugins=yes
7211fi
7212
7213done
7214
7215 for ac_header in windows.h
7216do :
7217 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
7218"
d0ac1c44 7219if test "x$ac_cv_header_windows_h" = xyes; then :
faa743bb
RM
7220 cat >>confdefs.h <<_ACEOF
7221#define HAVE_WINDOWS_H 1
7222_ACEOF
7223 maybe_plugins=yes
7224fi
7225
7226done
7227
7228
7229 # Check whether --enable-plugins was given.
6bb11ab3
L
7230if test "${enable_plugins+set}" = set; then :
7231 enableval=$enable_plugins; case "${enableval}" in
faa743bb
RM
7232 no) plugins=no ;;
7233 *) plugins=yes
7234 if test "$maybe_plugins" != "yes" ; then
d0ac1c44 7235 as_fn_error $? "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
faa743bb
RM
7236 fi ;;
7237 esac
6bb11ab3 7238else
faa743bb
RM
7239 plugins=$maybe_plugins
7240
6bb11ab3
L
7241fi
7242
2974be62 7243 if test "$plugins" = "yes"; then
37f980dc
SM
7244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
7245$as_echo_n "checking for library containing dlsym... " >&6; }
d0ac1c44 7246if ${ac_cv_search_dlsym+:} false; then :
2974be62
AM
7247 $as_echo_n "(cached) " >&6
7248else
7249 ac_func_search_save_LIBS=$LIBS
7250cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7251/* end confdefs.h. */
7252
7253/* Override any GCC internal prototype to avoid an error.
7254 Use char because int might match the return type of a GCC
7255 builtin and then its argument prototype would still apply. */
7256#ifdef __cplusplus
7257extern "C"
7258#endif
37f980dc 7259char dlsym ();
2974be62
AM
7260int
7261main ()
7262{
37f980dc 7263return dlsym ();
2974be62
AM
7264 ;
7265 return 0;
7266}
7267_ACEOF
7268for ac_lib in '' dl; do
7269 if test -z "$ac_lib"; then
7270 ac_res="none required"
7271 else
7272 ac_res=-l$ac_lib
7273 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7274 fi
7275 if ac_fn_c_try_link "$LINENO"; then :
37f980dc 7276 ac_cv_search_dlsym=$ac_res
2974be62
AM
7277fi
7278rm -f core conftest.err conftest.$ac_objext \
7279 conftest$ac_exeext
d0ac1c44 7280 if ${ac_cv_search_dlsym+:} false; then :
2974be62
AM
7281 break
7282fi
7283done
d0ac1c44 7284if ${ac_cv_search_dlsym+:} false; then :
2974be62
AM
7285
7286else
37f980dc 7287 ac_cv_search_dlsym=no
2974be62
AM
7288fi
7289rm conftest.$ac_ext
7290LIBS=$ac_func_search_save_LIBS
7291fi
37f980dc
SM
7292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
7293$as_echo "$ac_cv_search_dlsym" >&6; }
7294ac_res=$ac_cv_search_dlsym
2974be62
AM
7295if test "$ac_res" != no; then :
7296 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7297
7298fi
7299
7300 fi
6bb11ab3
L
7301
7302 if test "$plugins" = yes; then
7303 PLUGINS_TRUE=
7304 PLUGINS_FALSE='#'
7305else
7306 PLUGINS_TRUE='#'
7307 PLUGINS_FALSE=
7308fi
7309
7310
7311
7312
7313
7314# Set options
7315enable_dlopen=yes
7316
7317
7318
7319
7320 enable_win32_dll=no
7321
7322
7323 # Check whether --enable-shared was given.
7324if test "${enable_shared+set}" = set; then :
7325 enableval=$enable_shared; p=${PACKAGE-default}
7326 case $enableval in
7327 yes) enable_shared=yes ;;
7328 no) enable_shared=no ;;
7329 *)
7330 enable_shared=no
7331 # Look at the argument we got. We use all the common list separators.
7332 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7333 for pkg in $enableval; do
7334 IFS="$lt_save_ifs"
7335 if test "X$pkg" = "X$p"; then
7336 enable_shared=yes
7337 fi
7338 done
7339 IFS="$lt_save_ifs"
7340 ;;
7341 esac
7342else
7343 enable_shared=yes
7344fi
7345
7346
7347
7348
7349
7350
7351
7352
7353
7354 # Check whether --enable-static was given.
7355if test "${enable_static+set}" = set; then :
7356 enableval=$enable_static; p=${PACKAGE-default}
7357 case $enableval in
7358 yes) enable_static=yes ;;
7359 no) enable_static=no ;;
7360 *)
7361 enable_static=no
7362 # Look at the argument we got. We use all the common list separators.
7363 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7364 for pkg in $enableval; do
7365 IFS="$lt_save_ifs"
7366 if test "X$pkg" = "X$p"; then
7367 enable_static=yes
7368 fi
7369 done
7370 IFS="$lt_save_ifs"
7371 ;;
7372 esac
7373else
7374 enable_static=yes
7375fi
7376
7377
7378
7379
7380
7381
7382
7383
7384
7385
7386# Check whether --with-pic was given.
7387if test "${with_pic+set}" = set; then :
7388 withval=$with_pic; pic_mode="$withval"
7389else
7390 pic_mode=default
7391fi
7392
7393
7394test -z "$pic_mode" && pic_mode=default
7395
7396
7397
7398
7399
7400
7401
7402 # Check whether --enable-fast-install was given.
7403if test "${enable_fast_install+set}" = set; then :
7404 enableval=$enable_fast_install; p=${PACKAGE-default}
7405 case $enableval in
7406 yes) enable_fast_install=yes ;;
7407 no) enable_fast_install=no ;;
7408 *)
7409 enable_fast_install=no
7410 # Look at the argument we got. We use all the common list separators.
7411 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7412 for pkg in $enableval; do
7413 IFS="$lt_save_ifs"
7414 if test "X$pkg" = "X$p"; then
7415 enable_fast_install=yes
7416 fi
7417 done
7418 IFS="$lt_save_ifs"
7419 ;;
7420 esac
7421else
7422 enable_fast_install=yes
7423fi
7424
7425
7426
7427
7428
7429
7430
7431
7432
7433
7434
7435# This can be used to rebuild libtool when needed
7436LIBTOOL_DEPS="$ltmain"
7437
7438# Always use our own libtool.
7439LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7440
7441
7442
7443
7444
7445
7446
7447
7448
7449
7450
7451
7452
7453
7454
7455
7456
7457
7458
7459
7460
7461
7462
7463
7464
7465
7466test -z "$LN_S" && LN_S="ln -s"
7467
7468
7469
7470
7471
7472
7473
7474
7475
7476
7477
7478
7479
7480
7481if test -n "${ZSH_VERSION+set}" ; then
7482 setopt NO_GLOB_SUBST
b7026657 7483fi
b7026657 7484
6bb11ab3
L
7485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7486$as_echo_n "checking for objdir... " >&6; }
d0ac1c44 7487if ${lt_cv_objdir+:} false; then :
6bb11ab3
L
7488 $as_echo_n "(cached) " >&6
7489else
7490 rm -f .libs 2>/dev/null
7491mkdir .libs 2>/dev/null
7492if test -d .libs; then
7493 lt_cv_objdir=.libs
7494else
7495 # MS-DOS does not allow filenames that begin with a dot.
7496 lt_cv_objdir=_libs
7497fi
7498rmdir .libs 2>/dev/null
7499fi
7500{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7501$as_echo "$lt_cv_objdir" >&6; }
7502objdir=$lt_cv_objdir
7503
7504
7505
7506
7507
7508cat >>confdefs.h <<_ACEOF
7509#define LT_OBJDIR "$lt_cv_objdir/"
7510_ACEOF
7511
7512
7513
7514
7515case $host_os in
7516aix3*)
7517 # AIX sometimes has problems with the GCC collect2 program. For some
7518 # reason, if we set the COLLECT_NAMES environment variable, the problems
7519 # vanish in a puff of smoke.
7520 if test "X${COLLECT_NAMES+set}" != Xset; then
7521 COLLECT_NAMES=
7522 export COLLECT_NAMES
7523 fi
7524 ;;
81ecdfbb 7525esac
6bb11ab3
L
7526
7527# Global variables:
7528ofile=libtool
7529can_build_shared=yes
7530
7531# All known linkers require a `.a' archive for static linking (except MSVC,
7532# which needs '.lib').
7533libext=a
7534
7535with_gnu_ld="$lt_cv_prog_gnu_ld"
7536
7537old_CC="$CC"
7538old_CFLAGS="$CFLAGS"
7539
7540# Set sane defaults for various variables
7541test -z "$CC" && CC=cc
7542test -z "$LTCC" && LTCC=$CC
7543test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7544test -z "$LD" && LD=ld
7545test -z "$ac_objext" && ac_objext=o
7546
7547for cc_temp in $compiler""; do
7548 case $cc_temp in
7549 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7550 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7551 \-*) ;;
7552 *) break;;
7553 esac
7554done
7555cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7556
7557
7558# Only perform the check for file, if the check method requires it
7559test -z "$MAGIC_CMD" && MAGIC_CMD=file
7560case $deplibs_check_method in
7561file_magic*)
7562 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7564$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
d0ac1c44 7565if ${lt_cv_path_MAGIC_CMD+:} false; then :
6bb11ab3
L
7566 $as_echo_n "(cached) " >&6
7567else
7568 case $MAGIC_CMD in
7569[\\/*] | ?:[\\/]*)
7570 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7571 ;;
7572*)
7573 lt_save_MAGIC_CMD="$MAGIC_CMD"
7574 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7575 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7576 for ac_dir in $ac_dummy; do
7577 IFS="$lt_save_ifs"
7578 test -z "$ac_dir" && ac_dir=.
7579 if test -f $ac_dir/${ac_tool_prefix}file; then
7580 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7581 if test -n "$file_magic_test_file"; then
7582 case $deplibs_check_method in
7583 "file_magic "*)
7584 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7585 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7586 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7587 $EGREP "$file_magic_regex" > /dev/null; then
7588 :
7589 else
7590 cat <<_LT_EOF 1>&2
7591
7592*** Warning: the command libtool uses to detect shared libraries,
7593*** $file_magic_cmd, produces output that libtool cannot recognize.
7594*** The result is that libtool may fail to recognize shared libraries
7595*** as such. This will affect the creation of libtool libraries that
7596*** depend on shared libraries, but programs linked with such libtool
7597*** libraries will work regardless of this problem. Nevertheless, you
7598*** may want to report the problem to your system manager and/or to
7599*** bug-libtool@gnu.org
7600
7601_LT_EOF
7602 fi ;;
7603 esac
7604 fi
7605 break
f0569246 7606 fi
6bb11ab3
L
7607 done
7608 IFS="$lt_save_ifs"
7609 MAGIC_CMD="$lt_save_MAGIC_CMD"
7610 ;;
7611esac
f0569246 7612fi
f0569246 7613
6bb11ab3
L
7614MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7615if test -n "$MAGIC_CMD"; then
7616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7617$as_echo "$MAGIC_CMD" >&6; }
7618else
7619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7620$as_echo "no" >&6; }
7621fi
81ecdfbb 7622
6bb11ab3
L
7623
7624
7625
7626
7627if test -z "$lt_cv_path_MAGIC_CMD"; then
7628 if test -n "$ac_tool_prefix"; then
7629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7630$as_echo_n "checking for file... " >&6; }
d0ac1c44 7631if ${lt_cv_path_MAGIC_CMD+:} false; then :
6bb11ab3
L
7632 $as_echo_n "(cached) " >&6
7633else
7634 case $MAGIC_CMD in
7635[\\/*] | ?:[\\/]*)
7636 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7637 ;;
7638*)
7639 lt_save_MAGIC_CMD="$MAGIC_CMD"
7640 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7641 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7642 for ac_dir in $ac_dummy; do
7643 IFS="$lt_save_ifs"
7644 test -z "$ac_dir" && ac_dir=.
7645 if test -f $ac_dir/file; then
7646 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7647 if test -n "$file_magic_test_file"; then
7648 case $deplibs_check_method in
7649 "file_magic "*)
7650 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7651 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7652 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7653 $EGREP "$file_magic_regex" > /dev/null; then
7654 :
7655 else
7656 cat <<_LT_EOF 1>&2
7657
7658*** Warning: the command libtool uses to detect shared libraries,
7659*** $file_magic_cmd, produces output that libtool cannot recognize.
7660*** The result is that libtool may fail to recognize shared libraries
7661*** as such. This will affect the creation of libtool libraries that
7662*** depend on shared libraries, but programs linked with such libtool
7663*** libraries will work regardless of this problem. Nevertheless, you
7664*** may want to report the problem to your system manager and/or to
7665*** bug-libtool@gnu.org
7666
7667_LT_EOF
7668 fi ;;
7669 esac
7670 fi
7671 break
7672 fi
7673 done
7674 IFS="$lt_save_ifs"
7675 MAGIC_CMD="$lt_save_MAGIC_CMD"
7676 ;;
81ecdfbb 7677esac
6bb11ab3
L
7678fi
7679
7680MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7681if test -n "$MAGIC_CMD"; then
7682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7683$as_echo "$MAGIC_CMD" >&6; }
7684else
7685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7686$as_echo "no" >&6; }
7687fi
7688
7689
7690 else
7691 MAGIC_CMD=:
7692 fi
7693fi
7694
7695 fi
7696 ;;
7697esac
7698
7699# Use C for the default configuration in the libtool script
7700
7701lt_save_CC="$CC"
7702ac_ext=c
7703ac_cpp='$CPP $CPPFLAGS'
7704ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7705ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7706ac_compiler_gnu=$ac_cv_c_compiler_gnu
7707
7708
7709# Source file extension for C test sources.
7710ac_ext=c
7711
7712# Object file extension for compiled C test sources.
7713objext=o
7714objext=$objext
7715
7716# Code to be used in simple compile tests
7717lt_simple_compile_test_code="int some_variable = 0;"
7718
7719# Code to be used in simple link tests
7720lt_simple_link_test_code='int main(){return(0);}'
7721
7722
7723
7724
7725
7726
7727
7728# If no C compiler was specified, use CC.
7729LTCC=${LTCC-"$CC"}
7730
7731# If no C compiler flags were specified, use CFLAGS.
7732LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7733
7734# Allow CC to be a program name with arguments.
7735compiler=$CC
7736
7737# Save the default compiler, since it gets overwritten when the other
7738# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7739compiler_DEFAULT=$CC
7740
7741# save warnings/boilerplate of simple test code
7742ac_outfile=conftest.$ac_objext
7743echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7744eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7745_lt_compiler_boilerplate=`cat conftest.err`
7746$RM conftest*
7747
7748ac_outfile=conftest.$ac_objext
7749echo "$lt_simple_link_test_code" >conftest.$ac_ext
7750eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7751_lt_linker_boilerplate=`cat conftest.err`
7752$RM -r conftest*
7753
7754
7755## CAVEAT EMPTOR:
7756## There is no encapsulation within the following macros, do not change
7757## the running order or otherwise move them around unless you know exactly
7758## what you are doing...
7759if test -n "$compiler"; then
7760
7761lt_prog_compiler_no_builtin_flag=
7762
7763if test "$GCC" = yes; then
7764 case $cc_basename in
7765 nvcc*)
7766 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7767 *)
7768 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
f0569246 7769 esac
6bb11ab3
L
7770
7771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7772$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
d0ac1c44 7773if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
6bb11ab3 7774 $as_echo_n "(cached) " >&6
f0569246 7775else
6bb11ab3
L
7776 lt_cv_prog_compiler_rtti_exceptions=no
7777 ac_outfile=conftest.$ac_objext
7778 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7779 lt_compiler_flag="-fno-rtti -fno-exceptions"
7780 # Insert the option either (1) after the last *FLAGS variable, or
7781 # (2) before a word containing "conftest.", or (3) at the end.
7782 # Note that $ac_compile itself does not contain backslashes and begins
7783 # with a dollar sign (not a hyphen), so the echo should work correctly.
7784 # The option is referenced via a variable to avoid confusing sed.
7785 lt_compile=`echo "$ac_compile" | $SED \
7786 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7787 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7788 -e 's:$: $lt_compiler_flag:'`
7789 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7790 (eval "$lt_compile" 2>conftest.err)
7791 ac_status=$?
7792 cat conftest.err >&5
7793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7794 if (exit $ac_status) && test -s "$ac_outfile"; then
7795 # The compiler can only warn and ignore the option if not recognized
7796 # So say no if there are warnings other than the usual output.
7797 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7798 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7799 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7800 lt_cv_prog_compiler_rtti_exceptions=yes
7801 fi
7802 fi
7803 $RM conftest*
7804
f0569246 7805fi
6bb11ab3
L
7806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7807$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7808
7809if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7810 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7811else
7812 :
7813fi
7814
7815fi
7816
7817
7818
7819
7820
7821
7822 lt_prog_compiler_wl=
7823lt_prog_compiler_pic=
7824lt_prog_compiler_static=
7825
7826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7827$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7828
7829 if test "$GCC" = yes; then
7830 lt_prog_compiler_wl='-Wl,'
7831 lt_prog_compiler_static='-static'
7832
7833 case $host_os in
7834 aix*)
7835 # All AIX code is PIC.
7836 if test "$host_cpu" = ia64; then
7837 # AIX 5 now supports IA64 processor
7838 lt_prog_compiler_static='-Bstatic'
7839 fi
7840 lt_prog_compiler_pic='-fPIC'
7841 ;;
7842
7843 amigaos*)
7844 case $host_cpu in
7845 powerpc)
7846 # see comment about AmigaOS4 .so support
7847 lt_prog_compiler_pic='-fPIC'
7848 ;;
7849 m68k)
7850 # FIXME: we need at least 68020 code to build shared libraries, but
7851 # adding the `-m68020' flag to GCC prevents building anything better,
7852 # like `-m68040'.
7853 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7854 ;;
7855 esac
7856 ;;
7857
7858 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7859 # PIC is the default for these OSes.
7860 ;;
7861
7862 mingw* | cygwin* | pw32* | os2* | cegcc*)
7863 # This hack is so that the source file can tell whether it is being
7864 # built for inclusion in a dll (and should export symbols for example).
7865 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7866 # (--disable-auto-import) libraries
7867 lt_prog_compiler_pic='-DDLL_EXPORT'
7868 ;;
7869
7870 darwin* | rhapsody*)
7871 # PIC is the default on this platform
7872 # Common symbols not allowed in MH_DYLIB files
7873 lt_prog_compiler_pic='-fno-common'
7874 ;;
7875
7876 haiku*)
7877 # PIC is the default for Haiku.
7878 # The "-static" flag exists, but is broken.
7879 lt_prog_compiler_static=
7880 ;;
7881
7882 hpux*)
7883 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7884 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7885 # sets the default TLS model and affects inlining.
7886 case $host_cpu in
7887 hppa*64*)
7888 # +Z the default
7889 ;;
7890 *)
7891 lt_prog_compiler_pic='-fPIC'
7892 ;;
7893 esac
7894 ;;
7895
7896 interix[3-9]*)
7897 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7898 # Instead, we relocate shared libraries at runtime.
7899 ;;
7900
7901 msdosdjgpp*)
7902 # Just because we use GCC doesn't mean we suddenly get shared libraries
7903 # on systems that don't support them.
7904 lt_prog_compiler_can_build_shared=no
7905 enable_shared=no
7906 ;;
7907
7908 *nto* | *qnx*)
7909 # QNX uses GNU C++, but need to define -shared option too, otherwise
7910 # it will coredump.
7911 lt_prog_compiler_pic='-fPIC -shared'
7912 ;;
7913
7914 sysv4*MP*)
7915 if test -d /usr/nec; then
7916 lt_prog_compiler_pic=-Kconform_pic
7917 fi
7918 ;;
7919
7920 *)
7921 lt_prog_compiler_pic='-fPIC'
7922 ;;
7923 esac
7924
7925 case $cc_basename in
7926 nvcc*) # Cuda Compiler Driver 2.2
7927 lt_prog_compiler_wl='-Xlinker '
7928 lt_prog_compiler_pic='-Xcompiler -fPIC'
7929 ;;
7930 esac
7931 else
7932 # PORTME Check for flag to pass linker flags through the system compiler.
7933 case $host_os in
7934 aix*)
7935 lt_prog_compiler_wl='-Wl,'
7936 if test "$host_cpu" = ia64; then
7937 # AIX 5 now supports IA64 processor
7938 lt_prog_compiler_static='-Bstatic'
7939 else
7940 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7941 fi
7942 ;;
7943
7944 mingw* | cygwin* | pw32* | os2* | cegcc*)
7945 # This hack is so that the source file can tell whether it is being
7946 # built for inclusion in a dll (and should export symbols for example).
7947 lt_prog_compiler_pic='-DDLL_EXPORT'
7948 ;;
7949
7950 hpux9* | hpux10* | hpux11*)
7951 lt_prog_compiler_wl='-Wl,'
7952 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7953 # not for PA HP-UX.
7954 case $host_cpu in
7955 hppa*64*|ia64*)
7956 # +Z the default
7957 ;;
7958 *)
7959 lt_prog_compiler_pic='+Z'
7960 ;;
7961 esac
7962 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7963 lt_prog_compiler_static='${wl}-a ${wl}archive'
7964 ;;
7965
7966 irix5* | irix6* | nonstopux*)
7967 lt_prog_compiler_wl='-Wl,'
7968 # PIC (with -KPIC) is the default.
7969 lt_prog_compiler_static='-non_shared'
7970 ;;
7971
7972 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7973 case $cc_basename in
7974 # old Intel for x86_64 which still supported -KPIC.
7975 ecc*)
7976 lt_prog_compiler_wl='-Wl,'
7977 lt_prog_compiler_pic='-KPIC'
7978 lt_prog_compiler_static='-static'
7979 ;;
7980 # icc used to be incompatible with GCC.
7981 # ICC 10 doesn't accept -KPIC any more.
7982 icc* | ifort*)
7983 lt_prog_compiler_wl='-Wl,'
7984 lt_prog_compiler_pic='-fPIC'
7985 lt_prog_compiler_static='-static'
7986 ;;
7987 # Lahey Fortran 8.1.
7988 lf95*)
7989 lt_prog_compiler_wl='-Wl,'
7990 lt_prog_compiler_pic='--shared'
7991 lt_prog_compiler_static='--static'
7992 ;;
7993 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7994 # Portland Group compilers (*not* the Pentium gcc compiler,
7995 # which looks to be a dead project)
7996 lt_prog_compiler_wl='-Wl,'
7997 lt_prog_compiler_pic='-fpic'
7998 lt_prog_compiler_static='-Bstatic'
7999 ;;
8000 ccc*)
8001 lt_prog_compiler_wl='-Wl,'
8002 # All Alpha code is PIC.
8003 lt_prog_compiler_static='-non_shared'
8004 ;;
8005 xl* | bgxl* | bgf* | mpixl*)
8006 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8007 lt_prog_compiler_wl='-Wl,'
8008 lt_prog_compiler_pic='-qpic'
8009 lt_prog_compiler_static='-qstaticlink'
8010 ;;
8011 *)
8012 case `$CC -V 2>&1 | sed 5q` in
8013 *Sun\ F* | *Sun*Fortran*)
8014 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8015 lt_prog_compiler_pic='-KPIC'
8016 lt_prog_compiler_static='-Bstatic'
8017 lt_prog_compiler_wl=''
8018 ;;
8019 *Sun\ C*)
8020 # Sun C 5.9
8021 lt_prog_compiler_pic='-KPIC'
8022 lt_prog_compiler_static='-Bstatic'
8023 lt_prog_compiler_wl='-Wl,'
8024 ;;
8025 esac
8026 ;;
8027 esac
8028 ;;
8029
8030 newsos6)
8031 lt_prog_compiler_pic='-KPIC'
8032 lt_prog_compiler_static='-Bstatic'
8033 ;;
8034
8035 *nto* | *qnx*)
8036 # QNX uses GNU C++, but need to define -shared option too, otherwise
8037 # it will coredump.
8038 lt_prog_compiler_pic='-fPIC -shared'
8039 ;;
8040
8041 osf3* | osf4* | osf5*)
8042 lt_prog_compiler_wl='-Wl,'
8043 # All OSF/1 code is PIC.
8044 lt_prog_compiler_static='-non_shared'
8045 ;;
8046
8047 rdos*)
8048 lt_prog_compiler_static='-non_shared'
8049 ;;
f0569246 8050
6bb11ab3
L
8051 solaris*)
8052 lt_prog_compiler_pic='-KPIC'
8053 lt_prog_compiler_static='-Bstatic'
8054 case $cc_basename in
8055 f77* | f90* | f95*)
8056 lt_prog_compiler_wl='-Qoption ld ';;
8057 *)
8058 lt_prog_compiler_wl='-Wl,';;
8059 esac
8060 ;;
f0569246 8061
6bb11ab3
L
8062 sunos4*)
8063 lt_prog_compiler_wl='-Qoption ld '
8064 lt_prog_compiler_pic='-PIC'
8065 lt_prog_compiler_static='-Bstatic'
8066 ;;
f0569246 8067
6bb11ab3
L
8068 sysv4 | sysv4.2uw2* | sysv4.3*)
8069 lt_prog_compiler_wl='-Wl,'
8070 lt_prog_compiler_pic='-KPIC'
8071 lt_prog_compiler_static='-Bstatic'
8072 ;;
8073
8074 sysv4*MP*)
8075 if test -d /usr/nec ;then
8076 lt_prog_compiler_pic='-Kconform_pic'
8077 lt_prog_compiler_static='-Bstatic'
8078 fi
8079 ;;
8080
8081 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8082 lt_prog_compiler_wl='-Wl,'
8083 lt_prog_compiler_pic='-KPIC'
8084 lt_prog_compiler_static='-Bstatic'
8085 ;;
8086
8087 unicos*)
8088 lt_prog_compiler_wl='-Wl,'
8089 lt_prog_compiler_can_build_shared=no
8090 ;;
8091
8092 uts4*)
8093 lt_prog_compiler_pic='-pic'
8094 lt_prog_compiler_static='-Bstatic'
8095 ;;
8096
8097 *)
8098 lt_prog_compiler_can_build_shared=no
8099 ;;
8100 esac
8101 fi
8102
8103case $host_os in
8104 # For platforms which do not support PIC, -DPIC is meaningless:
8105 *djgpp*)
8106 lt_prog_compiler_pic=
8107 ;;
8108 *)
8109 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8110 ;;
81ecdfbb 8111esac
6bb11ab3
L
8112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8113$as_echo "$lt_prog_compiler_pic" >&6; }
8114
8115
8116
8117
8118
8119
8120#
8121# Check to make sure the PIC flag actually works.
8122#
8123if test -n "$lt_prog_compiler_pic"; then
8124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8125$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
d0ac1c44 8126if ${lt_cv_prog_compiler_pic_works+:} false; then :
6bb11ab3 8127 $as_echo_n "(cached) " >&6
b7026657 8128else
6bb11ab3
L
8129 lt_cv_prog_compiler_pic_works=no
8130 ac_outfile=conftest.$ac_objext
8131 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8132 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8133 # Insert the option either (1) after the last *FLAGS variable, or
8134 # (2) before a word containing "conftest.", or (3) at the end.
8135 # Note that $ac_compile itself does not contain backslashes and begins
8136 # with a dollar sign (not a hyphen), so the echo should work correctly.
8137 # The option is referenced via a variable to avoid confusing sed.
8138 lt_compile=`echo "$ac_compile" | $SED \
8139 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8140 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8141 -e 's:$: $lt_compiler_flag:'`
8142 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8143 (eval "$lt_compile" 2>conftest.err)
8144 ac_status=$?
8145 cat conftest.err >&5
8146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8147 if (exit $ac_status) && test -s "$ac_outfile"; then
8148 # The compiler can only warn and ignore the option if not recognized
8149 # So say no if there are warnings other than the usual output.
8150 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8151 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8152 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8153 lt_cv_prog_compiler_pic_works=yes
8154 fi
8155 fi
8156 $RM conftest*
b7026657 8157
b7026657 8158fi
6bb11ab3
L
8159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8160$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8161
8162if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8163 case $lt_prog_compiler_pic in
8164 "" | " "*) ;;
8165 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8166 esac
8167else
8168 lt_prog_compiler_pic=
8169 lt_prog_compiler_can_build_shared=no
f0569246 8170fi
6bb11ab3
L
8171
8172fi
8173
8174
8175
8176
8177
8178
8179#
8180# Check to make sure the static flag actually works.
8181#
8182wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8184$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
d0ac1c44 8185if ${lt_cv_prog_compiler_static_works+:} false; then :
81ecdfbb 8186 $as_echo_n "(cached) " >&6
f0569246 8187else
6bb11ab3
L
8188 lt_cv_prog_compiler_static_works=no
8189 save_LDFLAGS="$LDFLAGS"
8190 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8191 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8192 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8193 # The linker can only warn and ignore the option if not recognized
8194 # So say no if there are warnings
8195 if test -s conftest.err; then
8196 # Append any errors to the config.log.
8197 cat conftest.err 1>&5
8198 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8199 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8200 if diff conftest.exp conftest.er2 >/dev/null; then
8201 lt_cv_prog_compiler_static_works=yes
8202 fi
8203 else
8204 lt_cv_prog_compiler_static_works=yes
8205 fi
8206 fi
8207 $RM -r conftest*
8208 LDFLAGS="$save_LDFLAGS"
f0569246 8209
6bb11ab3
L
8210fi
8211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8212$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
f0569246 8213
6bb11ab3
L
8214if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8215 :
b7026657 8216else
6bb11ab3 8217 lt_prog_compiler_static=
b7026657 8218fi
f0569246 8219
6bb11ab3
L
8220
8221
8222
8223
8224
8225
8226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8227$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
d0ac1c44 8228if ${lt_cv_prog_compiler_c_o+:} false; then :
6bb11ab3 8229 $as_echo_n "(cached) " >&6
81ecdfbb 8230else
6bb11ab3
L
8231 lt_cv_prog_compiler_c_o=no
8232 $RM -r conftest 2>/dev/null
8233 mkdir conftest
8234 cd conftest
8235 mkdir out
8236 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8237
8238 lt_compiler_flag="-o out/conftest2.$ac_objext"
8239 # Insert the option either (1) after the last *FLAGS variable, or
8240 # (2) before a word containing "conftest.", or (3) at the end.
8241 # Note that $ac_compile itself does not contain backslashes and begins
8242 # with a dollar sign (not a hyphen), so the echo should work correctly.
8243 lt_compile=`echo "$ac_compile" | $SED \
8244 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8245 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8246 -e 's:$: $lt_compiler_flag:'`
8247 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8248 (eval "$lt_compile" 2>out/conftest.err)
8249 ac_status=$?
8250 cat out/conftest.err >&5
8251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8252 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8253 then
8254 # The compiler can only warn and ignore the option if not recognized
8255 # So say no if there are warnings
8256 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8257 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8258 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8259 lt_cv_prog_compiler_c_o=yes
8260 fi
8261 fi
8262 chmod u+w . 2>&5
8263 $RM conftest*
8264 # SGI C++ compiler will create directory out/ii_files/ for
8265 # template instantiation
8266 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8267 $RM out/* && rmdir out
8268 cd ..
8269 $RM -r conftest
8270 $RM conftest*
8271
81ecdfbb 8272fi
6bb11ab3
L
8273{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8274$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8275
8276
8277
8278
8279
8280
8281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8282$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
d0ac1c44 8283if ${lt_cv_prog_compiler_c_o+:} false; then :
81ecdfbb
RW
8284 $as_echo_n "(cached) " >&6
8285else
6bb11ab3
L
8286 lt_cv_prog_compiler_c_o=no
8287 $RM -r conftest 2>/dev/null
8288 mkdir conftest
8289 cd conftest
8290 mkdir out
8291 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8292
8293 lt_compiler_flag="-o out/conftest2.$ac_objext"
8294 # Insert the option either (1) after the last *FLAGS variable, or
8295 # (2) before a word containing "conftest.", or (3) at the end.
8296 # Note that $ac_compile itself does not contain backslashes and begins
8297 # with a dollar sign (not a hyphen), so the echo should work correctly.
8298 lt_compile=`echo "$ac_compile" | $SED \
8299 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8300 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8301 -e 's:$: $lt_compiler_flag:'`
8302 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8303 (eval "$lt_compile" 2>out/conftest.err)
8304 ac_status=$?
8305 cat out/conftest.err >&5
8306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8307 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8308 then
8309 # The compiler can only warn and ignore the option if not recognized
8310 # So say no if there are warnings
8311 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8312 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8313 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8314 lt_cv_prog_compiler_c_o=yes
8315 fi
8316 fi
8317 chmod u+w . 2>&5
8318 $RM conftest*
8319 # SGI C++ compiler will create directory out/ii_files/ for
8320 # template instantiation
8321 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8322 $RM out/* && rmdir out
8323 cd ..
8324 $RM -r conftest
8325 $RM conftest*
8326
8327fi
8328{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8329$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8330
8331
8332
8333
8334hard_links="nottested"
8335if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8336 # do not overwrite the value of need_locks provided by the user
8337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8338$as_echo_n "checking if we can lock with hard links... " >&6; }
8339 hard_links=yes
8340 $RM conftest*
8341 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8342 touch conftest.a
8343 ln conftest.a conftest.b 2>&5 || hard_links=no
8344 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8346$as_echo "$hard_links" >&6; }
8347 if test "$hard_links" = no; then
8348 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8349$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8350 need_locks=warn
8351 fi
8352else
8353 need_locks=no
8354fi
8355
8356
8357
8358
8359
8360
8361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8362$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8363
8364 runpath_var=
8365 allow_undefined_flag=
8366 always_export_symbols=no
8367 archive_cmds=
8368 archive_expsym_cmds=
8369 compiler_needs_object=no
8370 enable_shared_with_static_runtimes=no
8371 export_dynamic_flag_spec=
8372 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8373 hardcode_automatic=no
8374 hardcode_direct=no
8375 hardcode_direct_absolute=no
8376 hardcode_libdir_flag_spec=
8377 hardcode_libdir_flag_spec_ld=
8378 hardcode_libdir_separator=
8379 hardcode_minus_L=no
8380 hardcode_shlibpath_var=unsupported
8381 inherit_rpath=no
8382 link_all_deplibs=unknown
8383 module_cmds=
8384 module_expsym_cmds=
8385 old_archive_from_new_cmds=
8386 old_archive_from_expsyms_cmds=
8387 thread_safe_flag_spec=
8388 whole_archive_flag_spec=
8389 # include_expsyms should be a list of space-separated symbols to be *always*
8390 # included in the symbol list
8391 include_expsyms=
8392 # exclude_expsyms can be an extended regexp of symbols to exclude
8393 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8394 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8395 # as well as any symbol that contains `d'.
8396 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8397 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8398 # platforms (ab)use it in PIC code, but their linkers get confused if
8399 # the symbol is explicitly referenced. Since portable code cannot
8400 # rely on this symbol name, it's probably fine to never include it in
8401 # preloaded symbol tables.
8402 # Exclude shared library initialization/finalization symbols.
8403 extract_expsyms_cmds=
8404
8405 case $host_os in
8406 cygwin* | mingw* | pw32* | cegcc*)
8407 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8408 # When not using gcc, we currently assume that we are using
8409 # Microsoft Visual C++.
8410 if test "$GCC" != yes; then
8411 with_gnu_ld=no
8412 fi
8413 ;;
8414 interix*)
8415 # we just hope/assume this is gcc and not c89 (= MSVC++)
8416 with_gnu_ld=yes
8417 ;;
8418 openbsd*)
8419 with_gnu_ld=no
8420 ;;
8421 esac
f0569246 8422
6bb11ab3
L
8423 ld_shlibs=yes
8424
8425 # On some targets, GNU ld is compatible enough with the native linker
8426 # that we're better off using the native interface for both.
8427 lt_use_gnu_ld_interface=no
8428 if test "$with_gnu_ld" = yes; then
8429 case $host_os in
8430 aix*)
8431 # The AIX port of GNU ld has always aspired to compatibility
8432 # with the native linker. However, as the warning in the GNU ld
8433 # block says, versions before 2.19.5* couldn't really create working
8434 # shared libraries, regardless of the interface used.
8435 case `$LD -v 2>&1` in
8436 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8437 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8438 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8439 *)
8440 lt_use_gnu_ld_interface=yes
8441 ;;
8442 esac
8443 ;;
8444 *)
8445 lt_use_gnu_ld_interface=yes
8446 ;;
8447 esac
8448 fi
f0569246 8449
6bb11ab3
L
8450 if test "$lt_use_gnu_ld_interface" = yes; then
8451 # If archive_cmds runs LD, not CC, wlarc should be empty
8452 wlarc='${wl}'
8453
8454 # Set some defaults for GNU ld with shared library support. These
8455 # are reset later if shared libraries are not supported. Putting them
8456 # here allows them to be overridden if necessary.
8457 runpath_var=LD_RUN_PATH
8458 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8459 export_dynamic_flag_spec='${wl}--export-dynamic'
8460 # ancient GNU ld didn't support --whole-archive et. al.
8461 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8462 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8463 else
8464 whole_archive_flag_spec=
8465 fi
8466 supports_anon_versioning=no
8467 case `$LD -v 2>&1` in
8468 *GNU\ gold*) supports_anon_versioning=yes ;;
8469 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8470 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8471 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8472 *\ 2.11.*) ;; # other 2.11 versions
8473 *) supports_anon_versioning=yes ;;
8474 esac
8475
8476 # See if GNU ld supports shared libraries.
8477 case $host_os in
8478 aix[3-9]*)
8479 # On AIX/PPC, the GNU linker is very broken
8480 if test "$host_cpu" != ia64; then
8481 ld_shlibs=no
8482 cat <<_LT_EOF 1>&2
8483
8484*** Warning: the GNU linker, at least up to release 2.19, is reported
8485*** to be unable to reliably create shared libraries on AIX.
8486*** Therefore, libtool is disabling shared libraries support. If you
8487*** really care for shared libraries, you may want to install binutils
8488*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8489*** You will then need to restart the configuration process.
8490
8491_LT_EOF
8492 fi
8493 ;;
8494
8495 amigaos*)
8496 case $host_cpu in
8497 powerpc)
8498 # see comment about AmigaOS4 .so support
8499 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8500 archive_expsym_cmds=''
8501 ;;
8502 m68k)
8503 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)'
8504 hardcode_libdir_flag_spec='-L$libdir'
8505 hardcode_minus_L=yes
8506 ;;
8507 esac
8508 ;;
8509
8510 beos*)
8511 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8512 allow_undefined_flag=unsupported
8513 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8514 # support --undefined. This deserves some investigation. FIXME
8515 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8516 else
8517 ld_shlibs=no
8518 fi
8519 ;;
8520
8521 cygwin* | mingw* | pw32* | cegcc*)
8522 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8523 # as there is no search path for DLLs.
8524 hardcode_libdir_flag_spec='-L$libdir'
8525 export_dynamic_flag_spec='${wl}--export-all-symbols'
8526 allow_undefined_flag=unsupported
8527 always_export_symbols=no
8528 enable_shared_with_static_runtimes=yes
8529 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8530
8531 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8532 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8533 # If the export-symbols file already is a .def file (1st line
8534 # is EXPORTS), use it as is; otherwise, prepend...
8535 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8536 cp $export_symbols $output_objdir/$soname.def;
8537 else
8538 echo EXPORTS > $output_objdir/$soname.def;
8539 cat $export_symbols >> $output_objdir/$soname.def;
8540 fi~
8541 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8542 else
8543 ld_shlibs=no
8544 fi
8545 ;;
8546
8547 haiku*)
8548 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8549 link_all_deplibs=yes
8550 ;;
8551
8552 interix[3-9]*)
8553 hardcode_direct=no
8554 hardcode_shlibpath_var=no
8555 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8556 export_dynamic_flag_spec='${wl}-E'
8557 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8558 # Instead, shared libraries are loaded at an image base (0x10000000 by
8559 # default) and relocated if they conflict, which is a slow very memory
8560 # consuming and fragmenting process. To avoid this, we pick a random,
8561 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8562 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8563 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8564 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'
8565 ;;
8566
8567 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8568 tmp_diet=no
8569 if test "$host_os" = linux-dietlibc; then
8570 case $cc_basename in
8571 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8572 esac
8573 fi
8574 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8575 && test "$tmp_diet" = no
8576 then
5cddc23a 8577 tmp_addflag=' $pic_flag'
6bb11ab3
L
8578 tmp_sharedflag='-shared'
8579 case $cc_basename,$host_cpu in
8580 pgcc*) # Portland Group C compiler
8581 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'
8582 tmp_addflag=' $pic_flag'
8583 ;;
8584 pgf77* | pgf90* | pgf95* | pgfortran*)
8585 # Portland Group f77 and f90 compilers
8586 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'
8587 tmp_addflag=' $pic_flag -Mnomain' ;;
8588 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8589 tmp_addflag=' -i_dynamic' ;;
8590 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8591 tmp_addflag=' -i_dynamic -nofor_main' ;;
8592 ifc* | ifort*) # Intel Fortran compiler
8593 tmp_addflag=' -nofor_main' ;;
8594 lf95*) # Lahey Fortran 8.1
8595 whole_archive_flag_spec=
8596 tmp_sharedflag='--shared' ;;
8597 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8598 tmp_sharedflag='-qmkshrobj'
8599 tmp_addflag= ;;
8600 nvcc*) # Cuda Compiler Driver 2.2
8601 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'
8602 compiler_needs_object=yes
8603 ;;
8604 esac
8605 case `$CC -V 2>&1 | sed 5q` in
8606 *Sun\ C*) # Sun C 5.9
8607 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'
8608 compiler_needs_object=yes
8609 tmp_sharedflag='-G' ;;
8610 *Sun\ F*) # Sun Fortran 8.3
8611 tmp_sharedflag='-G' ;;
8612 esac
8613 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8614
8615 if test "x$supports_anon_versioning" = xyes; then
8616 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8617 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8618 echo "local: *; };" >> $output_objdir/$libname.ver~
8619 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8620 fi
8621
8622 case $cc_basename in
8623 xlf* | bgf* | bgxlf* | mpixlf*)
8624 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8625 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8626 hardcode_libdir_flag_spec=
8627 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8628 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8629 if test "x$supports_anon_versioning" = xyes; then
8630 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8631 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8632 echo "local: *; };" >> $output_objdir/$libname.ver~
8633 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8634 fi
8635 ;;
8636 esac
8637 else
8638 ld_shlibs=no
8639 fi
8640 ;;
8641
8642 netbsd*)
8643 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8644 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8645 wlarc=
8646 else
8647 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8648 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8649 fi
8650 ;;
8651
8652 solaris*)
8653 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8654 ld_shlibs=no
8655 cat <<_LT_EOF 1>&2
8656
8657*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8658*** create shared libraries on Solaris systems. Therefore, libtool
8659*** is disabling shared libraries support. We urge you to upgrade GNU
8660*** binutils to release 2.9.1 or newer. Another option is to modify
8661*** your PATH or compiler configuration so that the native linker is
8662*** used, and then restart.
8663
8664_LT_EOF
8665 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8666 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8667 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8668 else
8669 ld_shlibs=no
8670 fi
8671 ;;
8672
8673 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8674 case `$LD -v 2>&1` in
8675 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8676 ld_shlibs=no
8677 cat <<_LT_EOF 1>&2
8678
8679*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8680*** reliably create shared libraries on SCO systems. Therefore, libtool
8681*** is disabling shared libraries support. We urge you to upgrade GNU
8682*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8683*** your PATH or compiler configuration so that the native linker is
8684*** used, and then restart.
8685
8686_LT_EOF
8687 ;;
8688 *)
8689 # For security reasons, it is highly recommended that you always
8690 # use absolute paths for naming shared libraries, and exclude the
8691 # DT_RUNPATH tag from executables and libraries. But doing so
8692 # requires that you compile everything twice, which is a pain.
8693 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8694 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8695 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8696 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8697 else
8698 ld_shlibs=no
8699 fi
8700 ;;
8701 esac
8702 ;;
8703
8704 sunos4*)
8705 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8706 wlarc=
8707 hardcode_direct=yes
8708 hardcode_shlibpath_var=no
8709 ;;
8710
8711 *)
8712 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8713 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8714 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8715 else
8716 ld_shlibs=no
8717 fi
8718 ;;
8719 esac
8720
8721 if test "$ld_shlibs" = no; then
8722 runpath_var=
8723 hardcode_libdir_flag_spec=
8724 export_dynamic_flag_spec=
8725 whole_archive_flag_spec=
8726 fi
8727 else
8728 # PORTME fill in a description of your system's linker (not GNU ld)
8729 case $host_os in
8730 aix3*)
8731 allow_undefined_flag=unsupported
8732 always_export_symbols=yes
8733 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'
8734 # Note: this linker hardcodes the directories in LIBPATH if there
8735 # are no directories specified by -L.
8736 hardcode_minus_L=yes
8737 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8738 # Neither direct hardcoding nor static linking is supported with a
8739 # broken collect2.
8740 hardcode_direct=unsupported
8741 fi
8742 ;;
8743
8744 aix[4-9]*)
8745 if test "$host_cpu" = ia64; then
8746 # On IA64, the linker does run time linking by default, so we don't
8747 # have to do anything special.
8748 aix_use_runtimelinking=no
8749 exp_sym_flag='-Bexport'
8750 no_entry_flag=""
8751 else
8752 # If we're using GNU nm, then we don't want the "-C" option.
8753 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8754 # Also, AIX nm treats weak defined symbols like other global
8755 # defined symbols, whereas GNU nm marks them as "W".
8756 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8757 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'
8758 else
5c887dd5 8759 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
8760 fi
8761 aix_use_runtimelinking=no
8762
8763 # Test if we are trying to use run time linking or normal
8764 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8765 # need to do runtime linking.
8766 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8767 for ld_flag in $LDFLAGS; do
8768 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8769 aix_use_runtimelinking=yes
8770 break
8771 fi
8772 done
8773 ;;
8774 esac
8775
8776 exp_sym_flag='-bexport'
8777 no_entry_flag='-bnoentry'
8778 fi
8779
8780 # When large executables or shared objects are built, AIX ld can
8781 # have problems creating the table of contents. If linking a library
8782 # or program results in "error TOC overflow" add -mminimal-toc to
8783 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8784 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8785
8786 archive_cmds=''
8787 hardcode_direct=yes
8788 hardcode_direct_absolute=yes
8789 hardcode_libdir_separator=':'
8790 link_all_deplibs=yes
8791 file_list_spec='${wl}-f,'
8792
8793 if test "$GCC" = yes; then
8794 case $host_os in aix4.[012]|aix4.[012].*)
8795 # We only want to do this on AIX 4.2 and lower, the check
8796 # below for broken collect2 doesn't work under 4.3+
8797 collect2name=`${CC} -print-prog-name=collect2`
8798 if test -f "$collect2name" &&
8799 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8800 then
8801 # We have reworked collect2
8802 :
8803 else
8804 # We have old collect2
8805 hardcode_direct=unsupported
8806 # It fails to find uninstalled libraries when the uninstalled
8807 # path is not listed in the libpath. Setting hardcode_minus_L
8808 # to unsupported forces relinking
8809 hardcode_minus_L=yes
8810 hardcode_libdir_flag_spec='-L$libdir'
8811 hardcode_libdir_separator=
8812 fi
8813 ;;
8814 esac
8815 shared_flag='-shared'
8816 if test "$aix_use_runtimelinking" = yes; then
8817 shared_flag="$shared_flag "'${wl}-G'
8818 fi
8819 else
8820 # not using gcc
8821 if test "$host_cpu" = ia64; then
8822 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8823 # chokes on -Wl,-G. The following line is correct:
8824 shared_flag='-G'
8825 else
8826 if test "$aix_use_runtimelinking" = yes; then
8827 shared_flag='${wl}-G'
8828 else
8829 shared_flag='${wl}-bM:SRE'
8830 fi
8831 fi
8832 fi
8833
8834 export_dynamic_flag_spec='${wl}-bexpall'
8835 # It seems that -bexpall does not export symbols beginning with
8836 # underscore (_), so it is better to generate a list of symbols to export.
8837 always_export_symbols=yes
8838 if test "$aix_use_runtimelinking" = yes; then
8839 # Warning - without using the other runtime loading flags (-brtl),
8840 # -berok will link without error, but may produce a broken library.
8841 allow_undefined_flag='-berok'
8842 # Determine the default libpath from the value encoded in an
8843 # empty executable.
8844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
81ecdfbb
RW
8845/* end confdefs.h. */
8846
8847int
8848main ()
8849{
8850
8851 ;
8852 return 0;
8853}
8854_ACEOF
6bb11ab3 8855if ac_fn_c_try_link "$LINENO"; then :
b7026657 8856
6bb11ab3
L
8857lt_aix_libpath_sed='
8858 /Import File Strings/,/^$/ {
8859 /^0/ {
8860 s/^0 *\(.*\)$/\1/
8861 p
8862 }
8863 }'
8864aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8865# Check for a 64-bit object if we didn't find anything.
8866if test -z "$aix_libpath"; then
8867 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8868fi
8869fi
8870rm -f core conftest.err conftest.$ac_objext \
8871 conftest$ac_exeext conftest.$ac_ext
8872if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8873
8874 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8875 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"
8876 else
8877 if test "$host_cpu" = ia64; then
8878 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8879 allow_undefined_flag="-z nodefs"
8880 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"
8881 else
8882 # Determine the default libpath from the value encoded in an
8883 # empty executable.
81ecdfbb
RW
8884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8885/* end confdefs.h. */
8886
8887int
8888main ()
8889{
8890
8891 ;
8892 return 0;
8893}
8894_ACEOF
6bb11ab3
L
8895if ac_fn_c_try_link "$LINENO"; then :
8896
8897lt_aix_libpath_sed='
8898 /Import File Strings/,/^$/ {
8899 /^0/ {
8900 s/^0 *\(.*\)$/\1/
8901 p
8902 }
8903 }'
8904aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8905# Check for a 64-bit object if we didn't find anything.
8906if test -z "$aix_libpath"; then
8907 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
81ecdfbb 8908fi
81ecdfbb 8909fi
6bb11ab3
L
8910rm -f core conftest.err conftest.$ac_objext \
8911 conftest$ac_exeext conftest.$ac_ext
8912if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8913
8914 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8915 # Warning - without using the other run time loading flags,
8916 # -berok will link without error, but may produce a broken library.
8917 no_undefined_flag=' ${wl}-bernotok'
8918 allow_undefined_flag=' ${wl}-berok'
8919 if test "$with_gnu_ld" = yes; then
8920 # We only use this code for GNU lds that support --whole-archive.
8921 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8922 else
8923 # Exported symbols can be pulled into shared objects from archives
8924 whole_archive_flag_spec='$convenience'
8925 fi
8926 archive_cmds_need_lc=yes
8927 # This is similar to how AIX traditionally builds its shared libraries.
8928 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'
8929 fi
8930 fi
8931 ;;
8932
8933 amigaos*)
8934 case $host_cpu in
8935 powerpc)
8936 # see comment about AmigaOS4 .so support
8937 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8938 archive_expsym_cmds=''
8939 ;;
8940 m68k)
8941 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)'
8942 hardcode_libdir_flag_spec='-L$libdir'
8943 hardcode_minus_L=yes
8944 ;;
8945 esac
8946 ;;
8947
8948 bsdi[45]*)
8949 export_dynamic_flag_spec=-rdynamic
8950 ;;
8951
8952 cygwin* | mingw* | pw32* | cegcc*)
8953 # When not using gcc, we currently assume that we are using
8954 # Microsoft Visual C++.
8955 # hardcode_libdir_flag_spec is actually meaningless, as there is
8956 # no search path for DLLs.
8957 hardcode_libdir_flag_spec=' '
8958 allow_undefined_flag=unsupported
8959 # Tell ltmain to make .lib files, not .a files.
8960 libext=lib
8961 # Tell ltmain to make .dll files, not .so files.
8962 shrext_cmds=".dll"
8963 # FIXME: Setting linknames here is a bad hack.
8964 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8965 # The linker will automatically build a .lib file if we build a DLL.
8966 old_archive_from_new_cmds='true'
8967 # FIXME: Should let the user specify the lib program.
8968 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8969 fix_srcfile_path='`cygpath -w "$srcfile"`'
8970 enable_shared_with_static_runtimes=yes
8971 ;;
8972
8973 darwin* | rhapsody*)
8974
8975
8976 archive_cmds_need_lc=no
8977 hardcode_direct=no
8978 hardcode_automatic=yes
8979 hardcode_shlibpath_var=unsupported
8980 if test "$lt_cv_ld_force_load" = "yes"; then
8981 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 8982 else
6bb11ab3 8983 whole_archive_flag_spec=''
f0569246 8984 fi
6bb11ab3
L
8985 link_all_deplibs=yes
8986 allow_undefined_flag="$_lt_dar_allow_undefined"
8987 case $cc_basename in
8988 ifort*) _lt_dar_can_shared=yes ;;
8989 *) _lt_dar_can_shared=$GCC ;;
8990 esac
8991 if test "$_lt_dar_can_shared" = "yes"; then
8992 output_verbose_link_cmd=func_echo_all
8993 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8994 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8995 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}"
8996 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}"
8997
f0569246 8998 else
6bb11ab3 8999 ld_shlibs=no
f0569246 9000 fi
6bb11ab3
L
9001
9002 ;;
9003
9004 dgux*)
9005 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9006 hardcode_libdir_flag_spec='-L$libdir'
9007 hardcode_shlibpath_var=no
9008 ;;
9009
9010 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9011 # support. Future versions do this automatically, but an explicit c++rt0.o
9012 # does not break anything, and helps significantly (at the cost of a little
9013 # extra space).
9014 freebsd2.2*)
9015 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9016 hardcode_libdir_flag_spec='-R$libdir'
9017 hardcode_direct=yes
9018 hardcode_shlibpath_var=no
9019 ;;
9020
9021 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9022 freebsd2.*)
9023 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9024 hardcode_direct=yes
9025 hardcode_minus_L=yes
9026 hardcode_shlibpath_var=no
9027 ;;
9028
9029 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9030 freebsd* | dragonfly*)
9031 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9032 hardcode_libdir_flag_spec='-R$libdir'
9033 hardcode_direct=yes
9034 hardcode_shlibpath_var=no
9035 ;;
9036
9037 hpux9*)
9038 if test "$GCC" = yes; then
9039 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'
9040 else
9041 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'
9042 fi
9043 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9044 hardcode_libdir_separator=:
9045 hardcode_direct=yes
9046
9047 # hardcode_minus_L: Not really in the search PATH,
9048 # but as the default location of the library.
9049 hardcode_minus_L=yes
9050 export_dynamic_flag_spec='${wl}-E'
9051 ;;
9052
9053 hpux10*)
9054 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9055 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9056 else
9057 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9058 fi
9059 if test "$with_gnu_ld" = no; then
9060 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9061 hardcode_libdir_flag_spec_ld='+b $libdir'
9062 hardcode_libdir_separator=:
9063 hardcode_direct=yes
9064 hardcode_direct_absolute=yes
9065 export_dynamic_flag_spec='${wl}-E'
9066 # hardcode_minus_L: Not really in the search PATH,
9067 # but as the default location of the library.
9068 hardcode_minus_L=yes
9069 fi
9070 ;;
9071
9072 hpux11*)
9073 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9074 case $host_cpu in
9075 hppa*64*)
9076 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9077 ;;
9078 ia64*)
9079 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9080 ;;
9081 *)
9082 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9083 ;;
9084 esac
9085 else
9086 case $host_cpu in
9087 hppa*64*)
9088 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9089 ;;
9090 ia64*)
9091 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9092 ;;
9093 *)
9094
9095 # Older versions of the 11.00 compiler do not understand -b yet
9096 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9098$as_echo_n "checking if $CC understands -b... " >&6; }
d0ac1c44 9099if ${lt_cv_prog_compiler__b+:} false; then :
81ecdfbb 9100 $as_echo_n "(cached) " >&6
f0569246 9101else
6bb11ab3
L
9102 lt_cv_prog_compiler__b=no
9103 save_LDFLAGS="$LDFLAGS"
9104 LDFLAGS="$LDFLAGS -b"
9105 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9106 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9107 # The linker can only warn and ignore the option if not recognized
9108 # So say no if there are warnings
9109 if test -s conftest.err; then
9110 # Append any errors to the config.log.
9111 cat conftest.err 1>&5
9112 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9113 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9114 if diff conftest.exp conftest.er2 >/dev/null; then
9115 lt_cv_prog_compiler__b=yes
9116 fi
9117 else
9118 lt_cv_prog_compiler__b=yes
9119 fi
9120 fi
9121 $RM -r conftest*
9122 LDFLAGS="$save_LDFLAGS"
f0569246 9123
6bb11ab3
L
9124fi
9125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9126$as_echo "$lt_cv_prog_compiler__b" >&6; }
f0569246 9127
6bb11ab3
L
9128if test x"$lt_cv_prog_compiler__b" = xyes; then
9129 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9130else
9131 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9132fi
81ecdfbb 9133
6bb11ab3
L
9134 ;;
9135 esac
9136 fi
9137 if test "$with_gnu_ld" = no; then
9138 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9139 hardcode_libdir_separator=:
9140
9141 case $host_cpu in
9142 hppa*64*|ia64*)
9143 hardcode_direct=no
9144 hardcode_shlibpath_var=no
9145 ;;
9146 *)
9147 hardcode_direct=yes
9148 hardcode_direct_absolute=yes
9149 export_dynamic_flag_spec='${wl}-E'
9150
9151 # hardcode_minus_L: Not really in the search PATH,
9152 # but as the default location of the library.
9153 hardcode_minus_L=yes
9154 ;;
9155 esac
9156 fi
9157 ;;
9158
9159 irix5* | irix6* | nonstopux*)
9160 if test "$GCC" = yes; then
9161 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'
9162 # Try to use the -exported_symbol ld option, if it does not
9163 # work, assume that -exports_file does not work either and
9164 # implicitly export all symbols.
9165 save_LDFLAGS="$LDFLAGS"
9166 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9168/* end confdefs.h. */
9169int foo(void) {}
b7026657 9170_ACEOF
6bb11ab3
L
9171if ac_fn_c_try_link "$LINENO"; then :
9172 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 9173
f0569246 9174fi
6bb11ab3
L
9175rm -f core conftest.err conftest.$ac_objext \
9176 conftest$ac_exeext conftest.$ac_ext
9177 LDFLAGS="$save_LDFLAGS"
9178 else
9179 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'
9180 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'
9181 fi
9182 archive_cmds_need_lc='no'
9183 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9184 hardcode_libdir_separator=:
9185 inherit_rpath=yes
9186 link_all_deplibs=yes
9187 ;;
9188
9189 netbsd*)
9190 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9191 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9192 else
9193 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9194 fi
9195 hardcode_libdir_flag_spec='-R$libdir'
9196 hardcode_direct=yes
9197 hardcode_shlibpath_var=no
9198 ;;
9199
9200 newsos6)
9201 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9202 hardcode_direct=yes
9203 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9204 hardcode_libdir_separator=:
9205 hardcode_shlibpath_var=no
9206 ;;
9207
9208 *nto* | *qnx*)
9209 ;;
9210
9211 openbsd*)
9212 if test -f /usr/libexec/ld.so; then
9213 hardcode_direct=yes
9214 hardcode_shlibpath_var=no
9215 hardcode_direct_absolute=yes
9216 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9217 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9218 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9219 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9220 export_dynamic_flag_spec='${wl}-E'
9221 else
9222 case $host_os in
9223 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9224 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9225 hardcode_libdir_flag_spec='-R$libdir'
9226 ;;
9227 *)
9228 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9229 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9230 ;;
9231 esac
9232 fi
9233 else
9234 ld_shlibs=no
9235 fi
9236 ;;
9237
9238 os2*)
9239 hardcode_libdir_flag_spec='-L$libdir'
9240 hardcode_minus_L=yes
9241 allow_undefined_flag=unsupported
9242 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'
9243 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9244 ;;
9245
9246 osf3*)
9247 if test "$GCC" = yes; then
9248 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9249 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'
9250 else
9251 allow_undefined_flag=' -expect_unresolved \*'
9252 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'
9253 fi
9254 archive_cmds_need_lc='no'
9255 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9256 hardcode_libdir_separator=:
9257 ;;
9258
9259 osf4* | osf5*) # as osf3* with the addition of -msym flag
9260 if test "$GCC" = yes; then
9261 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9262 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'
9263 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9264 else
9265 allow_undefined_flag=' -expect_unresolved \*'
9266 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'
9267 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~
9268 $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'
9269
9270 # Both c and cxx compiler support -rpath directly
9271 hardcode_libdir_flag_spec='-rpath $libdir'
9272 fi
9273 archive_cmds_need_lc='no'
9274 hardcode_libdir_separator=:
9275 ;;
9276
9277 solaris*)
9278 no_undefined_flag=' -z defs'
9279 if test "$GCC" = yes; then
9280 wlarc='${wl}'
9281 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9282 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9283 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9284 else
9285 case `$CC -V 2>&1` in
9286 *"Compilers 5.0"*)
9287 wlarc=''
9288 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9289 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9290 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9291 ;;
9292 *)
9293 wlarc='${wl}'
9294 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9295 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9296 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9297 ;;
9298 esac
9299 fi
9300 hardcode_libdir_flag_spec='-R$libdir'
9301 hardcode_shlibpath_var=no
9302 case $host_os in
9303 solaris2.[0-5] | solaris2.[0-5].*) ;;
9304 *)
9305 # The compiler driver will combine and reorder linker options,
9306 # but understands `-z linker_flag'. GCC discards it without `$wl',
9307 # but is careful enough not to reorder.
9308 # Supported since Solaris 2.6 (maybe 2.5.1?)
9309 if test "$GCC" = yes; then
9310 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9311 else
9312 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9313 fi
9314 ;;
9315 esac
9316 link_all_deplibs=yes
9317 ;;
9318
9319 sunos4*)
9320 if test "x$host_vendor" = xsequent; then
9321 # Use $CC to link under sequent, because it throws in some extra .o
9322 # files that make .init and .fini sections work.
9323 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9324 else
9325 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9326 fi
9327 hardcode_libdir_flag_spec='-L$libdir'
9328 hardcode_direct=yes
9329 hardcode_minus_L=yes
9330 hardcode_shlibpath_var=no
9331 ;;
9332
9333 sysv4)
9334 case $host_vendor in
9335 sni)
9336 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9337 hardcode_direct=yes # is this really true???
9338 ;;
9339 siemens)
9340 ## LD is ld it makes a PLAMLIB
9341 ## CC just makes a GrossModule.
9342 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9343 reload_cmds='$CC -r -o $output$reload_objs'
9344 hardcode_direct=no
9345 ;;
9346 motorola)
9347 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9348 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9349 ;;
9350 esac
9351 runpath_var='LD_RUN_PATH'
9352 hardcode_shlibpath_var=no
9353 ;;
9354
9355 sysv4.3*)
9356 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9357 hardcode_shlibpath_var=no
9358 export_dynamic_flag_spec='-Bexport'
9359 ;;
9360
9361 sysv4*MP*)
9362 if test -d /usr/nec; then
9363 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9364 hardcode_shlibpath_var=no
9365 runpath_var=LD_RUN_PATH
9366 hardcode_runpath_var=yes
9367 ld_shlibs=yes
9368 fi
9369 ;;
9370
9371 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9372 no_undefined_flag='${wl}-z,text'
9373 archive_cmds_need_lc=no
9374 hardcode_shlibpath_var=no
9375 runpath_var='LD_RUN_PATH'
9376
9377 if test "$GCC" = yes; then
9378 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9379 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9380 else
9381 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9382 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9383 fi
9384 ;;
9385
9386 sysv5* | sco3.2v5* | sco5v6*)
9387 # Note: We can NOT use -z defs as we might desire, because we do not
9388 # link with -lc, and that would cause any symbols used from libc to
9389 # always be unresolved, which means just about no library would
9390 # ever link correctly. If we're not using GNU ld we use -z text
9391 # though, which does catch some bad symbols but isn't as heavy-handed
9392 # as -z defs.
9393 no_undefined_flag='${wl}-z,text'
9394 allow_undefined_flag='${wl}-z,nodefs'
9395 archive_cmds_need_lc=no
9396 hardcode_shlibpath_var=no
9397 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9398 hardcode_libdir_separator=':'
9399 link_all_deplibs=yes
9400 export_dynamic_flag_spec='${wl}-Bexport'
9401 runpath_var='LD_RUN_PATH'
9402
9403 if test "$GCC" = yes; then
9404 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9405 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9406 else
9407 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9408 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9409 fi
9410 ;;
9411
9412 uts4*)
9413 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9414 hardcode_libdir_flag_spec='-L$libdir'
9415 hardcode_shlibpath_var=no
9416 ;;
9417
9418 *)
9419 ld_shlibs=no
9420 ;;
9421 esac
9422
9423 if test x$host_vendor = xsni; then
9424 case $host in
9425 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9426 export_dynamic_flag_spec='${wl}-Blargedynsym'
9427 ;;
9428 esac
9429 fi
9430 fi
9431
9432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9433$as_echo "$ld_shlibs" >&6; }
9434test "$ld_shlibs" = no && can_build_shared=no
9435
9436with_gnu_ld=$with_gnu_ld
9437
9438
9439
b7026657 9440
f0569246 9441
f0569246 9442
6ffe910a 9443
6ffe910a
MF
9444
9445
6ffe910a 9446
f0569246 9447
f0569246
AC
9448
9449
6bb11ab3
L
9450
9451
9452#
9453# Do we need to explicitly link libc?
9454#
9455case "x$archive_cmds_need_lc" in
9456x|xyes)
9457 # Assume -lc should be added
9458 archive_cmds_need_lc=yes
9459
9460 if test "$enable_shared" = yes && test "$GCC" = yes; then
9461 case $archive_cmds in
9462 *'~'*)
9463 # FIXME: we may have to deal with multi-command sequences.
9464 ;;
9465 '$CC '*)
9466 # Test whether the compiler implicitly links with -lc since on some
9467 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9468 # to ld, don't add -lc before -lgcc.
9469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9470$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
d0ac1c44 9471if ${lt_cv_archive_cmds_need_lc+:} false; then :
6ffe910a 9472 $as_echo_n "(cached) " >&6
b7026657 9473else
6bb11ab3
L
9474 $RM conftest*
9475 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9476
9477 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9478 (eval $ac_compile) 2>&5
9479 ac_status=$?
9480 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9481 test $ac_status = 0; } 2>conftest.err; then
9482 soname=conftest
9483 lib=conftest
9484 libobjs=conftest.$ac_objext
9485 deplibs=
9486 wl=$lt_prog_compiler_wl
9487 pic_flag=$lt_prog_compiler_pic
9488 compiler_flags=-v
9489 linker_flags=-v
9490 verstring=
9491 output_objdir=.
9492 libname=conftest
9493 lt_save_allow_undefined_flag=$allow_undefined_flag
9494 allow_undefined_flag=
9495 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9496 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9497 ac_status=$?
9498 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9499 test $ac_status = 0; }
9500 then
9501 lt_cv_archive_cmds_need_lc=no
9502 else
9503 lt_cv_archive_cmds_need_lc=yes
9504 fi
9505 allow_undefined_flag=$lt_save_allow_undefined_flag
9506 else
9507 cat conftest.err 1>&5
9508 fi
9509 $RM conftest*
c906108c 9510
6ffe910a 9511fi
6bb11ab3
L
9512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9513$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9514 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9515 ;;
9516 esac
9517 fi
9518 ;;
6ffe910a 9519esac
c906108c 9520
c906108c 9521
6ffe910a 9522
c906108c 9523
81ecdfbb 9524
35695fd6 9525
35695fd6 9526
35695fd6 9527
f0569246 9528
c906108c 9529
f0569246 9530
b7026657 9531
f0569246 9532
c906108c 9533
81ecdfbb 9534
c906108c 9535
f0569246
AC
9536
9537
81ecdfbb 9538
81ecdfbb 9539
81ecdfbb
RW
9540
9541
81ecdfbb 9542
81ecdfbb 9543
f0569246
AC
9544
9545
c906108c 9546
f0569246 9547
c906108c 9548
c906108c 9549
81ecdfbb 9550
b7026657 9551
c906108c 9552
f0569246 9553
81ecdfbb 9554
f0569246 9555
c906108c 9556
c906108c 9557
b7026657 9558
81ecdfbb 9559
b7026657 9560
c906108c 9561
c906108c 9562
b7026657
AC
9563
9564
9565
9566
6ffe910a 9567
2232061b
MF
9568
9569
2232061b 9570
2232061b
MF
9571
9572
2232061b
MF
9573
9574
2232061b 9575
2232061b
MF
9576
9577
6bb11ab3
L
9578
9579
9580
9581
9582
9583
9584
9585
9586
9587
9588
9589
9590
9591
9592
9593
9594
9595
9596
9597
9598
9599
9600
9601
9602
9603
9604
9605
9606
9607
9608
9609
9610
9611
9612
9613
9614
9615
9616
9617
9618
9619
9620
9621
9622
9623
9624
9625
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639
9640
9641
9642
9643
9644
9645
9646
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9678$as_echo_n "checking dynamic linker characteristics... " >&6; }
9679
9680if test "$GCC" = yes; then
9681 case $host_os in
9682 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9683 *) lt_awk_arg="/^libraries:/" ;;
9684 esac
9685 case $host_os in
9686 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9687 *) lt_sed_strip_eq="s,=/,/,g" ;;
9688 esac
9689 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9690 case $lt_search_path_spec in
9691 *\;*)
9692 # if the path contains ";" then we assume it to be the separator
9693 # otherwise default to the standard path separator (i.e. ":") - it is
9694 # assumed that no part of a normal pathname contains ";" but that should
9695 # okay in the real world where ";" in dirpaths is itself problematic.
9696 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9697 ;;
9698 *)
9699 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9700 ;;
9701 esac
9702 # Ok, now we have the path, separated by spaces, we can step through it
9703 # and add multilib dir if necessary.
9704 lt_tmp_lt_search_path_spec=
9705 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9706 for lt_sys_path in $lt_search_path_spec; do
9707 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9708 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9709 else
9710 test -d "$lt_sys_path" && \
9711 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9712 fi
9713 done
9714 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9715BEGIN {RS=" "; FS="/|\n";} {
9716 lt_foo="";
9717 lt_count=0;
9718 for (lt_i = NF; lt_i > 0; lt_i--) {
9719 if ($lt_i != "" && $lt_i != ".") {
9720 if ($lt_i == "..") {
9721 lt_count++;
9722 } else {
9723 if (lt_count == 0) {
9724 lt_foo="/" $lt_i lt_foo;
9725 } else {
9726 lt_count--;
9727 }
9728 }
9729 }
9730 }
9731 if (lt_foo != "") { lt_freq[lt_foo]++; }
9732 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9733}'`
9734 # AWK program above erroneously prepends '/' to C:/dos/paths
9735 # for these hosts.
9736 case $host_os in
9737 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9738 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9739 esac
9740 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9741else
9742 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9743fi
9744library_names_spec=
9745libname_spec='lib$name'
9746soname_spec=
9747shrext_cmds=".so"
9748postinstall_cmds=
9749postuninstall_cmds=
9750finish_cmds=
9751finish_eval=
9752shlibpath_var=
9753shlibpath_overrides_runpath=unknown
9754version_type=none
9755dynamic_linker="$host_os ld.so"
9756sys_lib_dlsearch_path_spec="/lib /usr/lib"
9757need_lib_prefix=unknown
9758hardcode_into_libs=no
9759
9760# when you set need_version to no, make sure it does not cause -set_version
9761# flags to be left without arguments
9762need_version=unknown
9763
9764case $host_os in
9765aix3*)
9766 version_type=linux
9767 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9768 shlibpath_var=LIBPATH
9769
9770 # AIX 3 has no versioning support, so we append a major version to the name.
9771 soname_spec='${libname}${release}${shared_ext}$major'
9772 ;;
9773
9774aix[4-9]*)
9775 version_type=linux
9776 need_lib_prefix=no
9777 need_version=no
9778 hardcode_into_libs=yes
9779 if test "$host_cpu" = ia64; then
9780 # AIX 5 supports IA64
9781 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9782 shlibpath_var=LD_LIBRARY_PATH
9783 else
9784 # With GCC up to 2.95.x, collect2 would create an import file
9785 # for dependence libraries. The import file would start with
9786 # the line `#! .'. This would cause the generated library to
9787 # depend on `.', always an invalid library. This was fixed in
9788 # development snapshots of GCC prior to 3.0.
9789 case $host_os in
9790 aix4 | aix4.[01] | aix4.[01].*)
9791 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9792 echo ' yes '
9793 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9794 :
9795 else
9796 can_build_shared=no
9797 fi
9798 ;;
9799 esac
9800 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9801 # soname into executable. Probably we can add versioning support to
9802 # collect2, so additional links can be useful in future.
9803 if test "$aix_use_runtimelinking" = yes; then
9804 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9805 # instead of lib<name>.a to let people know that these are not
9806 # typical AIX shared libraries.
9807 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9808 else
9809 # We preserve .a as extension for shared libraries through AIX4.2
9810 # and later when we are not doing run time linking.
9811 library_names_spec='${libname}${release}.a $libname.a'
9812 soname_spec='${libname}${release}${shared_ext}$major'
9813 fi
9814 shlibpath_var=LIBPATH
9815 fi
9816 ;;
9817
9818amigaos*)
9819 case $host_cpu in
9820 powerpc)
9821 # Since July 2007 AmigaOS4 officially supports .so libraries.
9822 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9824 ;;
9825 m68k)
9826 library_names_spec='$libname.ixlibrary $libname.a'
9827 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9828 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'
9829 ;;
9830 esac
9831 ;;
9832
9833beos*)
9834 library_names_spec='${libname}${shared_ext}'
9835 dynamic_linker="$host_os ld.so"
9836 shlibpath_var=LIBRARY_PATH
9837 ;;
9838
9839bsdi[45]*)
9840 version_type=linux
9841 need_version=no
9842 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9843 soname_spec='${libname}${release}${shared_ext}$major'
9844 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9845 shlibpath_var=LD_LIBRARY_PATH
9846 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9847 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9848 # the default ld.so.conf also contains /usr/contrib/lib and
9849 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9850 # libtool to hard-code these into programs
9851 ;;
9852
9853cygwin* | mingw* | pw32* | cegcc*)
9854 version_type=windows
9855 shrext_cmds=".dll"
9856 need_version=no
9857 need_lib_prefix=no
9858
9859 case $GCC,$host_os in
9860 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9861 library_names_spec='$libname.dll.a'
9862 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9863 postinstall_cmds='base_file=`basename \${file}`~
9864 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9865 dldir=$destdir/`dirname \$dlpath`~
9866 test -d \$dldir || mkdir -p \$dldir~
9867 $install_prog $dir/$dlname \$dldir/$dlname~
9868 chmod a+x \$dldir/$dlname~
9869 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9870 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9871 fi'
9872 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9873 dlpath=$dir/\$dldll~
9874 $RM \$dlpath'
9875 shlibpath_overrides_runpath=yes
9876
9877 case $host_os in
9878 cygwin*)
9879 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9880 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9881
9882 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9883 ;;
9884 mingw* | cegcc*)
9885 # MinGW DLLs use traditional 'lib' prefix
9886 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9887 ;;
9888 pw32*)
9889 # pw32 DLLs use 'pw' prefix rather than 'lib'
9890 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9891 ;;
9892 esac
9893 ;;
9894
9895 *)
9896 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9897 ;;
9898 esac
9899 dynamic_linker='Win32 ld.exe'
9900 # FIXME: first we should search . and the directory the executable is in
9901 shlibpath_var=PATH
9902 ;;
9903
9904darwin* | rhapsody*)
9905 dynamic_linker="$host_os dyld"
9906 version_type=darwin
9907 need_lib_prefix=no
9908 need_version=no
9909 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9910 soname_spec='${libname}${release}${major}$shared_ext'
9911 shlibpath_overrides_runpath=yes
9912 shlibpath_var=DYLD_LIBRARY_PATH
9913 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9914
9915 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9916 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9917 ;;
9918
9919dgux*)
9920 version_type=linux
9921 need_lib_prefix=no
9922 need_version=no
9923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9924 soname_spec='${libname}${release}${shared_ext}$major'
9925 shlibpath_var=LD_LIBRARY_PATH
9926 ;;
9927
9928freebsd* | dragonfly*)
9929 # DragonFly does not have aout. When/if they implement a new
9930 # versioning mechanism, adjust this.
9931 if test -x /usr/bin/objformat; then
9932 objformat=`/usr/bin/objformat`
9933 else
9934 case $host_os in
9935 freebsd[23].*) objformat=aout ;;
9936 *) objformat=elf ;;
9937 esac
9938 fi
9939 version_type=freebsd-$objformat
9940 case $version_type in
9941 freebsd-elf*)
9942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9943 need_version=no
9944 need_lib_prefix=no
9945 ;;
9946 freebsd-*)
9947 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9948 need_version=yes
9949 ;;
9950 esac
9951 shlibpath_var=LD_LIBRARY_PATH
9952 case $host_os in
9953 freebsd2.*)
9954 shlibpath_overrides_runpath=yes
9955 ;;
9956 freebsd3.[01]* | freebsdelf3.[01]*)
9957 shlibpath_overrides_runpath=yes
9958 hardcode_into_libs=yes
9959 ;;
9960 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9961 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9962 shlibpath_overrides_runpath=no
9963 hardcode_into_libs=yes
9964 ;;
9965 *) # from 4.6 on, and DragonFly
9966 shlibpath_overrides_runpath=yes
9967 hardcode_into_libs=yes
9968 ;;
9969 esac
9970 ;;
9971
6bb11ab3
L
9972haiku*)
9973 version_type=linux
9974 need_lib_prefix=no
9975 need_version=no
9976 dynamic_linker="$host_os runtime_loader"
9977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9978 soname_spec='${libname}${release}${shared_ext}$major'
9979 shlibpath_var=LIBRARY_PATH
9980 shlibpath_overrides_runpath=yes
9981 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
9982 hardcode_into_libs=yes
9983 ;;
9984
9985hpux9* | hpux10* | hpux11*)
9986 # Give a soname corresponding to the major version so that dld.sl refuses to
9987 # link against other versions.
9988 version_type=sunos
9989 need_lib_prefix=no
9990 need_version=no
9991 case $host_cpu in
9992 ia64*)
9993 shrext_cmds='.so'
9994 hardcode_into_libs=yes
9995 dynamic_linker="$host_os dld.so"
9996 shlibpath_var=LD_LIBRARY_PATH
9997 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9998 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9999 soname_spec='${libname}${release}${shared_ext}$major'
10000 if test "X$HPUX_IA64_MODE" = X32; then
10001 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10002 else
10003 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10004 fi
10005 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10006 ;;
10007 hppa*64*)
10008 shrext_cmds='.sl'
10009 hardcode_into_libs=yes
10010 dynamic_linker="$host_os dld.sl"
10011 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10012 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10013 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10014 soname_spec='${libname}${release}${shared_ext}$major'
10015 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10016 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10017 ;;
10018 *)
10019 shrext_cmds='.sl'
10020 dynamic_linker="$host_os dld.sl"
10021 shlibpath_var=SHLIB_PATH
10022 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10024 soname_spec='${libname}${release}${shared_ext}$major'
10025 ;;
10026 esac
10027 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10028 postinstall_cmds='chmod 555 $lib'
10029 # or fails outright, so override atomically:
10030 install_override_mode=555
10031 ;;
10032
10033interix[3-9]*)
10034 version_type=linux
10035 need_lib_prefix=no
10036 need_version=no
10037 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10038 soname_spec='${libname}${release}${shared_ext}$major'
10039 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10040 shlibpath_var=LD_LIBRARY_PATH
10041 shlibpath_overrides_runpath=no
10042 hardcode_into_libs=yes
10043 ;;
10044
10045irix5* | irix6* | nonstopux*)
10046 case $host_os in
10047 nonstopux*) version_type=nonstopux ;;
10048 *)
10049 if test "$lt_cv_prog_gnu_ld" = yes; then
10050 version_type=linux
10051 else
10052 version_type=irix
10053 fi ;;
10054 esac
10055 need_lib_prefix=no
10056 need_version=no
10057 soname_spec='${libname}${release}${shared_ext}$major'
10058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10059 case $host_os in
10060 irix5* | nonstopux*)
10061 libsuff= shlibsuff=
10062 ;;
10063 *)
10064 case $LD in # libtool.m4 will add one of these switches to LD
10065 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10066 libsuff= shlibsuff= libmagic=32-bit;;
10067 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10068 libsuff=32 shlibsuff=N32 libmagic=N32;;
10069 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10070 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10071 *) libsuff= shlibsuff= libmagic=never-match;;
10072 esac
10073 ;;
10074 esac
10075 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10076 shlibpath_overrides_runpath=no
10077 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10078 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10079 hardcode_into_libs=yes
10080 ;;
10081
10082# No shared lib support for Linux oldld, aout, or coff.
10083linux*oldld* | linux*aout* | linux*coff*)
10084 dynamic_linker=no
10085 ;;
10086
10087# This must be Linux ELF.
46f900c0 10088linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6bb11ab3
L
10089 version_type=linux
10090 need_lib_prefix=no
10091 need_version=no
10092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10093 soname_spec='${libname}${release}${shared_ext}$major'
10094 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10095 shlibpath_var=LD_LIBRARY_PATH
10096 shlibpath_overrides_runpath=no
10097
10098 # Some binutils ld are patched to set DT_RUNPATH
d0ac1c44 10099 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
2232061b
MF
10100 $as_echo_n "(cached) " >&6
10101else
6bb11ab3
L
10102 lt_cv_shlibpath_overrides_runpath=no
10103 save_LDFLAGS=$LDFLAGS
10104 save_libdir=$libdir
10105 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10106 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2232061b
MF
10108/* end confdefs.h. */
10109
2232061b
MF
10110int
10111main ()
10112{
10113
10114 ;
10115 return 0;
10116}
10117_ACEOF
6bb11ab3
L
10118if ac_fn_c_try_link "$LINENO"; then :
10119 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10120 lt_cv_shlibpath_overrides_runpath=yes
2232061b 10121fi
2232061b 10122fi
6bb11ab3
L
10123rm -f core conftest.err conftest.$ac_objext \
10124 conftest$ac_exeext conftest.$ac_ext
10125 LDFLAGS=$save_LDFLAGS
10126 libdir=$save_libdir
2232061b 10127
6bb11ab3 10128fi
2232061b 10129
6bb11ab3 10130 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
2232061b 10131
6bb11ab3
L
10132 # This implies no fast_install, which is unacceptable.
10133 # Some rework will be needed to allow for fast_install
10134 # before this can be enabled.
10135 hardcode_into_libs=yes
2232061b 10136
6bb11ab3
L
10137 # Append ld.so.conf contents to the search path
10138 if test -f /etc/ld.so.conf; then
10139 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' ' '`
10140 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10141 fi
2232061b 10142
6bb11ab3
L
10143 # We used to test for /lib/ld.so.1 and disable shared libraries on
10144 # powerpc, because MkLinux only supported shared libraries with the
10145 # GNU dynamic linker. Since this was broken with cross compilers,
10146 # most powerpc-linux boxes support dynamic linking these days and
10147 # people can always --disable-shared, the test was removed, and we
10148 # assume the GNU/Linux dynamic linker is in use.
10149 dynamic_linker='GNU/Linux ld.so'
10150 ;;
10151
10152netbsd*)
10153 version_type=sunos
10154 need_lib_prefix=no
10155 need_version=no
10156 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10157 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10158 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10159 dynamic_linker='NetBSD (a.out) ld.so'
2232061b 10160 else
6bb11ab3
L
10161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10162 soname_spec='${libname}${release}${shared_ext}$major'
10163 dynamic_linker='NetBSD ld.elf_so'
10164 fi
10165 shlibpath_var=LD_LIBRARY_PATH
10166 shlibpath_overrides_runpath=yes
10167 hardcode_into_libs=yes
10168 ;;
10169
10170newsos6)
10171 version_type=linux
10172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10173 shlibpath_var=LD_LIBRARY_PATH
10174 shlibpath_overrides_runpath=yes
10175 ;;
10176
10177*nto* | *qnx*)
10178 version_type=qnx
10179 need_lib_prefix=no
10180 need_version=no
10181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10182 soname_spec='${libname}${release}${shared_ext}$major'
10183 shlibpath_var=LD_LIBRARY_PATH
10184 shlibpath_overrides_runpath=no
10185 hardcode_into_libs=yes
10186 dynamic_linker='ldqnx.so'
10187 ;;
10188
10189openbsd*)
10190 version_type=sunos
10191 sys_lib_dlsearch_path_spec="/usr/lib"
10192 need_lib_prefix=no
10193 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10194 case $host_os in
10195 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10196 *) need_version=no ;;
10197 esac
10198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10199 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10200 shlibpath_var=LD_LIBRARY_PATH
10201 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10202 case $host_os in
10203 openbsd2.[89] | openbsd2.[89].*)
10204 shlibpath_overrides_runpath=no
10205 ;;
10206 *)
10207 shlibpath_overrides_runpath=yes
10208 ;;
10209 esac
10210 else
10211 shlibpath_overrides_runpath=yes
10212 fi
10213 ;;
10214
10215os2*)
10216 libname_spec='$name'
10217 shrext_cmds=".dll"
10218 need_lib_prefix=no
10219 library_names_spec='$libname${shared_ext} $libname.a'
10220 dynamic_linker='OS/2 ld.exe'
10221 shlibpath_var=LIBPATH
10222 ;;
10223
10224osf3* | osf4* | osf5*)
10225 version_type=osf
10226 need_lib_prefix=no
10227 need_version=no
10228 soname_spec='${libname}${release}${shared_ext}$major'
10229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10230 shlibpath_var=LD_LIBRARY_PATH
10231 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10232 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10233 ;;
10234
10235rdos*)
10236 dynamic_linker=no
10237 ;;
10238
10239solaris*)
10240 version_type=linux
10241 need_lib_prefix=no
10242 need_version=no
10243 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10244 soname_spec='${libname}${release}${shared_ext}$major'
10245 shlibpath_var=LD_LIBRARY_PATH
10246 shlibpath_overrides_runpath=yes
10247 hardcode_into_libs=yes
10248 # ldd complains unless libraries are executable
10249 postinstall_cmds='chmod +x $lib'
10250 ;;
10251
10252sunos4*)
10253 version_type=sunos
10254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10255 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10256 shlibpath_var=LD_LIBRARY_PATH
10257 shlibpath_overrides_runpath=yes
10258 if test "$with_gnu_ld" = yes; then
10259 need_lib_prefix=no
10260 fi
10261 need_version=yes
10262 ;;
10263
10264sysv4 | sysv4.3*)
10265 version_type=linux
10266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10267 soname_spec='${libname}${release}${shared_ext}$major'
10268 shlibpath_var=LD_LIBRARY_PATH
10269 case $host_vendor in
10270 sni)
10271 shlibpath_overrides_runpath=no
10272 need_lib_prefix=no
10273 runpath_var=LD_RUN_PATH
10274 ;;
10275 siemens)
10276 need_lib_prefix=no
10277 ;;
10278 motorola)
10279 need_lib_prefix=no
10280 need_version=no
10281 shlibpath_overrides_runpath=no
10282 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10283 ;;
10284 esac
10285 ;;
10286
10287sysv4*MP*)
10288 if test -d /usr/nec ;then
10289 version_type=linux
10290 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10291 soname_spec='$libname${shared_ext}.$major'
10292 shlibpath_var=LD_LIBRARY_PATH
2232061b 10293 fi
6bb11ab3
L
10294 ;;
10295
10296sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10297 version_type=freebsd-elf
10298 need_lib_prefix=no
10299 need_version=no
10300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10301 soname_spec='${libname}${release}${shared_ext}$major'
10302 shlibpath_var=LD_LIBRARY_PATH
10303 shlibpath_overrides_runpath=yes
10304 hardcode_into_libs=yes
10305 if test "$with_gnu_ld" = yes; then
10306 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10307 else
10308 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10309 case $host_os in
10310 sco3.2v5*)
10311 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10312 ;;
10313 esac
10314 fi
10315 sys_lib_dlsearch_path_spec='/usr/lib'
10316 ;;
10317
10318tpf*)
10319 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10320 version_type=linux
10321 need_lib_prefix=no
10322 need_version=no
10323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10324 shlibpath_var=LD_LIBRARY_PATH
10325 shlibpath_overrides_runpath=no
10326 hardcode_into_libs=yes
10327 ;;
10328
10329uts4*)
10330 version_type=linux
10331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10332 soname_spec='${libname}${release}${shared_ext}$major'
10333 shlibpath_var=LD_LIBRARY_PATH
10334 ;;
10335
10336*)
10337 dynamic_linker=no
10338 ;;
10339esac
10340{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10341$as_echo "$dynamic_linker" >&6; }
10342test "$dynamic_linker" = no && can_build_shared=no
10343
10344variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10345if test "$GCC" = yes; then
10346 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
2232061b 10347fi
2232061b 10348
6bb11ab3
L
10349if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10350 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10351fi
10352if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10353 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10354fi
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
2232061b 10381
2232061b 10382
2232061b 10383
2232061b 10384
2232061b
MF
10385
10386
6ffe910a 10387
6ffe910a
MF
10388
10389
10390
10391
10392
2232061b 10393
6ffe910a
MF
10394
10395
10396
10397
6ffe910a 10398
6ffe910a 10399
6ffe910a
MF
10400
10401
6ffe910a 10402
6ffe910a 10403
6ffe910a
MF
10404
10405
5f3ef9d0 10406
5f3ef9d0
JB
10407
10408
10409
db2e4d67
MF
10410
10411
db2e4d67 10412
db2e4d67 10413
db2e4d67 10414
db2e4d67 10415
db2e4d67 10416
db2e4d67 10417
db2e4d67 10418
db2e4d67
MF
10419
10420
db2e4d67 10421
db2e4d67
MF
10422
10423
db2e4d67 10424
db2e4d67
MF
10425
10426
6ffe910a 10427
6ffe910a 10428
6ffe910a
MF
10429
10430
6ffe910a
MF
10431
10432
6ffe910a 10433
6ffe910a 10434
6ffe910a 10435
6ffe910a 10436
6ffe910a 10437
b7026657
AC
10438
10439
10440
c906108c 10441
b7026657 10442
b7026657 10443
b7026657 10444
b7026657 10445
c906108c 10446
6bb11ab3
L
10447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10448$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10449hardcode_action=
10450if test -n "$hardcode_libdir_flag_spec" ||
10451 test -n "$runpath_var" ||
10452 test "X$hardcode_automatic" = "Xyes" ; then
b7026657 10453
6bb11ab3
L
10454 # We can hardcode non-existent directories.
10455 if test "$hardcode_direct" != no &&
10456 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10457 # have to relink, otherwise we might link with an installed library
10458 # when we should be linking with a yet-to-be-installed one
10459 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10460 test "$hardcode_minus_L" != no; then
10461 # Linking always hardcodes the temporary library directory.
10462 hardcode_action=relink
10463 else
10464 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10465 hardcode_action=immediate
10466 fi
10467else
10468 # We cannot hardcode anything, or else we can only hardcode existing
10469 # directories.
10470 hardcode_action=unsupported
c906108c 10471fi
6bb11ab3
L
10472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10473$as_echo "$hardcode_action" >&6; }
b7026657 10474
6bb11ab3
L
10475if test "$hardcode_action" = relink ||
10476 test "$inherit_rpath" = yes; then
10477 # Fast installation is not supported
10478 enable_fast_install=no
10479elif test "$shlibpath_overrides_runpath" = yes ||
10480 test "$enable_shared" = no; then
10481 # Fast installation is not necessary
10482 enable_fast_install=needless
10483fi
c906108c 10484
6bb11ab3
L
10485
10486
10487
10488
10489
10490 if test "x$enable_dlopen" != xyes; then
10491 enable_dlopen=unknown
10492 enable_dlopen_self=unknown
10493 enable_dlopen_self_static=unknown
10494else
10495 lt_cv_dlopen=no
10496 lt_cv_dlopen_libs=
10497
10498 case $host_os in
10499 beos*)
10500 lt_cv_dlopen="load_add_on"
10501 lt_cv_dlopen_libs=
10502 lt_cv_dlopen_self=yes
10503 ;;
10504
10505 mingw* | pw32* | cegcc*)
10506 lt_cv_dlopen="LoadLibrary"
10507 lt_cv_dlopen_libs=
10508 ;;
10509
10510 cygwin*)
10511 lt_cv_dlopen="dlopen"
10512 lt_cv_dlopen_libs=
10513 ;;
10514
10515 darwin*)
10516 # if libdl is installed we need to link against it
10517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10518$as_echo_n "checking for dlopen in -ldl... " >&6; }
d0ac1c44 10519if ${ac_cv_lib_dl_dlopen+:} false; then :
6bb11ab3
L
10520 $as_echo_n "(cached) " >&6
10521else
10522 ac_check_lib_save_LIBS=$LIBS
10523LIBS="-ldl $LIBS"
10524cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10525/* end confdefs.h. */
10526
10527/* Override any GCC internal prototype to avoid an error.
10528 Use char because int might match the return type of a GCC
10529 builtin and then its argument prototype would still apply. */
10530#ifdef __cplusplus
10531extern "C"
10532#endif
10533char dlopen ();
10534int
10535main ()
10536{
10537return dlopen ();
10538 ;
10539 return 0;
10540}
b7026657 10541_ACEOF
6bb11ab3
L
10542if ac_fn_c_try_link "$LINENO"; then :
10543 ac_cv_lib_dl_dlopen=yes
10544else
10545 ac_cv_lib_dl_dlopen=no
10546fi
10547rm -f core conftest.err conftest.$ac_objext \
10548 conftest$ac_exeext conftest.$ac_ext
10549LIBS=$ac_check_lib_save_LIBS
10550fi
10551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10552$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
d0ac1c44 10553if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
6bb11ab3
L
10554 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10555else
10556
10557 lt_cv_dlopen="dyld"
10558 lt_cv_dlopen_libs=
10559 lt_cv_dlopen_self=yes
c906108c 10560
c906108c 10561fi
c906108c 10562
6bb11ab3 10563 ;;
c906108c 10564
6bb11ab3
L
10565 *)
10566 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
d0ac1c44 10567if test "x$ac_cv_func_shl_load" = xyes; then :
6bb11ab3
L
10568 lt_cv_dlopen="shl_load"
10569else
10570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10571$as_echo_n "checking for shl_load in -ldld... " >&6; }
d0ac1c44 10572if ${ac_cv_lib_dld_shl_load+:} false; then :
6bb11ab3
L
10573 $as_echo_n "(cached) " >&6
10574else
10575 ac_check_lib_save_LIBS=$LIBS
10576LIBS="-ldld $LIBS"
10577cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10578/* end confdefs.h. */
10579
10580/* Override any GCC internal prototype to avoid an error.
10581 Use char because int might match the return type of a GCC
10582 builtin and then its argument prototype would still apply. */
10583#ifdef __cplusplus
10584extern "C"
10585#endif
10586char shl_load ();
10587int
10588main ()
10589{
10590return shl_load ();
10591 ;
10592 return 0;
10593}
10594_ACEOF
10595if ac_fn_c_try_link "$LINENO"; then :
10596 ac_cv_lib_dld_shl_load=yes
10597else
10598 ac_cv_lib_dld_shl_load=no
10599fi
10600rm -f core conftest.err conftest.$ac_objext \
10601 conftest$ac_exeext conftest.$ac_ext
10602LIBS=$ac_check_lib_save_LIBS
10603fi
10604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10605$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
d0ac1c44 10606if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
6bb11ab3
L
10607 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10608else
10609 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
d0ac1c44 10610if test "x$ac_cv_func_dlopen" = xyes; then :
6bb11ab3
L
10611 lt_cv_dlopen="dlopen"
10612else
10613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10614$as_echo_n "checking for dlopen in -ldl... " >&6; }
d0ac1c44 10615if ${ac_cv_lib_dl_dlopen+:} false; then :
81ecdfbb 10616 $as_echo_n "(cached) " >&6
c906108c 10617else
b7026657 10618 ac_check_lib_save_LIBS=$LIBS
6bb11ab3 10619LIBS="-ldl $LIBS"
81ecdfbb 10620cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657
AC
10621/* end confdefs.h. */
10622
81ecdfbb
RW
10623/* Override any GCC internal prototype to avoid an error.
10624 Use char because int might match the return type of a GCC
10625 builtin and then its argument prototype would still apply. */
b7026657
AC
10626#ifdef __cplusplus
10627extern "C"
10628#endif
6bb11ab3 10629char dlopen ();
b7026657
AC
10630int
10631main ()
10632{
6bb11ab3 10633return dlopen ();
b7026657
AC
10634 ;
10635 return 0;
10636}
10637_ACEOF
81ecdfbb 10638if ac_fn_c_try_link "$LINENO"; then :
6bb11ab3 10639 ac_cv_lib_dl_dlopen=yes
b7026657 10640else
6bb11ab3 10641 ac_cv_lib_dl_dlopen=no
b7026657 10642fi
81ecdfbb
RW
10643rm -f core conftest.err conftest.$ac_objext \
10644 conftest$ac_exeext conftest.$ac_ext
b7026657
AC
10645LIBS=$ac_check_lib_save_LIBS
10646fi
6bb11ab3
L
10647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10648$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
d0ac1c44 10649if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
6bb11ab3
L
10650 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10651else
10652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10653$as_echo_n "checking for dlopen in -lsvld... " >&6; }
d0ac1c44 10654if ${ac_cv_lib_svld_dlopen+:} false; then :
81ecdfbb 10655 $as_echo_n "(cached) " >&6
c906108c 10656else
b7026657 10657 ac_check_lib_save_LIBS=$LIBS
6bb11ab3 10658LIBS="-lsvld $LIBS"
81ecdfbb 10659cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657
AC
10660/* end confdefs.h. */
10661
81ecdfbb
RW
10662/* Override any GCC internal prototype to avoid an error.
10663 Use char because int might match the return type of a GCC
10664 builtin and then its argument prototype would still apply. */
b7026657
AC
10665#ifdef __cplusplus
10666extern "C"
10667#endif
6bb11ab3 10668char dlopen ();
b7026657
AC
10669int
10670main ()
10671{
6bb11ab3 10672return dlopen ();
b7026657
AC
10673 ;
10674 return 0;
10675}
10676_ACEOF
81ecdfbb 10677if ac_fn_c_try_link "$LINENO"; then :
6bb11ab3 10678 ac_cv_lib_svld_dlopen=yes
b7026657 10679else
6bb11ab3 10680 ac_cv_lib_svld_dlopen=no
b7026657 10681fi
81ecdfbb
RW
10682rm -f core conftest.err conftest.$ac_objext \
10683 conftest$ac_exeext conftest.$ac_ext
b7026657
AC
10684LIBS=$ac_check_lib_save_LIBS
10685fi
6bb11ab3
L
10686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10687$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
d0ac1c44 10688if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
6bb11ab3 10689 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
5912fadd 10690else
6bb11ab3
L
10691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10692$as_echo_n "checking for dld_link in -ldld... " >&6; }
d0ac1c44 10693if ${ac_cv_lib_dld_dld_link+:} false; then :
81ecdfbb 10694 $as_echo_n "(cached) " >&6
b5bd9624 10695else
6bb11ab3
L
10696 ac_check_lib_save_LIBS=$LIBS
10697LIBS="-ldld $LIBS"
81ecdfbb 10698cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b5bd9624
HPN
10699/* end confdefs.h. */
10700
81ecdfbb
RW
10701/* Override any GCC internal prototype to avoid an error.
10702 Use char because int might match the return type of a GCC
b5bd9624 10703 builtin and then its argument prototype would still apply. */
b5bd9624
HPN
10704#ifdef __cplusplus
10705extern "C"
10706#endif
6bb11ab3 10707char dld_link ();
b5bd9624
HPN
10708int
10709main ()
10710{
6bb11ab3 10711return dld_link ();
b5bd9624
HPN
10712 ;
10713 return 0;
10714}
10715_ACEOF
6bb11ab3
L
10716if ac_fn_c_try_link "$LINENO"; then :
10717 ac_cv_lib_dld_dld_link=yes
10718else
10719 ac_cv_lib_dld_dld_link=no
10720fi
10721rm -f core conftest.err conftest.$ac_objext \
10722 conftest$ac_exeext conftest.$ac_ext
10723LIBS=$ac_check_lib_save_LIBS
10724fi
10725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10726$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
d0ac1c44 10727if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
6bb11ab3
L
10728 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10729fi
10730
10731
10732fi
10733
10734
10735fi
10736
10737
10738fi
10739
10740
10741fi
10742
10743
10744fi
10745
10746 ;;
10747 esac
10748
10749 if test "x$lt_cv_dlopen" != xno; then
10750 enable_dlopen=yes
b5bd9624 10751 else
6bb11ab3
L
10752 enable_dlopen=no
10753 fi
10754
10755 case $lt_cv_dlopen in
10756 dlopen)
10757 save_CPPFLAGS="$CPPFLAGS"
10758 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10759
10760 save_LDFLAGS="$LDFLAGS"
10761 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10762
10763 save_LIBS="$LIBS"
10764 LIBS="$lt_cv_dlopen_libs $LIBS"
10765
10766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10767$as_echo_n "checking whether a program can dlopen itself... " >&6; }
d0ac1c44 10768if ${lt_cv_dlopen_self+:} false; then :
6bb11ab3
L
10769 $as_echo_n "(cached) " >&6
10770else
10771 if test "$cross_compiling" = yes; then :
10772 lt_cv_dlopen_self=cross
10773else
10774 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10775 lt_status=$lt_dlunknown
10776 cat > conftest.$ac_ext <<_LT_EOF
5ea45474 10777#line 10777 "configure"
6bb11ab3
L
10778#include "confdefs.h"
10779
10780#if HAVE_DLFCN_H
10781#include <dlfcn.h>
10782#endif
10783
10784#include <stdio.h>
10785
10786#ifdef RTLD_GLOBAL
10787# define LT_DLGLOBAL RTLD_GLOBAL
10788#else
10789# ifdef DL_GLOBAL
10790# define LT_DLGLOBAL DL_GLOBAL
10791# else
10792# define LT_DLGLOBAL 0
10793# endif
10794#endif
10795
10796/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10797 find out it does not work in some platform. */
10798#ifndef LT_DLLAZY_OR_NOW
10799# ifdef RTLD_LAZY
10800# define LT_DLLAZY_OR_NOW RTLD_LAZY
10801# else
10802# ifdef DL_LAZY
10803# define LT_DLLAZY_OR_NOW DL_LAZY
10804# else
10805# ifdef RTLD_NOW
10806# define LT_DLLAZY_OR_NOW RTLD_NOW
10807# else
10808# ifdef DL_NOW
10809# define LT_DLLAZY_OR_NOW DL_NOW
10810# else
10811# define LT_DLLAZY_OR_NOW 0
10812# endif
10813# endif
10814# endif
10815# endif
10816#endif
10817
10818/* When -fvisbility=hidden is used, assume the code has been annotated
10819 correspondingly for the symbols needed. */
10820#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10821void fnord () __attribute__((visibility("default")));
10822#endif
10823
10824void fnord () { int i=42; }
10825int main ()
10826{
10827 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10828 int status = $lt_dlunknown;
10829
10830 if (self)
10831 {
10832 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10833 else
10834 {
10835 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10836 else puts (dlerror ());
10837 }
10838 /* dlclose (self); */
10839 }
10840 else
10841 puts (dlerror ());
10842
10843 return status;
10844}
10845_LT_EOF
10846 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10847 (eval $ac_link) 2>&5
10848 ac_status=$?
10849 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10850 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10851 (./conftest; exit; ) >&5 2>/dev/null
10852 lt_status=$?
10853 case x$lt_status in
10854 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10855 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10856 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10857 esac
10858 else :
10859 # compilation failed
10860 lt_cv_dlopen_self=no
b5bd9624 10861 fi
b5bd9624 10862fi
6bb11ab3
L
10863rm -fr conftest*
10864
10865
b5bd9624 10866fi
6bb11ab3
L
10867{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10868$as_echo "$lt_cv_dlopen_self" >&6; }
b5bd9624 10869
6bb11ab3
L
10870 if test "x$lt_cv_dlopen_self" = xyes; then
10871 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10873$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
d0ac1c44 10874if ${lt_cv_dlopen_self_static+:} false; then :
6bb11ab3 10875 $as_echo_n "(cached) " >&6
b5bd9624 10876else
6bb11ab3
L
10877 if test "$cross_compiling" = yes; then :
10878 lt_cv_dlopen_self_static=cross
10879else
10880 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10881 lt_status=$lt_dlunknown
10882 cat > conftest.$ac_ext <<_LT_EOF
5ea45474 10883#line 10883 "configure"
6bb11ab3
L
10884#include "confdefs.h"
10885
10886#if HAVE_DLFCN_H
10887#include <dlfcn.h>
10888#endif
10889
10890#include <stdio.h>
10891
10892#ifdef RTLD_GLOBAL
10893# define LT_DLGLOBAL RTLD_GLOBAL
10894#else
10895# ifdef DL_GLOBAL
10896# define LT_DLGLOBAL DL_GLOBAL
10897# else
10898# define LT_DLGLOBAL 0
10899# endif
10900#endif
10901
10902/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10903 find out it does not work in some platform. */
10904#ifndef LT_DLLAZY_OR_NOW
10905# ifdef RTLD_LAZY
10906# define LT_DLLAZY_OR_NOW RTLD_LAZY
10907# else
10908# ifdef DL_LAZY
10909# define LT_DLLAZY_OR_NOW DL_LAZY
10910# else
10911# ifdef RTLD_NOW
10912# define LT_DLLAZY_OR_NOW RTLD_NOW
10913# else
10914# ifdef DL_NOW
10915# define LT_DLLAZY_OR_NOW DL_NOW
10916# else
10917# define LT_DLLAZY_OR_NOW 0
10918# endif
10919# endif
10920# endif
10921# endif
10922#endif
10923
10924/* When -fvisbility=hidden is used, assume the code has been annotated
10925 correspondingly for the symbols needed. */
10926#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10927void fnord () __attribute__((visibility("default")));
10928#endif
10929
10930void fnord () { int i=42; }
10931int main ()
10932{
10933 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10934 int status = $lt_dlunknown;
10935
10936 if (self)
10937 {
10938 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10939 else
10940 {
10941 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10942 else puts (dlerror ());
10943 }
10944 /* dlclose (self); */
10945 }
10946 else
10947 puts (dlerror ());
10948
10949 return status;
10950}
10951_LT_EOF
10952 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10953 (eval $ac_link) 2>&5
10954 ac_status=$?
10955 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10956 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10957 (./conftest; exit; ) >&5 2>/dev/null
10958 lt_status=$?
10959 case x$lt_status in
10960 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10961 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10962 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10963 esac
10964 else :
10965 # compilation failed
10966 lt_cv_dlopen_self_static=no
10967 fi
b5bd9624 10968fi
6bb11ab3
L
10969rm -fr conftest*
10970
10971
b5bd9624 10972fi
6bb11ab3
L
10973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10974$as_echo "$lt_cv_dlopen_self_static" >&6; }
10975 fi
10976
10977 CPPFLAGS="$save_CPPFLAGS"
10978 LDFLAGS="$save_LDFLAGS"
10979 LIBS="$save_LIBS"
10980 ;;
10981 esac
10982
10983 case $lt_cv_dlopen_self in
10984 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10985 *) enable_dlopen_self=unknown ;;
10986 esac
10987
10988 case $lt_cv_dlopen_self_static in
10989 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10990 *) enable_dlopen_self_static=unknown ;;
10991 esac
10992fi
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010striplib=
11011old_striplib=
11012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11013$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11014if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11015 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11016 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11018$as_echo "yes" >&6; }
11019else
11020# FIXME - insert some real tests, host_os isn't really good enough
11021 case $host_os in
11022 darwin*)
11023 if test -n "$STRIP" ; then
11024 striplib="$STRIP -x"
11025 old_striplib="$STRIP -S"
11026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11027$as_echo "yes" >&6; }
11028 else
11029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11030$as_echo "no" >&6; }
11031 fi
11032 ;;
11033 *)
11034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11035$as_echo "no" >&6; }
11036 ;;
11037 esac
11038fi
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051 # Report which library types will actually be built
11052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11053$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11055$as_echo "$can_build_shared" >&6; }
11056
11057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11058$as_echo_n "checking whether to build shared libraries... " >&6; }
11059 test "$can_build_shared" = "no" && enable_shared=no
11060
11061 # On AIX, shared libraries and static libraries use the same namespace, and
11062 # are all built from PIC.
11063 case $host_os in
11064 aix3*)
11065 test "$enable_shared" = yes && enable_static=no
11066 if test -n "$RANLIB"; then
11067 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11068 postinstall_cmds='$RANLIB $lib'
11069 fi
11070 ;;
11071
11072 aix[4-9]*)
11073 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11074 test "$enable_shared" = yes && enable_static=no
11075 fi
11076 ;;
11077 esac
11078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11079$as_echo "$enable_shared" >&6; }
11080
11081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11082$as_echo_n "checking whether to build static libraries... " >&6; }
11083 # Make sure either enable_shared or enable_static is yes.
11084 test "$enable_shared" = yes || enable_static=yes
11085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11086$as_echo "$enable_static" >&6; }
11087
11088
11089
11090
11091fi
11092ac_ext=c
11093ac_cpp='$CPP $CPPFLAGS'
11094ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11095ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11096ac_compiler_gnu=$ac_cv_c_compiler_gnu
11097
11098CC="$lt_save_CC"
11099
11100
11101
11102
11103
11104
11105
11106
11107
b5bd9624 11108
b5bd9624 11109
b5bd9624 11110
b5bd9624 11111
6bb11ab3
L
11112 ac_config_commands="$ac_config_commands libtool"
11113
11114
11115
11116
11117# Only expand once:
11118
11119
5912fadd 11120
b5bd9624 11121
c906108c
SS
11122
11123
31e6ad7d
MF
11124
11125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
11126$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
11127 # Check whether --enable-maintainer-mode was given.
81ecdfbb 11128if test "${enable_maintainer_mode+set}" = set; then :
31e6ad7d
MF
11129 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
11130else
11131 USE_MAINTAINER_MODE=no
c906108c 11132fi
31e6ad7d
MF
11133
11134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
11135$as_echo "$USE_MAINTAINER_MODE" >&6; }
11136 if test $USE_MAINTAINER_MODE = yes; then
11137 MAINTAINER_MODE_TRUE=
11138 MAINTAINER_MODE_FALSE='#'
c906108c 11139else
31e6ad7d
MF
11140 MAINTAINER_MODE_TRUE='#'
11141 MAINTAINER_MODE_FALSE=
81ecdfbb 11142fi
c906108c 11143
31e6ad7d
MF
11144 MAINT=$MAINTAINER_MODE_TRUE
11145
11146
c906108c 11147
81ecdfbb 11148
ce39bd38
MF
11149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim debug setting" >&5
11150$as_echo_n "checking for sim debug setting... " >&6; }
11151sim_debug="0"
81ecdfbb
RW
11152# Check whether --enable-sim-debug was given.
11153if test "${enable_sim_debug+set}" = set; then :
11154 enableval=$enable_sim_debug; case "${enableval}" in
ce39bd38
MF
11155 yes) sim_debug="7";;
11156 no) sim_debug="0";;
11157 *) sim_debug="($enableval)";;
c906108c 11158esac
c906108c 11159fi
ce39bd38
MF
11160if test "$sim_debug" != "0"; then
11161
11162cat >>confdefs.h <<_ACEOF
11163#define DEBUG $sim_debug
11164_ACEOF
11165
81ecdfbb 11166fi
c906108c 11167
ce39bd38
MF
11168cat >>confdefs.h <<_ACEOF
11169#define WITH_DEBUG $sim_debug
11170_ACEOF
11171
11172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_debug" >&5
11173$as_echo "$sim_debug" >&6; }
c906108c 11174
81ecdfbb 11175
ce39bd38
MF
11176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim stdio debug behavior" >&5
11177$as_echo_n "checking for sim stdio debug behavior... " >&6; }
11178sim_stdio="0"
81ecdfbb
RW
11179# Check whether --enable-sim-stdio was given.
11180if test "${enable_sim_stdio+set}" = set; then :
11181 enableval=$enable_sim_stdio; case "${enableval}" in
ce39bd38
MF
11182 yes) sim_stdio="DO_USE_STDIO";;
11183 no) sim_stdio="DONT_USE_STDIO";;
d0ac1c44 11184 *) as_fn_error $? "Unknown value $enableval passed to --enable-sim-stdio" "$LINENO" 5;;
c906108c 11185esac
81ecdfbb 11186fi
c906108c 11187
ce39bd38
MF
11188cat >>confdefs.h <<_ACEOF
11189#define WITH_STDIO $sim_stdio
11190_ACEOF
11191
11192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_stdio" >&5
11193$as_echo "$sim_stdio" >&6; }
c906108c 11194
81ecdfbb 11195
ce39bd38
MF
11196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim trace settings" >&5
11197$as_echo_n "checking for sim trace settings... " >&6; }
11198sim_trace="~TRACE_debug"
81ecdfbb
RW
11199# Check whether --enable-sim-trace was given.
11200if test "${enable_sim_trace+set}" = set; then :
11201 enableval=$enable_sim_trace; case "${enableval}" in
ce39bd38
MF
11202 yes) sim_trace="-1";;
11203 no) sim_trace="0";;
c906108c 11204 [-0-9]*)
ce39bd38 11205 sim_trace="'(${enableval})'";;
2232061b 11206 [[:lower:]]*)
c906108c
SS
11207 sim_trace=""
11208 for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
11209 if test x"$sim_trace" = x; then
ce39bd38 11210 sim_trace="(TRACE_$x"
c906108c
SS
11211 else
11212 sim_trace="${sim_trace}|TRACE_$x"
11213 fi
11214 done
ce39bd38 11215 sim_trace="$sim_trace)" ;;
c906108c 11216esac
81ecdfbb 11217fi
c906108c 11218
ce39bd38
MF
11219cat >>confdefs.h <<_ACEOF
11220#define WITH_TRACE $sim_trace
11221_ACEOF
11222
11223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_trace" >&5
11224$as_echo "$sim_trace" >&6; }
c906108c 11225
81ecdfbb 11226
ce39bd38
MF
11227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim profile settings" >&5
11228$as_echo_n "checking for sim profile settings... " >&6; }
11229profile="1"
11230sim_profile="-1"
81ecdfbb
RW
11231# Check whether --enable-sim-profile was given.
11232if test "${enable_sim_profile+set}" = set; then :
11233 enableval=$enable_sim_profile; case "${enableval}" in
ce39bd38
MF
11234 yes) profile="1" sim_profile="-1";;
11235 no) profile="0" sim_profile="0";;
c906108c 11236 [-0-9]*)
ce39bd38 11237 profile="(${enableval})" sim_profile="(${enableval})";;
c906108c 11238 [a-z]*)
ce39bd38 11239 profile="1"
c906108c
SS
11240 sim_profile=""
11241 for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
11242 if test x"$sim_profile" = x; then
ce39bd38 11243 sim_profile="(PROFILE_$x"
c906108c
SS
11244 else
11245 sim_profile="${sim_profile}|PROFILE_$x"
11246 fi
11247 done
ce39bd38 11248 sim_profile="$sim_profile)" ;;
c906108c 11249esac
81ecdfbb 11250fi
c906108c 11251
ce39bd38
MF
11252cat >>confdefs.h <<_ACEOF
11253#define PROFILE $profile
11254_ACEOF
c906108c 11255
6efef468 11256
ce39bd38
MF
11257cat >>confdefs.h <<_ACEOF
11258#define WITH_PROFILE $sim_profile
11259_ACEOF
11260
11261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_profile" >&5
11262$as_echo "$sim_profile" >&6; }
11263
11264
11265
347fe5bb
MF
11266sim_inline="-DDEFAULT_INLINE=0"
11267# Check whether --enable-sim-inline was given.
11268if test "${enable_sim_inline+set}" = set; then :
11269 enableval=$enable_sim_inline; sim_inline=""
11270case "$enableval" in
11271 no) sim_inline="-DDEFAULT_INLINE=0";;
11272 0) sim_inline="-DDEFAULT_INLINE=0";;
11273 yes | 2) sim_inline="-DDEFAULT_INLINE=ALL_C_INLINE";;
11274 1) sim_inline="-DDEFAULT_INLINE=INLINE_LOCALS";;
11275 *) for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
11276 new_flag=""
11277 case "$x" in
11278 *_INLINE=*) new_flag="-D$x";;
11279 *=*) new_flag=`echo "$x" | sed -e "s/=/_INLINE=/" -e "s/^/-D/"`;;
11280 *_INLINE) new_flag="-D$x=ALL_C_INLINE";;
11281 *) new_flag="-D$x""_INLINE=ALL_C_INLINE";;
11282 esac
11283 if test x"$sim_inline" = x""; then
11284 sim_inline="$new_flag"
11285 else
11286 sim_inline="$sim_inline $new_flag"
11287 fi
11288 done;;
11289esac
11290if test x"$silent" != x"yes" && test x"$sim_inline" != x""; then
11291 echo "Setting inline flags = $sim_inline" 6>&1
11292fi
11293fi
11294
11295
11296
81ecdfbb
RW
11297
11298# Check whether --with-pkgversion was given.
11299if test "${with_pkgversion+set}" = set; then :
11300 withval=$with_pkgversion; case "$withval" in
d0ac1c44 11301 yes) as_fn_error $? "package version not specified" "$LINENO" 5 ;;
6efef468
JM
11302 no) PKGVERSION= ;;
11303 *) PKGVERSION="($withval) " ;;
11304 esac
11305else
bf12d44e 11306 PKGVERSION="(SIM) "
6efef468 11307
81ecdfbb
RW
11308fi
11309
6efef468
JM
11310
11311
11312
11313
81ecdfbb
RW
11314# Check whether --with-bugurl was given.
11315if test "${with_bugurl+set}" = set; then :
11316 withval=$with_bugurl; case "$withval" in
d0ac1c44 11317 yes) as_fn_error $? "bug URL not specified" "$LINENO" 5 ;;
6efef468
JM
11318 no) BUGURL=
11319 ;;
11320 *) BUGURL="$withval"
11321 ;;
11322 esac
11323else
dfb856ba 11324 BUGURL="https://www.gnu.org/software/gdb/bugs/"
6efef468 11325
81ecdfbb
RW
11326fi
11327
6efef468
JM
11328 case ${BUGURL} in
11329 "")
11330 REPORT_BUGS_TO=
11331 REPORT_BUGS_TEXI=
11332 ;;
11333 *)
11334 REPORT_BUGS_TO="<$BUGURL>"
11335 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
11336 ;;
11337 esac;
11338
11339
11340
11341
11342cat >>confdefs.h <<_ACEOF
11343#define PKGVERSION "$PKGVERSION"
11344_ACEOF
11345
11346
11347cat >>confdefs.h <<_ACEOF
11348#define REPORT_BUGS_TO "$REPORT_BUGS_TO"
11349_ACEOF
11350
11351
b7026657
AC
11352
11353
b7026657 11354
5c1008a4
MF
11355# Check whether --enable-werror was given.
11356if test "${enable_werror+set}" = set; then :
11357 enableval=$enable_werror; case "${enableval}" in
11358 yes | y) ERROR_ON_WARNING="yes" ;;
11359 no | n) ERROR_ON_WARNING="no" ;;
11360 *) as_fn_error $? "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
11361 esac
11362fi
11363
11364
11365# Enable -Werror by default when using gcc
11366if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
11367 ERROR_ON_WARNING=yes
11368fi
11369
11370WERROR_CFLAGS=""
11371
11372build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \
11373-Wpointer-sign \
11374-Wno-unused -Wunused-value -Wunused-function \
11375-Wno-switch -Wno-char-subscripts -Wmissing-prototypes
11376-Wdeclaration-after-statement -Wempty-body -Wmissing-parameter-type \
11377-Wold-style-declaration -Wold-style-definition"
11378
11379# Enable -Wno-format by default when using gcc on mingw since many
11380# GCC versions complain about %I64.
11381case "${host}" in
11382 *-*-mingw32*) build_warnings="$build_warnings -Wno-format" ;;
11383 *) build_warnings="$build_warnings -Wformat-nonliteral" ;;
11384esac
11385
11386# Check whether --enable-build-warnings was given.
11387if test "${enable_build_warnings+set}" = set; then :
11388 enableval=$enable_build_warnings; case "${enableval}" in
11389 yes) ;;
11390 no) build_warnings="-w";;
11391 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
11392 build_warnings="${build_warnings} ${t}";;
11393 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
11394 build_warnings="${t} ${build_warnings}";;
11395 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
11396esac
11397if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
11398 echo "Setting compiler warning flags = $build_warnings" 6>&1
11399fi
11400fi
11401# Check whether --enable-sim-build-warnings was given.
11402if test "${enable_sim_build_warnings+set}" = set; then :
11403 enableval=$enable_sim_build_warnings; case "${enableval}" in
11404 yes) ;;
11405 no) build_warnings="-w";;
11406 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
11407 build_warnings="${build_warnings} ${t}";;
11408 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
11409 build_warnings="${t} ${build_warnings}";;
11410 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
11411esac
11412if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
11413 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
11414fi
11415fi
11416WARN_CFLAGS=""
11417if test "x${build_warnings}" != x -a "x$GCC" = xyes
11418then
11419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
11420$as_echo_n "checking compiler warning flags... " >&6; }
11421 # Separate out the -Werror flag as some files just cannot be
11422 # compiled with it enabled.
11423 for w in ${build_warnings}; do
11424 case $w in
11425 -Werr*) WERROR_CFLAGS=-Werror ;;
11426 *) # Check that GCC accepts it
11427 saved_CFLAGS="$CFLAGS"
1f195bc3 11428 CFLAGS="$CFLAGS -Werror $w"
5c1008a4
MF
11429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11430/* end confdefs.h. */
11431
11432int
11433main ()
11434{
11435
11436 ;
11437 return 0;
11438}
11439_ACEOF
11440if ac_fn_c_try_compile "$LINENO"; then :
11441 WARN_CFLAGS="${WARN_CFLAGS} $w"
11442fi
11443rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11444 CFLAGS="$saved_CFLAGS"
11445 esac
11446 done
11447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
11448$as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
11449fi
11450
11451
b7026657 11452# In the Cygwin environment, we need some additional flags.
81ecdfbb
RW
11453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cygwin" >&5
11454$as_echo_n "checking for cygwin... " >&6; }
d0ac1c44 11455if ${sim_cv_os_cygwin+:} false; then :
81ecdfbb 11456 $as_echo_n "(cached) " >&6
b7026657 11457else
81ecdfbb 11458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657
AC
11459/* end confdefs.h. */
11460
11461#ifdef __CYGWIN__
11462lose
11463#endif
11464_ACEOF
11465if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
81ecdfbb 11466 $EGREP "lose" >/dev/null 2>&1; then :
b7026657
AC
11467 sim_cv_os_cygwin=yes
11468else
11469 sim_cv_os_cygwin=no
11470fi
11471rm -f conftest*
11472
11473fi
81ecdfbb
RW
11474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_cv_os_cygwin" >&5
11475$as_echo "$sim_cv_os_cygwin" >&6; }
b7026657 11476
c1230d1b
JS
11477# Keep in sync with gdb's configure.ac list.
11478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
b909d38d 11479$as_echo_n "checking for library containing tgetent... " >&6; }
d0ac1c44 11480if ${ac_cv_search_tgetent+:} false; then :
81ecdfbb 11481 $as_echo_n "(cached) " >&6
b7026657 11482else
b909d38d 11483 ac_func_search_save_LIBS=$LIBS
81ecdfbb 11484cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657
AC
11485/* end confdefs.h. */
11486
b909d38d
MF
11487/* Override any GCC internal prototype to avoid an error.
11488 Use char because int might match the return type of a GCC
11489 builtin and then its argument prototype would still apply. */
11490#ifdef __cplusplus
11491extern "C"
11492#endif
11493char tgetent ();
b7026657
AC
11494int
11495main ()
11496{
b909d38d 11497return tgetent ();
b7026657
AC
11498 ;
11499 return 0;
11500}
11501_ACEOF
b909d38d
MF
11502for ac_lib in '' termcap tinfo curses ncurses; do
11503 if test -z "$ac_lib"; then
11504 ac_res="none required"
11505 else
11506 ac_res=-l$ac_lib
11507 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11508 fi
11509 if ac_fn_c_try_link "$LINENO"; then :
11510 ac_cv_search_tgetent=$ac_res
b7026657 11511fi
81ecdfbb 11512rm -f core conftest.err conftest.$ac_objext \
b909d38d 11513 conftest$ac_exeext
d0ac1c44 11514 if ${ac_cv_search_tgetent+:} false; then :
b909d38d 11515 break
b7026657 11516fi
b909d38d 11517done
d0ac1c44 11518if ${ac_cv_search_tgetent+:} false; then :
b909d38d
MF
11519
11520else
11521 ac_cv_search_tgetent=no
11522fi
11523rm conftest.$ac_ext
11524LIBS=$ac_func_search_save_LIBS
11525fi
11526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
11527$as_echo "$ac_cv_search_tgetent" >&6; }
11528ac_res=$ac_cv_search_tgetent
11529if test "$ac_res" != no; then :
11530 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11531 TERMCAP=$ac_cv_search_tgetent
b7026657
AC
11532else
11533 TERMCAP=""
11534fi
11535
c1230d1b
JS
11536if test x$sim_cv_os_cygwin = xyes; then
11537 TERMCAP="${TERMCAP} -luser32"
b7026657
AC
11538fi
11539
11540
70a9be63
HPN
11541# We prefer the in-tree readline. Top-level dependencies make sure
11542# src/readline (if it's there) is configured before src/sim.
11543if test -r ../../readline/Makefile; then
53e123a5 11544 READLINE=../../readline/readline/libreadline.a
2694bce9 11545 READLINE_CFLAGS='-I$(READLINE_SRC)/..'
70a9be63 11546else
81ecdfbb
RW
11547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
11548$as_echo_n "checking for readline in -lreadline... " >&6; }
d0ac1c44 11549if ${ac_cv_lib_readline_readline+:} false; then :
81ecdfbb 11550 $as_echo_n "(cached) " >&6
70a9be63
HPN
11551else
11552 ac_check_lib_save_LIBS=$LIBS
11553LIBS="-lreadline $TERMCAP $LIBS"
81ecdfbb 11554cat confdefs.h - <<_ACEOF >conftest.$ac_ext
70a9be63
HPN
11555/* end confdefs.h. */
11556
81ecdfbb
RW
11557/* Override any GCC internal prototype to avoid an error.
11558 Use char because int might match the return type of a GCC
11559 builtin and then its argument prototype would still apply. */
70a9be63
HPN
11560#ifdef __cplusplus
11561extern "C"
11562#endif
70a9be63
HPN
11563char readline ();
11564int
11565main ()
11566{
81ecdfbb 11567return readline ();
70a9be63
HPN
11568 ;
11569 return 0;
11570}
11571_ACEOF
81ecdfbb 11572if ac_fn_c_try_link "$LINENO"; then :
70a9be63
HPN
11573 ac_cv_lib_readline_readline=yes
11574else
81ecdfbb 11575 ac_cv_lib_readline_readline=no
70a9be63 11576fi
81ecdfbb
RW
11577rm -f core conftest.err conftest.$ac_objext \
11578 conftest$ac_exeext conftest.$ac_ext
70a9be63
HPN
11579LIBS=$ac_check_lib_save_LIBS
11580fi
81ecdfbb
RW
11581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
11582$as_echo "$ac_cv_lib_readline_readline" >&6; }
d0ac1c44 11583if test "x$ac_cv_lib_readline_readline" = xyes; then :
70a9be63
HPN
11584 READLINE=-lreadline
11585else
d0ac1c44 11586 as_fn_error $? "the required \"readline\" library is missing" "$LINENO" 5
70a9be63
HPN
11587fi
11588
2694bce9 11589 READLINE_CFLAGS=
70a9be63
HPN
11590fi
11591
b7026657 11592
2694bce9 11593
66d055c7
MF
11594hardware="cfi core pal glue "
11595sim_hw_cflags="-DWITH_HW=1"
11596sim_hw="$hardware"
11597sim_hw_objs="\$(SIM_COMMON_HW_OBJS) `echo $sim_hw | sed -e 's/\([^ ][^ ]*\)/dv-\1.o/g'`"
11598
11599# Check whether --enable-sim-hardware was given.
11600if test "${enable_sim_hardware+set}" = set; then :
11601 enableval=$enable_sim_hardware;
11602else
11603 enable_sim_hardware="yes"
11604fi
11605
11606case ${enable_sim_hardware} in
11607 yes|no) ;;
11608 ,*) hardware="${hardware} `echo ${enableval} | sed -e 's/,/ /'`";;
11609 *,) hardware="`echo ${enableval} | sed -e 's/,/ /'` ${hardware}";;
11610 *) hardware="`echo ${enableval} | sed -e 's/,/ /'`"'';;
11611esac
11612
11613if test "$enable_sim_hardware" = no; then
11614 sim_hw_objs=
11615 sim_hw_cflags="-DWITH_HW=0"
11616 sim_hw=
11617else
11618 sim_hw_cflags="-DWITH_HW=1"
11619 # remove duplicates
11620 sim_hw=""
11621 sim_hw_objs="\$(SIM_COMMON_HW_OBJS)"
11622 for i in $hardware ; do
11623 case " $sim_hw " in
11624 *" $i "*) ;;
11625 *) sim_hw="$sim_hw $i" ; sim_hw_objs="$sim_hw_objs dv-$i.o";;
11626 esac
11627 done
11628 # mingw does not support sockser
11629 case ${host} in
11630 *mingw*) ;;
11631 *) # TODO: We don't add dv-sockser to sim_hw as it is not a "real" device
11632 # that you instatiate. Instead, other code will call into it directly.
11633 # At some point, we should convert it over.
11634 sim_hw_objs="$sim_hw_objs dv-sockser.o"
11635
11636cat >>confdefs.h <<_ACEOF
11637#define HAVE_DV_SOCKSER 1
11638_ACEOF
11639
11640 ;;
11641 esac
11642 if test x"$silent" != x"yes"; then
11643 echo "Setting hardware to $sim_hw_cflags, $sim_hw, $sim_hw_objs"
11644 fi
11645 case " $hardware " in
11646 *" cfi "*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log2 in -lm" >&5
11647$as_echo_n "checking for log2 in -lm... " >&6; }
11648if ${ac_cv_lib_m_log2+:} false; then :
11649 $as_echo_n "(cached) " >&6
11650else
11651 ac_check_lib_save_LIBS=$LIBS
11652LIBS="-lm $LIBS"
11653cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11654/* end confdefs.h. */
11655
11656/* Override any GCC internal prototype to avoid an error.
11657 Use char because int might match the return type of a GCC
11658 builtin and then its argument prototype would still apply. */
11659#ifdef __cplusplus
11660extern "C"
11661#endif
11662char log2 ();
11663int
11664main ()
11665{
11666return log2 ();
11667 ;
11668 return 0;
11669}
11670_ACEOF
11671if ac_fn_c_try_link "$LINENO"; then :
11672 ac_cv_lib_m_log2=yes
11673else
11674 ac_cv_lib_m_log2=no
11675fi
11676rm -f core conftest.err conftest.$ac_objext \
11677 conftest$ac_exeext conftest.$ac_ext
11678LIBS=$ac_check_lib_save_LIBS
11679fi
11680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_log2" >&5
11681$as_echo "$ac_cv_lib_m_log2" >&6; }
11682if test "x$ac_cv_lib_m_log2" = xyes; then :
11683 cat >>confdefs.h <<_ACEOF
11684#define HAVE_LIBM 1
11685_ACEOF
11686
11687 LIBS="-lm $LIBS"
11688
11689fi
11690;;
11691 esac
11692fi
11693
11694
b7026657
AC
11695cgen_breaks=""
11696if grep CGEN_MAINT $srcdir/Makefile.in >/dev/null; then
11697cgen_breaks="break cgen_rtx_error";
11698fi
11699
81ecdfbb 11700ac_config_files="$ac_config_files Makefile.sim:Makefile.in"
38f48d72 11701
81ecdfbb 11702ac_config_files="$ac_config_files Make-common.sim:../common/Make-common.in"
38f48d72 11703
81ecdfbb 11704ac_config_files="$ac_config_files .gdbinit:../common/gdbinit.in"
38f48d72 11705
81ecdfbb 11706ac_config_commands="$ac_config_commands Makefile"
38f48d72 11707
81ecdfbb 11708ac_config_commands="$ac_config_commands stamp-h"
38f48d72 11709
760b3e8b
MF
11710
11711
11712
11713
11714
11715
11716
11717
11718
11719
11720
11721
b7026657
AC
11722cat >confcache <<\_ACEOF
11723# This file is a shell script that caches the results of configure
11724# tests run on this system so they can be shared between configure
11725# scripts and configure runs, see configure's option --config-cache.
11726# It is not useful on other systems. If it contains results you don't
11727# want to keep, you may remove or edit it.
11728#
11729# config.status only pays attention to the cache file if you give it
11730# the --recheck option to rerun configure.
11731#
11732# `ac_cv_env_foo' variables (set or unset) will be overridden when
11733# loading this file, other *unset* `ac_cv_foo' will be assigned the
11734# following values.
11735
11736_ACEOF
11737
11738# The following way of writing the cache mishandles newlines in values,
11739# but we know of no workaround that is simple, portable, and efficient.
81ecdfbb 11740# So, we kill variables containing newlines.
b7026657
AC
11741# Ultrix sh set writes to stderr and can't be redirected directly,
11742# and sets the high bit in the cache file unless we assign to the vars.
81ecdfbb
RW
11743(
11744 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11745 eval ac_val=\$$ac_var
11746 case $ac_val in #(
11747 *${as_nl}*)
11748 case $ac_var in #(
11749 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11750$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11751 esac
11752 case $ac_var in #(
11753 _ | IFS | as_nl) ;; #(
11754 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11755 *) { eval $ac_var=; unset $ac_var;} ;;
11756 esac ;;
11757 esac
11758 done
11759
b7026657 11760 (set) 2>&1 |
81ecdfbb
RW
11761 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11762 *${as_nl}ac_space=\ *)
11763 # `set' does not quote correctly, so add quotes: double-quote
11764 # substitution turns \\\\ into \\, and sed turns \\ into \.
b7026657
AC
11765 sed -n \
11766 "s/'/'\\\\''/g;
11767 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
81ecdfbb 11768 ;; #(
b7026657
AC
11769 *)
11770 # `set' quotes correctly as required by POSIX, so do not add quotes.
81ecdfbb 11771 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
b7026657 11772 ;;
81ecdfbb
RW
11773 esac |
11774 sort
11775) |
b7026657 11776 sed '
81ecdfbb 11777 /^ac_cv_env_/b end
b7026657 11778 t clear
81ecdfbb 11779 :clear
b7026657
AC
11780 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11781 t end
81ecdfbb
RW
11782 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11783 :end' >>confcache
11784if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11785 if test -w "$cache_file"; then
d0ac1c44 11786 if test "x$cache_file" != "x/dev/null"; then
81ecdfbb
RW
11787 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11788$as_echo "$as_me: updating cache $cache_file" >&6;}
d0ac1c44
SM
11789 if test ! -f "$cache_file" || test -h "$cache_file"; then
11790 cat confcache >"$cache_file"
11791 else
11792 case $cache_file in #(
11793 */* | ?:*)
11794 mv -f confcache "$cache_file"$$ &&
11795 mv -f "$cache_file"$$ "$cache_file" ;; #(
11796 *)
11797 mv -f confcache "$cache_file" ;;
11798 esac
11799 fi
11800 fi
b7026657 11801 else
81ecdfbb
RW
11802 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11803$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
b7026657
AC
11804 fi
11805fi
11806rm -f confcache
11807
11808test "x$prefix" = xNONE && prefix=$ac_default_prefix
11809# Let make expand exec_prefix.
11810test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11811
b7026657
AC
11812DEFS=-DHAVE_CONFIG_H
11813
11814ac_libobjs=
11815ac_ltlibobjs=
d0ac1c44 11816U=
b7026657
AC
11817for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11818 # 1. Remove the extension, and $U if already installed.
81ecdfbb
RW
11819 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11820 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11821 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11822 # will be set to the directory where LIBOBJS objects are built.
11823 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11824 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
b7026657
AC
11825done
11826LIBOBJS=$ac_libobjs
11827
11828LTLIBOBJS=$ac_ltlibobjs
11829
11830
0cb8d851 11831
6bb11ab3 11832if test -z "${PLUGINS_TRUE}" && test -z "${PLUGINS_FALSE}"; then
d0ac1c44 11833 as_fn_error $? "conditional \"PLUGINS\" was never defined.
6bb11ab3
L
11834Usually this means the macro was only invoked conditionally." "$LINENO" 5
11835fi
31e6ad7d 11836if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
d0ac1c44 11837 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
31e6ad7d
MF
11838Usually this means the macro was only invoked conditionally." "$LINENO" 5
11839fi
b7026657 11840
d0ac1c44 11841: "${CONFIG_STATUS=./config.status}"
81ecdfbb 11842ac_write_fail=0
b7026657
AC
11843ac_clean_files_save=$ac_clean_files
11844ac_clean_files="$ac_clean_files $CONFIG_STATUS"
81ecdfbb
RW
11845{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11846$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11847as_write_fail=0
11848cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
b7026657
AC
11849#! $SHELL
11850# Generated by $as_me.
11851# Run this file to recreate the current configuration.
11852# Compiler output produced by configure, useful for debugging
11853# configure, is in config.log if it exists.
11854
11855debug=false
11856ac_cs_recheck=false
11857ac_cs_silent=false
b7026657 11858
81ecdfbb
RW
11859SHELL=\${CONFIG_SHELL-$SHELL}
11860export SHELL
11861_ASEOF
11862cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11863## -------------------- ##
11864## M4sh Initialization. ##
11865## -------------------- ##
11866
11867# Be more Bourne compatible
11868DUALCASE=1; export DUALCASE # for MKS sh
11869if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
b7026657
AC
11870 emulate sh
11871 NULLCMD=:
81ecdfbb 11872 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
b7026657
AC
11873 # is contrary to our usage. Disable this feature.
11874 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
11875 setopt NO_GLOB_SUBST
11876else
11877 case `(set -o) 2>/dev/null` in #(
11878 *posix*) :
11879 set -o posix ;; #(
11880 *) :
11881 ;;
11882esac
b7026657 11883fi
b7026657 11884
81ecdfbb
RW
11885
11886as_nl='
11887'
11888export as_nl
11889# Printing a long string crashes Solaris 7 /usr/bin/printf.
11890as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11891as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11892as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11893# Prefer a ksh shell builtin over an external printf program on Solaris,
11894# but without wasting forks for bash or zsh.
11895if test -z "$BASH_VERSION$ZSH_VERSION" \
11896 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11897 as_echo='print -r --'
11898 as_echo_n='print -rn --'
11899elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11900 as_echo='printf %s\n'
11901 as_echo_n='printf %s'
11902else
11903 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11904 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11905 as_echo_n='/usr/ucb/echo -n'
11906 else
11907 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11908 as_echo_n_body='eval
11909 arg=$1;
11910 case $arg in #(
11911 *"$as_nl"*)
11912 expr "X$arg" : "X\\(.*\\)$as_nl";
11913 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11914 esac;
11915 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11916 '
11917 export as_echo_n_body
11918 as_echo_n='sh -c $as_echo_n_body as_echo'
11919 fi
11920 export as_echo_body
11921 as_echo='sh -c $as_echo_body as_echo'
11922fi
11923
11924# The user is always right.
11925if test "${PATH_SEPARATOR+set}" != set; then
11926 PATH_SEPARATOR=:
11927 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11928 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11929 PATH_SEPARATOR=';'
11930 }
b7026657
AC
11931fi
11932
11933
81ecdfbb
RW
11934# IFS
11935# We need space, tab and new line, in precisely that order. Quoting is
11936# there to prevent editors from complaining about space-tab.
11937# (If _AS_PATH_WALK were called with IFS unset, it would disable word
11938# splitting by setting IFS to empty value.)
11939IFS=" "" $as_nl"
11940
11941# Find who we are. Look in the path if we contain no directory separator.
d0ac1c44 11942as_myself=
81ecdfbb
RW
11943case $0 in #((
11944 *[\\/]* ) as_myself=$0 ;;
11945 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11946for as_dir in $PATH
11947do
11948 IFS=$as_save_IFS
11949 test -z "$as_dir" && as_dir=.
11950 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11951 done
11952IFS=$as_save_IFS
11953
11954 ;;
11955esac
11956# We did not find ourselves, most probably we were run as `sh COMMAND'
11957# in which case we are not to be found in the path.
11958if test "x$as_myself" = x; then
11959 as_myself=$0
11960fi
11961if test ! -f "$as_myself"; then
11962 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11963 exit 1
11964fi
11965
11966# Unset variables that we do not need and which cause bugs (e.g. in
11967# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11968# suppresses any "Segmentation fault" message there. '((' could
11969# trigger a bug in pdksh 5.2.14.
11970for as_var in BASH_ENV ENV MAIL MAILPATH
11971do eval test x\${$as_var+set} = xset \
11972 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11973done
b7026657
AC
11974PS1='$ '
11975PS2='> '
11976PS4='+ '
11977
11978# NLS nuisances.
81ecdfbb
RW
11979LC_ALL=C
11980export LC_ALL
11981LANGUAGE=C
11982export LANGUAGE
11983
11984# CDPATH.
11985(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11986
11987
d0ac1c44
SM
11988# as_fn_error STATUS ERROR [LINENO LOG_FD]
11989# ----------------------------------------
81ecdfbb
RW
11990# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11991# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
d0ac1c44 11992# script with STATUS, using 1 if that was 0.
81ecdfbb
RW
11993as_fn_error ()
11994{
d0ac1c44
SM
11995 as_status=$1; test $as_status -eq 0 && as_status=1
11996 if test "$4"; then
11997 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11998 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
b7026657 11999 fi
d0ac1c44 12000 $as_echo "$as_me: error: $2" >&2
81ecdfbb
RW
12001 as_fn_exit $as_status
12002} # as_fn_error
12003
12004
12005# as_fn_set_status STATUS
12006# -----------------------
12007# Set $? to STATUS, without forking.
12008as_fn_set_status ()
12009{
12010 return $1
12011} # as_fn_set_status
12012
12013# as_fn_exit STATUS
12014# -----------------
12015# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12016as_fn_exit ()
12017{
12018 set +e
12019 as_fn_set_status $1
12020 exit $1
12021} # as_fn_exit
12022
12023# as_fn_unset VAR
12024# ---------------
12025# Portably unset VAR.
12026as_fn_unset ()
12027{
12028 { eval $1=; unset $1;}
12029}
12030as_unset=as_fn_unset
12031# as_fn_append VAR VALUE
12032# ----------------------
12033# Append the text in VALUE to the end of the definition contained in VAR. Take
12034# advantage of any shell optimizations that allow amortized linear growth over
12035# repeated appends, instead of the typical quadratic growth present in naive
12036# implementations.
12037if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12038 eval 'as_fn_append ()
12039 {
12040 eval $1+=\$2
12041 }'
12042else
12043 as_fn_append ()
12044 {
12045 eval $1=\$$1\$2
12046 }
12047fi # as_fn_append
12048
12049# as_fn_arith ARG...
12050# ------------------
12051# Perform arithmetic evaluation on the ARGs, and store the result in the
12052# global $as_val. Take advantage of shells that can avoid forks. The arguments
12053# must be portable across $(()) and expr.
12054if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12055 eval 'as_fn_arith ()
12056 {
12057 as_val=$(( $* ))
12058 }'
12059else
12060 as_fn_arith ()
12061 {
12062 as_val=`expr "$@" || test $? -eq 1`
12063 }
12064fi # as_fn_arith
12065
b7026657 12066
81ecdfbb
RW
12067if expr a : '\(a\)' >/dev/null 2>&1 &&
12068 test "X`expr 00001 : '.*\(...\)'`" = X001; then
b7026657 12069 as_expr=expr
c906108c 12070else
b7026657 12071 as_expr=false
c906108c
SS
12072fi
12073
81ecdfbb 12074if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
b7026657
AC
12075 as_basename=basename
12076else
12077 as_basename=false
12078fi
c906108c 12079
81ecdfbb
RW
12080if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12081 as_dirname=dirname
12082else
12083 as_dirname=false
12084fi
c906108c 12085
81ecdfbb 12086as_me=`$as_basename -- "$0" ||
b7026657
AC
12087$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12088 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
12089 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12090$as_echo X/"$0" |
12091 sed '/^.*\/\([^/][^/]*\)\/*$/{
12092 s//\1/
12093 q
12094 }
12095 /^X\/\(\/\/\)$/{
12096 s//\1/
12097 q
12098 }
12099 /^X\/\(\/\).*/{
12100 s//\1/
12101 q
12102 }
12103 s/.*/./; q'`
c906108c 12104
b7026657
AC
12105# Avoid depending upon Character Ranges.
12106as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12107as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12108as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12109as_cr_digits='0123456789'
12110as_cr_alnum=$as_cr_Letters$as_cr_digits
cd0fc7c3 12111
81ecdfbb
RW
12112ECHO_C= ECHO_N= ECHO_T=
12113case `echo -n x` in #(((((
12114-n*)
12115 case `echo 'xy\c'` in
12116 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12117 xy) ECHO_C='\c';;
12118 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12119 ECHO_T=' ';;
12120 esac;;
12121*)
12122 ECHO_N='-n';;
b7026657 12123esac
c906108c 12124
81ecdfbb
RW
12125rm -f conf$$ conf$$.exe conf$$.file
12126if test -d conf$$.dir; then
12127 rm -f conf$$.dir/conf$$.file
c906108c 12128else
81ecdfbb
RW
12129 rm -f conf$$.dir
12130 mkdir conf$$.dir 2>/dev/null
c906108c 12131fi
81ecdfbb
RW
12132if (echo >conf$$.file) 2>/dev/null; then
12133 if ln -s conf$$.file conf$$ 2>/dev/null; then
b7026657 12134 as_ln_s='ln -s'
81ecdfbb
RW
12135 # ... but there are two gotchas:
12136 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12137 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
d0ac1c44 12138 # In both cases, we have to default to `cp -pR'.
81ecdfbb 12139 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
d0ac1c44 12140 as_ln_s='cp -pR'
81ecdfbb
RW
12141 elif ln conf$$.file conf$$ 2>/dev/null; then
12142 as_ln_s=ln
12143 else
d0ac1c44 12144 as_ln_s='cp -pR'
b7026657 12145 fi
7a292a7a 12146else
d0ac1c44 12147 as_ln_s='cp -pR'
b7026657 12148fi
81ecdfbb
RW
12149rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12150rmdir conf$$.dir 2>/dev/null
12151
7a292a7a 12152
81ecdfbb
RW
12153# as_fn_mkdir_p
12154# -------------
12155# Create "$as_dir" as a directory, including parents if necessary.
12156as_fn_mkdir_p ()
12157{
12158
12159 case $as_dir in #(
12160 -*) as_dir=./$as_dir;;
12161 esac
12162 test -d "$as_dir" || eval $as_mkdir_p || {
12163 as_dirs=
12164 while :; do
12165 case $as_dir in #(
12166 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12167 *) as_qdir=$as_dir;;
12168 esac
12169 as_dirs="'$as_qdir' $as_dirs"
12170 as_dir=`$as_dirname -- "$as_dir" ||
12171$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12172 X"$as_dir" : 'X\(//\)[^/]' \| \
12173 X"$as_dir" : 'X\(//\)$' \| \
12174 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12175$as_echo X"$as_dir" |
12176 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12177 s//\1/
12178 q
12179 }
12180 /^X\(\/\/\)[^/].*/{
12181 s//\1/
12182 q
12183 }
12184 /^X\(\/\/\)$/{
12185 s//\1/
12186 q
12187 }
12188 /^X\(\/\).*/{
12189 s//\1/
12190 q
12191 }
12192 s/.*/./; q'`
12193 test -d "$as_dir" && break
12194 done
12195 test -z "$as_dirs" || eval "mkdir $as_dirs"
d0ac1c44 12196 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
81ecdfbb
RW
12197
12198
12199} # as_fn_mkdir_p
b7026657 12200if mkdir -p . 2>/dev/null; then
81ecdfbb 12201 as_mkdir_p='mkdir -p "$as_dir"'
7a292a7a 12202else
b7026657
AC
12203 test -d ./-p && rmdir ./-p
12204 as_mkdir_p=false
7a292a7a 12205fi
7a292a7a 12206
d0ac1c44
SM
12207
12208# as_fn_executable_p FILE
12209# -----------------------
12210# Test if FILE is an executable regular file.
12211as_fn_executable_p ()
12212{
12213 test -f "$1" && test -x "$1"
12214} # as_fn_executable_p
12215as_test_x='test -x'
12216as_executable_p=as_fn_executable_p
7a292a7a 12217
b7026657
AC
12218# Sed expression to map a string onto a valid CPP name.
12219as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7a292a7a 12220
b7026657
AC
12221# Sed expression to map a string onto a valid variable name.
12222as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12223
12224
b7026657 12225exec 6>&1
81ecdfbb
RW
12226## ----------------------------------- ##
12227## Main body of $CONFIG_STATUS script. ##
12228## ----------------------------------- ##
12229_ASEOF
12230test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12231
12232cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12233# Save the log message, to keep $0 and so on meaningful, and to
b7026657 12234# report actual input values of CONFIG_FILES etc. instead of their
81ecdfbb
RW
12235# values after options handling.
12236ac_log="
b7026657 12237This file was extended by $as_me, which was
d0ac1c44 12238generated by GNU Autoconf 2.69. Invocation command line was
b7026657
AC
12239
12240 CONFIG_FILES = $CONFIG_FILES
12241 CONFIG_HEADERS = $CONFIG_HEADERS
12242 CONFIG_LINKS = $CONFIG_LINKS
12243 CONFIG_COMMANDS = $CONFIG_COMMANDS
12244 $ $0 $@
12245
81ecdfbb
RW
12246on `(hostname || uname -n) 2>/dev/null | sed 1q`
12247"
12248
b7026657
AC
12249_ACEOF
12250
81ecdfbb
RW
12251case $ac_config_files in *"
12252"*) set x $ac_config_files; shift; ac_config_files=$*;;
12253esac
c906108c 12254
81ecdfbb
RW
12255case $ac_config_headers in *"
12256"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12257esac
b7026657 12258
c906108c 12259
81ecdfbb
RW
12260cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12261# Files that config.status was made for.
12262config_files="$ac_config_files"
12263config_headers="$ac_config_headers"
81ecdfbb 12264config_commands="$ac_config_commands"
c906108c 12265
81ecdfbb 12266_ACEOF
c906108c 12267
81ecdfbb 12268cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
b7026657 12269ac_cs_usage="\
81ecdfbb
RW
12270\`$as_me' instantiates files and other configuration actions
12271from templates according to the current configuration. Unless the files
12272and actions are specified as TAGs, all are instantiated by default.
c906108c 12273
81ecdfbb 12274Usage: $0 [OPTION]... [TAG]...
c906108c 12275
b7026657 12276 -h, --help print this help, then exit
81ecdfbb 12277 -V, --version print version number and configuration settings, then exit
d0ac1c44 12278 --config print configuration, then exit
81ecdfbb
RW
12279 -q, --quiet, --silent
12280 do not print progress messages
b7026657
AC
12281 -d, --debug don't remove temporary files
12282 --recheck update $as_me by reconfiguring in the same conditions
81ecdfbb
RW
12283 --file=FILE[:TEMPLATE]
12284 instantiate the configuration file FILE
12285 --header=FILE[:TEMPLATE]
12286 instantiate the configuration header FILE
379832de 12287
b7026657
AC
12288Configuration files:
12289$config_files
12290
12291Configuration headers:
12292$config_headers
12293
b7026657
AC
12294Configuration commands:
12295$config_commands
12296
81ecdfbb 12297Report bugs to the package provider."
b7026657 12298
81ecdfbb
RW
12299_ACEOF
12300cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
d0ac1c44 12301ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
b7026657
AC
12302ac_cs_version="\\
12303config.status
d0ac1c44
SM
12304configured by $0, generated by GNU Autoconf 2.69,
12305 with options \\"\$ac_cs_config\\"
b7026657 12306
d0ac1c44 12307Copyright (C) 2012 Free Software Foundation, Inc.
b7026657
AC
12308This config.status script is free software; the Free Software Foundation
12309gives unlimited permission to copy, distribute and modify it."
81ecdfbb
RW
12310
12311ac_pwd='$ac_pwd'
12312srcdir='$srcdir'
12313INSTALL='$INSTALL'
6bb11ab3 12314AWK='$AWK'
81ecdfbb 12315test -n "\$AWK" || AWK=awk
b7026657
AC
12316_ACEOF
12317
81ecdfbb
RW
12318cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12319# The default lists apply if the user does not specify any file.
b7026657
AC
12320ac_need_defaults=:
12321while test $# != 0
12322do
12323 case $1 in
d0ac1c44 12324 --*=?*)
81ecdfbb
RW
12325 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12326 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
b7026657 12327 ac_shift=:
c906108c 12328 ;;
d0ac1c44
SM
12329 --*=)
12330 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12331 ac_optarg=
12332 ac_shift=:
12333 ;;
81ecdfbb 12334 *)
b7026657
AC
12335 ac_option=$1
12336 ac_optarg=$2
12337 ac_shift=shift
c906108c 12338 ;;
b7026657 12339 esac
c906108c 12340
b7026657
AC
12341 case $ac_option in
12342 # Handling of the options.
b7026657
AC
12343 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12344 ac_cs_recheck=: ;;
81ecdfbb
RW
12345 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12346 $as_echo "$ac_cs_version"; exit ;;
d0ac1c44
SM
12347 --config | --confi | --conf | --con | --co | --c )
12348 $as_echo "$ac_cs_config"; exit ;;
81ecdfbb 12349 --debug | --debu | --deb | --de | --d | -d )
b7026657
AC
12350 debug=: ;;
12351 --file | --fil | --fi | --f )
12352 $ac_shift
81ecdfbb
RW
12353 case $ac_optarg in
12354 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
d0ac1c44 12355 '') as_fn_error $? "missing file argument" ;;
81ecdfbb
RW
12356 esac
12357 as_fn_append CONFIG_FILES " '$ac_optarg'"
b7026657
AC
12358 ac_need_defaults=false;;
12359 --header | --heade | --head | --hea )
12360 $ac_shift
81ecdfbb
RW
12361 case $ac_optarg in
12362 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12363 esac
12364 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
b7026657 12365 ac_need_defaults=false;;
81ecdfbb
RW
12366 --he | --h)
12367 # Conflict between --help and --header
d0ac1c44 12368 as_fn_error $? "ambiguous option: \`$1'
81ecdfbb
RW
12369Try \`$0 --help' for more information.";;
12370 --help | --hel | -h )
12371 $as_echo "$ac_cs_usage"; exit ;;
b7026657
AC
12372 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12373 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12374 ac_cs_silent=: ;;
c906108c 12375
b7026657 12376 # This is an error.
d0ac1c44 12377 -*) as_fn_error $? "unrecognized option: \`$1'
81ecdfbb 12378Try \`$0 --help' for more information." ;;
c906108c 12379
81ecdfbb
RW
12380 *) as_fn_append ac_config_targets " $1"
12381 ac_need_defaults=false ;;
b7026657
AC
12382
12383 esac
12384 shift
12385done
12386
12387ac_configure_extra_args=
12388
12389if $ac_cs_silent; then
12390 exec 6>/dev/null
12391 ac_configure_extra_args="$ac_configure_extra_args --silent"
c906108c
SS
12392fi
12393
b7026657 12394_ACEOF
81ecdfbb 12395cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
b7026657 12396if \$ac_cs_recheck; then
d0ac1c44 12397 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
81ecdfbb
RW
12398 shift
12399 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12400 CONFIG_SHELL='$SHELL'
12401 export CONFIG_SHELL
12402 exec "\$@"
b7026657 12403fi
c906108c 12404
b7026657 12405_ACEOF
81ecdfbb
RW
12406cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12407exec 5>>config.log
12408{
12409 echo
12410 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12411## Running $as_me. ##
12412_ASBOX
12413 $as_echo "$ac_log"
12414} >&5
c906108c 12415
81ecdfbb
RW
12416_ACEOF
12417cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
db2e4d67
MF
12418#
12419# INIT-COMMANDS
12420#
12421ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
12422
6bb11ab3
L
12423
12424# The HP-UX ksh and POSIX shell print the target directory to stdout
12425# if CDPATH is set.
12426(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12427
12428sed_quote_subst='$sed_quote_subst'
12429double_quote_subst='$double_quote_subst'
12430delay_variable_subst='$delay_variable_subst'
12431macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
12432macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
12433enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
12434enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
12435pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
12436enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
12437SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
12438ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
12439host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
12440host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
12441host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
12442build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
12443build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
12444build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
12445SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
12446Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
12447GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
12448EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
12449FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
12450LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
12451NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
12452LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
12453max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
12454ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
12455exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
12456lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
12457lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
12458lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
12459reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
12460reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
12461OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
12462deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
12463file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
12464AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
12465AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
12466STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
12467RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
12468old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12469old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12470old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
12471lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
12472CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
12473CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
12474compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
12475GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
12476lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
12477lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
12478lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
12479lt_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"`'
12480objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
12481MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
12482lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
12483lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
12484lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
12485lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
12486lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
12487need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
12488DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
12489NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
12490LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
12491OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
12492OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
12493libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
12494shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
12495extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12496archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
12497enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
12498export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
12499whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
12500compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
12501old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
12502old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12503archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
12504archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12505module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
12506module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12507with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
12508allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
12509no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
12510hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
12511hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
12512hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
12513hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
12514hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
12515hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
12516hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
12517hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
12518inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
12519link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
12520fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
12521always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
12522export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
12523exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
12524include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
12525prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
12526file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
12527variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
12528need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
12529need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
12530version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
12531runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
12532shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
12533shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
12534libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
12535library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
12536soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
12537install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
12538postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12539postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12540finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
12541finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
12542hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
12543sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
12544sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
12545hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
12546enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
12547enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
12548enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
12549old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
12550striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
12551
12552LTCC='$LTCC'
12553LTCFLAGS='$LTCFLAGS'
12554compiler='$compiler_DEFAULT'
12555
12556# A function that is used when there is no print builtin or printf.
12557func_fallback_echo ()
12558{
12559 eval 'cat <<_LTECHO_EOF
12560\$1
12561_LTECHO_EOF'
12562}
12563
12564# Quote evaled strings.
12565for var in SHELL \
12566ECHO \
12567SED \
12568GREP \
12569EGREP \
12570FGREP \
12571LD \
12572NM \
12573LN_S \
12574lt_SP2NL \
12575lt_NL2SP \
12576reload_flag \
12577OBJDUMP \
12578deplibs_check_method \
12579file_magic_cmd \
12580AR \
12581AR_FLAGS \
12582STRIP \
12583RANLIB \
12584CC \
12585CFLAGS \
12586compiler \
12587lt_cv_sys_global_symbol_pipe \
12588lt_cv_sys_global_symbol_to_cdecl \
12589lt_cv_sys_global_symbol_to_c_name_address \
12590lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12591lt_prog_compiler_no_builtin_flag \
12592lt_prog_compiler_wl \
12593lt_prog_compiler_pic \
12594lt_prog_compiler_static \
12595lt_cv_prog_compiler_c_o \
12596need_locks \
12597DSYMUTIL \
12598NMEDIT \
12599LIPO \
12600OTOOL \
12601OTOOL64 \
12602shrext_cmds \
12603export_dynamic_flag_spec \
12604whole_archive_flag_spec \
12605compiler_needs_object \
12606with_gnu_ld \
12607allow_undefined_flag \
12608no_undefined_flag \
12609hardcode_libdir_flag_spec \
12610hardcode_libdir_flag_spec_ld \
12611hardcode_libdir_separator \
12612fix_srcfile_path \
12613exclude_expsyms \
12614include_expsyms \
12615file_list_spec \
12616variables_saved_for_relink \
12617libname_spec \
12618library_names_spec \
12619soname_spec \
12620install_override_mode \
12621finish_eval \
12622old_striplib \
12623striplib; do
12624 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
12625 *[\\\\\\\`\\"\\\$]*)
12626 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12627 ;;
12628 *)
12629 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12630 ;;
12631 esac
12632done
12633
12634# Double-quote double-evaled strings.
12635for var in reload_cmds \
12636old_postinstall_cmds \
12637old_postuninstall_cmds \
12638old_archive_cmds \
12639extract_expsyms_cmds \
12640old_archive_from_new_cmds \
12641old_archive_from_expsyms_cmds \
12642archive_cmds \
12643archive_expsym_cmds \
12644module_cmds \
12645module_expsym_cmds \
12646export_symbols_cmds \
12647prelink_cmds \
12648postinstall_cmds \
12649postuninstall_cmds \
12650finish_cmds \
12651sys_lib_search_path_spec \
12652sys_lib_dlsearch_path_spec; do
12653 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
12654 *[\\\\\\\`\\"\\\$]*)
12655 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12656 ;;
12657 *)
12658 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12659 ;;
12660 esac
12661done
12662
12663ac_aux_dir='$ac_aux_dir'
12664xsi_shell='$xsi_shell'
12665lt_shell_append='$lt_shell_append'
12666
12667# See if we are running on zsh, and set the options which allow our
12668# commands through without removal of \ escapes INIT.
12669if test -n "\${ZSH_VERSION+set}" ; then
12670 setopt NO_GLOB_SUBST
12671fi
12672
12673
12674 PACKAGE='$PACKAGE'
12675 VERSION='$VERSION'
12676 TIMESTAMP='$TIMESTAMP'
12677 RM='$RM'
12678 ofile='$ofile'
12679
12680
12681
12682
81ecdfbb 12683_ACEOF
c906108c 12684
81ecdfbb 12685cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
c906108c 12686
81ecdfbb 12687# Handling of arguments.
b7026657 12688for ac_config_target in $ac_config_targets
c906108c 12689do
81ecdfbb
RW
12690 case $ac_config_target in
12691 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
db2e4d67 12692 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
6bb11ab3 12693 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
81ecdfbb
RW
12694 "Makefile.sim") CONFIG_FILES="$CONFIG_FILES Makefile.sim:Makefile.in" ;;
12695 "Make-common.sim") CONFIG_FILES="$CONFIG_FILES Make-common.sim:../common/Make-common.in" ;;
12696 ".gdbinit") CONFIG_FILES="$CONFIG_FILES .gdbinit:../common/gdbinit.in" ;;
12697 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
12698 "stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS stamp-h" ;;
12699
d0ac1c44 12700 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
c906108c
SS
12701 esac
12702done
12703
81ecdfbb 12704
b7026657
AC
12705# If the user did not use the arguments to specify the items to instantiate,
12706# then the envvar interface is used. Set only those that are not.
12707# We use the long form for the default assignment because of an extremely
12708# bizarre bug on SunOS 4.1.3.
12709if $ac_need_defaults; then
12710 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12711 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
b7026657
AC
12712 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12713fi
12714
12715# Have a temporary directory for convenience. Make it in the build tree
81ecdfbb 12716# simply because there is no reason against having it here, and in addition,
b7026657 12717# creating and moving files from /tmp can sometimes cause problems.
81ecdfbb
RW
12718# Hook for its removal unless debugging.
12719# Note that there is a small window in which the directory will not be cleaned:
12720# after its creation but before its name has been assigned to `$tmp'.
b7026657
AC
12721$debug ||
12722{
d0ac1c44 12723 tmp= ac_tmp=
81ecdfbb 12724 trap 'exit_status=$?
d0ac1c44
SM
12725 : "${ac_tmp:=$tmp}"
12726 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
81ecdfbb
RW
12727' 0
12728 trap 'as_fn_exit 1' 1 2 13 15
b7026657 12729}
b7026657
AC
12730# Create a (secure) tmp directory for tmp files.
12731
12732{
81ecdfbb 12733 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
d0ac1c44 12734 test -d "$tmp"
b7026657
AC
12735} ||
12736{
81ecdfbb
RW
12737 tmp=./conf$$-$RANDOM
12738 (umask 077 && mkdir "$tmp")
d0ac1c44
SM
12739} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12740ac_tmp=$tmp
c906108c 12741
81ecdfbb
RW
12742# Set up the scripts for CONFIG_FILES section.
12743# No need to generate them if there are no CONFIG_FILES.
12744# This happens for instance with `./config.status config.h'.
12745if test -n "$CONFIG_FILES"; then
c906108c 12746
c906108c 12747
81ecdfbb
RW
12748ac_cr=`echo X | tr X '\015'`
12749# On cygwin, bash can eat \r inside `` if the user requested igncr.
12750# But we know of no other shell where ac_cr would be empty at this
12751# point, so we can use a bashism as a fallback.
12752if test "x$ac_cr" = x; then
12753 eval ac_cr=\$\'\\r\'
12754fi
12755ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12756if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
d0ac1c44 12757 ac_cs_awk_cr='\\r'
81ecdfbb
RW
12758else
12759 ac_cs_awk_cr=$ac_cr
12760fi
b7026657 12761
d0ac1c44 12762echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
b7026657
AC
12763_ACEOF
12764
81ecdfbb
RW
12765
12766{
12767 echo "cat >conf$$subs.awk <<_ACEOF" &&
12768 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12769 echo "_ACEOF"
12770} >conf$$subs.sh ||
d0ac1c44
SM
12771 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12772ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
81ecdfbb
RW
12773ac_delim='%!_!# '
12774for ac_last_try in false false false false false :; do
12775 . ./conf$$subs.sh ||
d0ac1c44 12776 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
81ecdfbb
RW
12777
12778 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12779 if test $ac_delim_n = $ac_delim_num; then
12780 break
12781 elif $ac_last_try; then
d0ac1c44 12782 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
81ecdfbb
RW
12783 else
12784 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
c906108c 12785 fi
81ecdfbb
RW
12786done
12787rm -f conf$$subs.sh
c906108c 12788
81ecdfbb 12789cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
d0ac1c44 12790cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
b7026657 12791_ACEOF
81ecdfbb
RW
12792sed -n '
12793h
12794s/^/S["/; s/!.*/"]=/
12795p
12796g
12797s/^[^!]*!//
12798:repl
12799t repl
12800s/'"$ac_delim"'$//
12801t delim
12802:nl
12803h
d0ac1c44 12804s/\(.\{148\}\)..*/\1/
81ecdfbb
RW
12805t more1
12806s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12807p
12808n
12809b repl
12810:more1
12811s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12812p
12813g
12814s/.\{148\}//
12815t nl
12816:delim
12817h
d0ac1c44 12818s/\(.\{148\}\)..*/\1/
81ecdfbb
RW
12819t more2
12820s/["\\]/\\&/g; s/^/"/; s/$/"/
12821p
12822b
12823:more2
12824s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12825p
12826g
12827s/.\{148\}//
12828t delim
12829' <conf$$subs.awk | sed '
12830/^[^""]/{
12831 N
12832 s/\n//
12833}
12834' >>$CONFIG_STATUS || ac_write_fail=1
12835rm -f conf$$subs.awk
12836cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12837_ACAWK
d0ac1c44 12838cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
81ecdfbb
RW
12839 for (key in S) S_is_set[key] = 1
12840 FS = "\a"
b7026657 12841
81ecdfbb
RW
12842}
12843{
12844 line = $ 0
12845 nfields = split(line, field, "@")
12846 substed = 0
12847 len = length(field[1])
12848 for (i = 2; i < nfields; i++) {
12849 key = field[i]
12850 keylen = length(key)
12851 if (S_is_set[key]) {
12852 value = S[key]
12853 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12854 len += length(value) + length(field[++i])
12855 substed = 1
12856 } else
12857 len += 1 + keylen
12858 }
12859
12860 print line
12861}
b7026657 12862
81ecdfbb
RW
12863_ACAWK
12864_ACEOF
12865cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12866if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12867 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
b7026657 12868else
81ecdfbb 12869 cat
d0ac1c44
SM
12870fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12871 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
81ecdfbb 12872_ACEOF
c906108c 12873
d0ac1c44
SM
12874# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12875# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
81ecdfbb
RW
12876# trailing colons and then remove the whole line if VPATH becomes empty
12877# (actually we leave an empty line to preserve line numbers).
12878if test "x$srcdir" = x.; then
d0ac1c44
SM
12879 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
12880h
12881s///
12882s/^/:/
12883s/[ ]*$/:/
12884s/:\$(srcdir):/:/g
12885s/:\${srcdir}:/:/g
12886s/:@srcdir@:/:/g
12887s/^:*//
81ecdfbb 12888s/:*$//
d0ac1c44
SM
12889x
12890s/\(=[ ]*\).*/\1/
12891G
12892s/\n//
81ecdfbb
RW
12893s/^[^=]*=[ ]*$//
12894}'
12895fi
c906108c 12896
81ecdfbb
RW
12897cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12898fi # test -n "$CONFIG_FILES"
c906108c 12899
81ecdfbb
RW
12900# Set up the scripts for CONFIG_HEADERS section.
12901# No need to generate them if there are no CONFIG_HEADERS.
12902# This happens for instance with `./config.status Makefile'.
12903if test -n "$CONFIG_HEADERS"; then
d0ac1c44 12904cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
81ecdfbb
RW
12905BEGIN {
12906_ACEOF
b7026657 12907
81ecdfbb
RW
12908# Transform confdefs.h into an awk script `defines.awk', embedded as
12909# here-document in config.status, that substitutes the proper values into
12910# config.h.in to produce config.h.
c906108c 12911
81ecdfbb
RW
12912# Create a delimiter string that does not exist in confdefs.h, to ease
12913# handling of long lines.
12914ac_delim='%!_!# '
12915for ac_last_try in false false :; do
d0ac1c44
SM
12916 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12917 if test -z "$ac_tt"; then
81ecdfbb
RW
12918 break
12919 elif $ac_last_try; then
d0ac1c44 12920 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
b7026657 12921 else
81ecdfbb 12922 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
b7026657 12923 fi
b7026657 12924done
81ecdfbb
RW
12925
12926# For the awk script, D is an array of macro values keyed by name,
12927# likewise P contains macro parameters if any. Preserve backslash
12928# newline sequences.
12929
12930ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12931sed -n '
12932s/.\{148\}/&'"$ac_delim"'/g
12933t rset
12934:rset
12935s/^[ ]*#[ ]*define[ ][ ]*/ /
12936t def
12937d
12938:def
12939s/\\$//
12940t bsnl
12941s/["\\]/\\&/g
12942s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12943D["\1"]=" \3"/p
12944s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12945d
12946:bsnl
12947s/["\\]/\\&/g
12948s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12949D["\1"]=" \3\\\\\\n"\\/p
12950t cont
12951s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12952t cont
12953d
12954:cont
12955n
12956s/.\{148\}/&'"$ac_delim"'/g
12957t clear
12958:clear
12959s/\\$//
12960t bsnlc
12961s/["\\]/\\&/g; s/^/"/; s/$/"/p
12962d
12963:bsnlc
12964s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12965b cont
12966' <confdefs.h | sed '
12967s/'"$ac_delim"'/"\\\
12968"/g' >>$CONFIG_STATUS || ac_write_fail=1
12969
12970cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12971 for (key in D) D_is_set[key] = 1
12972 FS = "\a"
12973}
12974/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12975 line = \$ 0
12976 split(line, arg, " ")
12977 if (arg[1] == "#") {
12978 defundef = arg[2]
12979 mac1 = arg[3]
12980 } else {
12981 defundef = substr(arg[1], 2)
12982 mac1 = arg[2]
12983 }
12984 split(mac1, mac2, "(") #)
12985 macro = mac2[1]
12986 prefix = substr(line, 1, index(line, defundef) - 1)
12987 if (D_is_set[macro]) {
12988 # Preserve the white space surrounding the "#".
12989 print prefix "define", macro P[macro] D[macro]
12990 next
12991 } else {
12992 # Replace #undef with comments. This is necessary, for example,
12993 # in the case of _POSIX_SOURCE, which is predefined and required
12994 # on some systems where configure will not decide to define it.
12995 if (defundef == "undef") {
12996 print "/*", prefix defundef, macro, "*/"
12997 next
12998 }
12999 }
13000}
13001{ print }
13002_ACAWK
b7026657 13003_ACEOF
81ecdfbb 13004cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
d0ac1c44 13005 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
81ecdfbb 13006fi # test -n "$CONFIG_HEADERS"
b7026657 13007
c906108c 13008
99d8e879 13009eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
81ecdfbb
RW
13010shift
13011for ac_tag
13012do
13013 case $ac_tag in
13014 :[FHLC]) ac_mode=$ac_tag; continue;;
13015 esac
13016 case $ac_mode$ac_tag in
13017 :[FHL]*:*);;
d0ac1c44 13018 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
81ecdfbb
RW
13019 :[FH]-) ac_tag=-:-;;
13020 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
c906108c 13021 esac
81ecdfbb
RW
13022 ac_save_IFS=$IFS
13023 IFS=:
13024 set x $ac_tag
13025 IFS=$ac_save_IFS
13026 shift
13027 ac_file=$1
13028 shift
c906108c 13029
81ecdfbb
RW
13030 case $ac_mode in
13031 :L) ac_source=$1;;
13032 :[FH])
13033 ac_file_inputs=
13034 for ac_f
13035 do
13036 case $ac_f in
d0ac1c44 13037 -) ac_f="$ac_tmp/stdin";;
81ecdfbb
RW
13038 *) # Look for the file first in the build tree, then in the source tree
13039 # (if the path is not absolute). The absolute path cannot be DOS-style,
13040 # because $ac_f cannot contain `:'.
13041 test -f "$ac_f" ||
13042 case $ac_f in
13043 [\\/$]*) false;;
13044 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13045 esac ||
d0ac1c44 13046 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
b7026657 13047 esac
81ecdfbb
RW
13048 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13049 as_fn_append ac_file_inputs " '$ac_f'"
13050 done
b7026657 13051
81ecdfbb
RW
13052 # Let's still pretend it is `configure' which instantiates (i.e., don't
13053 # use $as_me), people would be surprised to read:
13054 # /* config.h. Generated by config.status. */
13055 configure_input='Generated from '`
13056 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13057 `' by configure.'
13058 if test x"$ac_file" != x-; then
13059 configure_input="$ac_file. $configure_input"
13060 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13061$as_echo "$as_me: creating $ac_file" >&6;}
13062 fi
13063 # Neutralize special characters interpreted by sed in replacement strings.
13064 case $configure_input in #(
13065 *\&* | *\|* | *\\* )
13066 ac_sed_conf_input=`$as_echo "$configure_input" |
13067 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13068 *) ac_sed_conf_input=$configure_input;;
13069 esac
b7026657 13070
81ecdfbb 13071 case $ac_tag in
d0ac1c44
SM
13072 *:-:* | *:-) cat >"$ac_tmp/stdin" \
13073 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
81ecdfbb
RW
13074 esac
13075 ;;
13076 esac
b7026657 13077
81ecdfbb 13078 ac_dir=`$as_dirname -- "$ac_file" ||
b7026657
AC
13079$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13080 X"$ac_file" : 'X\(//\)[^/]' \| \
13081 X"$ac_file" : 'X\(//\)$' \| \
81ecdfbb
RW
13082 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13083$as_echo X"$ac_file" |
13084 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13085 s//\1/
13086 q
13087 }
13088 /^X\(\/\/\)[^/].*/{
13089 s//\1/
13090 q
13091 }
13092 /^X\(\/\/\)$/{
13093 s//\1/
13094 q
13095 }
13096 /^X\(\/\).*/{
13097 s//\1/
13098 q
13099 }
13100 s/.*/./; q'`
13101 as_dir="$ac_dir"; as_fn_mkdir_p
b7026657
AC
13102 ac_builddir=.
13103
81ecdfbb
RW
13104case "$ac_dir" in
13105.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13106*)
13107 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13108 # A ".." for each directory in $ac_dir_suffix.
13109 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13110 case $ac_top_builddir_sub in
13111 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13112 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13113 esac ;;
13114esac
13115ac_abs_top_builddir=$ac_pwd
13116ac_abs_builddir=$ac_pwd$ac_dir_suffix
13117# for backward compatibility:
13118ac_top_builddir=$ac_top_build_prefix
b7026657
AC
13119
13120case $srcdir in
81ecdfbb 13121 .) # We are building in place.
b7026657 13122 ac_srcdir=.
81ecdfbb
RW
13123 ac_top_srcdir=$ac_top_builddir_sub
13124 ac_abs_top_srcdir=$ac_pwd ;;
13125 [\\/]* | ?:[\\/]* ) # Absolute name.
b7026657 13126 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
13127 ac_top_srcdir=$srcdir
13128 ac_abs_top_srcdir=$srcdir ;;
13129 *) # Relative name.
13130 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13131 ac_top_srcdir=$ac_top_build_prefix$srcdir
13132 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
b7026657 13133esac
81ecdfbb 13134ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
b7026657 13135
c906108c 13136
81ecdfbb
RW
13137 case $ac_mode in
13138 :F)
13139 #
13140 # CONFIG_FILE
13141 #
b7026657 13142
81ecdfbb
RW
13143 case $INSTALL in
13144 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13145 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
c906108c 13146 esac
81ecdfbb 13147_ACEOF
c906108c 13148
81ecdfbb
RW
13149cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13150# If the template does not know about datarootdir, expand it.
13151# FIXME: This hack should be removed a few years after 2.60.
13152ac_datarootdir_hack=; ac_datarootdir_seen=
13153ac_sed_dataroot='
13154/datarootdir/ {
13155 p
13156 q
13157}
13158/@datadir@/p
13159/@docdir@/p
13160/@infodir@/p
13161/@localedir@/p
13162/@mandir@/p'
13163case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13164*datarootdir*) ac_datarootdir_seen=yes;;
13165*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13166 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13167$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13168_ACEOF
13169cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13170 ac_datarootdir_hack='
13171 s&@datadir@&$datadir&g
13172 s&@docdir@&$docdir&g
13173 s&@infodir@&$infodir&g
13174 s&@localedir@&$localedir&g
13175 s&@mandir@&$mandir&g
13176 s&\\\${datarootdir}&$datarootdir&g' ;;
13177esac
b7026657 13178_ACEOF
b7026657 13179
81ecdfbb
RW
13180# Neutralize VPATH when `$srcdir' = `.'.
13181# Shell code in configure.ac might set extrasub.
13182# FIXME: do we really want to maintain this feature?
13183cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13184ac_sed_extra="$ac_vpsub
13185$extrasub
13186_ACEOF
13187cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13188:t
13189/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13190s|@configure_input@|$ac_sed_conf_input|;t t
13191s&@top_builddir@&$ac_top_builddir_sub&;t t
13192s&@top_build_prefix@&$ac_top_build_prefix&;t t
13193s&@srcdir@&$ac_srcdir&;t t
13194s&@abs_srcdir@&$ac_abs_srcdir&;t t
13195s&@top_srcdir@&$ac_top_srcdir&;t t
13196s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13197s&@builddir@&$ac_builddir&;t t
13198s&@abs_builddir@&$ac_abs_builddir&;t t
13199s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13200s&@INSTALL@&$ac_INSTALL&;t t
13201$ac_datarootdir_hack
13202"
d0ac1c44
SM
13203eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13204 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
81ecdfbb
RW
13205
13206test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
d0ac1c44
SM
13207 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13208 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
13209 "$ac_tmp/out"`; test -z "$ac_out"; } &&
81ecdfbb 13210 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
d0ac1c44 13211which seems to be undefined. Please make sure it is defined" >&5
81ecdfbb 13212$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
d0ac1c44 13213which seems to be undefined. Please make sure it is defined" >&2;}
81ecdfbb 13214
d0ac1c44 13215 rm -f "$ac_tmp/stdin"
81ecdfbb 13216 case $ac_file in
d0ac1c44
SM
13217 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13218 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
81ecdfbb 13219 esac \
d0ac1c44 13220 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
81ecdfbb
RW
13221 ;;
13222 :H)
13223 #
13224 # CONFIG_HEADER
13225 #
13226 if test x"$ac_file" != x-; then
13227 {
13228 $as_echo "/* $configure_input */" \
d0ac1c44
SM
13229 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13230 } >"$ac_tmp/config.h" \
13231 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13232 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
81ecdfbb
RW
13233 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13234$as_echo "$as_me: $ac_file is unchanged" >&6;}
13235 else
13236 rm -f "$ac_file"
d0ac1c44
SM
13237 mv "$ac_tmp/config.h" "$ac_file" \
13238 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
81ecdfbb 13239 fi
b7026657 13240 else
81ecdfbb 13241 $as_echo "/* $configure_input */" \
d0ac1c44
SM
13242 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13243 || as_fn_error $? "could not create -" "$LINENO" 5
81ecdfbb
RW
13244 fi
13245 ;;
b7026657 13246
81ecdfbb
RW
13247 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13248$as_echo "$as_me: executing $ac_file commands" >&6;}
13249 ;;
13250 esac
b7026657
AC
13251
13252
81ecdfbb 13253 case $ac_file$ac_mode in
db2e4d67 13254 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
6bb11ab3
L
13255 "libtool":C)
13256
13257 # See if we are running on zsh, and set the options which allow our
13258 # commands through without removal of \ escapes.
13259 if test -n "${ZSH_VERSION+set}" ; then
13260 setopt NO_GLOB_SUBST
13261 fi
13262
13263 cfgfile="${ofile}T"
13264 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13265 $RM "$cfgfile"
13266
13267 cat <<_LT_EOF >> "$cfgfile"
13268#! $SHELL
13269
13270# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13271# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
13272# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13273# NOTE: Changes made to this file will be lost: look at ltmain.sh.
13274#
13275# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13276# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
13277# Written by Gordon Matzigkeit, 1996
13278#
13279# This file is part of GNU Libtool.
13280#
13281# GNU Libtool is free software; you can redistribute it and/or
13282# modify it under the terms of the GNU General Public License as
13283# published by the Free Software Foundation; either version 2 of
13284# the License, or (at your option) any later version.
13285#
13286# As a special exception to the GNU General Public License,
13287# if you distribute this file as part of a program or library that
13288# is built using GNU Libtool, you may include this file under the
13289# same distribution terms that you use for the rest of that program.
13290#
13291# GNU Libtool is distributed in the hope that it will be useful,
13292# but WITHOUT ANY WARRANTY; without even the implied warranty of
13293# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13294# GNU General Public License for more details.
13295#
13296# You should have received a copy of the GNU General Public License
13297# along with GNU Libtool; see the file COPYING. If not, a copy
13298# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13299# obtained by writing to the Free Software Foundation, Inc.,
13300# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13301
13302
13303# The names of the tagged configurations supported by this script.
13304available_tags=""
13305
13306# ### BEGIN LIBTOOL CONFIG
13307
13308# Which release of libtool.m4 was used?
13309macro_version=$macro_version
13310macro_revision=$macro_revision
13311
13312# Whether or not to build shared libraries.
13313build_libtool_libs=$enable_shared
13314
13315# Whether or not to build static libraries.
13316build_old_libs=$enable_static
13317
13318# What type of objects to build.
13319pic_mode=$pic_mode
13320
13321# Whether or not to optimize for fast installation.
13322fast_install=$enable_fast_install
13323
13324# Shell to use when invoking shell scripts.
13325SHELL=$lt_SHELL
13326
13327# An echo program that protects backslashes.
13328ECHO=$lt_ECHO
13329
13330# The host system.
13331host_alias=$host_alias
13332host=$host
13333host_os=$host_os
13334
13335# The build system.
13336build_alias=$build_alias
13337build=$build
13338build_os=$build_os
13339
13340# A sed program that does not truncate output.
13341SED=$lt_SED
13342
13343# Sed that helps us avoid accidentally triggering echo(1) options like -n.
13344Xsed="\$SED -e 1s/^X//"
13345
13346# A grep program that handles long lines.
13347GREP=$lt_GREP
13348
13349# An ERE matcher.
13350EGREP=$lt_EGREP
13351
13352# A literal string matcher.
13353FGREP=$lt_FGREP
13354
13355# A BSD- or MS-compatible name lister.
13356NM=$lt_NM
13357
13358# Whether we need soft or hard links.
13359LN_S=$lt_LN_S
13360
13361# What is the maximum length of a command?
13362max_cmd_len=$max_cmd_len
13363
13364# Object file suffix (normally "o").
13365objext=$ac_objext
13366
13367# Executable file suffix (normally "").
13368exeext=$exeext
13369
13370# whether the shell understands "unset".
13371lt_unset=$lt_unset
13372
13373# turn spaces into newlines.
13374SP2NL=$lt_lt_SP2NL
13375
13376# turn newlines into spaces.
13377NL2SP=$lt_lt_NL2SP
13378
13379# An object symbol dumper.
13380OBJDUMP=$lt_OBJDUMP
13381
13382# Method to check whether dependent libraries are shared objects.
13383deplibs_check_method=$lt_deplibs_check_method
13384
13385# Command to use when deplibs_check_method == "file_magic".
13386file_magic_cmd=$lt_file_magic_cmd
13387
13388# The archiver.
13389AR=$lt_AR
13390AR_FLAGS=$lt_AR_FLAGS
13391
13392# A symbol stripping program.
13393STRIP=$lt_STRIP
13394
13395# Commands used to install an old-style archive.
13396RANLIB=$lt_RANLIB
13397old_postinstall_cmds=$lt_old_postinstall_cmds
13398old_postuninstall_cmds=$lt_old_postuninstall_cmds
13399
13400# Whether to use a lock for old archive extraction.
13401lock_old_archive_extraction=$lock_old_archive_extraction
13402
13403# A C compiler.
13404LTCC=$lt_CC
13405
13406# LTCC compiler flags.
13407LTCFLAGS=$lt_CFLAGS
13408
13409# Take the output of nm and produce a listing of raw symbols and C names.
13410global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13411
13412# Transform the output of nm in a proper C declaration.
13413global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13414
13415# Transform the output of nm in a C name address pair.
13416global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13417
13418# Transform the output of nm in a C name address pair when lib prefix is needed.
13419global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13420
13421# The name of the directory that contains temporary libtool files.
13422objdir=$objdir
13423
13424# Used to examine libraries when file_magic_cmd begins with "file".
13425MAGIC_CMD=$MAGIC_CMD
13426
13427# Must we lock files when doing compilation?
13428need_locks=$lt_need_locks
13429
13430# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13431DSYMUTIL=$lt_DSYMUTIL
13432
13433# Tool to change global to local symbols on Mac OS X.
13434NMEDIT=$lt_NMEDIT
13435
13436# Tool to manipulate fat objects and archives on Mac OS X.
13437LIPO=$lt_LIPO
13438
13439# ldd/readelf like tool for Mach-O binaries on Mac OS X.
13440OTOOL=$lt_OTOOL
13441
13442# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13443OTOOL64=$lt_OTOOL64
13444
13445# Old archive suffix (normally "a").
13446libext=$libext
13447
13448# Shared library suffix (normally ".so").
13449shrext_cmds=$lt_shrext_cmds
13450
13451# The commands to extract the exported symbol list from a shared archive.
13452extract_expsyms_cmds=$lt_extract_expsyms_cmds
13453
13454# Variables whose values should be saved in libtool wrapper scripts and
13455# restored at link time.
13456variables_saved_for_relink=$lt_variables_saved_for_relink
13457
13458# Do we need the "lib" prefix for modules?
13459need_lib_prefix=$need_lib_prefix
13460
13461# Do we need a version for libraries?
13462need_version=$need_version
13463
13464# Library versioning type.
13465version_type=$version_type
13466
13467# Shared library runtime path variable.
13468runpath_var=$runpath_var
13469
13470# Shared library path variable.
13471shlibpath_var=$shlibpath_var
13472
13473# Is shlibpath searched before the hard-coded library search path?
13474shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13475
13476# Format of library name prefix.
13477libname_spec=$lt_libname_spec
13478
13479# List of archive names. First name is the real one, the rest are links.
13480# The last name is the one that the linker finds with -lNAME
13481library_names_spec=$lt_library_names_spec
13482
13483# The coded name of the library, if different from the real name.
13484soname_spec=$lt_soname_spec
13485
13486# Permission mode override for installation of shared libraries.
13487install_override_mode=$lt_install_override_mode
13488
13489# Command to use after installation of a shared archive.
13490postinstall_cmds=$lt_postinstall_cmds
13491
13492# Command to use after uninstallation of a shared archive.
13493postuninstall_cmds=$lt_postuninstall_cmds
13494
13495# Commands used to finish a libtool library installation in a directory.
13496finish_cmds=$lt_finish_cmds
13497
13498# As "finish_cmds", except a single script fragment to be evaled but
13499# not shown.
13500finish_eval=$lt_finish_eval
13501
13502# Whether we should hardcode library paths into libraries.
13503hardcode_into_libs=$hardcode_into_libs
13504
13505# Compile-time system search path for libraries.
13506sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13507
13508# Run-time system search path for libraries.
13509sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13510
13511# Whether dlopen is supported.
13512dlopen_support=$enable_dlopen
13513
13514# Whether dlopen of programs is supported.
13515dlopen_self=$enable_dlopen_self
13516
13517# Whether dlopen of statically linked programs is supported.
13518dlopen_self_static=$enable_dlopen_self_static
13519
13520# Commands to strip libraries.
13521old_striplib=$lt_old_striplib
13522striplib=$lt_striplib
13523
13524
13525# The linker used to build libraries.
13526LD=$lt_LD
13527
13528# How to create reloadable object files.
13529reload_flag=$lt_reload_flag
13530reload_cmds=$lt_reload_cmds
13531
13532# Commands used to build an old-style archive.
13533old_archive_cmds=$lt_old_archive_cmds
13534
13535# A language specific compiler.
13536CC=$lt_compiler
13537
13538# Is the compiler the GNU compiler?
13539with_gcc=$GCC
13540
13541# Compiler flag to turn off builtin functions.
13542no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13543
13544# How to pass a linker flag through the compiler.
13545wl=$lt_lt_prog_compiler_wl
13546
13547# Additional compiler flags for building library objects.
13548pic_flag=$lt_lt_prog_compiler_pic
13549
13550# Compiler flag to prevent dynamic linking.
13551link_static_flag=$lt_lt_prog_compiler_static
13552
13553# Does compiler simultaneously support -c and -o options?
13554compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13555
13556# Whether or not to add -lc for building shared libraries.
13557build_libtool_need_lc=$archive_cmds_need_lc
13558
13559# Whether or not to disallow shared libs when runtime libs are static.
13560allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13561
13562# Compiler flag to allow reflexive dlopens.
13563export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13564
13565# Compiler flag to generate shared objects directly from archives.
13566whole_archive_flag_spec=$lt_whole_archive_flag_spec
13567
13568# Whether the compiler copes with passing no objects directly.
13569compiler_needs_object=$lt_compiler_needs_object
13570
13571# Create an old-style archive from a shared archive.
13572old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13573
13574# Create a temporary old-style archive to link instead of a shared archive.
13575old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13576
13577# Commands used to build a shared archive.
13578archive_cmds=$lt_archive_cmds
13579archive_expsym_cmds=$lt_archive_expsym_cmds
13580
13581# Commands used to build a loadable module if different from building
13582# a shared archive.
13583module_cmds=$lt_module_cmds
13584module_expsym_cmds=$lt_module_expsym_cmds
13585
13586# Whether we are building with GNU ld or not.
13587with_gnu_ld=$lt_with_gnu_ld
13588
13589# Flag that allows shared libraries with undefined symbols to be built.
13590allow_undefined_flag=$lt_allow_undefined_flag
13591
13592# Flag that enforces no undefined symbols.
13593no_undefined_flag=$lt_no_undefined_flag
13594
13595# Flag to hardcode \$libdir into a binary during linking.
13596# This must work even if \$libdir does not exist
13597hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13598
13599# If ld is used when linking, flag to hardcode \$libdir into a binary
13600# during linking. This must work even if \$libdir does not exist.
13601hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13602
13603# Whether we need a single "-rpath" flag with a separated argument.
13604hardcode_libdir_separator=$lt_hardcode_libdir_separator
13605
13606# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13607# DIR into the resulting binary.
13608hardcode_direct=$hardcode_direct
13609
13610# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13611# DIR into the resulting binary and the resulting library dependency is
13612# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13613# library is relocated.
13614hardcode_direct_absolute=$hardcode_direct_absolute
13615
13616# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13617# into the resulting binary.
13618hardcode_minus_L=$hardcode_minus_L
13619
13620# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13621# into the resulting binary.
13622hardcode_shlibpath_var=$hardcode_shlibpath_var
13623
13624# Set to "yes" if building a shared library automatically hardcodes DIR
13625# into the library and all subsequent libraries and executables linked
13626# against it.
13627hardcode_automatic=$hardcode_automatic
13628
13629# Set to yes if linker adds runtime paths of dependent libraries
13630# to runtime path list.
13631inherit_rpath=$inherit_rpath
13632
13633# Whether libtool must link a program against all its dependency libraries.
13634link_all_deplibs=$link_all_deplibs
13635
13636# Fix the shell variable \$srcfile for the compiler.
13637fix_srcfile_path=$lt_fix_srcfile_path
13638
13639# Set to "yes" if exported symbols are required.
13640always_export_symbols=$always_export_symbols
13641
13642# The commands to list exported symbols.
13643export_symbols_cmds=$lt_export_symbols_cmds
13644
13645# Symbols that should not be listed in the preloaded symbols.
13646exclude_expsyms=$lt_exclude_expsyms
13647
13648# Symbols that must always be exported.
13649include_expsyms=$lt_include_expsyms
13650
13651# Commands necessary for linking programs (against libraries) with templates.
13652prelink_cmds=$lt_prelink_cmds
13653
13654# Specify filename containing input files.
13655file_list_spec=$lt_file_list_spec
13656
13657# How to hardcode a shared library path into an executable.
13658hardcode_action=$hardcode_action
13659
13660# ### END LIBTOOL CONFIG
13661
13662_LT_EOF
13663
13664 case $host_os in
13665 aix3*)
13666 cat <<\_LT_EOF >> "$cfgfile"
13667# AIX sometimes has problems with the GCC collect2 program. For some
13668# reason, if we set the COLLECT_NAMES environment variable, the problems
13669# vanish in a puff of smoke.
13670if test "X${COLLECT_NAMES+set}" != Xset; then
13671 COLLECT_NAMES=
13672 export COLLECT_NAMES
13673fi
13674_LT_EOF
13675 ;;
13676 esac
13677
13678
13679ltmain="$ac_aux_dir/ltmain.sh"
13680
13681
13682 # We use sed instead of cat because bash on DJGPP gets confused if
13683 # if finds mixed CR/LF and LF-only lines. Since sed operates in
13684 # text mode, it properly converts lines to CR/LF. This bash problem
13685 # is reportedly fixed, but why not run on old versions too?
13686 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
13687 || (rm -f "$cfgfile"; exit 1)
13688
13689 case $xsi_shell in
13690 yes)
13691 cat << \_LT_EOF >> "$cfgfile"
13692
13693# func_dirname file append nondir_replacement
13694# Compute the dirname of FILE. If nonempty, add APPEND to the result,
13695# otherwise set result to NONDIR_REPLACEMENT.
13696func_dirname ()
13697{
13698 case ${1} in
13699 */*) func_dirname_result="${1%/*}${2}" ;;
13700 * ) func_dirname_result="${3}" ;;
13701 esac
13702}
13703
13704# func_basename file
13705func_basename ()
13706{
13707 func_basename_result="${1##*/}"
13708}
13709
13710# func_dirname_and_basename file append nondir_replacement
13711# perform func_basename and func_dirname in a single function
13712# call:
13713# dirname: Compute the dirname of FILE. If nonempty,
13714# add APPEND to the result, otherwise set result
13715# to NONDIR_REPLACEMENT.
13716# value returned in "$func_dirname_result"
13717# basename: Compute filename of FILE.
13718# value retuned in "$func_basename_result"
13719# Implementation must be kept synchronized with func_dirname
13720# and func_basename. For efficiency, we do not delegate to
13721# those functions but instead duplicate the functionality here.
13722func_dirname_and_basename ()
13723{
13724 case ${1} in
13725 */*) func_dirname_result="${1%/*}${2}" ;;
13726 * ) func_dirname_result="${3}" ;;
13727 esac
13728 func_basename_result="${1##*/}"
13729}
13730
13731# func_stripname prefix suffix name
13732# strip PREFIX and SUFFIX off of NAME.
13733# PREFIX and SUFFIX must not contain globbing or regex special
13734# characters, hashes, percent signs, but SUFFIX may contain a leading
13735# dot (in which case that matches only a dot).
13736func_stripname ()
13737{
13738 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
13739 # positional parameters, so assign one to ordinary parameter first.
13740 func_stripname_result=${3}
13741 func_stripname_result=${func_stripname_result#"${1}"}
13742 func_stripname_result=${func_stripname_result%"${2}"}
13743}
13744
13745# func_opt_split
13746func_opt_split ()
13747{
13748 func_opt_split_opt=${1%%=*}
13749 func_opt_split_arg=${1#*=}
13750}
13751
13752# func_lo2o object
13753func_lo2o ()
13754{
13755 case ${1} in
13756 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
13757 *) func_lo2o_result=${1} ;;
13758 esac
13759}
13760
13761# func_xform libobj-or-source
13762func_xform ()
13763{
13764 func_xform_result=${1%.*}.lo
13765}
13766
13767# func_arith arithmetic-term...
13768func_arith ()
13769{
13770 func_arith_result=$(( $* ))
13771}
13772
13773# func_len string
13774# STRING may not start with a hyphen.
13775func_len ()
13776{
13777 func_len_result=${#1}
13778}
13779
13780_LT_EOF
13781 ;;
13782 *) # Bourne compatible functions.
13783 cat << \_LT_EOF >> "$cfgfile"
13784
13785# func_dirname file append nondir_replacement
13786# Compute the dirname of FILE. If nonempty, add APPEND to the result,
13787# otherwise set result to NONDIR_REPLACEMENT.
13788func_dirname ()
13789{
13790 # Extract subdirectory from the argument.
13791 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
13792 if test "X$func_dirname_result" = "X${1}"; then
13793 func_dirname_result="${3}"
13794 else
13795 func_dirname_result="$func_dirname_result${2}"
13796 fi
13797}
13798
13799# func_basename file
13800func_basename ()
13801{
13802 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
13803}
13804
13805
13806# func_stripname prefix suffix name
13807# strip PREFIX and SUFFIX off of NAME.
13808# PREFIX and SUFFIX must not contain globbing or regex special
13809# characters, hashes, percent signs, but SUFFIX may contain a leading
13810# dot (in which case that matches only a dot).
13811# func_strip_suffix prefix name
13812func_stripname ()
13813{
13814 case ${2} in
13815 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
13816 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
13817 esac
13818}
13819
13820# sed scripts:
13821my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
13822my_sed_long_arg='1s/^-[^=]*=//'
13823
13824# func_opt_split
13825func_opt_split ()
13826{
13827 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
13828 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
13829}
13830
13831# func_lo2o object
13832func_lo2o ()
13833{
13834 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
13835}
13836
13837# func_xform libobj-or-source
13838func_xform ()
13839{
13840 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
13841}
13842
13843# func_arith arithmetic-term...
13844func_arith ()
13845{
13846 func_arith_result=`expr "$@"`
13847}
13848
13849# func_len string
13850# STRING may not start with a hyphen.
13851func_len ()
13852{
13853 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
13854}
13855
13856_LT_EOF
13857esac
13858
13859case $lt_shell_append in
13860 yes)
13861 cat << \_LT_EOF >> "$cfgfile"
13862
13863# func_append var value
13864# Append VALUE to the end of shell variable VAR.
13865func_append ()
13866{
13867 eval "$1+=\$2"
13868}
13869_LT_EOF
13870 ;;
13871 *)
13872 cat << \_LT_EOF >> "$cfgfile"
13873
13874# func_append var value
13875# Append VALUE to the end of shell variable VAR.
13876func_append ()
13877{
13878 eval "$1=\$$1\$2"
13879}
13880
13881_LT_EOF
13882 ;;
13883 esac
13884
13885
13886 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
13887 || (rm -f "$cfgfile"; exit 1)
13888
13889 mv -f "$cfgfile" "$ofile" ||
13890 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13891 chmod +x "$ofile"
13892
13893 ;;
81ecdfbb 13894 "Makefile":C) echo "Merging Makefile.sim+Make-common.sim into Makefile ..."
38f48d72
AC
13895 rm -f Makesim1.tmp Makesim2.tmp Makefile
13896 sed -n -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ p' <Make-common.sim >Makesim1.tmp
13897 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >Makesim2.tmp
13898 sed -e '/^## COMMON_PRE_/ r Makesim1.tmp' \
c906108c
SS
13899 -e '/^## COMMON_POST_/ r Makesim2.tmp' \
13900 <Makefile.sim >Makefile
38f48d72 13901 rm -f Makefile.sim Make-common.sim Makesim1.tmp Makesim2.tmp
b7026657 13902 ;;
81ecdfbb
RW
13903 "stamp-h":C) echo > stamp-h ;;
13904
b7026657 13905 esac
81ecdfbb 13906done # for ac_tag
c906108c 13907
b7026657 13908
81ecdfbb 13909as_fn_exit 0
b7026657 13910_ACEOF
b7026657
AC
13911ac_clean_files=$ac_clean_files_save
13912
81ecdfbb 13913test $ac_write_fail = 0 ||
d0ac1c44 13914 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
81ecdfbb 13915
b7026657
AC
13916
13917# configure is writing to config.log, and then calls config.status.
13918# config.status does its own redirection, appending to config.log.
13919# Unfortunately, on DOS this fails, as config.log is still kept open
13920# by configure, so config.status won't be able to write to it; its
13921# output is simply discarded. So we exec the FD to /dev/null,
13922# effectively closing config.log, so it can be properly (re)opened and
13923# appended to by config.status. When coming back to configure, we
13924# need to make the FD available again.
13925if test "$no_create" != yes; then
13926 ac_cs_success=:
13927 ac_config_status_args=
13928 test "$silent" = yes &&
13929 ac_config_status_args="$ac_config_status_args --quiet"
13930 exec 5>/dev/null
13931 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13932 exec 5>>config.log
13933 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13934 # would make configure fail if this is the last instruction.
d0ac1c44 13935 $ac_cs_success || as_fn_exit 1
81ecdfbb
RW
13936fi
13937if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13938 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13939$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
b7026657 13940fi
c906108c
SS
13941
13942