gdbserver: constify the 'pid_to_exec_file' target op
[deliverable/binutils-gdb.git] / binutils / configure
CommitLineData
252b5132 1#! /bin/sh
252b5132 2# Guess values for system-dependent variables and create Makefiles.
573fe3fb 3# Generated by GNU Autoconf 2.69 for binutils 2.36.50.
d0ac1c44
SM
4#
5#
6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
81ecdfbb 7#
252b5132
RH
8#
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## -------------------- ##
42ecbf5e 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 :
42ecbf5e
DJ
18 emulate sh
19 NULLCMD=:
81ecdfbb 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
42ecbf5e
DJ
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
42ecbf5e 31fi
42ecbf5e 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 }
42ecbf5e
DJ
79fi
80
81
81ecdfbb
RW
82# IFS
83# We need space, tab and new line, in precisely that order. Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" "" $as_nl"
88
89# Find who we are. Look in the path if we contain no directory separator.
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
42ecbf5e
DJ
122PS1='$ '
123PS2='> '
124PS4='+ '
125
126# NLS nuisances.
81ecdfbb
RW
127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export LANGUAGE
131
132# CDPATH.
133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
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
3725885a
RW
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
42ecbf5e 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."
42ecbf5e 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."
42ecbf5e 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
42ecbf5e 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
42ecbf5e
DJ
429 as_expr=expr
430else
431 as_expr=false
432fi
433
81ecdfbb 434if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
42ecbf5e
DJ
435 as_basename=basename
436else
437 as_basename=false
438fi
439
81ecdfbb
RW
440if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_dirname=dirname
442else
443 as_dirname=false
444fi
42ecbf5e 445
81ecdfbb 446as_me=`$as_basename -- "$0" ||
42ecbf5e
DJ
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'`
42ecbf5e 464
42ecbf5e
DJ
465# Avoid depending upon Character Ranges.
466as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469as_cr_digits='0123456789'
470as_cr_alnum=$as_cr_Letters$as_cr_digits
471
42ecbf5e 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 |
42ecbf5e 482 sed '
81ecdfbb
RW
483 s/[$]LINENO.*/&-/
484 t lineno
485 b
486 :lineno
42ecbf5e 487 N
81ecdfbb
RW
488 :loop
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
42ecbf5e 490 t loop
81ecdfbb 491 s/-\n.*//
42ecbf5e 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; }
42ecbf5e 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
42ecbf5e
DJ
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"
42ecbf5e
DJ
504 # Exit status is that of the last command.
505 exit
506}
507
81ecdfbb
RW
508ECHO_C= ECHO_N= ECHO_T=
509case `echo -n x` in #(((((
510-n*)
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
513 xy) ECHO_C='\c';;
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
515 ECHO_T=' ';;
516 esac;;
517*)
518 ECHO_N='-n';;
42ecbf5e
DJ
519esac
520
81ecdfbb
RW
521rm -f conf$$ conf$$.exe conf$$.file
522if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
42ecbf5e 524else
81ecdfbb
RW
525 rm -f conf$$.dir
526 mkdir conf$$.dir 2>/dev/null
42ecbf5e 527fi
81ecdfbb
RW
528if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
42ecbf5e 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'
42ecbf5e 541 fi
42ecbf5e 542else
d0ac1c44 543 as_ln_s='cp -pR'
42ecbf5e 544fi
81ecdfbb
RW
545rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546rmdir conf$$.dir 2>/dev/null
42ecbf5e
DJ
547
548if mkdir -p . 2>/dev/null; then
81ecdfbb 549 as_mkdir_p='mkdir -p "$as_dir"'
42ecbf5e
DJ
550else
551 test -d ./-p && rmdir ./-p
552 as_mkdir_p=false
553fi
554
d0ac1c44
SM
555as_test_x='test -x'
556as_executable_p=as_fn_executable_p
42ecbf5e
DJ
557
558# Sed expression to map a string onto a valid CPP name.
559as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560
561# Sed expression to map a string onto a valid variable name.
562as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
d7040cdb
SE
564SHELL=${CONFIG_SHELL-/bin/sh}
565
d7040cdb 566
d0ac1c44
SM
567test -n "$DJDIR" || exec 7<&0 </dev/null
568exec 6>&1
81ecdfbb 569
42ecbf5e 570# Name of the host.
d0ac1c44 571# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
42ecbf5e
DJ
572# so uname gets run too.
573ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
252b5132 574
42ecbf5e
DJ
575#
576# Initializations.
577#
252b5132 578ac_default_prefix=/usr/local
81ecdfbb 579ac_clean_files=
42ecbf5e 580ac_config_libobj_dir=.
81ecdfbb 581LIBOBJS=
42ecbf5e
DJ
582cross_compiling=no
583subdirs=
584MFLAGS=
585MAKEFLAGS=
42ecbf5e
DJ
586
587# Identity of this package.
2e98a7bd
AM
588PACKAGE_NAME='binutils'
589PACKAGE_TARNAME='binutils'
573fe3fb
NC
590PACKAGE_VERSION='2.36.50'
591PACKAGE_STRING='binutils 2.36.50'
2e98a7bd
AM
592PACKAGE_BUGREPORT=''
593PACKAGE_URL=''
42ecbf5e
DJ
594
595ac_unique_file="ar.c"
596# Factoring default headers for most tests.
597ac_includes_default="\
598#include <stdio.h>
81ecdfbb 599#ifdef HAVE_SYS_TYPES_H
42ecbf5e
DJ
600# include <sys/types.h>
601#endif
81ecdfbb 602#ifdef HAVE_SYS_STAT_H
42ecbf5e
DJ
603# include <sys/stat.h>
604#endif
81ecdfbb 605#ifdef STDC_HEADERS
42ecbf5e
DJ
606# include <stdlib.h>
607# include <stddef.h>
608#else
81ecdfbb 609# ifdef HAVE_STDLIB_H
42ecbf5e
DJ
610# include <stdlib.h>
611# endif
612#endif
81ecdfbb
RW
613#ifdef HAVE_STRING_H
614# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
42ecbf5e
DJ
615# include <memory.h>
616# endif
617# include <string.h>
618#endif
81ecdfbb 619#ifdef HAVE_STRINGS_H
42ecbf5e
DJ
620# include <strings.h>
621#endif
81ecdfbb 622#ifdef HAVE_INTTYPES_H
42ecbf5e 623# include <inttypes.h>
42ecbf5e 624#endif
81ecdfbb
RW
625#ifdef HAVE_STDINT_H
626# include <stdint.h>
627#endif
628#ifdef HAVE_UNISTD_H
42ecbf5e
DJ
629# include <unistd.h>
630#endif"
631
34156b23 632ac_header_list=
81ecdfbb
RW
633ac_subst_vars='am__EXEEXT_FALSE
634am__EXEEXT_TRUE
635LTLIBOBJS
636LIBOBJS
637EMULATION_VECTOR
638EMULATION
6abcee90 639OBJDUMP_PRIVATE_OFILES
81ecdfbb
RW
640OBJDUMP_DEFS
641BUILD_INSTALL_MISC
642BUILD_MISC
643BUILD_DLLWRAP
644BUILD_WINDMC
645BUILD_WINDRES
646DLLTOOL_DEFS
647BUILD_DLLTOOL
648BUILD_SRCONV
81ecdfbb
RW
649LTLIBICONV
650LIBICONV
0ee42ecd
L
651zlibinc
652zlibdir
81ecdfbb
RW
653DEMANGLER_NAME
654EXEEXT_FOR_BUILD
655CC_FOR_BUILD
656HDEFINES
657GENINSRC_NEVER_FALSE
658GENINSRC_NEVER_TRUE
659MAINT
660MAINTAINER_MODE_FALSE
661MAINTAINER_MODE_TRUE
662MSGMERGE
663MSGFMT
664MKINSTALLDIRS
665CATOBJEXT
666GENCAT
667INSTOBJEXT
668DATADIRNAME
669CATALOGS
670POSUB
671GMSGFMT
672XGETTEXT
673INCINTL
674LIBINTL_DEP
675LIBINTL
676USE_NLS
677LEXLIB
678LEX_OUTPUT_ROOT
679LEX
680YFLAGS
681YACC
6757cf57 682WARN_WRITE_STRINGS
81ecdfbb 683NO_WERROR
c5da1932 684WARN_CFLAGS_FOR_BUILD
81ecdfbb 685WARN_CFLAGS
094e34f2
NA
686ENABLE_LIBCTF_FALSE
687ENABLE_LIBCTF_TRUE
f6720b1c
AM
688DEBUGINFOD_LIBS
689DEBUGINFOD_CFLAGS
690PKG_CONFIG_LIBDIR
691PKG_CONFIG_PATH
692PKG_CONFIG
c8693053 693LARGEFILE_CPPFLAGS
81ecdfbb
RW
694OTOOL64
695OTOOL
696LIPO
697NMEDIT
698DSYMUTIL
81ecdfbb
RW
699RANLIB
700AR
701OBJDUMP
702LN_S
703NM
704ac_ct_DUMPBIN
705DUMPBIN
706LD
707FGREP
708SED
709LIBTOOL
710EGREP
711GREP
712CPP
713am__fastdepCC_FALSE
714am__fastdepCC_TRUE
715CCDEPMODE
6eb7d830 716am__nodep
81ecdfbb
RW
717AMDEPBACKSLASH
718AMDEP_FALSE
719AMDEP_TRUE
720am__quote
721am__include
722DEPDIR
87b9f255
AM
723OBJEXT
724EXEEXT
725ac_ct_CC
726CPPFLAGS
727LDFLAGS
728CFLAGS
729CC
730AM_BACKSLASH
731AM_DEFAULT_VERBOSITY
732AM_DEFAULT_V
733AM_V
81ecdfbb
RW
734am__untar
735am__tar
736AMTAR
737am__leading_dot
738SET_MAKE
739AWK
740mkdir_p
741MKDIR_P
742INSTALL_STRIP_PROGRAM
743STRIP
744install_sh
745MAKEINFO
746AUTOHEADER
747AUTOMAKE
748AUTOCONF
749ACLOCAL
750VERSION
751PACKAGE
752CYGPATH_W
753am__isrc
754INSTALL_DATA
755INSTALL_SCRIPT
756INSTALL_PROGRAM
81ecdfbb
RW
757target_os
758target_vendor
759target_cpu
760target
761host_os
762host_vendor
763host_cpu
764host
765build_os
766build_vendor
767build_cpu
768build
769target_alias
770host_alias
771build_alias
772LIBS
773ECHO_T
774ECHO_N
775ECHO_C
776DEFS
777mandir
778localedir
779libdir
780psdir
781pdfdir
782dvidir
783htmldir
784infodir
785docdir
786oldincludedir
787includedir
788localstatedir
789sharedstatedir
790sysconfdir
791datadir
792datarootdir
793libexecdir
794sbindir
795bindir
796program_transform_name
797prefix
798exec_prefix
799PACKAGE_URL
800PACKAGE_BUGREPORT
801PACKAGE_STRING
802PACKAGE_VERSION
803PACKAGE_TARNAME
804PACKAGE_NAME
805PATH_SEPARATOR
806SHELL'
42ecbf5e 807ac_subst_files=''
81ecdfbb
RW
808ac_user_opts='
809enable_option_checking
d0ac1c44 810enable_silent_rules
87b9f255 811enable_dependency_tracking
81ecdfbb
RW
812enable_shared
813enable_static
814with_pic
815enable_fast_install
816with_gnu_ld
817enable_libtool_lock
b879806f
AM
818enable_plugins
819enable_largefile
81ecdfbb 820enable_targets
9cb80f72 821enable_deterministic_archives
7fac9594 822enable_default_strings_all
e6f6aa8d 823enable_f_for_ifunc_symbols
c46b7066 824enable_follow_debug_links
301a9420 825with_debuginfod
094e34f2 826enable_libctf
81ecdfbb
RW
827enable_werror
828enable_build_warnings
829enable_nls
830enable_maintainer_mode
0ee42ecd 831with_system_zlib
81ecdfbb
RW
832enable_rpath
833with_libiconv_prefix
9f1528a1 834with_libiconv_type
81ecdfbb
RW
835'
836 ac_precious_vars='build_alias
837host_alias
838target_alias
839CC
840CFLAGS
841LDFLAGS
842LIBS
843CPPFLAGS
844CPP
f6720b1c
AM
845PKG_CONFIG
846PKG_CONFIG_PATH
847PKG_CONFIG_LIBDIR
848DEBUGINFOD_CFLAGS
849DEBUGINFOD_LIBS
81ecdfbb
RW
850YACC
851YFLAGS'
852
252b5132
RH
853
854# Initialize some variables set by options.
42ecbf5e
DJ
855ac_init_help=
856ac_init_version=false
81ecdfbb
RW
857ac_unrecognized_opts=
858ac_unrecognized_sep=
252b5132
RH
859# The variables have the same names as the options, with
860# dashes changed to underlines.
42ecbf5e 861cache_file=/dev/null
252b5132 862exec_prefix=NONE
252b5132 863no_create=
252b5132
RH
864no_recursion=
865prefix=NONE
866program_prefix=NONE
867program_suffix=NONE
868program_transform_name=s,x,x,
869silent=
870site=
871srcdir=
252b5132
RH
872verbose=
873x_includes=NONE
874x_libraries=NONE
42ecbf5e
DJ
875
876# Installation directory options.
877# These are left unexpanded so users can "make install exec_prefix=/foo"
878# and all the variables that are supposed to be based on exec_prefix
879# by default will actually change.
880# Use braces instead of parens because sh, perl, etc. also accept them.
81ecdfbb 881# (The list follows the same order as the GNU Coding Standards.)
252b5132
RH
882bindir='${exec_prefix}/bin'
883sbindir='${exec_prefix}/sbin'
884libexecdir='${exec_prefix}/libexec'
81ecdfbb
RW
885datarootdir='${prefix}/share'
886datadir='${datarootdir}'
252b5132
RH
887sysconfdir='${prefix}/etc'
888sharedstatedir='${prefix}/com'
889localstatedir='${prefix}/var'
252b5132
RH
890includedir='${prefix}/include'
891oldincludedir='/usr/include'
2e98a7bd 892docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
81ecdfbb
RW
893infodir='${datarootdir}/info'
894htmldir='${docdir}'
895dvidir='${docdir}'
896pdfdir='${docdir}'
897psdir='${docdir}'
898libdir='${exec_prefix}/lib'
899localedir='${datarootdir}/locale'
900mandir='${datarootdir}/man'
252b5132 901
252b5132 902ac_prev=
81ecdfbb 903ac_dashdash=
252b5132
RH
904for ac_option
905do
252b5132
RH
906 # If the previous option needs an argument, assign it.
907 if test -n "$ac_prev"; then
81ecdfbb 908 eval $ac_prev=\$ac_option
252b5132
RH
909 ac_prev=
910 continue
911 fi
912
81ecdfbb 913 case $ac_option in
d0ac1c44
SM
914 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
915 *=) ac_optarg= ;;
916 *) ac_optarg=yes ;;
81ecdfbb 917 esac
252b5132
RH
918
919 # Accept the important Cygnus configure options, so we can diagnose typos.
920
81ecdfbb
RW
921 case $ac_dashdash$ac_option in
922 --)
923 ac_dashdash=yes ;;
252b5132
RH
924
925 -bindir | --bindir | --bindi | --bind | --bin | --bi)
926 ac_prev=bindir ;;
927 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
42ecbf5e 928 bindir=$ac_optarg ;;
252b5132
RH
929
930 -build | --build | --buil | --bui | --bu)
42ecbf5e 931 ac_prev=build_alias ;;
252b5132 932 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
42ecbf5e 933 build_alias=$ac_optarg ;;
252b5132
RH
934
935 -cache-file | --cache-file | --cache-fil | --cache-fi \
936 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
937 ac_prev=cache_file ;;
938 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
939 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
42ecbf5e
DJ
940 cache_file=$ac_optarg ;;
941
942 --config-cache | -C)
943 cache_file=config.cache ;;
252b5132 944
81ecdfbb 945 -datadir | --datadir | --datadi | --datad)
252b5132 946 ac_prev=datadir ;;
81ecdfbb 947 -datadir=* | --datadir=* | --datadi=* | --datad=*)
42ecbf5e 948 datadir=$ac_optarg ;;
252b5132 949
81ecdfbb
RW
950 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
951 | --dataroo | --dataro | --datar)
952 ac_prev=datarootdir ;;
953 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
954 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
955 datarootdir=$ac_optarg ;;
956
252b5132 957 -disable-* | --disable-*)
81ecdfbb 958 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
252b5132 959 # Reject names that are not valid shell variable names.
81ecdfbb 960 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 961 as_fn_error $? "invalid feature name: $ac_useropt"
81ecdfbb
RW
962 ac_useropt_orig=$ac_useropt
963 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
964 case $ac_user_opts in
965 *"
966"enable_$ac_useropt"
967"*) ;;
968 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
969 ac_unrecognized_sep=', ';;
970 esac
971 eval enable_$ac_useropt=no ;;
972
973 -docdir | --docdir | --docdi | --doc | --do)
974 ac_prev=docdir ;;
975 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
976 docdir=$ac_optarg ;;
977
978 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
979 ac_prev=dvidir ;;
980 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
981 dvidir=$ac_optarg ;;
252b5132
RH
982
983 -enable-* | --enable-*)
81ecdfbb 984 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
252b5132 985 # Reject names that are not valid shell variable names.
81ecdfbb 986 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 987 as_fn_error $? "invalid feature name: $ac_useropt"
81ecdfbb
RW
988 ac_useropt_orig=$ac_useropt
989 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
990 case $ac_user_opts in
991 *"
992"enable_$ac_useropt"
993"*) ;;
994 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
995 ac_unrecognized_sep=', ';;
252b5132 996 esac
81ecdfbb 997 eval enable_$ac_useropt=\$ac_optarg ;;
252b5132
RH
998
999 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1000 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1001 | --exec | --exe | --ex)
1002 ac_prev=exec_prefix ;;
1003 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1004 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1005 | --exec=* | --exe=* | --ex=*)
42ecbf5e 1006 exec_prefix=$ac_optarg ;;
252b5132
RH
1007
1008 -gas | --gas | --ga | --g)
1009 # Obsolete; use --with-gas.
1010 with_gas=yes ;;
1011
42ecbf5e
DJ
1012 -help | --help | --hel | --he | -h)
1013 ac_init_help=long ;;
1014 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1015 ac_init_help=recursive ;;
1016 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1017 ac_init_help=short ;;
252b5132
RH
1018
1019 -host | --host | --hos | --ho)
42ecbf5e 1020 ac_prev=host_alias ;;
252b5132 1021 -host=* | --host=* | --hos=* | --ho=*)
42ecbf5e 1022 host_alias=$ac_optarg ;;
252b5132 1023
81ecdfbb
RW
1024 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1025 ac_prev=htmldir ;;
1026 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1027 | --ht=*)
1028 htmldir=$ac_optarg ;;
1029
252b5132
RH
1030 -includedir | --includedir | --includedi | --included | --include \
1031 | --includ | --inclu | --incl | --inc)
1032 ac_prev=includedir ;;
1033 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1034 | --includ=* | --inclu=* | --incl=* | --inc=*)
42ecbf5e 1035 includedir=$ac_optarg ;;
252b5132
RH
1036
1037 -infodir | --infodir | --infodi | --infod | --info | --inf)
1038 ac_prev=infodir ;;
1039 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
42ecbf5e 1040 infodir=$ac_optarg ;;
252b5132
RH
1041
1042 -libdir | --libdir | --libdi | --libd)
1043 ac_prev=libdir ;;
1044 -libdir=* | --libdir=* | --libdi=* | --libd=*)
42ecbf5e 1045 libdir=$ac_optarg ;;
252b5132
RH
1046
1047 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1048 | --libexe | --libex | --libe)
1049 ac_prev=libexecdir ;;
1050 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1051 | --libexe=* | --libex=* | --libe=*)
42ecbf5e 1052 libexecdir=$ac_optarg ;;
252b5132 1053
81ecdfbb
RW
1054 -localedir | --localedir | --localedi | --localed | --locale)
1055 ac_prev=localedir ;;
1056 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1057 localedir=$ac_optarg ;;
1058
252b5132 1059 -localstatedir | --localstatedir | --localstatedi | --localstated \
81ecdfbb 1060 | --localstate | --localstat | --localsta | --localst | --locals)
252b5132
RH
1061 ac_prev=localstatedir ;;
1062 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
81ecdfbb 1063 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
42ecbf5e 1064 localstatedir=$ac_optarg ;;
252b5132
RH
1065
1066 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1067 ac_prev=mandir ;;
1068 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
42ecbf5e 1069 mandir=$ac_optarg ;;
252b5132
RH
1070
1071 -nfp | --nfp | --nf)
1072 # Obsolete; use --without-fp.
1073 with_fp=no ;;
1074
1075 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
42ecbf5e 1076 | --no-cr | --no-c | -n)
252b5132
RH
1077 no_create=yes ;;
1078
1079 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1080 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1081 no_recursion=yes ;;
1082
1083 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1084 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1085 | --oldin | --oldi | --old | --ol | --o)
1086 ac_prev=oldincludedir ;;
1087 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1088 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1089 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
42ecbf5e 1090 oldincludedir=$ac_optarg ;;
252b5132
RH
1091
1092 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1093 ac_prev=prefix ;;
1094 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
42ecbf5e 1095 prefix=$ac_optarg ;;
252b5132
RH
1096
1097 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1098 | --program-pre | --program-pr | --program-p)
1099 ac_prev=program_prefix ;;
1100 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1101 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
42ecbf5e 1102 program_prefix=$ac_optarg ;;
252b5132
RH
1103
1104 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1105 | --program-suf | --program-su | --program-s)
1106 ac_prev=program_suffix ;;
1107 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1108 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
42ecbf5e 1109 program_suffix=$ac_optarg ;;
252b5132
RH
1110
1111 -program-transform-name | --program-transform-name \
1112 | --program-transform-nam | --program-transform-na \
1113 | --program-transform-n | --program-transform- \
1114 | --program-transform | --program-transfor \
1115 | --program-transfo | --program-transf \
1116 | --program-trans | --program-tran \
1117 | --progr-tra | --program-tr | --program-t)
1118 ac_prev=program_transform_name ;;
1119 -program-transform-name=* | --program-transform-name=* \
1120 | --program-transform-nam=* | --program-transform-na=* \
1121 | --program-transform-n=* | --program-transform-=* \
1122 | --program-transform=* | --program-transfor=* \
1123 | --program-transfo=* | --program-transf=* \
1124 | --program-trans=* | --program-tran=* \
1125 | --progr-tra=* | --program-tr=* | --program-t=*)
42ecbf5e 1126 program_transform_name=$ac_optarg ;;
252b5132 1127
81ecdfbb
RW
1128 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1129 ac_prev=pdfdir ;;
1130 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1131 pdfdir=$ac_optarg ;;
1132
1133 -psdir | --psdir | --psdi | --psd | --ps)
1134 ac_prev=psdir ;;
1135 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1136 psdir=$ac_optarg ;;
1137
252b5132
RH
1138 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1139 | -silent | --silent | --silen | --sile | --sil)
1140 silent=yes ;;
1141
1142 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1143 ac_prev=sbindir ;;
1144 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1145 | --sbi=* | --sb=*)
42ecbf5e 1146 sbindir=$ac_optarg ;;
252b5132
RH
1147
1148 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1149 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1150 | --sharedst | --shareds | --shared | --share | --shar \
1151 | --sha | --sh)
1152 ac_prev=sharedstatedir ;;
1153 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1154 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1155 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1156 | --sha=* | --sh=*)
42ecbf5e 1157 sharedstatedir=$ac_optarg ;;
252b5132
RH
1158
1159 -site | --site | --sit)
1160 ac_prev=site ;;
1161 -site=* | --site=* | --sit=*)
42ecbf5e 1162 site=$ac_optarg ;;
252b5132
RH
1163
1164 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1165 ac_prev=srcdir ;;
1166 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
42ecbf5e 1167 srcdir=$ac_optarg ;;
252b5132
RH
1168
1169 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1170 | --syscon | --sysco | --sysc | --sys | --sy)
1171 ac_prev=sysconfdir ;;
1172 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1173 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
42ecbf5e 1174 sysconfdir=$ac_optarg ;;
252b5132
RH
1175
1176 -target | --target | --targe | --targ | --tar | --ta | --t)
42ecbf5e 1177 ac_prev=target_alias ;;
252b5132 1178 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
42ecbf5e 1179 target_alias=$ac_optarg ;;
252b5132
RH
1180
1181 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1182 verbose=yes ;;
1183
42ecbf5e
DJ
1184 -version | --version | --versio | --versi | --vers | -V)
1185 ac_init_version=: ;;
252b5132
RH
1186
1187 -with-* | --with-*)
81ecdfbb 1188 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
252b5132 1189 # Reject names that are not valid shell variable names.
81ecdfbb 1190 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 1191 as_fn_error $? "invalid package name: $ac_useropt"
81ecdfbb
RW
1192 ac_useropt_orig=$ac_useropt
1193 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1194 case $ac_user_opts in
1195 *"
1196"with_$ac_useropt"
1197"*) ;;
1198 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1199 ac_unrecognized_sep=', ';;
252b5132 1200 esac
81ecdfbb 1201 eval with_$ac_useropt=\$ac_optarg ;;
252b5132
RH
1202
1203 -without-* | --without-*)
81ecdfbb 1204 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
252b5132 1205 # Reject names that are not valid shell variable names.
81ecdfbb 1206 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 1207 as_fn_error $? "invalid package name: $ac_useropt"
81ecdfbb
RW
1208 ac_useropt_orig=$ac_useropt
1209 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1210 case $ac_user_opts in
1211 *"
1212"with_$ac_useropt"
1213"*) ;;
1214 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1215 ac_unrecognized_sep=', ';;
1216 esac
1217 eval with_$ac_useropt=no ;;
252b5132
RH
1218
1219 --x)
1220 # Obsolete; use --with-x.
1221 with_x=yes ;;
1222
1223 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1224 | --x-incl | --x-inc | --x-in | --x-i)
1225 ac_prev=x_includes ;;
1226 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1227 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
42ecbf5e 1228 x_includes=$ac_optarg ;;
252b5132
RH
1229
1230 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1231 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1232 ac_prev=x_libraries ;;
1233 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1234 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
42ecbf5e 1235 x_libraries=$ac_optarg ;;
252b5132 1236
d0ac1c44
SM
1237 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1238Try \`$0 --help' for more information"
252b5132
RH
1239 ;;
1240
42ecbf5e
DJ
1241 *=*)
1242 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1243 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1244 case $ac_envvar in #(
1245 '' | [0-9]* | *[!_$as_cr_alnum]* )
d0ac1c44 1246 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
81ecdfbb
RW
1247 esac
1248 eval $ac_envvar=\$ac_optarg
42ecbf5e
DJ
1249 export $ac_envvar ;;
1250
252b5132 1251 *)
42ecbf5e 1252 # FIXME: should be removed in autoconf 3.0.
81ecdfbb 1253 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
42ecbf5e 1254 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
81ecdfbb 1255 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
d0ac1c44 1256 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
252b5132
RH
1257 ;;
1258
1259 esac
1260done
1261
1262if test -n "$ac_prev"; then
42ecbf5e 1263 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
d0ac1c44 1264 as_fn_error $? "missing argument to $ac_option"
252b5132
RH
1265fi
1266
81ecdfbb
RW
1267if test -n "$ac_unrecognized_opts"; then
1268 case $enable_option_checking in
1269 no) ;;
d0ac1c44 1270 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
81ecdfbb 1271 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
42ecbf5e 1272 esac
81ecdfbb 1273fi
252b5132 1274
81ecdfbb
RW
1275# Check all directory arguments for consistency.
1276for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1277 datadir sysconfdir sharedstatedir localstatedir includedir \
1278 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
e0b2a78c 1279 libdir localedir mandir
252b5132 1280do
81ecdfbb
RW
1281 eval ac_val=\$$ac_var
1282 # Remove trailing slashes.
42ecbf5e 1283 case $ac_val in
81ecdfbb
RW
1284 */ )
1285 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1286 eval $ac_var=\$ac_val;;
252b5132 1287 esac
81ecdfbb
RW
1288 # Be sure to have absolute directory names.
1289 case $ac_val in
1290 [\\/$]* | ?:[\\/]* ) continue;;
1291 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1292 esac
d0ac1c44 1293 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
252b5132
RH
1294done
1295
42ecbf5e
DJ
1296# There might be people who depend on the old broken behavior: `$host'
1297# used to hold the argument of --host etc.
1298# FIXME: To remove some day.
1299build=$build_alias
1300host=$host_alias
1301target=$target_alias
1302
1303# FIXME: To remove some day.
1304if test "x$host_alias" != x; then
1305 if test "x$build_alias" = x; then
1306 cross_compiling=maybe
42ecbf5e
DJ
1307 elif test "x$build_alias" != "x$host_alias"; then
1308 cross_compiling=yes
1309 fi
1310fi
e5a52504 1311
42ecbf5e
DJ
1312ac_tool_prefix=
1313test -n "$host_alias" && ac_tool_prefix=$host_alias-
1314
1315test "$silent" = yes && exec 6>/dev/null
252b5132 1316
252b5132 1317
81ecdfbb
RW
1318ac_pwd=`pwd` && test -n "$ac_pwd" &&
1319ac_ls_di=`ls -di .` &&
1320ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
d0ac1c44 1321 as_fn_error $? "working directory cannot be determined"
81ecdfbb 1322test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
d0ac1c44 1323 as_fn_error $? "pwd does not report name of working directory"
81ecdfbb
RW
1324
1325
252b5132
RH
1326# Find the source files, if location was not specified.
1327if test -z "$srcdir"; then
1328 ac_srcdir_defaulted=yes
81ecdfbb
RW
1329 # Try the directory containing this script, then the parent directory.
1330 ac_confdir=`$as_dirname -- "$as_myself" ||
1331$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1332 X"$as_myself" : 'X\(//\)[^/]' \| \
1333 X"$as_myself" : 'X\(//\)$' \| \
1334 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1335$as_echo X"$as_myself" |
1336 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1337 s//\1/
1338 q
1339 }
1340 /^X\(\/\/\)[^/].*/{
1341 s//\1/
1342 q
1343 }
1344 /^X\(\/\/\)$/{
1345 s//\1/
1346 q
1347 }
1348 /^X\(\/\).*/{
1349 s//\1/
1350 q
1351 }
1352 s/.*/./; q'`
252b5132 1353 srcdir=$ac_confdir
81ecdfbb 1354 if test ! -r "$srcdir/$ac_unique_file"; then
252b5132
RH
1355 srcdir=..
1356 fi
1357else
1358 ac_srcdir_defaulted=no
1359fi
81ecdfbb
RW
1360if test ! -r "$srcdir/$ac_unique_file"; then
1361 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
d0ac1c44 1362 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
81ecdfbb
RW
1363fi
1364ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1365ac_abs_confdir=`(
d0ac1c44 1366 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
81ecdfbb
RW
1367 pwd)`
1368# When building in place, set srcdir=.
1369if test "$ac_abs_confdir" = "$ac_pwd"; then
1370 srcdir=.
1371fi
1372# Remove unnecessary trailing slashes from srcdir.
1373# Double slashes in file names in object file debugging info
1374# mess up M-x gdb in Emacs.
1375case $srcdir in
1376*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1377esac
1378for ac_var in $ac_precious_vars; do
1379 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1380 eval ac_env_${ac_var}_value=\$${ac_var}
1381 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1382 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1383done
252b5132 1384
42ecbf5e
DJ
1385#
1386# Report the --help message.
1387#
1388if test "$ac_init_help" = "long"; then
1389 # Omit some internal or obsolete options to make the list less imposing.
1390 # This message is too long to be a string in the A/UX 3.1 sh.
1391 cat <<_ACEOF
573fe3fb 1392\`configure' configures binutils 2.36.50 to adapt to many kinds of systems.
252b5132 1393
42ecbf5e 1394Usage: $0 [OPTION]... [VAR=VALUE]...
252b5132 1395
42ecbf5e
DJ
1396To assign environment variables (e.g., CC, CFLAGS...), specify them as
1397VAR=VALUE. See below for descriptions of some of the useful variables.
252b5132 1398
42ecbf5e 1399Defaults for the options are specified in brackets.
ac48eca1 1400
42ecbf5e
DJ
1401Configuration:
1402 -h, --help display this help and exit
1403 --help=short display options specific to this package
1404 --help=recursive display the short help of all the included packages
1405 -V, --version display version information and exit
d0ac1c44 1406 -q, --quiet, --silent do not print \`checking ...' messages
42ecbf5e
DJ
1407 --cache-file=FILE cache test results in FILE [disabled]
1408 -C, --config-cache alias for \`--cache-file=config.cache'
1409 -n, --no-create do not create output files
1410 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1411
42ecbf5e
DJ
1412Installation directories:
1413 --prefix=PREFIX install architecture-independent files in PREFIX
81ecdfbb 1414 [$ac_default_prefix]
42ecbf5e 1415 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
81ecdfbb 1416 [PREFIX]
ac48eca1 1417
42ecbf5e
DJ
1418By default, \`make install' will install all the files in
1419\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1420an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1421for instance \`--prefix=\$HOME'.
ac48eca1 1422
42ecbf5e 1423For better control, use the options below.
ac48eca1 1424
42ecbf5e 1425Fine tuning of the installation directories:
81ecdfbb
RW
1426 --bindir=DIR user executables [EPREFIX/bin]
1427 --sbindir=DIR system admin executables [EPREFIX/sbin]
1428 --libexecdir=DIR program executables [EPREFIX/libexec]
1429 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1430 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1431 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1432 --libdir=DIR object code libraries [EPREFIX/lib]
1433 --includedir=DIR C header files [PREFIX/include]
1434 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1435 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1436 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1437 --infodir=DIR info documentation [DATAROOTDIR/info]
1438 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1439 --mandir=DIR man documentation [DATAROOTDIR/man]
2e98a7bd 1440 --docdir=DIR documentation root [DATAROOTDIR/doc/binutils]
81ecdfbb
RW
1441 --htmldir=DIR html documentation [DOCDIR]
1442 --dvidir=DIR dvi documentation [DOCDIR]
1443 --pdfdir=DIR pdf documentation [DOCDIR]
1444 --psdir=DIR ps documentation [DOCDIR]
42ecbf5e 1445_ACEOF
ac48eca1 1446
42ecbf5e 1447 cat <<\_ACEOF
252b5132 1448
42ecbf5e
DJ
1449Program names:
1450 --program-prefix=PREFIX prepend PREFIX to installed program names
1451 --program-suffix=SUFFIX append SUFFIX to installed program names
1452 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
252b5132 1453
42ecbf5e
DJ
1454System types:
1455 --build=BUILD configure for building on BUILD [guessed]
1456 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1457 --target=TARGET configure for building compilers for TARGET [HOST]
1458_ACEOF
252b5132 1459fi
252b5132 1460
42ecbf5e 1461if test -n "$ac_init_help"; then
2e98a7bd 1462 case $ac_init_help in
573fe3fb 1463 short | recursive ) echo "Configuration of binutils 2.36.50:";;
2e98a7bd 1464 esac
42ecbf5e 1465 cat <<\_ACEOF
252b5132 1466
42ecbf5e 1467Optional Features:
81ecdfbb 1468 --disable-option-checking ignore unrecognized --enable/--with options
42ecbf5e
DJ
1469 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1470 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
87b9f255
AM
1471 --enable-silent-rules less verbose build output (undo: "make V=1")
1472 --disable-silent-rules verbose build output (undo: "make V=0")
d0ac1c44
SM
1473 --enable-dependency-tracking
1474 do not reject slow dependency extractors
1475 --disable-dependency-tracking
1476 speeds up one-time build
81ecdfbb
RW
1477 --enable-shared[=PKGS] build shared libraries [default=yes]
1478 --enable-static[=PKGS] build static libraries [default=yes]
d7040cdb
SE
1479 --enable-fast-install[=PKGS]
1480 optimize for fast installation [default=yes]
42ecbf5e 1481 --disable-libtool-lock avoid locking (might break parallel builds)
b879806f
AM
1482 --enable-plugins Enable support for plugins
1483 --disable-largefile omit support for large files
42ecbf5e 1484 --enable-targets alternative target configurations
9cb80f72
RM
1485 --enable-deterministic-archives
1486 ar and ranlib default to -D behavior
7fac9594
NC
1487 --disable-default-strings-all
1488 strings defaults to --data behavior
e6f6aa8d
NC
1489 --enable-f-for-ifunc-symbols
1490 Have nm use F and f for global and local ifunc
1491 symbols
c46b7066
NC
1492 --enable-follow-debug-links
1493 Have readelf and objdump follow debug links by
1494 default
094e34f2 1495 --enable-libctf Handle .ctf type-info sections [default=yes]
241a6c40
AM
1496 --enable-werror treat compile warnings as errors
1497 --enable-build-warnings enable build-time compiler warnings
42ecbf5e 1498 --disable-nls do not use Native Language Support
d0ac1c44
SM
1499 --enable-maintainer-mode
1500 enable make rules and dependencies not useful (and
1501 sometimes confusing) to the casual installer
5ba684e2 1502 --disable-rpath do not hardcode runtime library paths
42ecbf5e
DJ
1503
1504Optional Packages:
1505 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1506 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
d7040cdb
SE
1507 --with-pic try to use only PIC/non-PIC objects [default=use
1508 both]
1509 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
301a9420
AM
1510 --with-debuginfod Enable debuginfo lookups with debuginfod
1511 (auto/yes/no)
0ee42ecd 1512 --with-system-zlib use installed libz
5ba684e2
NC
1513 --with-gnu-ld assume the C compiler uses GNU ld default=no
1514 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1515 --without-libiconv-prefix don't search for libiconv in includedir and libdir
9f1528a1 1516 --with-libiconv-type=TYPE type of library to search for (auto/static/shared)
252b5132 1517
42ecbf5e
DJ
1518Some influential environment variables:
1519 CC C compiler command
1520 CFLAGS C compiler flags
1521 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1522 nonstandard directory <lib dir>
81ecdfbb 1523 LIBS libraries to pass to the linker, e.g. -l<library>
d0ac1c44 1524 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
81ecdfbb 1525 you have headers in a nonstandard directory <include dir>
42ecbf5e 1526 CPP C preprocessor
f6720b1c
AM
1527 PKG_CONFIG path to pkg-config utility
1528 PKG_CONFIG_PATH
1529 directories to add to pkg-config's search path
1530 PKG_CONFIG_LIBDIR
1531 path overriding pkg-config's built-in search path
1532 DEBUGINFOD_CFLAGS
1533 C compiler flags for DEBUGINFOD, overriding pkg-config
1534 DEBUGINFOD_LIBS
1535 linker flags for DEBUGINFOD, overriding pkg-config
d0ac1c44
SM
1536 YACC The `Yet Another Compiler Compiler' implementation to use.
1537 Defaults to the first program found out of: `bison -y', `byacc',
1538 `yacc'.
81ecdfbb
RW
1539 YFLAGS The list of arguments that will be passed by default to $YACC.
1540 This script will default YFLAGS to the empty string to avoid a
1541 default value of `-d' given by some make applications.
e5a52504 1542
42ecbf5e
DJ
1543Use these variables to override the choices made by `configure' or to help
1544it to find libraries and programs with nonstandard names/locations.
1545
81ecdfbb 1546Report bugs to the package provider.
42ecbf5e 1547_ACEOF
81ecdfbb 1548ac_status=$?
252b5132
RH
1549fi
1550
42ecbf5e
DJ
1551if test "$ac_init_help" = "recursive"; then
1552 # If there are subdirs, report their specific --help.
42ecbf5e 1553 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
81ecdfbb
RW
1554 test -d "$ac_dir" ||
1555 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1556 continue
42ecbf5e
DJ
1557 ac_builddir=.
1558
81ecdfbb
RW
1559case "$ac_dir" in
1560.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1561*)
1562 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1563 # A ".." for each directory in $ac_dir_suffix.
1564 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1565 case $ac_top_builddir_sub in
1566 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1567 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1568 esac ;;
1569esac
1570ac_abs_top_builddir=$ac_pwd
1571ac_abs_builddir=$ac_pwd$ac_dir_suffix
1572# for backward compatibility:
1573ac_top_builddir=$ac_top_build_prefix
252b5132 1574
42ecbf5e 1575case $srcdir in
81ecdfbb 1576 .) # We are building in place.
42ecbf5e 1577 ac_srcdir=.
81ecdfbb
RW
1578 ac_top_srcdir=$ac_top_builddir_sub
1579 ac_abs_top_srcdir=$ac_pwd ;;
1580 [\\/]* | ?:[\\/]* ) # Absolute name.
42ecbf5e 1581 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
1582 ac_top_srcdir=$srcdir
1583 ac_abs_top_srcdir=$srcdir ;;
1584 *) # Relative name.
1585 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1586 ac_top_srcdir=$ac_top_build_prefix$srcdir
1587 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
252b5132 1588esac
81ecdfbb
RW
1589ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1590
1591 cd "$ac_dir" || { ac_status=$?; continue; }
1592 # Check for guested configure.
1593 if test -f "$ac_srcdir/configure.gnu"; then
1594 echo &&
1595 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1596 elif test -f "$ac_srcdir/configure"; then
1597 echo &&
1598 $SHELL "$ac_srcdir/configure" --help=recursive
42ecbf5e 1599 else
81ecdfbb
RW
1600 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1601 fi || ac_status=$?
1602 cd "$ac_pwd" || { ac_status=$?; break; }
42ecbf5e
DJ
1603 done
1604fi
5d64ca4e 1605
81ecdfbb 1606test -n "$ac_init_help" && exit $ac_status
42ecbf5e
DJ
1607if $ac_init_version; then
1608 cat <<\_ACEOF
573fe3fb 1609binutils configure 2.36.50
d0ac1c44 1610generated by GNU Autoconf 2.69
5d64ca4e 1611
d0ac1c44 1612Copyright (C) 2012 Free Software Foundation, Inc.
42ecbf5e
DJ
1613This configure script is free software; the Free Software Foundation
1614gives unlimited permission to copy, distribute and modify it.
1615_ACEOF
81ecdfbb 1616 exit
42ecbf5e 1617fi
252b5132 1618
81ecdfbb
RW
1619## ------------------------ ##
1620## Autoconf initialization. ##
1621## ------------------------ ##
e5a52504 1622
81ecdfbb
RW
1623# ac_fn_c_try_compile LINENO
1624# --------------------------
1625# Try to compile conftest.$ac_ext, and return whether this succeeded.
1626ac_fn_c_try_compile ()
42ecbf5e 1627{
81ecdfbb
RW
1628 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1629 rm -f conftest.$ac_objext
1630 if { { ac_try="$ac_compile"
1631case "(($ac_try" in
1632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1633 *) ac_try_echo=$ac_try;;
1634esac
1635eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1636$as_echo "$ac_try_echo"; } >&5
1637 (eval "$ac_compile") 2>conftest.err
1638 ac_status=$?
1639 if test -s conftest.err; then
1640 grep -v '^ *+' conftest.err >conftest.er1
1641 cat conftest.er1 >&5
1642 mv -f conftest.er1 conftest.err
1643 fi
1644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1645 test $ac_status = 0; } && {
1646 test -z "$ac_c_werror_flag" ||
1647 test ! -s conftest.err
1648 } && test -s conftest.$ac_objext; then :
1649 ac_retval=0
1650else
1651 $as_echo "$as_me: failed program was:" >&5
1652sed 's/^/| /' conftest.$ac_ext >&5
42ecbf5e 1653
81ecdfbb
RW
1654 ac_retval=1
1655fi
d0ac1c44
SM
1656 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1657 as_fn_set_status $ac_retval
42ecbf5e 1658
81ecdfbb
RW
1659} # ac_fn_c_try_compile
1660
81ecdfbb
RW
1661# ac_fn_c_try_cpp LINENO
1662# ----------------------
1663# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1664ac_fn_c_try_cpp ()
1665{
1666 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1667 if { { ac_try="$ac_cpp conftest.$ac_ext"
1668case "(($ac_try" in
1669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1670 *) ac_try_echo=$ac_try;;
1671esac
1672eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1673$as_echo "$ac_try_echo"; } >&5
1674 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1675 ac_status=$?
1676 if test -s conftest.err; then
1677 grep -v '^ *+' conftest.err >conftest.er1
1678 cat conftest.er1 >&5
1679 mv -f conftest.er1 conftest.err
1680 fi
1681 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
d0ac1c44 1682 test $ac_status = 0; } > conftest.i && {
81ecdfbb
RW
1683 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1684 test ! -s conftest.err
1685 }; then :
1686 ac_retval=0
1687else
1688 $as_echo "$as_me: failed program was:" >&5
1689sed 's/^/| /' conftest.$ac_ext >&5
1690
1691 ac_retval=1
1692fi
d0ac1c44
SM
1693 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1694 as_fn_set_status $ac_retval
81ecdfbb
RW
1695
1696} # ac_fn_c_try_cpp
1697
1698# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1699# -------------------------------------------------------
1700# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1701# the include files in INCLUDES and setting the cache variable VAR
1702# accordingly.
1703ac_fn_c_check_header_mongrel ()
1704{
1705 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
d0ac1c44 1706 if eval \${$3+:} false; then :
81ecdfbb
RW
1707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1708$as_echo_n "checking for $2... " >&6; }
d0ac1c44 1709if eval \${$3+:} false; then :
81ecdfbb
RW
1710 $as_echo_n "(cached) " >&6
1711fi
1712eval ac_res=\$$3
1713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1714$as_echo "$ac_res" >&6; }
1715else
1716 # Is the header compilable?
1717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1718$as_echo_n "checking $2 usability... " >&6; }
1719cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1720/* end confdefs.h. */
1721$4
1722#include <$2>
1723_ACEOF
1724if ac_fn_c_try_compile "$LINENO"; then :
1725 ac_header_compiler=yes
1726else
1727 ac_header_compiler=no
1728fi
1729rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1731$as_echo "$ac_header_compiler" >&6; }
1732
1733# Is the header present?
1734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1735$as_echo_n "checking $2 presence... " >&6; }
1736cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1737/* end confdefs.h. */
1738#include <$2>
1739_ACEOF
1740if ac_fn_c_try_cpp "$LINENO"; then :
1741 ac_header_preproc=yes
1742else
1743 ac_header_preproc=no
1744fi
d0ac1c44 1745rm -f conftest.err conftest.i conftest.$ac_ext
81ecdfbb
RW
1746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1747$as_echo "$ac_header_preproc" >&6; }
1748
1749# So? What about this header?
1750case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1751 yes:no: )
1752 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1753$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1754 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1755$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1756 ;;
1757 no:yes:* )
1758 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1759$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1760 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1761$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1762 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1763$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1764 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1765$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1766 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1767$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1768 ;;
1769esac
1770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1771$as_echo_n "checking for $2... " >&6; }
d0ac1c44 1772if eval \${$3+:} false; then :
81ecdfbb
RW
1773 $as_echo_n "(cached) " >&6
1774else
1775 eval "$3=\$ac_header_compiler"
1776fi
1777eval ac_res=\$$3
1778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1779$as_echo "$ac_res" >&6; }
1780fi
d0ac1c44 1781 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
81ecdfbb
RW
1782
1783} # ac_fn_c_check_header_mongrel
1784
1785# ac_fn_c_try_run LINENO
1786# ----------------------
1787# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1788# that executables *can* be run.
1789ac_fn_c_try_run ()
1790{
1791 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1792 if { { ac_try="$ac_link"
1793case "(($ac_try" in
1794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1795 *) ac_try_echo=$ac_try;;
1796esac
1797eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1798$as_echo "$ac_try_echo"; } >&5
1799 (eval "$ac_link") 2>&5
1800 ac_status=$?
1801 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1802 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1803 { { case "(($ac_try" in
1804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1805 *) ac_try_echo=$ac_try;;
1806esac
1807eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1808$as_echo "$ac_try_echo"; } >&5
1809 (eval "$ac_try") 2>&5
1810 ac_status=$?
1811 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1812 test $ac_status = 0; }; }; then :
1813 ac_retval=0
1814else
1815 $as_echo "$as_me: program exited with status $ac_status" >&5
1816 $as_echo "$as_me: failed program was:" >&5
1817sed 's/^/| /' conftest.$ac_ext >&5
1818
1819 ac_retval=$ac_status
1820fi
1821 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
d0ac1c44
SM
1822 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1823 as_fn_set_status $ac_retval
81ecdfbb
RW
1824
1825} # ac_fn_c_try_run
1826
1827# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1828# -------------------------------------------------------
1829# Tests whether HEADER exists and can be compiled using the include files in
1830# INCLUDES, setting the cache variable VAR accordingly.
1831ac_fn_c_check_header_compile ()
1832{
1833 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1835$as_echo_n "checking for $2... " >&6; }
d0ac1c44 1836if eval \${$3+:} false; then :
81ecdfbb
RW
1837 $as_echo_n "(cached) " >&6
1838else
1839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1840/* end confdefs.h. */
1841$4
1842#include <$2>
1843_ACEOF
1844if ac_fn_c_try_compile "$LINENO"; then :
1845 eval "$3=yes"
1846else
1847 eval "$3=no"
1848fi
1849rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1850fi
1851eval ac_res=\$$3
1852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1853$as_echo "$ac_res" >&6; }
d0ac1c44 1854 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
81ecdfbb
RW
1855
1856} # ac_fn_c_check_header_compile
1857
87b9f255
AM
1858# ac_fn_c_try_link LINENO
1859# -----------------------
1860# Try to link conftest.$ac_ext, and return whether this succeeded.
1861ac_fn_c_try_link ()
1862{
1863 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1864 rm -f conftest.$ac_objext conftest$ac_exeext
1865 if { { ac_try="$ac_link"
1866case "(($ac_try" in
1867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1868 *) ac_try_echo=$ac_try;;
1869esac
1870eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1871$as_echo "$ac_try_echo"; } >&5
1872 (eval "$ac_link") 2>conftest.err
1873 ac_status=$?
1874 if test -s conftest.err; then
1875 grep -v '^ *+' conftest.err >conftest.er1
1876 cat conftest.er1 >&5
1877 mv -f conftest.er1 conftest.err
1878 fi
1879 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1880 test $ac_status = 0; } && {
1881 test -z "$ac_c_werror_flag" ||
1882 test ! -s conftest.err
1883 } && test -s conftest$ac_exeext && {
1884 test "$cross_compiling" = yes ||
1885 test -x conftest$ac_exeext
1886 }; then :
1887 ac_retval=0
1888else
1889 $as_echo "$as_me: failed program was:" >&5
1890sed 's/^/| /' conftest.$ac_ext >&5
1891
1892 ac_retval=1
1893fi
1894 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1895 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1896 # interfere with the next link command; also delete a directory that is
1897 # left behind by Apple's compiler. We do this before executing the actions.
1898 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1899 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1900 as_fn_set_status $ac_retval
1901
1902} # ac_fn_c_try_link
1903
81ecdfbb
RW
1904# ac_fn_c_check_func LINENO FUNC VAR
1905# ----------------------------------
1906# Tests whether FUNC exists, setting the cache variable VAR accordingly
1907ac_fn_c_check_func ()
1908{
1909 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1911$as_echo_n "checking for $2... " >&6; }
d0ac1c44 1912if eval \${$3+:} false; then :
81ecdfbb
RW
1913 $as_echo_n "(cached) " >&6
1914else
1915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1916/* end confdefs.h. */
1917/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1918 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1919#define $2 innocuous_$2
1920
1921/* System header to define __stub macros and hopefully few prototypes,
1922 which can conflict with char $2 (); below.
1923 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1924 <limits.h> exists even on freestanding compilers. */
1925
1926#ifdef __STDC__
1927# include <limits.h>
1928#else
1929# include <assert.h>
1930#endif
1931
1932#undef $2
1933
1934/* Override any GCC internal prototype to avoid an error.
1935 Use char because int might match the return type of a GCC
1936 builtin and then its argument prototype would still apply. */
1937#ifdef __cplusplus
1938extern "C"
1939#endif
1940char $2 ();
1941/* The GNU C library defines this for functions which it implements
1942 to always fail with ENOSYS. Some functions are actually named
1943 something starting with __ and the normal name is an alias. */
1944#if defined __stub_$2 || defined __stub___$2
1945choke me
1946#endif
1947
1948int
1949main ()
1950{
1951return $2 ();
1952 ;
1953 return 0;
1954}
1955_ACEOF
1956if ac_fn_c_try_link "$LINENO"; then :
1957 eval "$3=yes"
1958else
1959 eval "$3=no"
1960fi
1961rm -f core conftest.err conftest.$ac_objext \
1962 conftest$ac_exeext conftest.$ac_ext
1963fi
1964eval ac_res=\$$3
1965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1966$as_echo "$ac_res" >&6; }
d0ac1c44 1967 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
81ecdfbb
RW
1968
1969} # ac_fn_c_check_func
1970
4c219c2e
AM
1971# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1972# --------------------------------------------
1973# Tries to find the compile-time value of EXPR in a program that includes
1974# INCLUDES, setting VAR accordingly. Returns whether the value could be
1975# computed
1976ac_fn_c_compute_int ()
1977{
1978 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1979 if test "$cross_compiling" = yes; then
1980 # Depending upon the size, compute the lo and hi bounds.
1981cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1982/* end confdefs.h. */
1983$4
1984int
1985main ()
1986{
1987static int test_array [1 - 2 * !(($2) >= 0)];
d0ac1c44
SM
1988test_array [0] = 0;
1989return test_array [0];
4c219c2e
AM
1990
1991 ;
1992 return 0;
1993}
1994_ACEOF
1995if ac_fn_c_try_compile "$LINENO"; then :
1996 ac_lo=0 ac_mid=0
1997 while :; do
1998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1999/* end confdefs.h. */
2000$4
2001int
2002main ()
2003{
2004static int test_array [1 - 2 * !(($2) <= $ac_mid)];
d0ac1c44
SM
2005test_array [0] = 0;
2006return test_array [0];
4c219c2e
AM
2007
2008 ;
2009 return 0;
2010}
2011_ACEOF
2012if ac_fn_c_try_compile "$LINENO"; then :
2013 ac_hi=$ac_mid; break
2014else
2015 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2016 if test $ac_lo -le $ac_mid; then
2017 ac_lo= ac_hi=
2018 break
2019 fi
2020 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2021fi
2022rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2023 done
2024else
2025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2026/* end confdefs.h. */
2027$4
2028int
2029main ()
2030{
2031static int test_array [1 - 2 * !(($2) < 0)];
d0ac1c44
SM
2032test_array [0] = 0;
2033return test_array [0];
4c219c2e
AM
2034
2035 ;
2036 return 0;
2037}
2038_ACEOF
2039if ac_fn_c_try_compile "$LINENO"; then :
2040 ac_hi=-1 ac_mid=-1
2041 while :; do
2042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2043/* end confdefs.h. */
2044$4
2045int
2046main ()
2047{
2048static int test_array [1 - 2 * !(($2) >= $ac_mid)];
d0ac1c44
SM
2049test_array [0] = 0;
2050return test_array [0];
4c219c2e
AM
2051
2052 ;
2053 return 0;
2054}
2055_ACEOF
2056if ac_fn_c_try_compile "$LINENO"; then :
2057 ac_lo=$ac_mid; break
2058else
2059 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2060 if test $ac_mid -le $ac_hi; then
2061 ac_lo= ac_hi=
2062 break
2063 fi
2064 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2065fi
2066rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2067 done
2068else
2069 ac_lo= ac_hi=
2070fi
2071rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2072fi
2073rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2074# Binary search between lo and hi bounds.
2075while test "x$ac_lo" != "x$ac_hi"; do
2076 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2078/* end confdefs.h. */
2079$4
2080int
2081main ()
2082{
2083static int test_array [1 - 2 * !(($2) <= $ac_mid)];
d0ac1c44
SM
2084test_array [0] = 0;
2085return test_array [0];
4c219c2e
AM
2086
2087 ;
2088 return 0;
2089}
2090_ACEOF
2091if ac_fn_c_try_compile "$LINENO"; then :
2092 ac_hi=$ac_mid
2093else
2094 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2095fi
2096rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2097done
2098case $ac_lo in #((
2099?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2100'') ac_retval=1 ;;
2101esac
2102 else
2103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2104/* end confdefs.h. */
2105$4
2106static long int longval () { return $2; }
2107static unsigned long int ulongval () { return $2; }
2108#include <stdio.h>
2109#include <stdlib.h>
2110int
2111main ()
2112{
2113
2114 FILE *f = fopen ("conftest.val", "w");
2115 if (! f)
2116 return 1;
2117 if (($2) < 0)
2118 {
2119 long int i = longval ();
2120 if (i != ($2))
2121 return 1;
2122 fprintf (f, "%ld", i);
2123 }
2124 else
2125 {
2126 unsigned long int i = ulongval ();
2127 if (i != ($2))
2128 return 1;
2129 fprintf (f, "%lu", i);
2130 }
2131 /* Do not output a trailing newline, as this causes \r\n confusion
2132 on some platforms. */
2133 return ferror (f) || fclose (f) != 0;
2134
2135 ;
2136 return 0;
2137}
2138_ACEOF
2139if ac_fn_c_try_run "$LINENO"; then :
2140 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2141else
2142 ac_retval=1
2143fi
2144rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2145 conftest.$ac_objext conftest.beam conftest.$ac_ext
2146rm -f conftest.val
2147
2148 fi
d0ac1c44
SM
2149 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2150 as_fn_set_status $ac_retval
4c219c2e
AM
2151
2152} # ac_fn_c_compute_int
2153
f6720b1c
AM
2154# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2155# ---------------------------------------------
2156# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2157# accordingly.
2158ac_fn_c_check_decl ()
2159{
2160 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2161 as_decl_name=`echo $2|sed 's/ *(.*//'`
2162 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2164$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2165if eval \${$3+:} false; then :
2166 $as_echo_n "(cached) " >&6
2167else
2168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2169/* end confdefs.h. */
2170$4
2171int
2172main ()
2173{
2174#ifndef $as_decl_name
2175#ifdef __cplusplus
2176 (void) $as_decl_use;
2177#else
2178 (void) $as_decl_name;
2179#endif
2180#endif
2181
2182 ;
2183 return 0;
2184}
2185_ACEOF
2186if ac_fn_c_try_compile "$LINENO"; then :
2187 eval "$3=yes"
2188else
2189 eval "$3=no"
2190fi
2191rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2192fi
2193eval ac_res=\$$3
2194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2195$as_echo "$ac_res" >&6; }
2196 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2197
2198} # ac_fn_c_check_decl
81ecdfbb
RW
2199cat >config.log <<_ACEOF
2200This file contains any messages produced by compilers while
2201running configure, to aid debugging if configure makes a mistake.
2202
573fe3fb 2203It was created by binutils $as_me 2.36.50, which was
d0ac1c44 2204generated by GNU Autoconf 2.69. Invocation command line was
81ecdfbb
RW
2205
2206 $ $0 $@
2207
2208_ACEOF
2209exec 5>>config.log
2210{
2211cat <<_ASUNAME
2212## --------- ##
2213## Platform. ##
2214## --------- ##
2215
2216hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2217uname -m = `(uname -m) 2>/dev/null || echo unknown`
2218uname -r = `(uname -r) 2>/dev/null || echo unknown`
2219uname -s = `(uname -s) 2>/dev/null || echo unknown`
2220uname -v = `(uname -v) 2>/dev/null || echo unknown`
2221
2222/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2223/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2224
2225/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2226/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2227/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2228/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2229/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2230/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2231/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
42ecbf5e
DJ
2232
2233_ASUNAME
2234
2235as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2236for as_dir in $PATH
2237do
2238 IFS=$as_save_IFS
2239 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2240 $as_echo "PATH: $as_dir"
2241 done
2242IFS=$as_save_IFS
e5a52504 2243
42ecbf5e 2244} >&5
ceae3e33 2245
42ecbf5e 2246cat >&5 <<_ACEOF
e5a52504 2247
42ecbf5e
DJ
2248
2249## ----------- ##
2250## Core tests. ##
2251## ----------- ##
2252
2253_ACEOF
2254
2255
2256# Keep a trace of the command line.
2257# Strip out --no-create and --no-recursion so they do not pile up.
2258# Strip out --silent because we don't want to record it for future runs.
2259# Also quote any args containing shell meta-characters.
2260# Make two passes to allow for proper duplicate-argument suppression.
2261ac_configure_args=
2262ac_configure_args0=
2263ac_configure_args1=
42ecbf5e
DJ
2264ac_must_keep_next=false
2265for ac_pass in 1 2
2266do
2267 for ac_arg
2268 do
2269 case $ac_arg in
2270 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2271 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2272 | -silent | --silent | --silen | --sile | --sil)
2273 continue ;;
81ecdfbb
RW
2274 *\'*)
2275 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
42ecbf5e
DJ
2276 esac
2277 case $ac_pass in
81ecdfbb 2278 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
42ecbf5e 2279 2)
81ecdfbb 2280 as_fn_append ac_configure_args1 " '$ac_arg'"
42ecbf5e
DJ
2281 if test $ac_must_keep_next = true; then
2282 ac_must_keep_next=false # Got value, back to normal.
2283 else
2284 case $ac_arg in
2285 *=* | --config-cache | -C | -disable-* | --disable-* \
2286 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2287 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2288 | -with-* | --with-* | -without-* | --without-* | --x)
2289 case "$ac_configure_args0 " in
2290 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2291 esac
2292 ;;
2293 -* ) ac_must_keep_next=true ;;
2294 esac
2295 fi
81ecdfbb 2296 as_fn_append ac_configure_args " '$ac_arg'"
42ecbf5e
DJ
2297 ;;
2298 esac
2299 done
2300done
81ecdfbb
RW
2301{ ac_configure_args0=; unset ac_configure_args0;}
2302{ ac_configure_args1=; unset ac_configure_args1;}
42ecbf5e
DJ
2303
2304# When interrupted or exit'd, cleanup temporary files, and complete
2305# config.log. We remove comments because anyway the quotes in there
2306# would cause problems or look ugly.
81ecdfbb
RW
2307# WARNING: Use '\'' to represent an apostrophe within the trap.
2308# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
42ecbf5e
DJ
2309trap 'exit_status=$?
2310 # Save into config.log some information that might help in debugging.
2311 {
2312 echo
2313
d0ac1c44 2314 $as_echo "## ---------------- ##
42ecbf5e 2315## Cache variables. ##
d0ac1c44 2316## ---------------- ##"
42ecbf5e
DJ
2317 echo
2318 # The following way of writing the cache mishandles newlines in values,
81ecdfbb
RW
2319(
2320 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2321 eval ac_val=\$$ac_var
2322 case $ac_val in #(
2323 *${as_nl}*)
2324 case $ac_var in #(
2325 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2326$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2327 esac
2328 case $ac_var in #(
2329 _ | IFS | as_nl) ;; #(
2330 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2331 *) { eval $ac_var=; unset $ac_var;} ;;
2332 esac ;;
2333 esac
2334 done
42ecbf5e 2335 (set) 2>&1 |
81ecdfbb
RW
2336 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2337 *${as_nl}ac_space=\ *)
42ecbf5e 2338 sed -n \
81ecdfbb
RW
2339 "s/'\''/'\''\\\\'\'''\''/g;
2340 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2341 ;; #(
42ecbf5e 2342 *)
81ecdfbb 2343 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
42ecbf5e 2344 ;;
81ecdfbb
RW
2345 esac |
2346 sort
2347)
42ecbf5e
DJ
2348 echo
2349
d0ac1c44 2350 $as_echo "## ----------------- ##
42ecbf5e 2351## Output variables. ##
d0ac1c44 2352## ----------------- ##"
42ecbf5e
DJ
2353 echo
2354 for ac_var in $ac_subst_vars
2355 do
81ecdfbb
RW
2356 eval ac_val=\$$ac_var
2357 case $ac_val in
2358 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2359 esac
2360 $as_echo "$ac_var='\''$ac_val'\''"
42ecbf5e
DJ
2361 done | sort
2362 echo
2363
2364 if test -n "$ac_subst_files"; then
d0ac1c44 2365 $as_echo "## ------------------- ##
81ecdfbb 2366## File substitutions. ##
d0ac1c44 2367## ------------------- ##"
42ecbf5e
DJ
2368 echo
2369 for ac_var in $ac_subst_files
2370 do
81ecdfbb
RW
2371 eval ac_val=\$$ac_var
2372 case $ac_val in
2373 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2374 esac
2375 $as_echo "$ac_var='\''$ac_val'\''"
42ecbf5e
DJ
2376 done | sort
2377 echo
2378 fi
2379
2380 if test -s confdefs.h; then
d0ac1c44 2381 $as_echo "## ----------- ##
42ecbf5e 2382## confdefs.h. ##
d0ac1c44 2383## ----------- ##"
42ecbf5e 2384 echo
81ecdfbb 2385 cat confdefs.h
42ecbf5e
DJ
2386 echo
2387 fi
2388 test "$ac_signal" != 0 &&
81ecdfbb
RW
2389 $as_echo "$as_me: caught signal $ac_signal"
2390 $as_echo "$as_me: exit $exit_status"
42ecbf5e 2391 } >&5
81ecdfbb
RW
2392 rm -f core *.core core.conftest.* &&
2393 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
42ecbf5e 2394 exit $exit_status
81ecdfbb 2395' 0
42ecbf5e 2396for ac_signal in 1 2 13 15; do
81ecdfbb 2397 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
42ecbf5e
DJ
2398done
2399ac_signal=0
2400
2401# confdefs.h avoids OS command line length limits that DEFS can exceed.
81ecdfbb
RW
2402rm -f -r conftest* confdefs.h
2403
2404$as_echo "/* confdefs.h */" > confdefs.h
42ecbf5e
DJ
2405
2406# Predefined preprocessor variables.
2407
2408cat >>confdefs.h <<_ACEOF
2409#define PACKAGE_NAME "$PACKAGE_NAME"
2410_ACEOF
2411
42ecbf5e
DJ
2412cat >>confdefs.h <<_ACEOF
2413#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2414_ACEOF
2415
42ecbf5e
DJ
2416cat >>confdefs.h <<_ACEOF
2417#define PACKAGE_VERSION "$PACKAGE_VERSION"
2418_ACEOF
2419
42ecbf5e
DJ
2420cat >>confdefs.h <<_ACEOF
2421#define PACKAGE_STRING "$PACKAGE_STRING"
2422_ACEOF
2423
42ecbf5e
DJ
2424cat >>confdefs.h <<_ACEOF
2425#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2426_ACEOF
2427
81ecdfbb
RW
2428cat >>confdefs.h <<_ACEOF
2429#define PACKAGE_URL "$PACKAGE_URL"
2430_ACEOF
2431
42ecbf5e
DJ
2432
2433# Let the site file select an alternate cache file if it wants to.
81ecdfbb
RW
2434# Prefer an explicitly selected file to automatically selected ones.
2435ac_site_file1=NONE
2436ac_site_file2=NONE
2437if test -n "$CONFIG_SITE"; then
d0ac1c44
SM
2438 # We do not want a PATH search for config.site.
2439 case $CONFIG_SITE in #((
2440 -*) ac_site_file1=./$CONFIG_SITE;;
2441 */*) ac_site_file1=$CONFIG_SITE;;
2442 *) ac_site_file1=./$CONFIG_SITE;;
2443 esac
81ecdfbb
RW
2444elif test "x$prefix" != xNONE; then
2445 ac_site_file1=$prefix/share/config.site
2446 ac_site_file2=$prefix/etc/config.site
2447else
2448 ac_site_file1=$ac_default_prefix/share/config.site
2449 ac_site_file2=$ac_default_prefix/etc/config.site
2450fi
2451for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2452do
2453 test "x$ac_site_file" = xNONE && continue
d0ac1c44 2454 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
81ecdfbb
RW
2455 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2456$as_echo "$as_me: loading site script $ac_site_file" >&6;}
42ecbf5e 2457 sed 's/^/| /' "$ac_site_file" >&5
d0ac1c44
SM
2458 . "$ac_site_file" \
2459 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2460$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2461as_fn_error $? "failed to load site script $ac_site_file
2462See \`config.log' for more details" "$LINENO" 5; }
42ecbf5e
DJ
2463 fi
2464done
2465
2466if test -r "$cache_file"; then
d0ac1c44
SM
2467 # Some versions of bash will fail to source /dev/null (special files
2468 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2469 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
81ecdfbb
RW
2470 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2471$as_echo "$as_me: loading cache $cache_file" >&6;}
42ecbf5e 2472 case $cache_file in
81ecdfbb
RW
2473 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2474 *) . "./$cache_file";;
42ecbf5e
DJ
2475 esac
2476 fi
2477else
81ecdfbb
RW
2478 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2479$as_echo "$as_me: creating cache $cache_file" >&6;}
42ecbf5e
DJ
2480 >$cache_file
2481fi
2482
34156b23
L
2483as_fn_append ac_header_list " stdlib.h"
2484as_fn_append ac_header_list " unistd.h"
2485as_fn_append ac_header_list " sys/param.h"
42ecbf5e
DJ
2486# Check that the precious variables saved in the cache have kept the same
2487# value.
2488ac_cache_corrupted=false
81ecdfbb 2489for ac_var in $ac_precious_vars; do
42ecbf5e
DJ
2490 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2491 eval ac_new_set=\$ac_env_${ac_var}_set
81ecdfbb
RW
2492 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2493 eval ac_new_val=\$ac_env_${ac_var}_value
42ecbf5e
DJ
2494 case $ac_old_set,$ac_new_set in
2495 set,)
81ecdfbb
RW
2496 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2497$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
42ecbf5e
DJ
2498 ac_cache_corrupted=: ;;
2499 ,set)
81ecdfbb
RW
2500 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2501$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
42ecbf5e
DJ
2502 ac_cache_corrupted=: ;;
2503 ,);;
2504 *)
2505 if test "x$ac_old_val" != "x$ac_new_val"; then
81ecdfbb
RW
2506 # differences in whitespace do not lead to failure.
2507 ac_old_val_w=`echo x $ac_old_val`
2508 ac_new_val_w=`echo x $ac_new_val`
2509 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2510 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2511$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2512 ac_cache_corrupted=:
2513 else
2514 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2515$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2516 eval $ac_var=\$ac_old_val
2517 fi
2518 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2519$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2520 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2521$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
42ecbf5e
DJ
2522 fi;;
2523 esac
2524 # Pass precious variables to config.status.
2525 if test "$ac_new_set" = set; then
2526 case $ac_new_val in
81ecdfbb 2527 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
42ecbf5e
DJ
2528 *) ac_arg=$ac_var=$ac_new_val ;;
2529 esac
2530 case " $ac_configure_args " in
2531 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
81ecdfbb 2532 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
42ecbf5e
DJ
2533 esac
2534 fi
2535done
2536if $ac_cache_corrupted; then
81ecdfbb
RW
2537 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2538$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2539 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2540$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
d0ac1c44 2541 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
42ecbf5e 2542fi
81ecdfbb
RW
2543## -------------------- ##
2544## Main body of script. ##
2545## -------------------- ##
42ecbf5e
DJ
2546
2547ac_ext=c
2548ac_cpp='$CPP $CPPFLAGS'
2549ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2550ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2551ac_compiler_gnu=$ac_cv_c_compiler_gnu
2552
2553
2554
42ecbf5e 2555
da594c4a 2556
42ecbf5e
DJ
2557
2558
2559ac_aux_dir=
81ecdfbb 2560for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
d0ac1c44
SM
2561 if test -f "$ac_dir/install-sh"; then
2562 ac_aux_dir=$ac_dir
2563 ac_install_sh="$ac_aux_dir/install-sh -c"
2564 break
2565 elif test -f "$ac_dir/install.sh"; then
2566 ac_aux_dir=$ac_dir
2567 ac_install_sh="$ac_aux_dir/install.sh -c"
2568 break
2569 elif test -f "$ac_dir/shtool"; then
2570 ac_aux_dir=$ac_dir
2571 ac_install_sh="$ac_aux_dir/shtool install -c"
2572 break
2573 fi
42ecbf5e
DJ
2574done
2575if test -z "$ac_aux_dir"; then
d0ac1c44 2576 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
42ecbf5e 2577fi
81ecdfbb
RW
2578
2579# These three variables are undocumented and unsupported,
2580# and are intended to be withdrawn in a future Autoconf release.
2581# They can cause serious problems if a builder's source tree is in a directory
2582# whose full name contains unusual characters.
2583ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2584ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2585ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2586
42ecbf5e
DJ
2587
2588# Make sure we can run config.sub.
81ecdfbb 2589$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
d0ac1c44 2590 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
81ecdfbb
RW
2591
2592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2593$as_echo_n "checking build system type... " >&6; }
d0ac1c44 2594if ${ac_cv_build+:} false; then :
81ecdfbb
RW
2595 $as_echo_n "(cached) " >&6
2596else
2597 ac_build_alias=$build_alias
2598test "x$ac_build_alias" = x &&
2599 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2600test "x$ac_build_alias" = x &&
d0ac1c44 2601 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
81ecdfbb 2602ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
d0ac1c44 2603 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
81ecdfbb
RW
2604
2605fi
2606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2607$as_echo "$ac_cv_build" >&6; }
2608case $ac_cv_build in
2609*-*-*) ;;
d0ac1c44 2610*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
81ecdfbb 2611esac
42ecbf5e 2612build=$ac_cv_build
81ecdfbb
RW
2613ac_save_IFS=$IFS; IFS='-'
2614set x $ac_cv_build
2615shift
2616build_cpu=$1
2617build_vendor=$2
2618shift; shift
2619# Remember, the first character of IFS is used to create $*,
2620# except with old shells:
2621build_os=$*
2622IFS=$ac_save_IFS
2623case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
42ecbf5e
DJ
2624
2625
81ecdfbb
RW
2626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2627$as_echo_n "checking host system type... " >&6; }
d0ac1c44 2628if ${ac_cv_host+:} false; then :
81ecdfbb 2629 $as_echo_n "(cached) " >&6
42ecbf5e 2630else
81ecdfbb
RW
2631 if test "x$host_alias" = x; then
2632 ac_cv_host=$ac_cv_build
2633else
2634 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
d0ac1c44 2635 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
81ecdfbb 2636fi
42ecbf5e
DJ
2637
2638fi
81ecdfbb
RW
2639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2640$as_echo "$ac_cv_host" >&6; }
2641case $ac_cv_host in
2642*-*-*) ;;
d0ac1c44 2643*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
81ecdfbb 2644esac
42ecbf5e 2645host=$ac_cv_host
81ecdfbb
RW
2646ac_save_IFS=$IFS; IFS='-'
2647set x $ac_cv_host
2648shift
2649host_cpu=$1
2650host_vendor=$2
2651shift; shift
2652# Remember, the first character of IFS is used to create $*,
2653# except with old shells:
2654host_os=$*
2655IFS=$ac_save_IFS
2656case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
42ecbf5e
DJ
2657
2658
81ecdfbb
RW
2659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2660$as_echo_n "checking target system type... " >&6; }
d0ac1c44 2661if ${ac_cv_target+:} false; then :
81ecdfbb
RW
2662 $as_echo_n "(cached) " >&6
2663else
2664 if test "x$target_alias" = x; then
2665 ac_cv_target=$ac_cv_host
42ecbf5e 2666else
81ecdfbb 2667 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
d0ac1c44 2668 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
81ecdfbb 2669fi
42ecbf5e
DJ
2670
2671fi
81ecdfbb
RW
2672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2673$as_echo "$ac_cv_target" >&6; }
2674case $ac_cv_target in
2675*-*-*) ;;
d0ac1c44 2676*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
81ecdfbb 2677esac
42ecbf5e 2678target=$ac_cv_target
81ecdfbb
RW
2679ac_save_IFS=$IFS; IFS='-'
2680set x $ac_cv_target
2681shift
2682target_cpu=$1
2683target_vendor=$2
2684shift; shift
2685# Remember, the first character of IFS is used to create $*,
2686# except with old shells:
2687target_os=$*
2688IFS=$ac_save_IFS
2689case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
42ecbf5e
DJ
2690
2691
2692# The aliases save the names the user supplied, while $host etc.
2693# will get canonicalized.
2694test -n "$target_alias" &&
2695 test "$program_prefix$program_suffix$program_transform_name" = \
2696 NONENONEs,x,x, &&
2697 program_prefix=${target_alias}-
d0ac1c44 2698
87b9f255
AM
2699am__api_version='1.15'
2700
2701# Find a good install program. We prefer a C program (faster),
2702# so one script is as good as another. But avoid the broken or
2703# incompatible versions:
2704# SysV /etc/install, /usr/sbin/install
2705# SunOS /usr/etc/install
2706# IRIX /sbin/install
2707# AIX /bin/install
2708# AmigaOS /C/install, which installs bootblocks on floppy discs
2709# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2710# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2711# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2712# OS/2's system install, which has a completely different semantic
2713# ./install, which can be erroneously created by make from ./install.sh.
2714# Reject install programs that cannot install multiple files.
2715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2716$as_echo_n "checking for a BSD-compatible install... " >&6; }
2717if test -z "$INSTALL"; then
2718if ${ac_cv_path_install+:} false; then :
81ecdfbb 2719 $as_echo_n "(cached) " >&6
42ecbf5e 2720else
87b9f255 2721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42ecbf5e
DJ
2722for as_dir in $PATH
2723do
2724 IFS=$as_save_IFS
2725 test -z "$as_dir" && as_dir=.
87b9f255
AM
2726 # Account for people who put trailing slashes in PATH elements.
2727case $as_dir/ in #((
2728 ./ | .// | /[cC]/* | \
2729 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2730 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2731 /usr/ucb/* ) ;;
2732 *)
2733 # OSF1 and SCO ODT 3.0 have their own names for install.
2734 # Don't use installbsd from OSF since it installs stuff as root
2735 # by default.
2736 for ac_prog in ginstall scoinst install; do
2737 for ac_exec_ext in '' $ac_executable_extensions; do
2738 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2739 if test $ac_prog = install &&
2740 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2741 # AIX install. It has an incompatible calling convention.
2742 :
2743 elif test $ac_prog = install &&
2744 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2745 # program-specific install script used by HP pwplus--don't use.
2746 :
2747 else
2748 rm -rf conftest.one conftest.two conftest.dir
2749 echo one > conftest.one
2750 echo two > conftest.two
2751 mkdir conftest.dir
2752 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2753 test -s conftest.one && test -s conftest.two &&
2754 test -s conftest.dir/conftest.one &&
2755 test -s conftest.dir/conftest.two
2756 then
2757 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2758 break 3
2759 fi
2760 fi
2761 fi
2762 done
2763 done
2764 ;;
2765esac
2766
81ecdfbb
RW
2767 done
2768IFS=$as_save_IFS
42ecbf5e 2769
87b9f255
AM
2770rm -rf conftest.one conftest.two conftest.dir
2771
252b5132
RH
2772fi
2773 if test "${ac_cv_path_install+set}" = set; then
42ecbf5e 2774 INSTALL=$ac_cv_path_install
252b5132 2775 else
58c85be7
RW
2776 # As a last resort, use the slow shell script. Don't cache a
2777 # value for INSTALL within a source directory, because that will
252b5132 2778 # break other packages using the cache if that directory is
58c85be7 2779 # removed, or if the value is a relative name.
42ecbf5e 2780 INSTALL=$ac_install_sh
252b5132
RH
2781 fi
2782fi
81ecdfbb
RW
2783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2784$as_echo "$INSTALL" >&6; }
252b5132
RH
2785
2786# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2787# It thinks the first close brace ends the variable substitution.
2788test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2789
42ecbf5e 2790test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
252b5132
RH
2791
2792test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2793
81ecdfbb
RW
2794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2795$as_echo_n "checking whether build environment is sane... " >&6; }
81ecdfbb
RW
2796# Reject unsafe characters in $srcdir or the absolute working directory
2797# name. Accept space and tab only in the latter.
2798am_lf='
2799'
2800case `pwd` in
2801 *[\\\"\#\$\&\'\`$am_lf]*)
d0ac1c44 2802 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
81ecdfbb
RW
2803esac
2804case $srcdir in
2805 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
d0ac1c44 2806 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
81ecdfbb
RW
2807esac
2808
d0ac1c44 2809# Do 'set' in a subshell so we don't clobber the current shell's
252b5132
RH
2810# arguments. Must try -L first in case configure is actually a
2811# symlink; some systems play weird games with the mod time of symlinks
2812# (eg FreeBSD returns the mod time of the symlink's containing
2813# directory).
2814if (
d0ac1c44
SM
2815 am_has_slept=no
2816 for am_try in 1 2; do
2817 echo "timestamp, slept: $am_has_slept" > conftest.file
2818 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2819 if test "$*" = "X"; then
2820 # -L didn't work.
2821 set X `ls -t "$srcdir/configure" conftest.file`
2822 fi
2823 if test "$*" != "X $srcdir/configure conftest.file" \
2824 && test "$*" != "X conftest.file $srcdir/configure"; then
2825
2826 # If neither matched, then we have a broken ls. This can happen
2827 # if, for instance, CONFIG_SHELL is bash and it inherits a
2828 # broken ls alias from the environment. This has actually
2829 # happened. Such a system could not be considered "sane".
2830 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2831 alias in your environment" "$LINENO" 5
2832 fi
2833 if test "$2" = conftest.file || test $am_try -eq 2; then
2834 break
2835 fi
2836 # Just in case.
2837 sleep 1
2838 am_has_slept=yes
2839 done
42ecbf5e 2840 test "$2" = conftest.file
252b5132
RH
2841 )
2842then
2843 # Ok.
2844 :
2845else
d0ac1c44 2846 as_fn_error $? "newly created file is older than distributed files!
81ecdfbb 2847Check your system clock" "$LINENO" 5
42ecbf5e 2848fi
81ecdfbb
RW
2849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2850$as_echo "yes" >&6; }
d0ac1c44
SM
2851# If we didn't sleep, we still need to ensure time stamps of config.status and
2852# generated files are strictly newer.
2853am_sleep_pid=
2854if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2855 ( sleep 1 ) &
2856 am_sleep_pid=$!
2857fi
2858
2859rm -f conftest.file
2860
42ecbf5e 2861test "$program_prefix" != NONE &&
81ecdfbb 2862 program_transform_name="s&^&$program_prefix&;$program_transform_name"
42ecbf5e
DJ
2863# Use a double $ so make ignores it.
2864test "$program_suffix" != NONE &&
81ecdfbb
RW
2865 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2866# Double any \ or $.
42ecbf5e 2867# By default was `s,x,x', remove it if useless.
81ecdfbb
RW
2868ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2869program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
42ecbf5e 2870
87b9f255
AM
2871# Expand $ac_aux_dir to an absolute path.
2872am_aux_dir=`cd "$ac_aux_dir" && pwd`
2873
81ecdfbb
RW
2874if test x"${MISSING+set}" != xset; then
2875 case $am_aux_dir in
2876 *\ * | *\ *)
2877 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2878 *)
2879 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2880 esac
2881fi
42ecbf5e 2882# Use eval to expand $SHELL
d0ac1c44
SM
2883if eval "$MISSING --is-lightweight"; then
2884 am_missing_run="$MISSING "
42ecbf5e
DJ
2885else
2886 am_missing_run=
d0ac1c44
SM
2887 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2888$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
42ecbf5e
DJ
2889fi
2890
d0ac1c44 2891if test x"${install_sh+set}" != xset; then
81ecdfbb
RW
2892 case $am_aux_dir in
2893 *\ * | *\ *)
2894 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2895 *)
2896 install_sh="\${SHELL} $am_aux_dir/install-sh"
2897 esac
2898fi
2899
d0ac1c44
SM
2900# Installed binaries are usually stripped using 'strip' when the user
2901# run "make install-strip". However 'strip' might not be the right
81ecdfbb 2902# tool to use in cross-compilation environments, therefore Automake
d0ac1c44 2903# will honor the 'STRIP' environment variable to overrule this program.
81ecdfbb
RW
2904if test "$cross_compiling" != no; then
2905 if test -n "$ac_tool_prefix"; then
2906 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2907set dummy ${ac_tool_prefix}strip; ac_word=$2
2908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2909$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 2910if ${ac_cv_prog_STRIP+:} false; then :
81ecdfbb 2911 $as_echo_n "(cached) " >&6
42ecbf5e 2912else
81ecdfbb
RW
2913 if test -n "$STRIP"; then
2914 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
42ecbf5e
DJ
2915else
2916as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2917for as_dir in $PATH
2918do
2919 IFS=$as_save_IFS
2920 test -z "$as_dir" && as_dir=.
81ecdfbb 2921 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 2922 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
81ecdfbb
RW
2923 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2925 break 2
2926 fi
2927done
2928 done
2929IFS=$as_save_IFS
2930
2931fi
2932fi
2933STRIP=$ac_cv_prog_STRIP
2934if test -n "$STRIP"; then
2935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2936$as_echo "$STRIP" >&6; }
2937else
2938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2939$as_echo "no" >&6; }
2940fi
2941
2942
2943fi
2944if test -z "$ac_cv_prog_STRIP"; then
2945 ac_ct_STRIP=$STRIP
2946 # Extract the first word of "strip", so it can be a program name with args.
2947set dummy strip; ac_word=$2
2948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2949$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 2950if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
81ecdfbb
RW
2951 $as_echo_n "(cached) " >&6
2952else
2953 if test -n "$ac_ct_STRIP"; then
2954 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2955else
2956as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2957for as_dir in $PATH
2958do
2959 IFS=$as_save_IFS
2960 test -z "$as_dir" && as_dir=.
2961 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 2962 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
81ecdfbb
RW
2963 ac_cv_prog_ac_ct_STRIP="strip"
2964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
42ecbf5e
DJ
2965 break 2
2966 fi
2967done
81ecdfbb
RW
2968 done
2969IFS=$as_save_IFS
2970
2971fi
2972fi
2973ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2974if test -n "$ac_ct_STRIP"; then
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2976$as_echo "$ac_ct_STRIP" >&6; }
2977else
2978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2979$as_echo "no" >&6; }
2980fi
2981
2982 if test "x$ac_ct_STRIP" = x; then
2983 STRIP=":"
2984 else
2985 case $cross_compiling:$ac_tool_warned in
2986yes:)
2987{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2988$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2989ac_tool_warned=yes ;;
2990esac
2991 STRIP=$ac_ct_STRIP
2992 fi
2993else
2994 STRIP="$ac_cv_prog_STRIP"
2995fi
2996
2997fi
2998INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2999
3000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3001$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3002if test -z "$MKDIR_P"; then
d0ac1c44 3003 if ${ac_cv_path_mkdir+:} false; then :
81ecdfbb
RW
3004 $as_echo_n "(cached) " >&6
3005else
3006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3007for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3008do
3009 IFS=$as_save_IFS
3010 test -z "$as_dir" && as_dir=.
3011 for ac_prog in mkdir gmkdir; do
3012 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 3013 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
81ecdfbb
RW
3014 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3015 'mkdir (GNU coreutils) '* | \
3016 'mkdir (coreutils) '* | \
3017 'mkdir (fileutils) '4.1*)
3018 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3019 break 3;;
3020 esac
3021 done
3022 done
3023 done
3024IFS=$as_save_IFS
3025
3026fi
3027
d0ac1c44 3028 test -d ./--version && rmdir ./--version
81ecdfbb
RW
3029 if test "${ac_cv_path_mkdir+set}" = set; then
3030 MKDIR_P="$ac_cv_path_mkdir -p"
3031 else
3032 # As a last resort, use the slow shell script. Don't cache a
3033 # value for MKDIR_P within a source directory, because that will
3034 # break other packages using the cache if that directory is
3035 # removed, or if the value is a relative name.
81ecdfbb
RW
3036 MKDIR_P="$ac_install_sh -d"
3037 fi
3038fi
3039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3040$as_echo "$MKDIR_P" >&6; }
3041
81ecdfbb
RW
3042for ac_prog in gawk mawk nawk awk
3043do
3044 # Extract the first word of "$ac_prog", so it can be a program name with args.
3045set dummy $ac_prog; ac_word=$2
3046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3047$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 3048if ${ac_cv_prog_AWK+:} false; then :
81ecdfbb
RW
3049 $as_echo_n "(cached) " >&6
3050else
3051 if test -n "$AWK"; then
3052 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3053else
3054as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3055for as_dir in $PATH
3056do
3057 IFS=$as_save_IFS
3058 test -z "$as_dir" && as_dir=.
3059 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 3060 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
81ecdfbb
RW
3061 ac_cv_prog_AWK="$ac_prog"
3062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3063 break 2
3064 fi
42ecbf5e 3065done
81ecdfbb
RW
3066 done
3067IFS=$as_save_IFS
42ecbf5e
DJ
3068
3069fi
3070fi
3071AWK=$ac_cv_prog_AWK
3072if test -n "$AWK"; then
81ecdfbb
RW
3073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3074$as_echo "$AWK" >&6; }
42ecbf5e 3075else
81ecdfbb
RW
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3077$as_echo "no" >&6; }
42ecbf5e
DJ
3078fi
3079
81ecdfbb 3080
42ecbf5e
DJ
3081 test -n "$AWK" && break
3082done
3083
81ecdfbb
RW
3084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3085$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3086set x ${MAKE-make}
3087ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
d0ac1c44 3088if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
81ecdfbb 3089 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
3090else
3091 cat >conftest.make <<\_ACEOF
81ecdfbb 3092SHELL = /bin/sh
42ecbf5e 3093all:
81ecdfbb 3094 @echo '@@@%%%=$(MAKE)=@@@%%%'
42ecbf5e 3095_ACEOF
d0ac1c44 3096# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
81ecdfbb
RW
3097case `${MAKE-make} -f conftest.make 2>/dev/null` in
3098 *@@@%%%=?*=@@@%%%*)
3099 eval ac_cv_prog_make_${ac_make}_set=yes;;
3100 *)
3101 eval ac_cv_prog_make_${ac_make}_set=no;;
3102esac
42ecbf5e
DJ
3103rm -f conftest.make
3104fi
81ecdfbb
RW
3105if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3107$as_echo "yes" >&6; }
42ecbf5e
DJ
3108 SET_MAKE=
3109else
81ecdfbb
RW
3110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3111$as_echo "no" >&6; }
42ecbf5e
DJ
3112 SET_MAKE="MAKE=${MAKE-make}"
3113fi
3114
3115rm -rf .tst 2>/dev/null
3116mkdir .tst 2>/dev/null
3117if test -d .tst; then
3118 am__leading_dot=.
3119else
3120 am__leading_dot=_
3121fi
3122rmdir .tst 2>/dev/null
3123
d0ac1c44
SM
3124# Check whether --enable-silent-rules was given.
3125if test "${enable_silent_rules+set}" = set; then :
3126 enableval=$enable_silent_rules;
3127fi
3128
3129case $enable_silent_rules in # (((
3130 yes) AM_DEFAULT_VERBOSITY=0;;
3131 no) AM_DEFAULT_VERBOSITY=1;;
3132 *) AM_DEFAULT_VERBOSITY=1;;
3133esac
3134am_make=${MAKE-make}
3135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3136$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3137if ${am_cv_make_support_nested_variables+:} false; then :
3138 $as_echo_n "(cached) " >&6
3139else
3140 if $as_echo 'TRUE=$(BAR$(V))
3141BAR0=false
3142BAR1=true
3143V=1
3144am__doit:
3145 @$(TRUE)
3146.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3147 am_cv_make_support_nested_variables=yes
3148else
3149 am_cv_make_support_nested_variables=no
3150fi
3151fi
3152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3153$as_echo "$am_cv_make_support_nested_variables" >&6; }
3154if test $am_cv_make_support_nested_variables = yes; then
3155 AM_V='$(V)'
3156 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3157else
3158 AM_V=$AM_DEFAULT_VERBOSITY
3159 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3160fi
3161AM_BACKSLASH='\'
3162
81ecdfbb
RW
3163if test "`cd $srcdir && pwd`" != "`pwd`"; then
3164 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3165 # is not polluted with repeated "-I."
3166 am__isrc=' -I$(srcdir)'
3167 # test to see if srcdir already configured
3168 if test -f $srcdir/config.status; then
d0ac1c44 3169 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
81ecdfbb 3170 fi
42ecbf5e
DJ
3171fi
3172
3173# test whether we have cygpath
3174if test -z "$CYGPATH_W"; then
3175 if (cygpath --version) >/dev/null 2>/dev/null; then
3176 CYGPATH_W='cygpath -w'
3177 else
3178 CYGPATH_W=echo
3179 fi
3180fi
3181
3182
3183# Define the identity of the package.
2e98a7bd 3184 PACKAGE='binutils'
573fe3fb 3185 VERSION='2.36.50'
42ecbf5e
DJ
3186
3187
3188cat >>confdefs.h <<_ACEOF
3189#define PACKAGE "$PACKAGE"
3190_ACEOF
3191
3192
3193cat >>confdefs.h <<_ACEOF
3194#define VERSION "$VERSION"
3195_ACEOF
3196
3197# Some tools Automake needs.
3198
3199ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3200
3201
3202AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3203
3204
3205AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3206
3207
3208AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3209
3210
3211MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3212
d0ac1c44
SM
3213# For better backward compatibility. To be removed once Automake 1.9.x
3214# dies out for good. For more background, see:
3215# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3216# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3217mkdir_p='$(MKDIR_P)'
3218
3219# We need awk for the "check" target (and possibly the TAP driver). The
87b9f255
AM
3220# system "awk" is bad on some platforms.
3221# Always define AMTAR for backward compatibility. Yes, it's still used
3222# in the wild :-( We should find a proper way to deprecate it ...
3223AMTAR='$${TAR-tar}'
3224
3225
3226# We'll loop over all known methods to create a tar archive until one works.
3227_am_tools='gnutar pax cpio none'
3228
3229am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
42ecbf5e 3230
252b5132 3231
42ecbf5e 3232
252b5132
RH
3233
3234
3235
d0ac1c44
SM
3236# POSIX will say in a future version that running "rm -f" with no argument
3237# is OK; and we want to be able to make that assumption in our Makefile
3238# recipes. So use an aggressive probe to check that the usage we want is
3239# actually supported "in the wild" to an acceptable degree.
3240# See automake bug#10828.
3241# To make any issue more visible, cause the running configure to be aborted
3242# by default if the 'rm' program in use doesn't match our expectations; the
3243# user can still override this though.
3244if rm -f && rm -fr && rm -rf; then : OK; else
3245 cat >&2 <<'END'
3246Oops!
3247
3248Your 'rm' program seems unable to run without file operands specified
3249on the command line, even when the '-f' option is present. This is contrary
3250to the behaviour of most rm programs out there, and not conforming with
3251the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3252
3253Please tell bug-automake@gnu.org about your system, including the value
3254of your $PATH and any error possibly output before this message. This
3255can help us improve future automake versions.
3256
3257END
3258 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3259 echo 'Configuration will proceed anyway, since you have set the' >&2
3260 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3261 echo >&2
3262 else
3263 cat >&2 <<'END'
3264Aborting the configuration process, to ensure you take notice of the issue.
3265
3266You can download and install GNU coreutils to get an 'rm' implementation
3267that behaves properly: <http://www.gnu.org/software/coreutils/>.
3268
3269If you want to complete the configuration process using your problematic
3270'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3271to "yes", and re-run configure.
3272
3273END
3274 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3275 fi
3276fi
3277
42ecbf5e 3278
d45dc31f
SE
3279ac_ext=c
3280ac_cpp='$CPP $CPPFLAGS'
3281ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3282ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3283ac_compiler_gnu=$ac_cv_c_compiler_gnu
3284if test -n "$ac_tool_prefix"; then
3285 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3286set dummy ${ac_tool_prefix}gcc; ac_word=$2
81ecdfbb
RW
3287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3288$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 3289if ${ac_cv_prog_CC+:} false; then :
81ecdfbb 3290 $as_echo_n "(cached) " >&6
252b5132 3291else
d45dc31f
SE
3292 if test -n "$CC"; then
3293 ac_cv_prog_CC="$CC" # Let the user override the test.
1a09a22c 3294else
d45dc31f
SE
3295as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3296for as_dir in $PATH
3297do
3298 IFS=$as_save_IFS
3299 test -z "$as_dir" && as_dir=.
81ecdfbb 3300 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 3301 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d45dc31f 3302 ac_cv_prog_CC="${ac_tool_prefix}gcc"
81ecdfbb 3303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d45dc31f
SE
3304 break 2
3305 fi
3306done
81ecdfbb
RW
3307 done
3308IFS=$as_save_IFS
ceae3e33 3309
d45dc31f
SE
3310fi
3311fi
3312CC=$ac_cv_prog_CC
3313if test -n "$CC"; then
81ecdfbb
RW
3314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3315$as_echo "$CC" >&6; }
252b5132 3316else
81ecdfbb
RW
3317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3318$as_echo "no" >&6; }
252b5132 3319fi
d45dc31f 3320
81ecdfbb 3321
d45dc31f
SE
3322fi
3323if test -z "$ac_cv_prog_CC"; then
3324 ac_ct_CC=$CC
3325 # Extract the first word of "gcc", so it can be a program name with args.
3326set dummy gcc; ac_word=$2
81ecdfbb
RW
3327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3328$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 3329if ${ac_cv_prog_ac_ct_CC+:} false; then :
81ecdfbb 3330 $as_echo_n "(cached) " >&6
252b5132 3331else
d45dc31f
SE
3332 if test -n "$ac_ct_CC"; then
3333 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
252b5132 3334else
d45dc31f
SE
3335as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3336for as_dir in $PATH
3337do
3338 IFS=$as_save_IFS
3339 test -z "$as_dir" && as_dir=.
81ecdfbb 3340 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 3341 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d45dc31f 3342 ac_cv_prog_ac_ct_CC="gcc"
81ecdfbb 3343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d45dc31f
SE
3344 break 2
3345 fi
3346done
81ecdfbb
RW
3347 done
3348IFS=$as_save_IFS
d45dc31f 3349
252b5132
RH
3350fi
3351fi
d45dc31f
SE
3352ac_ct_CC=$ac_cv_prog_ac_ct_CC
3353if test -n "$ac_ct_CC"; then
81ecdfbb
RW
3354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3355$as_echo "$ac_ct_CC" >&6; }
252b5132 3356else
81ecdfbb
RW
3357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3358$as_echo "no" >&6; }
252b5132 3359fi
d45dc31f 3360
81ecdfbb
RW
3361 if test "x$ac_ct_CC" = x; then
3362 CC=""
3363 else
3364 case $cross_compiling:$ac_tool_warned in
3365yes:)
3366{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3367$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3368ac_tool_warned=yes ;;
3369esac
3370 CC=$ac_ct_CC
3371 fi
d45dc31f
SE
3372else
3373 CC="$ac_cv_prog_CC"
3374fi
3375
3376if test -z "$CC"; then
81ecdfbb
RW
3377 if test -n "$ac_tool_prefix"; then
3378 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
d45dc31f 3379set dummy ${ac_tool_prefix}cc; ac_word=$2
81ecdfbb
RW
3380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3381$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 3382if ${ac_cv_prog_CC+:} false; then :
81ecdfbb 3383 $as_echo_n "(cached) " >&6
252b5132 3384else
d45dc31f
SE
3385 if test -n "$CC"; then
3386 ac_cv_prog_CC="$CC" # Let the user override the test.
252b5132 3387else
d45dc31f
SE
3388as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3389for as_dir in $PATH
3390do
3391 IFS=$as_save_IFS
3392 test -z "$as_dir" && as_dir=.
81ecdfbb 3393 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 3394 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d45dc31f 3395 ac_cv_prog_CC="${ac_tool_prefix}cc"
81ecdfbb 3396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d45dc31f
SE
3397 break 2
3398 fi
3399done
81ecdfbb
RW
3400 done
3401IFS=$as_save_IFS
d45dc31f 3402
252b5132
RH
3403fi
3404fi
d45dc31f
SE
3405CC=$ac_cv_prog_CC
3406if test -n "$CC"; then
81ecdfbb
RW
3407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3408$as_echo "$CC" >&6; }
d45dc31f 3409else
81ecdfbb
RW
3410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3411$as_echo "no" >&6; }
252b5132
RH
3412fi
3413
252b5132 3414
81ecdfbb 3415 fi
d45dc31f
SE
3416fi
3417if test -z "$CC"; then
3418 # Extract the first word of "cc", so it can be a program name with args.
3419set dummy cc; ac_word=$2
81ecdfbb
RW
3420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3421$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 3422if ${ac_cv_prog_CC+:} false; then :
81ecdfbb 3423 $as_echo_n "(cached) " >&6
252b5132 3424else
d45dc31f
SE
3425 if test -n "$CC"; then
3426 ac_cv_prog_CC="$CC" # Let the user override the test.
3427else
3428 ac_prog_rejected=no
3429as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3430for as_dir in $PATH
3431do
3432 IFS=$as_save_IFS
3433 test -z "$as_dir" && as_dir=.
81ecdfbb 3434 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 3435 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d45dc31f
SE
3436 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3437 ac_prog_rejected=yes
3438 continue
3439 fi
3440 ac_cv_prog_CC="cc"
81ecdfbb 3441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d45dc31f
SE
3442 break 2
3443 fi
3444done
81ecdfbb
RW
3445 done
3446IFS=$as_save_IFS
d45dc31f
SE
3447
3448if test $ac_prog_rejected = yes; then
3449 # We found a bogon in the path, so make sure we never use it.
3450 set dummy $ac_cv_prog_CC
3451 shift
3452 if test $# != 0; then
3453 # We chose a different compiler from the bogus one.
3454 # However, it has the same basename, so the bogon will be chosen
3455 # first if we set CC to just the basename; use the full file name.
3456 shift
3457 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3458 fi
3459fi
3460fi
3461fi
3462CC=$ac_cv_prog_CC
3463if test -n "$CC"; then
81ecdfbb
RW
3464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3465$as_echo "$CC" >&6; }
d45dc31f 3466else
81ecdfbb
RW
3467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3468$as_echo "no" >&6; }
252b5132
RH
3469fi
3470
81ecdfbb 3471
d45dc31f
SE
3472fi
3473if test -z "$CC"; then
3474 if test -n "$ac_tool_prefix"; then
81ecdfbb 3475 for ac_prog in cl.exe
d45dc31f
SE
3476 do
3477 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3478set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
3479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3480$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 3481if ${ac_cv_prog_CC+:} false; then :
81ecdfbb 3482 $as_echo_n "(cached) " >&6
ac48eca1 3483else
d45dc31f
SE
3484 if test -n "$CC"; then
3485 ac_cv_prog_CC="$CC" # Let the user override the test.
3486else
3487as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3488for as_dir in $PATH
3489do
3490 IFS=$as_save_IFS
3491 test -z "$as_dir" && as_dir=.
81ecdfbb 3492 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 3493 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d45dc31f 3494 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
81ecdfbb 3495 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d45dc31f
SE
3496 break 2
3497 fi
3498done
81ecdfbb
RW
3499 done
3500IFS=$as_save_IFS
ac48eca1 3501
d45dc31f
SE
3502fi
3503fi
3504CC=$ac_cv_prog_CC
3505if test -n "$CC"; then
81ecdfbb
RW
3506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3507$as_echo "$CC" >&6; }
d45dc31f 3508else
81ecdfbb
RW
3509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3510$as_echo "no" >&6; }
d45dc31f 3511fi
ac48eca1 3512
81ecdfbb 3513
d45dc31f
SE
3514 test -n "$CC" && break
3515 done
3516fi
3517if test -z "$CC"; then
3518 ac_ct_CC=$CC
81ecdfbb 3519 for ac_prog in cl.exe
d45dc31f
SE
3520do
3521 # Extract the first word of "$ac_prog", so it can be a program name with args.
3522set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
3523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3524$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 3525if ${ac_cv_prog_ac_ct_CC+:} false; then :
81ecdfbb 3526 $as_echo_n "(cached) " >&6
d45dc31f
SE
3527else
3528 if test -n "$ac_ct_CC"; then
3529 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3530else
3531as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3532for as_dir in $PATH
3533do
3534 IFS=$as_save_IFS
3535 test -z "$as_dir" && as_dir=.
81ecdfbb 3536 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 3537 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d45dc31f 3538 ac_cv_prog_ac_ct_CC="$ac_prog"
81ecdfbb 3539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d45dc31f
SE
3540 break 2
3541 fi
3542done
81ecdfbb
RW
3543 done
3544IFS=$as_save_IFS
ac48eca1 3545
d45dc31f
SE
3546fi
3547fi
3548ac_ct_CC=$ac_cv_prog_ac_ct_CC
3549if test -n "$ac_ct_CC"; then
81ecdfbb
RW
3550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3551$as_echo "$ac_ct_CC" >&6; }
d45dc31f 3552else
81ecdfbb
RW
3553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3554$as_echo "no" >&6; }
d45dc31f 3555fi
ac48eca1 3556
81ecdfbb 3557
d45dc31f
SE
3558 test -n "$ac_ct_CC" && break
3559done
ac48eca1 3560
81ecdfbb
RW
3561 if test "x$ac_ct_CC" = x; then
3562 CC=""
3563 else
3564 case $cross_compiling:$ac_tool_warned in
3565yes:)
3566{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3567$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3568ac_tool_warned=yes ;;
3569esac
3570 CC=$ac_ct_CC
3571 fi
d45dc31f 3572fi
ac48eca1 3573
87b9f255
AM
3574fi
3575
3576
3577test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3578$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3579as_fn_error $? "no acceptable C compiler found in \$PATH
3580See \`config.log' for more details" "$LINENO" 5; }
3581
3582# Provide some information about the compiler.
3583$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3584set X $ac_compile
3585ac_compiler=$2
3586for ac_option in --version -v -V -qversion; do
3587 { { ac_try="$ac_compiler $ac_option >&5"
3588case "(($ac_try" in
3589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3590 *) ac_try_echo=$ac_try;;
3591esac
3592eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3593$as_echo "$ac_try_echo"; } >&5
3594 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3595 ac_status=$?
3596 if test -s conftest.err; then
3597 sed '10a\
3598... rest of stderr output deleted ...
3599 10q' conftest.err >conftest.er1
3600 cat conftest.er1 >&5
3601 fi
3602 rm -f conftest.er1 conftest.err
3603 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3604 test $ac_status = 0; }
3605done
3606
3607cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3608/* end confdefs.h. */
3609
3610int
3611main ()
3612{
3613
3614 ;
3615 return 0;
3616}
3617_ACEOF
3618ac_clean_files_save=$ac_clean_files
3619ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3620# Try to create an executable without -o first, disregard a.out.
3621# It will help us diagnose broken compilers, and finding out an intuition
3622# of exeext.
3623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3624$as_echo_n "checking whether the C compiler works... " >&6; }
3625ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3626
3627# The possible output files:
3628ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3629
3630ac_rmfiles=
3631for ac_file in $ac_files
3632do
3633 case $ac_file in
3634 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3635 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3636 esac
3637done
3638rm -f $ac_rmfiles
3639
3640if { { ac_try="$ac_link_default"
3641case "(($ac_try" in
3642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3643 *) ac_try_echo=$ac_try;;
3644esac
3645eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3646$as_echo "$ac_try_echo"; } >&5
3647 (eval "$ac_link_default") 2>&5
3648 ac_status=$?
3649 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3650 test $ac_status = 0; }; then :
3651 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3652# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3653# in a Makefile. We should not override ac_cv_exeext if it was cached,
3654# so that the user can short-circuit this test for compilers unknown to
3655# Autoconf.
3656for ac_file in $ac_files ''
3657do
3658 test -f "$ac_file" || continue
3659 case $ac_file in
3660 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3661 ;;
3662 [ab].out )
3663 # We found the default executable, but exeext='' is most
3664 # certainly right.
3665 break;;
3666 *.* )
3667 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3668 then :; else
3669 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3670 fi
3671 # We set ac_cv_exeext here because the later test for it is not
3672 # safe: cross compilers may not add the suffix if given an `-o'
3673 # argument, so we may need to know it at that point already.
3674 # Even if this section looks crufty: it has the advantage of
3675 # actually working.
3676 break;;
3677 * )
3678 break;;
3679 esac
3680done
3681test "$ac_cv_exeext" = no && ac_cv_exeext=
3682
3683else
3684 ac_file=''
3685fi
3686if test -z "$ac_file"; then :
3687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3688$as_echo "no" >&6; }
3689$as_echo "$as_me: failed program was:" >&5
3690sed 's/^/| /' conftest.$ac_ext >&5
3691
3692{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3693$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3694as_fn_error 77 "C compiler cannot create executables
3695See \`config.log' for more details" "$LINENO" 5; }
3696else
3697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3698$as_echo "yes" >&6; }
3699fi
3700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3701$as_echo_n "checking for C compiler default output file name... " >&6; }
3702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3703$as_echo "$ac_file" >&6; }
3704ac_exeext=$ac_cv_exeext
3705
3706rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3707ac_clean_files=$ac_clean_files_save
3708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3709$as_echo_n "checking for suffix of executables... " >&6; }
3710if { { ac_try="$ac_link"
3711case "(($ac_try" in
3712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3713 *) ac_try_echo=$ac_try;;
3714esac
3715eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3716$as_echo "$ac_try_echo"; } >&5
3717 (eval "$ac_link") 2>&5
3718 ac_status=$?
3719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3720 test $ac_status = 0; }; then :
3721 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3722# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3723# work properly (i.e., refer to `conftest.exe'), while it won't with
3724# `rm'.
3725for ac_file in conftest.exe conftest conftest.*; do
3726 test -f "$ac_file" || continue
3727 case $ac_file in
3728 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3729 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3730 break;;
3731 * ) break;;
3732 esac
3733done
3734else
3735 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3736$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3737as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3738See \`config.log' for more details" "$LINENO" 5; }
3739fi
3740rm -f conftest conftest$ac_cv_exeext
3741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3742$as_echo "$ac_cv_exeext" >&6; }
3743
3744rm -f conftest.$ac_ext
3745EXEEXT=$ac_cv_exeext
3746ac_exeext=$EXEEXT
3747cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3748/* end confdefs.h. */
3749#include <stdio.h>
3750int
3751main ()
3752{
3753FILE *f = fopen ("conftest.out", "w");
3754 return ferror (f) || fclose (f) != 0;
3755
3756 ;
3757 return 0;
3758}
3759_ACEOF
3760ac_clean_files="$ac_clean_files conftest.out"
3761# Check that the compiler produces executables we can run. If not, either
3762# the compiler is broken, or we cross compile.
3763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3764$as_echo_n "checking whether we are cross compiling... " >&6; }
3765if test "$cross_compiling" != yes; then
3766 { { ac_try="$ac_link"
3767case "(($ac_try" in
3768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3769 *) ac_try_echo=$ac_try;;
3770esac
3771eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3772$as_echo "$ac_try_echo"; } >&5
3773 (eval "$ac_link") 2>&5
3774 ac_status=$?
3775 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3776 test $ac_status = 0; }
3777 if { ac_try='./conftest$ac_cv_exeext'
3778 { { case "(($ac_try" in
3779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3780 *) ac_try_echo=$ac_try;;
3781esac
3782eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3783$as_echo "$ac_try_echo"; } >&5
3784 (eval "$ac_try") 2>&5
3785 ac_status=$?
3786 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3787 test $ac_status = 0; }; }; then
3788 cross_compiling=no
3789 else
3790 if test "$cross_compiling" = maybe; then
3791 cross_compiling=yes
3792 else
3793 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3794$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3795as_fn_error $? "cannot run C compiled programs.
3796If you meant to cross compile, use \`--host'.
3797See \`config.log' for more details" "$LINENO" 5; }
3798 fi
3799 fi
3800fi
3801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3802$as_echo "$cross_compiling" >&6; }
3803
3804rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3805ac_clean_files=$ac_clean_files_save
3806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3807$as_echo_n "checking for suffix of object files... " >&6; }
3808if ${ac_cv_objext+:} false; then :
3809 $as_echo_n "(cached) " >&6
3810else
3811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3812/* end confdefs.h. */
ac48eca1 3813
87b9f255
AM
3814int
3815main ()
3816{
ac48eca1 3817
87b9f255
AM
3818 ;
3819 return 0;
3820}
3821_ACEOF
3822rm -f conftest.o conftest.obj
3823if { { ac_try="$ac_compile"
81ecdfbb
RW
3824case "(($ac_try" in
3825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3826 *) ac_try_echo=$ac_try;;
3827esac
3828eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3829$as_echo "$ac_try_echo"; } >&5
87b9f255 3830 (eval "$ac_compile") 2>&5
d45dc31f 3831 ac_status=$?
81ecdfbb 3832 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
87b9f255
AM
3833 test $ac_status = 0; }; then :
3834 for ac_file in conftest.o conftest.obj conftest.*; do
3835 test -f "$ac_file" || continue;
3836 case $ac_file in
3837 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3838 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3839 break;;
3840 esac
81ecdfbb 3841done
87b9f255
AM
3842else
3843 $as_echo "$as_me: failed program was:" >&5
3844sed 's/^/| /' conftest.$ac_ext >&5
ac48eca1 3845
87b9f255
AM
3846{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3847$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3848as_fn_error $? "cannot compute suffix of object files: cannot compile
3849See \`config.log' for more details" "$LINENO" 5; }
3850fi
3851rm -f conftest.$ac_cv_objext conftest.$ac_ext
3852fi
3853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3854$as_echo "$ac_cv_objext" >&6; }
3855OBJEXT=$ac_cv_objext
3856ac_objext=$OBJEXT
81ecdfbb
RW
3857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3858$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
d0ac1c44 3859if ${ac_cv_c_compiler_gnu+:} false; then :
81ecdfbb 3860 $as_echo_n "(cached) " >&6
bdcfeba5 3861else
81ecdfbb 3862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d45dc31f 3863/* end confdefs.h. */
bdcfeba5 3864
d45dc31f
SE
3865int
3866main ()
3867{
3868#ifndef __GNUC__
3869 choke me
3870#endif
bdcfeba5 3871
d45dc31f
SE
3872 ;
3873 return 0;
3874}
3875_ACEOF
81ecdfbb 3876if ac_fn_c_try_compile "$LINENO"; then :
d45dc31f
SE
3877 ac_compiler_gnu=yes
3878else
81ecdfbb 3879 ac_compiler_gnu=no
bdcfeba5 3880fi
81ecdfbb 3881rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d45dc31f 3882ac_cv_c_compiler_gnu=$ac_compiler_gnu
bdcfeba5 3883
bdcfeba5 3884fi
81ecdfbb
RW
3885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3886$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3887if test $ac_compiler_gnu = yes; then
3888 GCC=yes
3889else
3890 GCC=
3891fi
d45dc31f
SE
3892ac_test_CFLAGS=${CFLAGS+set}
3893ac_save_CFLAGS=$CFLAGS
81ecdfbb
RW
3894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3895$as_echo_n "checking whether $CC accepts -g... " >&6; }
d0ac1c44 3896if ${ac_cv_prog_cc_g+:} false; then :
81ecdfbb
RW
3897 $as_echo_n "(cached) " >&6
3898else
3899 ac_save_c_werror_flag=$ac_c_werror_flag
3900 ac_c_werror_flag=yes
3901 ac_cv_prog_cc_g=no
3902 CFLAGS="-g"
3903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d45dc31f 3904/* end confdefs.h. */
ac48eca1 3905
d45dc31f
SE
3906int
3907main ()
3908{
ac48eca1 3909
d45dc31f
SE
3910 ;
3911 return 0;
3912}
3913_ACEOF
81ecdfbb 3914if ac_fn_c_try_compile "$LINENO"; then :
d45dc31f 3915 ac_cv_prog_cc_g=yes
ac48eca1 3916else
81ecdfbb
RW
3917 CFLAGS=""
3918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3919/* end confdefs.h. */
3920
3921int
3922main ()
3923{
3924
3925 ;
3926 return 0;
3927}
3928_ACEOF
3929if ac_fn_c_try_compile "$LINENO"; then :
3930
3931else
3932 ac_c_werror_flag=$ac_save_c_werror_flag
3933 CFLAGS="-g"
3934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3935/* end confdefs.h. */
3936
3937int
3938main ()
3939{
ac48eca1 3940
81ecdfbb
RW
3941 ;
3942 return 0;
3943}
3944_ACEOF
3945if ac_fn_c_try_compile "$LINENO"; then :
3946 ac_cv_prog_cc_g=yes
3947fi
3948rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ac48eca1 3949fi
81ecdfbb 3950rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ac48eca1 3951fi
81ecdfbb
RW
3952rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3953 ac_c_werror_flag=$ac_save_c_werror_flag
3954fi
3955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3956$as_echo "$ac_cv_prog_cc_g" >&6; }
d45dc31f
SE
3957if test "$ac_test_CFLAGS" = set; then
3958 CFLAGS=$ac_save_CFLAGS
3959elif test $ac_cv_prog_cc_g = yes; then
3960 if test "$GCC" = yes; then
3961 CFLAGS="-g -O2"
ac48eca1 3962 else
d45dc31f 3963 CFLAGS="-g"
42ecbf5e 3964 fi
ac48eca1 3965else
d45dc31f
SE
3966 if test "$GCC" = yes; then
3967 CFLAGS="-O2"
3968 else
3969 CFLAGS=
42ecbf5e 3970 fi
ac48eca1 3971fi
81ecdfbb
RW
3972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3973$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
d0ac1c44 3974if ${ac_cv_prog_cc_c89+:} false; then :
81ecdfbb 3975 $as_echo_n "(cached) " >&6
d45dc31f 3976else
81ecdfbb 3977 ac_cv_prog_cc_c89=no
d45dc31f 3978ac_save_CC=$CC
81ecdfbb 3979cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e 3980/* end confdefs.h. */
d45dc31f
SE
3981#include <stdarg.h>
3982#include <stdio.h>
d0ac1c44 3983struct stat;
d45dc31f
SE
3984/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3985struct buf { int x; };
3986FILE * (*rcsopen) (struct buf *, struct stat *, int);
3987static char *e (p, i)
3988 char **p;
3989 int i;
3990{
3991 return p[i];
3992}
3993static char *f (char * (*g) (char **, int), char **p, ...)
3994{
3995 char *s;
3996 va_list v;
3997 va_start (v,p);
3998 s = g (p, va_arg (v,int));
3999 va_end (v);
4000 return s;
4001}
4002
4003/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4004 function prototypes and stuff, but not '\xHH' hex character constants.
4005 These don't provoke an error unfortunately, instead are silently treated
81ecdfbb 4006 as 'x'. The following induces an error, until -std is added to get
d45dc31f
SE
4007 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4008 array size at least. It's necessary to write '\x00'==0 to get something
81ecdfbb 4009 that's true only with -std. */
d45dc31f 4010int osf4_cc_array ['\x00' == 0 ? 1 : -1];
252b5132 4011
81ecdfbb
RW
4012/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4013 inside strings and character constants. */
4014#define FOO(x) 'x'
4015int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4016
d45dc31f
SE
4017int test (int i, double x);
4018struct s1 {int (*f) (int a);};
4019struct s2 {int (*f) (double a);};
4020int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4021int argc;
4022char **argv;
42ecbf5e
DJ
4023int
4024main ()
4025{
d45dc31f 4026return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
42ecbf5e
DJ
4027 ;
4028 return 0;
4029}
4030_ACEOF
81ecdfbb
RW
4031for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4032 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
d45dc31f
SE
4033do
4034 CC="$ac_save_CC $ac_arg"
81ecdfbb
RW
4035 if ac_fn_c_try_compile "$LINENO"; then :
4036 ac_cv_prog_cc_c89=$ac_arg
252b5132 4037fi
81ecdfbb
RW
4038rm -f core conftest.err conftest.$ac_objext
4039 test "x$ac_cv_prog_cc_c89" != "xno" && break
d45dc31f 4040done
81ecdfbb 4041rm -f conftest.$ac_ext
d45dc31f 4042CC=$ac_save_CC
ac48eca1 4043
252b5132 4044fi
81ecdfbb
RW
4045# AC_CACHE_VAL
4046case "x$ac_cv_prog_cc_c89" in
4047 x)
4048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4049$as_echo "none needed" >&6; } ;;
4050 xno)
4051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4052$as_echo "unsupported" >&6; } ;;
d45dc31f 4053 *)
81ecdfbb
RW
4054 CC="$CC $ac_cv_prog_cc_c89"
4055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4056$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
252b5132 4057esac
81ecdfbb 4058if test "x$ac_cv_prog_cc_c89" != xno; then :
252b5132 4059
d45dc31f 4060fi
ac48eca1 4061
d45dc31f
SE
4062ac_ext=c
4063ac_cpp='$CPP $CPPFLAGS'
4064ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4065ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4066ac_compiler_gnu=$ac_cv_c_compiler_gnu
42ecbf5e 4067
d0ac1c44
SM
4068ac_ext=c
4069ac_cpp='$CPP $CPPFLAGS'
4070ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4071ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4072ac_compiler_gnu=$ac_cv_c_compiler_gnu
4073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4074$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4075if ${am_cv_prog_cc_c_o+:} false; then :
4076 $as_echo_n "(cached) " >&6
4077else
4078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4079/* end confdefs.h. */
4080
4081int
4082main ()
4083{
4084
4085 ;
4086 return 0;
4087}
4088_ACEOF
4089 # Make sure it works both with $CC and with simple cc.
4090 # Following AC_PROG_CC_C_O, we do the test twice because some
4091 # compilers refuse to overwrite an existing .o file with -o,
4092 # though they will create one.
4093 am_cv_prog_cc_c_o=yes
4094 for am_i in 1 2; do
4095 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4096 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4097 ac_status=$?
4098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4099 (exit $ac_status); } \
4100 && test -f conftest2.$ac_objext; then
4101 : OK
4102 else
4103 am_cv_prog_cc_c_o=no
4104 break
4105 fi
4106 done
4107 rm -f core conftest*
4108 unset am_i
4109fi
4110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4111$as_echo "$am_cv_prog_cc_c_o" >&6; }
4112if test "$am_cv_prog_cc_c_o" != yes; then
4113 # Losing compiler, so override with the script.
4114 # FIXME: It is wrong to rewrite CC.
4115 # But if we don't then we get into trouble of one sort or another.
4116 # A longer-term fix would be to have automake use am__CC in this case,
4117 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4118 CC="$am_aux_dir/compile $CC"
4119fi
87b9f255
AM
4120ac_ext=c
4121ac_cpp='$CPP $CPPFLAGS'
4122ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4123ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4124ac_compiler_gnu=$ac_cv_c_compiler_gnu
4125
4126DEPDIR="${am__leading_dot}deps"
4127
4128ac_config_commands="$ac_config_commands depfiles"
4129
4130
4131am_make=${MAKE-make}
4132cat > confinc << 'END'
4133am__doit:
4134 @echo this is the am__doit target
4135.PHONY: am__doit
4136END
4137# If we don't find an include directive, just comment out the code.
4138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4139$as_echo_n "checking for style of include used by $am_make... " >&6; }
4140am__include="#"
4141am__quote=
4142_am_result=none
4143# First try GNU make style include.
4144echo "include confinc" > confmf
4145# Ignore all kinds of additional output from 'make'.
4146case `$am_make -s -f confmf 2> /dev/null` in #(
4147*the\ am__doit\ target*)
4148 am__include=include
4149 am__quote=
4150 _am_result=GNU
4151 ;;
4152esac
4153# Now try BSD make style include.
4154if test "$am__include" = "#"; then
4155 echo '.include "confinc"' > confmf
4156 case `$am_make -s -f confmf 2> /dev/null` in #(
4157 *the\ am__doit\ target*)
4158 am__include=.include
4159 am__quote="\""
4160 _am_result=BSD
4161 ;;
4162 esac
4163fi
4164
4165
4166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4167$as_echo "$_am_result" >&6; }
4168rm -f confinc confmf
4169
4170# Check whether --enable-dependency-tracking was given.
4171if test "${enable_dependency_tracking+set}" = set; then :
4172 enableval=$enable_dependency_tracking;
4173fi
4174
4175if test "x$enable_dependency_tracking" != xno; then
4176 am_depcomp="$ac_aux_dir/depcomp"
4177 AMDEPBACKSLASH='\'
4178 am__nodep='_no'
4179fi
4180 if test "x$enable_dependency_tracking" != xno; then
4181 AMDEP_TRUE=
4182 AMDEP_FALSE='#'
4183else
4184 AMDEP_TRUE='#'
4185 AMDEP_FALSE=
4186fi
4187
4188
4189
4190depcc="$CC" am_compiler_list=
4191
4192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4193$as_echo_n "checking dependency style of $depcc... " >&6; }
4194if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4195 $as_echo_n "(cached) " >&6
4196else
4197 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4198 # We make a subdir and do the tests there. Otherwise we can end up
4199 # making bogus files that we don't know about and never remove. For
4200 # instance it was reported that on HP-UX the gcc test will end up
4201 # making a dummy file named 'D' -- because '-MD' means "put the output
4202 # in D".
4203 rm -rf conftest.dir
4204 mkdir conftest.dir
4205 # Copy depcomp to subdir because otherwise we won't find it if we're
4206 # using a relative directory.
4207 cp "$am_depcomp" conftest.dir
4208 cd conftest.dir
4209 # We will build objects and dependencies in a subdirectory because
4210 # it helps to detect inapplicable dependency modes. For instance
4211 # both Tru64's cc and ICC support -MD to output dependencies as a
4212 # side effect of compilation, but ICC will put the dependencies in
4213 # the current directory while Tru64 will put them in the object
4214 # directory.
4215 mkdir sub
4216
4217 am_cv_CC_dependencies_compiler_type=none
4218 if test "$am_compiler_list" = ""; then
4219 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4220 fi
4221 am__universal=false
4222 case " $depcc " in #(
4223 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4224 esac
4225
4226 for depmode in $am_compiler_list; do
4227 # Setup a source with many dependencies, because some compilers
4228 # like to wrap large dependency lists on column 80 (with \), and
4229 # we should not choose a depcomp mode which is confused by this.
4230 #
4231 # We need to recreate these files for each test, as the compiler may
4232 # overwrite some of them when testing with obscure command lines.
4233 # This happens at least with the AIX C compiler.
4234 : > sub/conftest.c
4235 for i in 1 2 3 4 5 6; do
4236 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4237 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4238 # Solaris 10 /bin/sh.
4239 echo '/* dummy */' > sub/conftst$i.h
4240 done
4241 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4242
4243 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4244 # mode. It turns out that the SunPro C++ compiler does not properly
4245 # handle '-M -o', and we need to detect this. Also, some Intel
4246 # versions had trouble with output in subdirs.
4247 am__obj=sub/conftest.${OBJEXT-o}
4248 am__minus_obj="-o $am__obj"
4249 case $depmode in
4250 gcc)
4251 # This depmode causes a compiler race in universal mode.
4252 test "$am__universal" = false || continue
4253 ;;
4254 nosideeffect)
4255 # After this tag, mechanisms are not by side-effect, so they'll
4256 # only be used when explicitly requested.
4257 if test "x$enable_dependency_tracking" = xyes; then
4258 continue
4259 else
4260 break
4261 fi
4262 ;;
4263 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4264 # This compiler won't grok '-c -o', but also, the minuso test has
4265 # not run yet. These depmodes are late enough in the game, and
4266 # so weak that their functioning should not be impacted.
4267 am__obj=conftest.${OBJEXT-o}
4268 am__minus_obj=
4269 ;;
4270 none) break ;;
4271 esac
4272 if depmode=$depmode \
4273 source=sub/conftest.c object=$am__obj \
4274 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4275 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4276 >/dev/null 2>conftest.err &&
4277 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4278 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4279 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4280 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4281 # icc doesn't choke on unknown options, it will just issue warnings
4282 # or remarks (even with -Werror). So we grep stderr for any message
4283 # that says an option was ignored or not supported.
4284 # When given -MP, icc 7.0 and 7.1 complain thusly:
4285 # icc: Command line warning: ignoring option '-M'; no argument required
4286 # The diagnosis changed in icc 8.0:
4287 # icc: Command line remark: option '-MP' not supported
4288 if (grep 'ignoring option' conftest.err ||
4289 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4290 am_cv_CC_dependencies_compiler_type=$depmode
4291 break
4292 fi
4293 fi
4294 done
4295
4296 cd ..
4297 rm -rf conftest.dir
4298else
4299 am_cv_CC_dependencies_compiler_type=none
4300fi
4301
4302fi
4303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4304$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4305CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4306
4307 if
4308 test "x$enable_dependency_tracking" != xno \
4309 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4310 am__fastdepCC_TRUE=
4311 am__fastdepCC_FALSE='#'
4312else
4313 am__fastdepCC_TRUE='#'
4314 am__fastdepCC_FALSE=
4315fi
4316
d0ac1c44
SM
4317
4318
7357c5b6
AM
4319ac_ext=c
4320ac_cpp='$CPP $CPPFLAGS'
4321ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4322ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4323ac_compiler_gnu=$ac_cv_c_compiler_gnu
81ecdfbb
RW
4324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4325$as_echo_n "checking how to run the C preprocessor... " >&6; }
7357c5b6
AM
4326# On Suns, sometimes $CPP names a directory.
4327if test -n "$CPP" && test -d "$CPP"; then
4328 CPP=
4329fi
4330if test -z "$CPP"; then
d0ac1c44 4331 if ${ac_cv_prog_CPP+:} false; then :
81ecdfbb 4332 $as_echo_n "(cached) " >&6
7357c5b6
AM
4333else
4334 # Double quotes because CPP needs to be expanded
4335 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4336 do
4337 ac_preproc_ok=false
4338for ac_c_preproc_warn_flag in '' yes
4339do
4340 # Use a header file that comes with gcc, so configuring glibc
4341 # with a fresh cross-compiler works.
4342 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4343 # <limits.h> exists even on freestanding compilers.
4344 # On the NeXT, cc -E runs the code through the compiler's parser,
4345 # not just through cpp. "Syntax error" is here to catch this case.
81ecdfbb 4346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4347/* end confdefs.h. */
4348#ifdef __STDC__
4349# include <limits.h>
4350#else
4351# include <assert.h>
4352#endif
4353 Syntax error
4354_ACEOF
81ecdfbb 4355if ac_fn_c_try_cpp "$LINENO"; then :
d7040cdb 4356
81ecdfbb 4357else
7357c5b6
AM
4358 # Broken: fails on valid input.
4359continue
4360fi
d0ac1c44 4361rm -f conftest.err conftest.i conftest.$ac_ext
d7040cdb 4362
81ecdfbb 4363 # OK, works on sane cases. Now check whether nonexistent headers
7357c5b6 4364 # can be detected and how.
81ecdfbb 4365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4366/* end confdefs.h. */
4367#include <ac_nonexistent.h>
4368_ACEOF
81ecdfbb 4369if ac_fn_c_try_cpp "$LINENO"; then :
7357c5b6
AM
4370 # Broken: success on invalid input.
4371continue
4372else
7357c5b6
AM
4373 # Passes both tests.
4374ac_preproc_ok=:
4375break
4376fi
d0ac1c44 4377rm -f conftest.err conftest.i conftest.$ac_ext
d7040cdb 4378
7357c5b6
AM
4379done
4380# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
d0ac1c44 4381rm -f conftest.i conftest.err conftest.$ac_ext
81ecdfbb 4382if $ac_preproc_ok; then :
7357c5b6
AM
4383 break
4384fi
d7040cdb 4385
7357c5b6
AM
4386 done
4387 ac_cv_prog_CPP=$CPP
d7040cdb 4388
7357c5b6
AM
4389fi
4390 CPP=$ac_cv_prog_CPP
4391else
4392 ac_cv_prog_CPP=$CPP
4393fi
81ecdfbb
RW
4394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4395$as_echo "$CPP" >&6; }
7357c5b6
AM
4396ac_preproc_ok=false
4397for ac_c_preproc_warn_flag in '' yes
4398do
4399 # Use a header file that comes with gcc, so configuring glibc
4400 # with a fresh cross-compiler works.
4401 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4402 # <limits.h> exists even on freestanding compilers.
4403 # On the NeXT, cc -E runs the code through the compiler's parser,
4404 # not just through cpp. "Syntax error" is here to catch this case.
81ecdfbb 4405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4406/* end confdefs.h. */
4407#ifdef __STDC__
4408# include <limits.h>
4409#else
4410# include <assert.h>
4411#endif
4412 Syntax error
4413_ACEOF
81ecdfbb 4414if ac_fn_c_try_cpp "$LINENO"; then :
d7040cdb 4415
81ecdfbb 4416else
7357c5b6
AM
4417 # Broken: fails on valid input.
4418continue
4419fi
d0ac1c44 4420rm -f conftest.err conftest.i conftest.$ac_ext
d7040cdb 4421
81ecdfbb 4422 # OK, works on sane cases. Now check whether nonexistent headers
7357c5b6 4423 # can be detected and how.
81ecdfbb 4424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4425/* end confdefs.h. */
4426#include <ac_nonexistent.h>
4427_ACEOF
81ecdfbb 4428if ac_fn_c_try_cpp "$LINENO"; then :
7357c5b6
AM
4429 # Broken: success on invalid input.
4430continue
4431else
7357c5b6
AM
4432 # Passes both tests.
4433ac_preproc_ok=:
4434break
4435fi
d0ac1c44 4436rm -f conftest.err conftest.i conftest.$ac_ext
d7040cdb 4437
7357c5b6
AM
4438done
4439# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
d0ac1c44 4440rm -f conftest.i conftest.err conftest.$ac_ext
81ecdfbb
RW
4441if $ac_preproc_ok; then :
4442
7357c5b6 4443else
81ecdfbb
RW
4444 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4445$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
4446as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4447See \`config.log' for more details" "$LINENO" 5; }
7357c5b6 4448fi
d7040cdb 4449
7357c5b6
AM
4450ac_ext=c
4451ac_cpp='$CPP $CPPFLAGS'
4452ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4453ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4454ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb
SE
4455
4456
81ecdfbb
RW
4457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4458$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
d0ac1c44 4459if ${ac_cv_path_GREP+:} false; then :
81ecdfbb 4460 $as_echo_n "(cached) " >&6
7357c5b6 4461else
81ecdfbb
RW
4462 if test -z "$GREP"; then
4463 ac_path_GREP_found=false
4464 # Loop through the user's path and test for each of PROGNAME-LIST
4465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4466for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4467do
4468 IFS=$as_save_IFS
4469 test -z "$as_dir" && as_dir=.
4470 for ac_prog in grep ggrep; do
4471 for ac_exec_ext in '' $ac_executable_extensions; do
4472 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
d0ac1c44 4473 as_fn_executable_p "$ac_path_GREP" || continue
81ecdfbb
RW
4474# Check for GNU ac_path_GREP and select it if it is found.
4475 # Check for GNU $ac_path_GREP
4476case `"$ac_path_GREP" --version 2>&1` in
4477*GNU*)
4478 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4479*)
4480 ac_count=0
4481 $as_echo_n 0123456789 >"conftest.in"
4482 while :
4483 do
4484 cat "conftest.in" "conftest.in" >"conftest.tmp"
4485 mv "conftest.tmp" "conftest.in"
4486 cp "conftest.in" "conftest.nl"
4487 $as_echo 'GREP' >> "conftest.nl"
4488 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4489 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4490 as_fn_arith $ac_count + 1 && ac_count=$as_val
4491 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4492 # Best one so far, save it but keep looking for a better one
4493 ac_cv_path_GREP="$ac_path_GREP"
4494 ac_path_GREP_max=$ac_count
7357c5b6 4495 fi
81ecdfbb
RW
4496 # 10*(2^10) chars as input seems more than enough
4497 test $ac_count -gt 10 && break
4498 done
4499 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4500esac
4501
4502 $ac_path_GREP_found && break 3
4503 done
4504 done
4505 done
4506IFS=$as_save_IFS
4507 if test -z "$ac_cv_path_GREP"; then
d0ac1c44 4508 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
81ecdfbb
RW
4509 fi
4510else
4511 ac_cv_path_GREP=$GREP
4512fi
4513
7357c5b6 4514fi
81ecdfbb
RW
4515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4516$as_echo "$ac_cv_path_GREP" >&6; }
4517 GREP="$ac_cv_path_GREP"
d7040cdb 4518
d7040cdb 4519
81ecdfbb
RW
4520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4521$as_echo_n "checking for egrep... " >&6; }
d0ac1c44 4522if ${ac_cv_path_EGREP+:} false; then :
81ecdfbb 4523 $as_echo_n "(cached) " >&6
7357c5b6 4524else
81ecdfbb
RW
4525 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4526 then ac_cv_path_EGREP="$GREP -E"
4527 else
4528 if test -z "$EGREP"; then
4529 ac_path_EGREP_found=false
4530 # Loop through the user's path and test for each of PROGNAME-LIST
4531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4532for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4533do
4534 IFS=$as_save_IFS
4535 test -z "$as_dir" && as_dir=.
4536 for ac_prog in egrep; do
4537 for ac_exec_ext in '' $ac_executable_extensions; do
4538 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
d0ac1c44 4539 as_fn_executable_p "$ac_path_EGREP" || continue
81ecdfbb
RW
4540# Check for GNU ac_path_EGREP and select it if it is found.
4541 # Check for GNU $ac_path_EGREP
4542case `"$ac_path_EGREP" --version 2>&1` in
4543*GNU*)
4544 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4545*)
4546 ac_count=0
4547 $as_echo_n 0123456789 >"conftest.in"
4548 while :
4549 do
4550 cat "conftest.in" "conftest.in" >"conftest.tmp"
4551 mv "conftest.tmp" "conftest.in"
4552 cp "conftest.in" "conftest.nl"
4553 $as_echo 'EGREP' >> "conftest.nl"
4554 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4555 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4556 as_fn_arith $ac_count + 1 && ac_count=$as_val
4557 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4558 # Best one so far, save it but keep looking for a better one
4559 ac_cv_path_EGREP="$ac_path_EGREP"
4560 ac_path_EGREP_max=$ac_count
4561 fi
4562 # 10*(2^10) chars as input seems more than enough
4563 test $ac_count -gt 10 && break
4564 done
4565 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4566esac
4567
4568 $ac_path_EGREP_found && break 3
4569 done
4570 done
4571 done
4572IFS=$as_save_IFS
4573 if test -z "$ac_cv_path_EGREP"; then
d0ac1c44 4574 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
81ecdfbb
RW
4575 fi
4576else
4577 ac_cv_path_EGREP=$EGREP
4578fi
4579
4580 fi
4581fi
4582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4583$as_echo "$ac_cv_path_EGREP" >&6; }
4584 EGREP="$ac_cv_path_EGREP"
4585
4586
4587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4588$as_echo_n "checking for ANSI C header files... " >&6; }
d0ac1c44 4589if ${ac_cv_header_stdc+:} false; then :
81ecdfbb
RW
4590 $as_echo_n "(cached) " >&6
4591else
4592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4593/* end confdefs.h. */
4594#include <stdlib.h>
4595#include <stdarg.h>
4596#include <string.h>
4597#include <float.h>
d7040cdb 4598
7357c5b6
AM
4599int
4600main ()
4601{
d7040cdb 4602
7357c5b6
AM
4603 ;
4604 return 0;
4605}
4606_ACEOF
81ecdfbb 4607if ac_fn_c_try_compile "$LINENO"; then :
7357c5b6
AM
4608 ac_cv_header_stdc=yes
4609else
81ecdfbb 4610 ac_cv_header_stdc=no
7357c5b6 4611fi
81ecdfbb 4612rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d7040cdb 4613
7357c5b6
AM
4614if test $ac_cv_header_stdc = yes; then
4615 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
81ecdfbb 4616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4617/* end confdefs.h. */
4618#include <string.h>
d7040cdb 4619
7357c5b6
AM
4620_ACEOF
4621if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
81ecdfbb
RW
4622 $EGREP "memchr" >/dev/null 2>&1; then :
4623
d45dc31f 4624else
7357c5b6
AM
4625 ac_cv_header_stdc=no
4626fi
4627rm -f conftest*
d7040cdb 4628
7357c5b6 4629fi
d7040cdb 4630
7357c5b6
AM
4631if test $ac_cv_header_stdc = yes; then
4632 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
81ecdfbb 4633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4634/* end confdefs.h. */
4635#include <stdlib.h>
d7040cdb 4636
7357c5b6
AM
4637_ACEOF
4638if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
81ecdfbb
RW
4639 $EGREP "free" >/dev/null 2>&1; then :
4640
7357c5b6
AM
4641else
4642 ac_cv_header_stdc=no
4643fi
4644rm -f conftest*
d7040cdb 4645
7357c5b6 4646fi
d7040cdb 4647
7357c5b6
AM
4648if test $ac_cv_header_stdc = yes; then
4649 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
81ecdfbb 4650 if test "$cross_compiling" = yes; then :
7357c5b6
AM
4651 :
4652else
81ecdfbb 4653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4654/* end confdefs.h. */
4655#include <ctype.h>
81ecdfbb 4656#include <stdlib.h>
7357c5b6
AM
4657#if ((' ' & 0x0FF) == 0x020)
4658# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4659# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4660#else
4661# define ISLOWER(c) \
4662 (('a' <= (c) && (c) <= 'i') \
4663 || ('j' <= (c) && (c) <= 'r') \
4664 || ('s' <= (c) && (c) <= 'z'))
4665# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4666#endif
d7040cdb 4667
7357c5b6
AM
4668#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4669int
4670main ()
4671{
4672 int i;
4673 for (i = 0; i < 256; i++)
4674 if (XOR (islower (i), ISLOWER (i))
4675 || toupper (i) != TOUPPER (i))
81ecdfbb
RW
4676 return 2;
4677 return 0;
7357c5b6
AM
4678}
4679_ACEOF
81ecdfbb 4680if ac_fn_c_try_run "$LINENO"; then :
d7040cdb 4681
81ecdfbb
RW
4682else
4683 ac_cv_header_stdc=no
7357c5b6 4684fi
81ecdfbb
RW
4685rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4686 conftest.$ac_objext conftest.beam conftest.$ac_ext
7357c5b6 4687fi
81ecdfbb 4688
7357c5b6
AM
4689fi
4690fi
81ecdfbb
RW
4691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4692$as_echo "$ac_cv_header_stdc" >&6; }
7357c5b6 4693if test $ac_cv_header_stdc = yes; then
d7040cdb 4694
81ecdfbb 4695$as_echo "#define STDC_HEADERS 1" >>confdefs.h
d7040cdb 4696
7357c5b6 4697fi
d7040cdb 4698
7357c5b6 4699# On IRIX 5.3, sys/types and inttypes.h are conflicting.
81ecdfbb
RW
4700for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4701 inttypes.h stdint.h unistd.h
4702do :
4703 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4704ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4705"
d0ac1c44 4706if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
81ecdfbb
RW
4707 cat >>confdefs.h <<_ACEOF
4708#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4709_ACEOF
d7040cdb 4710
81ecdfbb 4711fi
d7040cdb 4712
81ecdfbb 4713done
d7040cdb
SE
4714
4715
4716
81ecdfbb 4717 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
d0ac1c44 4718if test "x$ac_cv_header_minix_config_h" = xyes; then :
81ecdfbb
RW
4719 MINIX=yes
4720else
4721 MINIX=
4722fi
d7040cdb
SE
4723
4724
81ecdfbb 4725 if test "$MINIX" = yes; then
d7040cdb 4726
81ecdfbb 4727$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
d7040cdb 4728
d7040cdb 4729
81ecdfbb 4730$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
d7040cdb
SE
4731
4732
81ecdfbb 4733$as_echo "#define _MINIX 1" >>confdefs.h
d7040cdb 4734
81ecdfbb 4735 fi
d7040cdb
SE
4736
4737
81ecdfbb
RW
4738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4739$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
d0ac1c44 4740if ${ac_cv_safe_to_define___extensions__+:} false; then :
81ecdfbb 4741 $as_echo_n "(cached) " >&6
7357c5b6 4742else
81ecdfbb 4743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6 4744/* end confdefs.h. */
d7040cdb 4745
d0ac1c44
SM
4746# define __EXTENSIONS__ 1
4747 $ac_includes_default
7357c5b6
AM
4748int
4749main ()
4750{
d7040cdb 4751
7357c5b6
AM
4752 ;
4753 return 0;
4754}
4755_ACEOF
81ecdfbb 4756if ac_fn_c_try_compile "$LINENO"; then :
7357c5b6 4757 ac_cv_safe_to_define___extensions__=yes
d7040cdb 4758else
81ecdfbb 4759 ac_cv_safe_to_define___extensions__=no
d7040cdb 4760fi
81ecdfbb 4761rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7357c5b6 4762fi
81ecdfbb
RW
4763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4764$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
7357c5b6 4765 test $ac_cv_safe_to_define___extensions__ = yes &&
81ecdfbb 4766 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
d7040cdb 4767
81ecdfbb 4768 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
d7040cdb 4769
81ecdfbb 4770 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
d7040cdb 4771
81ecdfbb 4772 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
d7040cdb 4773
81ecdfbb 4774 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
d7040cdb
SE
4775
4776
e3525117 4777
5691d22d 4778
81ecdfbb 4779
718a6fd8
SE
4780case `pwd` in
4781 *\ * | *\ *)
81ecdfbb
RW
4782 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4783$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
718a6fd8 4784esac
d7040cdb
SE
4785
4786
7357c5b6 4787
f2c621e4
AS
4788macro_version='2.2.7a'
4789macro_revision='1.3134'
7357c5b6
AM
4790
4791
4792
4793
4794
4795
7357c5b6
AM
4796
4797
4798
4799
4800
4801
4802
718a6fd8 4803ltmain="$ac_aux_dir/ltmain.sh"
7357c5b6 4804
3725885a
RW
4805# Backslashify metacharacters that are still active within
4806# double-quoted strings.
4807sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4808
4809# Same as above, but do not quote variable references.
4810double_quote_subst='s/\(["`\\]\)/\\\1/g'
4811
4812# Sed substitution to delay expansion of an escaped shell variable in a
4813# double_quote_subst'ed string.
4814delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4815
4816# Sed substitution to delay expansion of an escaped single quote.
4817delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4818
4819# Sed substitution to avoid accidental globbing in evaled expressions
4820no_glob_subst='s/\*/\\\*/g'
4821
4822ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4823ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4824ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4825
4826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4827$as_echo_n "checking how to print strings... " >&6; }
4828# Test print first, because it will be a builtin if present.
f2c621e4 4829if test "X`print -r -- -n 2>/dev/null`" = X-n && \
3725885a
RW
4830 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4831 ECHO='print -r --'
4832elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4833 ECHO='printf %s\n'
4834else
4835 # Use this function as a fallback that always works.
4836 func_fallback_echo ()
4837 {
4838 eval 'cat <<_LTECHO_EOF
4839$1
4840_LTECHO_EOF'
4841 }
4842 ECHO='func_fallback_echo'
4843fi
4844
4845# func_echo_all arg...
4846# Invoke $ECHO with all args, space-separated.
4847func_echo_all ()
4848{
4849 $ECHO ""
4850}
4851
4852case "$ECHO" in
4853 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4854$as_echo "printf" >&6; } ;;
4855 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4856$as_echo "print -r" >&6; } ;;
4857 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4858$as_echo "cat" >&6; } ;;
4859esac
4860
4861
4862
4863
4864
4865
4866
4867
4868
4869
4870
4871
4872
4873
81ecdfbb
RW
4874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4875$as_echo_n "checking for a sed that does not truncate output... " >&6; }
d0ac1c44 4876if ${ac_cv_path_SED+:} false; then :
81ecdfbb 4877 $as_echo_n "(cached) " >&6
7357c5b6 4878else
81ecdfbb
RW
4879 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4880 for ac_i in 1 2 3 4 5 6 7; do
4881 ac_script="$ac_script$as_nl$ac_script"
4882 done
4883 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4884 { ac_script=; unset ac_script;}
4885 if test -z "$SED"; then
4886 ac_path_SED_found=false
4887 # Loop through the user's path and test for each of PROGNAME-LIST
4888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7357c5b6
AM
4889for as_dir in $PATH
4890do
4891 IFS=$as_save_IFS
4892 test -z "$as_dir" && as_dir=.
81ecdfbb 4893 for ac_prog in sed gsed; do
7357c5b6 4894 for ac_exec_ext in '' $ac_executable_extensions; do
81ecdfbb 4895 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
d0ac1c44 4896 as_fn_executable_p "$ac_path_SED" || continue
81ecdfbb
RW
4897# Check for GNU ac_path_SED and select it if it is found.
4898 # Check for GNU $ac_path_SED
4899case `"$ac_path_SED" --version 2>&1` in
4900*GNU*)
4901 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4902*)
4903 ac_count=0
4904 $as_echo_n 0123456789 >"conftest.in"
4905 while :
4906 do
4907 cat "conftest.in" "conftest.in" >"conftest.tmp"
4908 mv "conftest.tmp" "conftest.in"
4909 cp "conftest.in" "conftest.nl"
4910 $as_echo '' >> "conftest.nl"
4911 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4912 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4913 as_fn_arith $ac_count + 1 && ac_count=$as_val
4914 if test $ac_count -gt ${ac_path_SED_max-0}; then
4915 # Best one so far, save it but keep looking for a better one
4916 ac_cv_path_SED="$ac_path_SED"
4917 ac_path_SED_max=$ac_count
4918 fi
4919 # 10*(2^10) chars as input seems more than enough
4920 test $ac_count -gt 10 && break
4921 done
4922 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4923esac
4924
4925 $ac_path_SED_found && break 3
7357c5b6
AM
4926 done
4927 done
81ecdfbb 4928 done
7357c5b6 4929IFS=$as_save_IFS
81ecdfbb 4930 if test -z "$ac_cv_path_SED"; then
d0ac1c44 4931 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
7357c5b6 4932 fi
81ecdfbb
RW
4933else
4934 ac_cv_path_SED=$SED
7357c5b6
AM
4935fi
4936
81ecdfbb
RW
4937fi
4938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4939$as_echo "$ac_cv_path_SED" >&6; }
4940 SED="$ac_cv_path_SED"
4941 rm -f conftest.sed
7357c5b6
AM
4942
4943test -z "$SED" && SED=sed
4944Xsed="$SED -e 1s/^X//"
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954
4955
81ecdfbb
RW
4956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4957$as_echo_n "checking for fgrep... " >&6; }
d0ac1c44 4958if ${ac_cv_path_FGREP+:} false; then :
81ecdfbb 4959 $as_echo_n "(cached) " >&6
7357c5b6 4960else
81ecdfbb
RW
4961 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4962 then ac_cv_path_FGREP="$GREP -F"
4963 else
4964 if test -z "$FGREP"; then
4965 ac_path_FGREP_found=false
4966 # Loop through the user's path and test for each of PROGNAME-LIST
4967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4968for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4969do
4970 IFS=$as_save_IFS
4971 test -z "$as_dir" && as_dir=.
4972 for ac_prog in fgrep; do
4973 for ac_exec_ext in '' $ac_executable_extensions; do
4974 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
d0ac1c44 4975 as_fn_executable_p "$ac_path_FGREP" || continue
81ecdfbb
RW
4976# Check for GNU ac_path_FGREP and select it if it is found.
4977 # Check for GNU $ac_path_FGREP
4978case `"$ac_path_FGREP" --version 2>&1` in
4979*GNU*)
4980 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4981*)
4982 ac_count=0
4983 $as_echo_n 0123456789 >"conftest.in"
4984 while :
4985 do
4986 cat "conftest.in" "conftest.in" >"conftest.tmp"
4987 mv "conftest.tmp" "conftest.in"
4988 cp "conftest.in" "conftest.nl"
4989 $as_echo 'FGREP' >> "conftest.nl"
4990 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4991 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4992 as_fn_arith $ac_count + 1 && ac_count=$as_val
4993 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4994 # Best one so far, save it but keep looking for a better one
4995 ac_cv_path_FGREP="$ac_path_FGREP"
4996 ac_path_FGREP_max=$ac_count
7357c5b6 4997 fi
81ecdfbb
RW
4998 # 10*(2^10) chars as input seems more than enough
4999 test $ac_count -gt 10 && break
5000 done
5001 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5002esac
5003
5004 $ac_path_FGREP_found && break 3
5005 done
5006 done
5007 done
5008IFS=$as_save_IFS
5009 if test -z "$ac_cv_path_FGREP"; then
d0ac1c44 5010 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
81ecdfbb
RW
5011 fi
5012else
5013 ac_cv_path_FGREP=$FGREP
5014fi
5015
5016 fi
7357c5b6 5017fi
81ecdfbb
RW
5018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5019$as_echo "$ac_cv_path_FGREP" >&6; }
5020 FGREP="$ac_cv_path_FGREP"
7357c5b6
AM
5021
5022
5023test -z "$GREP" && GREP=grep
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036
5037
5038
5039
5040
5041
5042
81ecdfbb
RW
5043# Check whether --with-gnu-ld was given.
5044if test "${with_gnu_ld+set}" = set; then :
5045 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7357c5b6
AM
5046else
5047 with_gnu_ld=no
81ecdfbb
RW
5048fi
5049
7357c5b6
AM
5050ac_prog=ld
5051if test "$GCC" = yes; then
5052 # Check if gcc -print-prog-name=ld gives a path.
81ecdfbb
RW
5053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5054$as_echo_n "checking for ld used by $CC... " >&6; }
7357c5b6
AM
5055 case $host in
5056 *-*-mingw*)
d45dc31f
SE
5057 # gcc leaves a trailing carriage return which upsets mingw
5058 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5059 *)
5060 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5061 esac
5062 case $ac_prog in
5063 # Accept absolute paths.
d7040cdb 5064 [\\/]* | ?:[\\/]*)
d45dc31f 5065 re_direlt='/[^/][^/]*/\.\./'
d7040cdb
SE
5066 # Canonicalize the pathname of ld
5067 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5068 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5069 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
d45dc31f
SE
5070 done
5071 test -z "$LD" && LD="$ac_prog"
5072 ;;
5073 "")
5074 # If it fails, then pretend we aren't using GCC.
5075 ac_prog=ld
5076 ;;
5077 *)
5078 # If it is relative, then search for the first ld in PATH.
5079 with_gnu_ld=unknown
5080 ;;
5081 esac
5082elif test "$with_gnu_ld" = yes; then
81ecdfbb
RW
5083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5084$as_echo_n "checking for GNU ld... " >&6; }
d45dc31f 5085else
81ecdfbb
RW
5086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5087$as_echo_n "checking for non-GNU ld... " >&6; }
d45dc31f 5088fi
d0ac1c44 5089if ${lt_cv_path_LD+:} false; then :
81ecdfbb 5090 $as_echo_n "(cached) " >&6
d45dc31f
SE
5091else
5092 if test -z "$LD"; then
d7040cdb 5093 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
d45dc31f 5094 for ac_dir in $PATH; do
d7040cdb 5095 IFS="$lt_save_ifs"
d45dc31f
SE
5096 test -z "$ac_dir" && ac_dir=.
5097 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5098 lt_cv_path_LD="$ac_dir/$ac_prog"
5099 # Check to see if the program is GNU ld. I'd rather use --version,
d7040cdb 5100 # but apparently some variants of GNU ld only accept -v.
d45dc31f 5101 # Break only if it was the GNU/non-GNU ld that we prefer.
d7040cdb
SE
5102 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5103 *GNU* | *'with BFD'*)
d45dc31f 5104 test "$with_gnu_ld" != no && break
d7040cdb
SE
5105 ;;
5106 *)
d45dc31f 5107 test "$with_gnu_ld" != yes && break
d7040cdb
SE
5108 ;;
5109 esac
d45dc31f
SE
5110 fi
5111 done
d7040cdb 5112 IFS="$lt_save_ifs"
d45dc31f
SE
5113else
5114 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5115fi
5116fi
1ad12f97 5117
d45dc31f
SE
5118LD="$lt_cv_path_LD"
5119if test -n "$LD"; then
81ecdfbb
RW
5120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5121$as_echo "$LD" >&6; }
d45dc31f 5122else
81ecdfbb
RW
5123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5124$as_echo "no" >&6; }
d45dc31f 5125fi
d0ac1c44 5126test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
81ecdfbb
RW
5127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5128$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
d0ac1c44 5129if ${lt_cv_prog_gnu_ld+:} false; then :
81ecdfbb 5130 $as_echo_n "(cached) " >&6
d45dc31f 5131else
d7040cdb
SE
5132 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5133case `$LD -v 2>&1 </dev/null` in
5134*GNU* | *'with BFD'*)
d45dc31f 5135 lt_cv_prog_gnu_ld=yes
d7040cdb
SE
5136 ;;
5137*)
d45dc31f 5138 lt_cv_prog_gnu_ld=no
d7040cdb
SE
5139 ;;
5140esac
d45dc31f 5141fi
81ecdfbb
RW
5142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5143$as_echo "$lt_cv_prog_gnu_ld" >&6; }
d45dc31f 5144with_gnu_ld=$lt_cv_prog_gnu_ld
569acd2c 5145
d45dc31f 5146
42ecbf5e 5147
d7040cdb
SE
5148
5149
5150
5151
5152
5153
81ecdfbb
RW
5154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5155$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
d0ac1c44 5156if ${lt_cv_path_NM+:} false; then :
81ecdfbb 5157 $as_echo_n "(cached) " >&6
d45dc31f
SE
5158else
5159 if test -n "$NM"; then
5160 # Let the user override the test.
5161 lt_cv_path_NM="$NM"
5162else
d7040cdb
SE
5163 lt_nm_to_check="${ac_tool_prefix}nm"
5164 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5165 lt_nm_to_check="$lt_nm_to_check nm"
5166 fi
5167 for lt_tmp_nm in $lt_nm_to_check; do
5168 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5169 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5170 IFS="$lt_save_ifs"
5171 test -z "$ac_dir" && ac_dir=.
5172 tmp_nm="$ac_dir/$lt_tmp_nm"
5173 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5174 # Check to see if the nm accepts a BSD-compat flag.
5175 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5176 # nm: unknown option "B" ignored
5177 # Tru64's nm complains that /dev/null is an invalid object file
5178 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5179 */dev/null* | *'Invalid file or object type'*)
5180 lt_cv_path_NM="$tmp_nm -B"
5181 break
5182 ;;
5183 *)
5184 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5185 */dev/null*)
5186 lt_cv_path_NM="$tmp_nm -p"
5187 break
5188 ;;
5189 *)
5190 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5191 continue # so that we can try to find one that supports BSD flags
5192 ;;
5193 esac
5194 ;;
5195 esac
d45dc31f 5196 fi
d7040cdb
SE
5197 done
5198 IFS="$lt_save_ifs"
d45dc31f 5199 done
d7040cdb 5200 : ${lt_cv_path_NM=no}
d45dc31f 5201fi
a541e3ce 5202fi
81ecdfbb
RW
5203{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5204$as_echo "$lt_cv_path_NM" >&6; }
d7040cdb
SE
5205if test "$lt_cv_path_NM" != "no"; then
5206 NM="$lt_cv_path_NM"
d45dc31f 5207else
d7040cdb 5208 # Didn't find any BSD compatible name lister, look for dumpbin.
3725885a
RW
5209 if test -n "$DUMPBIN"; then :
5210 # Let the user override the test.
5211 else
5212 if test -n "$ac_tool_prefix"; then
5213 for ac_prog in dumpbin "link -dump"
d7040cdb
SE
5214 do
5215 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5216set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
5217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5218$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5219if ${ac_cv_prog_DUMPBIN+:} false; then :
81ecdfbb 5220 $as_echo_n "(cached) " >&6
d45dc31f 5221else
d7040cdb
SE
5222 if test -n "$DUMPBIN"; then
5223 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5224else
5225as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5226for as_dir in $PATH
5227do
5228 IFS=$as_save_IFS
5229 test -z "$as_dir" && as_dir=.
81ecdfbb 5230 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5231 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d7040cdb 5232 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
81ecdfbb 5233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb
SE
5234 break 2
5235 fi
5236done
81ecdfbb
RW
5237 done
5238IFS=$as_save_IFS
398ee8f1 5239
d7040cdb
SE
5240fi
5241fi
5242DUMPBIN=$ac_cv_prog_DUMPBIN
5243if test -n "$DUMPBIN"; then
81ecdfbb
RW
5244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5245$as_echo "$DUMPBIN" >&6; }
d7040cdb 5246else
81ecdfbb
RW
5247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5248$as_echo "no" >&6; }
d7040cdb 5249fi
d15b04bd 5250
81ecdfbb 5251
d7040cdb
SE
5252 test -n "$DUMPBIN" && break
5253 done
5254fi
5255if test -z "$DUMPBIN"; then
5256 ac_ct_DUMPBIN=$DUMPBIN
3725885a 5257 for ac_prog in dumpbin "link -dump"
d7040cdb
SE
5258do
5259 # Extract the first word of "$ac_prog", so it can be a program name with args.
5260set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
5261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5262$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5263if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
81ecdfbb 5264 $as_echo_n "(cached) " >&6
d7040cdb
SE
5265else
5266 if test -n "$ac_ct_DUMPBIN"; then
5267 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5268else
5269as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5270for as_dir in $PATH
5271do
5272 IFS=$as_save_IFS
5273 test -z "$as_dir" && as_dir=.
81ecdfbb 5274 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5275 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d7040cdb 5276 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
81ecdfbb 5277 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb 5278 break 2
d45dc31f 5279 fi
d7040cdb 5280done
81ecdfbb
RW
5281 done
5282IFS=$as_save_IFS
d15b04bd 5283
d7040cdb
SE
5284fi
5285fi
5286ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5287if test -n "$ac_ct_DUMPBIN"; then
81ecdfbb
RW
5288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5289$as_echo "$ac_ct_DUMPBIN" >&6; }
d7040cdb 5290else
81ecdfbb
RW
5291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5292$as_echo "no" >&6; }
d7040cdb 5293fi
42ecbf5e 5294
81ecdfbb 5295
d7040cdb
SE
5296 test -n "$ac_ct_DUMPBIN" && break
5297done
d45dc31f 5298
81ecdfbb
RW
5299 if test "x$ac_ct_DUMPBIN" = x; then
5300 DUMPBIN=":"
5301 else
5302 case $cross_compiling:$ac_tool_warned in
5303yes:)
5304{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5305$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5306ac_tool_warned=yes ;;
5307esac
5308 DUMPBIN=$ac_ct_DUMPBIN
5309 fi
d7040cdb 5310fi
d45dc31f 5311
3725885a
RW
5312 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5313 *COFF*)
5314 DUMPBIN="$DUMPBIN -symbols"
5315 ;;
5316 *)
5317 DUMPBIN=:
5318 ;;
5319 esac
5320 fi
d45dc31f 5321
d7040cdb
SE
5322 if test "$DUMPBIN" != ":"; then
5323 NM="$DUMPBIN"
42ecbf5e 5324 fi
d7040cdb
SE
5325fi
5326test -z "$NM" && NM=nm
d45dc31f 5327
42ecbf5e 5328
d15b04bd 5329
42ecbf5e 5330
d45dc31f 5331
42ecbf5e 5332
81ecdfbb
RW
5333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5334$as_echo_n "checking the name lister ($NM) interface... " >&6; }
d0ac1c44 5335if ${lt_cv_nm_interface+:} false; then :
81ecdfbb 5336 $as_echo_n "(cached) " >&6
d7040cdb
SE
5337else
5338 lt_cv_nm_interface="BSD nm"
5339 echo "int some_variable = 0;" > conftest.$ac_ext
3725885a 5340 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
d7040cdb
SE
5341 (eval "$ac_compile" 2>conftest.err)
5342 cat conftest.err >&5
3725885a 5343 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
d7040cdb
SE
5344 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5345 cat conftest.err >&5
3725885a 5346 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
d7040cdb
SE
5347 cat conftest.out >&5
5348 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5349 lt_cv_nm_interface="MS dumpbin"
5350 fi
5351 rm -f conftest*
42ecbf5e 5352fi
81ecdfbb
RW
5353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5354$as_echo "$lt_cv_nm_interface" >&6; }
42ecbf5e 5355
81ecdfbb
RW
5356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5357$as_echo_n "checking whether ln -s works... " >&6; }
d7040cdb
SE
5358LN_S=$as_ln_s
5359if test "$LN_S" = "ln -s"; then
81ecdfbb
RW
5360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5361$as_echo "yes" >&6; }
d7040cdb 5362else
81ecdfbb
RW
5363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5364$as_echo "no, using $LN_S" >&6; }
d7040cdb 5365fi
d45dc31f
SE
5366
5367# find the maximum length of command line arguments
81ecdfbb
RW
5368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5369$as_echo_n "checking the maximum length of command line arguments... " >&6; }
d0ac1c44 5370if ${lt_cv_sys_max_cmd_len+:} false; then :
81ecdfbb 5371 $as_echo_n "(cached) " >&6
42ecbf5e 5372else
d45dc31f
SE
5373 i=0
5374 teststring="ABCD"
5375
5376 case $build_os in
5377 msdosdjgpp*)
5378 # On DJGPP, this test can blow up pretty badly due to problems in libc
5379 # (any single argument exceeding 2000 bytes causes a buffer overrun
5380 # during glob expansion). Even if it were fixed, the result of this
5381 # check would be larger than it should be.
5382 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5383 ;;
5384
d7040cdb
SE
5385 gnu*)
5386 # Under GNU Hurd, this test is not required because there is
5387 # no limit to the length of command line arguments.
5388 # Libtool will interpret -1 as no limit whatsoever
5389 lt_cv_sys_max_cmd_len=-1;
5390 ;;
5391
718a6fd8 5392 cygwin* | mingw* | cegcc*)
d45dc31f
SE
5393 # On Win9x/ME, this test blows up -- it succeeds, but takes
5394 # about 5 minutes as the teststring grows exponentially.
5395 # Worse, since 9x/ME are not pre-emptively multitasking,
5396 # you end up with a "frozen" computer, even though with patience
5397 # the test eventually succeeds (with a max line length of 256k).
5398 # Instead, let's just punt: use the minimum linelength reported by
5399 # all of the supported platforms: 8192 (on NT/2K/XP).
5400 lt_cv_sys_max_cmd_len=8192;
5401 ;;
5402
3725885a
RW
5403 mint*)
5404 # On MiNT this can take a long time and run out of memory.
5405 lt_cv_sys_max_cmd_len=8192;
5406 ;;
5407
d45dc31f
SE
5408 amigaos*)
5409 # On AmigaOS with pdksh, this test takes hours, literally.
5410 # So we just punt and use a minimum line length of 8192.
5411 lt_cv_sys_max_cmd_len=8192;
5412 ;;
5413
5414 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5415 # This has been around since 386BSD, at least. Likely further.
5416 if test -x /sbin/sysctl; then
5417 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5418 elif test -x /usr/sbin/sysctl; then
5419 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5420 else
d7040cdb 5421 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
d45dc31f
SE
5422 fi
5423 # And add a safety zone
5424 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5425 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5426 ;;
d7040cdb
SE
5427
5428 interix*)
5429 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5430 lt_cv_sys_max_cmd_len=196608
5431 ;;
5432
5433 osf*)
5434 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5435 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5436 # nice to cause kernel panics so lets avoid the loop below.
5437 # First set a reasonable default.
5438 lt_cv_sys_max_cmd_len=16384
5439 #
5440 if test -x /sbin/sysconfig; then
5441 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5442 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5443 esac
5444 fi
5445 ;;
5446 sco3.2v5*)
5447 lt_cv_sys_max_cmd_len=102400
5448 ;;
5449 sysv5* | sco5v6* | sysv4.2uw2*)
5450 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5451 if test -n "$kargmax"; then
5452 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5453 else
5454 lt_cv_sys_max_cmd_len=32768
5455 fi
5456 ;;
5457 *)
718a6fd8
SE
5458 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5459 if test -n "$lt_cv_sys_max_cmd_len"; then
5ba684e2
NC
5460 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5461 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5462 else
5463 # Make teststring a little bigger before we do anything with it.
5464 # a 1K string should be a reasonable start.
5465 for i in 1 2 3 4 5 6 7 8 ; do
5466 teststring=$teststring$teststring
5467 done
5468 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5469 # If test is not a shell built-in, we'll probably end up computing a
5470 # maximum length that is only half of the actual maximum length, but
5471 # we can't tell.
3725885a
RW
5472 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5473 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5ba684e2
NC
5474 test $i != 17 # 1/2 MB should be enough
5475 do
5476 i=`expr $i + 1`
5477 teststring=$teststring$teststring
5478 done
5479 # Only check the string length outside the loop.
5480 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5481 teststring=
5482 # Add a significant safety factor because C++ compilers can tack on
5483 # massive amounts of additional arguments before passing them to the
5484 # linker. It appears as though 1/2 is a usable value.
5485 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5486 fi
d7040cdb 5487 ;;
d45dc31f 5488 esac
42ecbf5e 5489
42ecbf5e
DJ
5490fi
5491
d7040cdb 5492if test -n $lt_cv_sys_max_cmd_len ; then
81ecdfbb
RW
5493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5494$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
252b5132 5495else
81ecdfbb
RW
5496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5497$as_echo "none" >&6; }
252b5132 5498fi
d7040cdb 5499max_cmd_len=$lt_cv_sys_max_cmd_len
e5a52504 5500
d45dc31f 5501
42ecbf5e 5502
d45dc31f 5503
d45dc31f 5504
d7040cdb 5505
d7040cdb
SE
5506: ${CP="cp -f"}
5507: ${MV="mv -f"}
5508: ${RM="rm -f"}
5509
81ecdfbb
RW
5510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5511$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
d7040cdb
SE
5512# Try some XSI features
5513xsi_shell=no
5514( _lt_dummy="a/b/c"
f2c621e4
AS
5515 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5516 = c,a/b,, \
718a6fd8
SE
5517 && eval 'test $(( 1 + 1 )) -eq 2 \
5518 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
d7040cdb 5519 && xsi_shell=yes
81ecdfbb
RW
5520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5521$as_echo "$xsi_shell" >&6; }
d7040cdb
SE
5522
5523
81ecdfbb
RW
5524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5525$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
d7040cdb
SE
5526lt_shell_append=no
5527( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5528 >/dev/null 2>&1 \
5529 && lt_shell_append=yes
81ecdfbb
RW
5530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5531$as_echo "$lt_shell_append" >&6; }
d7040cdb
SE
5532
5533
5534if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5535 lt_unset=unset
252b5132 5536else
d7040cdb 5537 lt_unset=false
252b5132
RH
5538fi
5539
d7040cdb
SE
5540
5541
5542
5543
5544# test EBCDIC or ASCII
5545case `echo X|tr X '\101'` in
5546 A) # ASCII based system
5547 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5548 lt_SP2NL='tr \040 \012'
5549 lt_NL2SP='tr \015\012 \040\040'
5550 ;;
5551 *) # EBCDIC based system
5552 lt_SP2NL='tr \100 \n'
5553 lt_NL2SP='tr \r\n \100\100'
5554 ;;
5555esac
5556
5557
5558
5559
5560
5561
5562
5563
5564
81ecdfbb
RW
5565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5566$as_echo_n "checking for $LD option to reload object files... " >&6; }
d0ac1c44 5567if ${lt_cv_ld_reload_flag+:} false; then :
81ecdfbb 5568 $as_echo_n "(cached) " >&6
252b5132 5569else
d7040cdb
SE
5570 lt_cv_ld_reload_flag='-r'
5571fi
81ecdfbb
RW
5572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5573$as_echo "$lt_cv_ld_reload_flag" >&6; }
d7040cdb
SE
5574reload_flag=$lt_cv_ld_reload_flag
5575case $reload_flag in
5576"" | " "*) ;;
5577*) reload_flag=" $reload_flag" ;;
5578esac
5579reload_cmds='$LD$reload_flag -o $output$reload_objs'
5580case $host_os in
5581 darwin*)
5582 if test "$GCC" = yes; then
5583 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5584 else
5585 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5586 fi
5587 ;;
5588esac
5589
5590
5591
5592
5593
5594
5595
5596
5597
718a6fd8
SE
5598if test -n "$ac_tool_prefix"; then
5599 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5600set dummy ${ac_tool_prefix}objdump; ac_word=$2
81ecdfbb
RW
5601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5602$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5603if ${ac_cv_prog_OBJDUMP+:} false; then :
81ecdfbb 5604 $as_echo_n "(cached) " >&6
718a6fd8
SE
5605else
5606 if test -n "$OBJDUMP"; then
5607 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5608else
5609as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5610for as_dir in $PATH
5611do
5612 IFS=$as_save_IFS
5613 test -z "$as_dir" && as_dir=.
81ecdfbb 5614 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5615 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
718a6fd8 5616 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
81ecdfbb 5617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
5618 break 2
5619 fi
5620done
81ecdfbb
RW
5621 done
5622IFS=$as_save_IFS
718a6fd8
SE
5623
5624fi
5625fi
5626OBJDUMP=$ac_cv_prog_OBJDUMP
5627if test -n "$OBJDUMP"; then
81ecdfbb
RW
5628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5629$as_echo "$OBJDUMP" >&6; }
718a6fd8 5630else
81ecdfbb
RW
5631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5632$as_echo "no" >&6; }
718a6fd8
SE
5633fi
5634
81ecdfbb 5635
718a6fd8
SE
5636fi
5637if test -z "$ac_cv_prog_OBJDUMP"; then
5638 ac_ct_OBJDUMP=$OBJDUMP
5639 # Extract the first word of "objdump", so it can be a program name with args.
5640set dummy objdump; ac_word=$2
81ecdfbb
RW
5641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5642$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5643if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
81ecdfbb 5644 $as_echo_n "(cached) " >&6
718a6fd8
SE
5645else
5646 if test -n "$ac_ct_OBJDUMP"; then
5647 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5648else
5649as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5650for as_dir in $PATH
5651do
5652 IFS=$as_save_IFS
5653 test -z "$as_dir" && as_dir=.
81ecdfbb 5654 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5655 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
718a6fd8 5656 ac_cv_prog_ac_ct_OBJDUMP="objdump"
81ecdfbb 5657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
5658 break 2
5659 fi
5660done
81ecdfbb
RW
5661 done
5662IFS=$as_save_IFS
718a6fd8 5663
718a6fd8
SE
5664fi
5665fi
5666ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5667if test -n "$ac_ct_OBJDUMP"; then
81ecdfbb
RW
5668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5669$as_echo "$ac_ct_OBJDUMP" >&6; }
718a6fd8 5670else
81ecdfbb
RW
5671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5672$as_echo "no" >&6; }
718a6fd8
SE
5673fi
5674
81ecdfbb
RW
5675 if test "x$ac_ct_OBJDUMP" = x; then
5676 OBJDUMP="false"
5677 else
5678 case $cross_compiling:$ac_tool_warned in
5679yes:)
5680{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5681$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5682ac_tool_warned=yes ;;
5683esac
5684 OBJDUMP=$ac_ct_OBJDUMP
5685 fi
718a6fd8
SE
5686else
5687 OBJDUMP="$ac_cv_prog_OBJDUMP"
5688fi
5689
5690test -z "$OBJDUMP" && OBJDUMP=objdump
5691
5692
5693
5694
5695
5696
5697
5698
d7040cdb 5699
81ecdfbb
RW
5700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5701$as_echo_n "checking how to recognize dependent libraries... " >&6; }
d0ac1c44 5702if ${lt_cv_deplibs_check_method+:} false; then :
81ecdfbb 5703 $as_echo_n "(cached) " >&6
d7040cdb
SE
5704else
5705 lt_cv_file_magic_cmd='$MAGIC_CMD'
5706lt_cv_file_magic_test_file=
5707lt_cv_deplibs_check_method='unknown'
5708# Need to set the preceding variable on all platforms that support
5709# interlibrary dependencies.
5710# 'none' -- dependencies not supported.
5711# `unknown' -- same as none, but documents that we really don't know.
5712# 'pass_all' -- all dependencies passed with no checks.
5713# 'test_compile' -- check by making test program.
5714# 'file_magic [[regex]]' -- check by looking for files in library path
5715# which responds to the $file_magic_cmd with a given extended regex.
5716# If you have `file' or equivalent on your system and you're not sure
5717# whether `pass_all' will *always* work, you probably want this one.
5718
5719case $host_os in
50e7d84b 5720aix[4-9]*)
d7040cdb
SE
5721 lt_cv_deplibs_check_method=pass_all
5722 ;;
5723
5724beos*)
5725 lt_cv_deplibs_check_method=pass_all
5726 ;;
5727
5728bsdi[45]*)
5729 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5730 lt_cv_file_magic_cmd='/usr/bin/file -L'
5731 lt_cv_file_magic_test_file=/shlib/libc.so
5732 ;;
5733
5734cygwin*)
5735 # func_win32_libid is a shell function defined in ltmain.sh
5736 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5737 lt_cv_file_magic_cmd='func_win32_libid'
5738 ;;
5739
5740mingw* | pw32*)
5741 # Base MSYS/MinGW do not provide the 'file' command needed by
5742 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5743 # unless we find 'file', for example because we are cross-compiling.
3725885a
RW
5744 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5745 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
d7040cdb
SE
5746 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5747 lt_cv_file_magic_cmd='func_win32_libid'
5748 else
f2c621e4 5749 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
d7040cdb
SE
5750 lt_cv_file_magic_cmd='$OBJDUMP -f'
5751 fi
5752 ;;
5753
3725885a 5754cegcc*)
718a6fd8
SE
5755 # use the weaker test based on 'objdump'. See mingw*.
5756 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5757 lt_cv_file_magic_cmd='$OBJDUMP -f'
5758 ;;
5759
d7040cdb
SE
5760darwin* | rhapsody*)
5761 lt_cv_deplibs_check_method=pass_all
d45dc31f 5762 ;;
d7040cdb
SE
5763
5764freebsd* | dragonfly*)
5765 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5766 case $host_cpu in
5767 i*86 )
5768 # Not sure whether the presence of OpenBSD here was a mistake.
5769 # Let's accept both of them until this is cleared up.
5770 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5771 lt_cv_file_magic_cmd=/usr/bin/file
5772 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5773 ;;
5774 esac
5775 else
5776 lt_cv_deplibs_check_method=pass_all
5777 fi
5778 ;;
5779
5780gnu*)
5781 lt_cv_deplibs_check_method=pass_all
d45dc31f 5782 ;;
d7040cdb 5783
3725885a
RW
5784haiku*)
5785 lt_cv_deplibs_check_method=pass_all
5786 ;;
5787
d7040cdb
SE
5788hpux10.20* | hpux11*)
5789 lt_cv_file_magic_cmd=/usr/bin/file
5790 case $host_cpu in
5791 ia64*)
5792 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5793 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5794 ;;
5795 hppa*64*)
3725885a 5796 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]'
d7040cdb
SE
5797 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5798 ;;
d45dc31f 5799 *)
3725885a 5800 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
d7040cdb
SE
5801 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5802 ;;
5803 esac
5804 ;;
42ecbf5e 5805
d7040cdb
SE
5806interix[3-9]*)
5807 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5808 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5809 ;;
42ecbf5e 5810
d7040cdb
SE
5811irix5* | irix6* | nonstopux*)
5812 case $LD in
5813 *-32|*"-32 ") libmagic=32-bit;;
5814 *-n32|*"-n32 ") libmagic=N32;;
5815 *-64|*"-64 ") libmagic=64-bit;;
5816 *) libmagic=never-match;;
5817 esac
5818 lt_cv_deplibs_check_method=pass_all
d45dc31f 5819 ;;
42ecbf5e 5820
d7040cdb 5821# This must be Linux ELF.
58e24671 5822linux* | k*bsd*-gnu | kopensolaris*-gnu)
d7040cdb
SE
5823 lt_cv_deplibs_check_method=pass_all
5824 ;;
252b5132 5825
d7040cdb
SE
5826netbsd*)
5827 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5828 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
d45dc31f 5829 else
d7040cdb 5830 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
d45dc31f 5831 fi
d7040cdb
SE
5832 ;;
5833
5834newos6*)
5835 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5836 lt_cv_file_magic_cmd=/usr/bin/file
5837 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5838 ;;
5839
5840*nto* | *qnx*)
5841 lt_cv_deplibs_check_method=pass_all
5842 ;;
42ecbf5e 5843
d7040cdb
SE
5844openbsd*)
5845 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5846 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5847 else
5848 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
d45dc31f
SE
5849 fi
5850 ;;
d7040cdb
SE
5851
5852osf3* | osf4* | osf5*)
5853 lt_cv_deplibs_check_method=pass_all
5854 ;;
5855
5856rdos*)
5857 lt_cv_deplibs_check_method=pass_all
5858 ;;
5859
5860solaris*)
5861 lt_cv_deplibs_check_method=pass_all
5862 ;;
5863
5864sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5865 lt_cv_deplibs_check_method=pass_all
5866 ;;
5867
5868sysv4 | sysv4.3*)
5869 case $host_vendor in
5870 motorola)
5871 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]'
5872 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5873 ;;
5874 ncr)
5875 lt_cv_deplibs_check_method=pass_all
5876 ;;
5877 sequent)
5878 lt_cv_file_magic_cmd='/bin/file'
5879 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5880 ;;
5881 sni)
5882 lt_cv_file_magic_cmd='/bin/file'
5883 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5884 lt_cv_file_magic_test_file=/lib/libc.so
5885 ;;
5886 siemens)
5887 lt_cv_deplibs_check_method=pass_all
5888 ;;
5889 pc)
5890 lt_cv_deplibs_check_method=pass_all
5891 ;;
5892 esac
5893 ;;
5894
5895tpf*)
5896 lt_cv_deplibs_check_method=pass_all
5897 ;;
d45dc31f 5898esac
42ecbf5e 5899
d7040cdb 5900fi
81ecdfbb
RW
5901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5902$as_echo "$lt_cv_deplibs_check_method" >&6; }
d7040cdb
SE
5903file_magic_cmd=$lt_cv_file_magic_cmd
5904deplibs_check_method=$lt_cv_deplibs_check_method
5905test -z "$deplibs_check_method" && deplibs_check_method=unknown
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917
a4966cd9
L
5918plugin_option=
5919plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
5920for plugin in $plugin_names; do
5921 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
5922 if test x$plugin_so = x$plugin; then
5923 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
5924 fi
5925 if test x$plugin_so != x$plugin; then
5926 plugin_option="--plugin $plugin_so"
5927 break
5928 fi
5929done
5930
d45dc31f 5931if test -n "$ac_tool_prefix"; then
f2c621e4
AS
5932 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5933set dummy ${ac_tool_prefix}ar; ac_word=$2
81ecdfbb
RW
5934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5935$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5936if ${ac_cv_prog_AR+:} false; then :
81ecdfbb 5937 $as_echo_n "(cached) " >&6
42ecbf5e 5938else
d7040cdb
SE
5939 if test -n "$AR"; then
5940 ac_cv_prog_AR="$AR" # Let the user override the test.
d45dc31f
SE
5941else
5942as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5943for as_dir in $PATH
5944do
5945 IFS=$as_save_IFS
5946 test -z "$as_dir" && as_dir=.
81ecdfbb 5947 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5948 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
f2c621e4 5949 ac_cv_prog_AR="${ac_tool_prefix}ar"
81ecdfbb 5950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d45dc31f
SE
5951 break 2
5952 fi
5953done
81ecdfbb
RW
5954 done
5955IFS=$as_save_IFS
42ecbf5e 5956
42ecbf5e 5957fi
d45dc31f 5958fi
d7040cdb
SE
5959AR=$ac_cv_prog_AR
5960if test -n "$AR"; then
81ecdfbb
RW
5961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5962$as_echo "$AR" >&6; }
d45dc31f 5963else
81ecdfbb
RW
5964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5965$as_echo "no" >&6; }
d45dc31f 5966fi
42ecbf5e 5967
81ecdfbb 5968
42ecbf5e 5969fi
f2c621e4 5970if test -z "$ac_cv_prog_AR"; then
d7040cdb 5971 ac_ct_AR=$AR
f2c621e4
AS
5972 # Extract the first word of "ar", so it can be a program name with args.
5973set dummy ar; ac_word=$2
81ecdfbb
RW
5974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5975$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5976if ${ac_cv_prog_ac_ct_AR+:} false; then :
81ecdfbb 5977 $as_echo_n "(cached) " >&6
42ecbf5e 5978else
d7040cdb
SE
5979 if test -n "$ac_ct_AR"; then
5980 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
42ecbf5e 5981else
d45dc31f
SE
5982as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5983for as_dir in $PATH
5984do
5985 IFS=$as_save_IFS
5986 test -z "$as_dir" && as_dir=.
81ecdfbb 5987 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5988 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
f2c621e4 5989 ac_cv_prog_ac_ct_AR="ar"
81ecdfbb 5990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d45dc31f
SE
5991 break 2
5992 fi
5993done
81ecdfbb
RW
5994 done
5995IFS=$as_save_IFS
42ecbf5e 5996
42ecbf5e 5997fi
42ecbf5e 5998fi
d7040cdb
SE
5999ac_ct_AR=$ac_cv_prog_ac_ct_AR
6000if test -n "$ac_ct_AR"; then
81ecdfbb
RW
6001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6002$as_echo "$ac_ct_AR" >&6; }
252b5132 6003else
81ecdfbb
RW
6004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6005$as_echo "no" >&6; }
252b5132 6006fi
252b5132 6007
81ecdfbb
RW
6008 if test "x$ac_ct_AR" = x; then
6009 AR="false"
6010 else
6011 case $cross_compiling:$ac_tool_warned in
6012yes:)
6013{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6014$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6015ac_tool_warned=yes ;;
6016esac
6017 AR=$ac_ct_AR
6018 fi
df7b86aa 6019else
f2c621e4
AS
6020 AR="$ac_cv_prog_AR"
6021fi
df7b86aa 6022
f2c621e4 6023test -z "$AR" && AR=ar
a4966cd9
L
6024if test -n "$plugin_option"; then
6025 if $AR --help 2>&1 | grep -q "\--plugin"; then
83b33c6c
L
6026 touch conftest.c
6027 $AR $plugin_option rc conftest.a conftest.c
6028 if test "$?" != 0; then
6029 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
6030$as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
6031 else
6032 AR="$AR $plugin_option"
6033 fi
6034 rm -f conftest.*
a4966cd9
L
6035 fi
6036fi
f2c621e4 6037test -z "$AR_FLAGS" && AR_FLAGS=cru
df7b86aa 6038
df7b86aa 6039
df7b86aa 6040
df7b86aa 6041
df7b86aa 6042
d7040cdb
SE
6043
6044
6045
6046
6047
6048
d45dc31f
SE
6049if test -n "$ac_tool_prefix"; then
6050 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6051set dummy ${ac_tool_prefix}strip; ac_word=$2
81ecdfbb
RW
6052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6053$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6054if ${ac_cv_prog_STRIP+:} false; then :
81ecdfbb 6055 $as_echo_n "(cached) " >&6
d45dc31f
SE
6056else
6057 if test -n "$STRIP"; then
6058 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6059else
6060as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6061for as_dir in $PATH
42ecbf5e 6062do
d45dc31f
SE
6063 IFS=$as_save_IFS
6064 test -z "$as_dir" && as_dir=.
81ecdfbb 6065 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6066 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d45dc31f 6067 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
81ecdfbb 6068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d45dc31f
SE
6069 break 2
6070 fi
6071done
81ecdfbb
RW
6072 done
6073IFS=$as_save_IFS
d45dc31f
SE
6074
6075fi
6076fi
6077STRIP=$ac_cv_prog_STRIP
6078if test -n "$STRIP"; then
81ecdfbb
RW
6079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6080$as_echo "$STRIP" >&6; }
252b5132 6081else
81ecdfbb
RW
6082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6083$as_echo "no" >&6; }
d45dc31f 6084fi
42ecbf5e 6085
81ecdfbb 6086
252b5132 6087fi
d45dc31f
SE
6088if test -z "$ac_cv_prog_STRIP"; then
6089 ac_ct_STRIP=$STRIP
6090 # Extract the first word of "strip", so it can be a program name with args.
6091set dummy strip; ac_word=$2
81ecdfbb
RW
6092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6093$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6094if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
81ecdfbb 6095 $as_echo_n "(cached) " >&6
d45dc31f
SE
6096else
6097 if test -n "$ac_ct_STRIP"; then
6098 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6099else
6100as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6101for as_dir in $PATH
6102do
6103 IFS=$as_save_IFS
6104 test -z "$as_dir" && as_dir=.
81ecdfbb 6105 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6106 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d45dc31f 6107 ac_cv_prog_ac_ct_STRIP="strip"
81ecdfbb 6108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d45dc31f
SE
6109 break 2
6110 fi
6111done
81ecdfbb
RW
6112 done
6113IFS=$as_save_IFS
42ecbf5e 6114
d45dc31f
SE
6115fi
6116fi
6117ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6118if test -n "$ac_ct_STRIP"; then
81ecdfbb
RW
6119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6120$as_echo "$ac_ct_STRIP" >&6; }
d45dc31f 6121else
81ecdfbb
RW
6122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6123$as_echo "no" >&6; }
252b5132 6124fi
e5a52504 6125
81ecdfbb
RW
6126 if test "x$ac_ct_STRIP" = x; then
6127 STRIP=":"
6128 else
6129 case $cross_compiling:$ac_tool_warned in
6130yes:)
6131{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6132$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6133ac_tool_warned=yes ;;
6134esac
6135 STRIP=$ac_ct_STRIP
6136 fi
d45dc31f
SE
6137else
6138 STRIP="$ac_cv_prog_STRIP"
6139fi
e5a52504 6140
d7040cdb 6141test -z "$STRIP" && STRIP=:
d45dc31f 6142
d45dc31f
SE
6143
6144
d45dc31f 6145
d45dc31f
SE
6146
6147
d7040cdb
SE
6148if test -n "$ac_tool_prefix"; then
6149 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6150set dummy ${ac_tool_prefix}ranlib; ac_word=$2
81ecdfbb
RW
6151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6152$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6153if ${ac_cv_prog_RANLIB+:} false; then :
81ecdfbb 6154 $as_echo_n "(cached) " >&6
d45dc31f 6155else
d7040cdb
SE
6156 if test -n "$RANLIB"; then
6157 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6158else
6159as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6160for as_dir in $PATH
6161do
6162 IFS=$as_save_IFS
6163 test -z "$as_dir" && as_dir=.
81ecdfbb 6164 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6165 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d7040cdb 6166 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
81ecdfbb 6167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb 6168 break 2
d45dc31f 6169 fi
d7040cdb 6170done
81ecdfbb
RW
6171 done
6172IFS=$as_save_IFS
d45dc31f 6173
d7040cdb
SE
6174fi
6175fi
6176RANLIB=$ac_cv_prog_RANLIB
6177if test -n "$RANLIB"; then
81ecdfbb
RW
6178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6179$as_echo "$RANLIB" >&6; }
d7040cdb 6180else
81ecdfbb
RW
6181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6182$as_echo "no" >&6; }
d7040cdb 6183fi
d45dc31f 6184
81ecdfbb 6185
d7040cdb
SE
6186fi
6187if test -z "$ac_cv_prog_RANLIB"; then
6188 ac_ct_RANLIB=$RANLIB
6189 # Extract the first word of "ranlib", so it can be a program name with args.
6190set dummy ranlib; ac_word=$2
81ecdfbb
RW
6191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6192$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6193if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
81ecdfbb 6194 $as_echo_n "(cached) " >&6
d7040cdb
SE
6195else
6196 if test -n "$ac_ct_RANLIB"; then
6197 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6198else
6199as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6200for as_dir in $PATH
6201do
6202 IFS=$as_save_IFS
6203 test -z "$as_dir" && as_dir=.
81ecdfbb 6204 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6205 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d7040cdb 6206 ac_cv_prog_ac_ct_RANLIB="ranlib"
81ecdfbb 6207 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb 6208 break 2
d45dc31f 6209 fi
d7040cdb 6210done
81ecdfbb
RW
6211 done
6212IFS=$as_save_IFS
d45dc31f 6213
d7040cdb
SE
6214fi
6215fi
6216ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6217if test -n "$ac_ct_RANLIB"; then
81ecdfbb
RW
6218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6219$as_echo "$ac_ct_RANLIB" >&6; }
d15b04bd 6220else
81ecdfbb
RW
6221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6222$as_echo "no" >&6; }
d7040cdb 6223fi
252b5132 6224
81ecdfbb
RW
6225 if test "x$ac_ct_RANLIB" = x; then
6226 RANLIB=":"
6227 else
6228 case $cross_compiling:$ac_tool_warned in
6229yes:)
6230{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6231$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6232ac_tool_warned=yes ;;
6233esac
6234 RANLIB=$ac_ct_RANLIB
6235 fi
d7040cdb
SE
6236else
6237 RANLIB="$ac_cv_prog_RANLIB"
6238fi
d45dc31f 6239
d7040cdb 6240test -z "$RANLIB" && RANLIB=:
a4966cd9
L
6241if test -n "$plugin_option" && test "$RANLIB" != ":"; then
6242 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
6243 RANLIB="$RANLIB $plugin_option"
6244 fi
6245fi
d45dc31f 6246
d45dc31f 6247
d45dc31f 6248
42ecbf5e 6249
e5a52504 6250
d7040cdb
SE
6251
6252# Determine commands to create old-style static archives.
718a6fd8 6253old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
d7040cdb
SE
6254old_postinstall_cmds='chmod 644 $oldlib'
6255old_postuninstall_cmds=
6256
6257if test -n "$RANLIB"; then
6258 case $host_os in
6259 openbsd*)
6260 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6261 ;;
6262 *)
6263 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6264 ;;
6265 esac
6266 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
d45dc31f 6267fi
d45dc31f 6268
3725885a
RW
6269case $host_os in
6270 darwin*)
6271 lock_old_archive_extraction=yes ;;
6272 *)
6273 lock_old_archive_extraction=no ;;
6274esac
6275
6276
6277
6278
6279
6280
d45dc31f 6281
d45dc31f
SE
6282
6283
d15b04bd 6284
3e321448 6285
d45dc31f 6286
d45dc31f 6287
d45dc31f
SE
6288
6289
d45dc31f 6290
d45dc31f 6291
d45dc31f
SE
6292
6293
6294
6295
6296
6297
6298
d45dc31f 6299
d45dc31f 6300
d45dc31f 6301
d45dc31f 6302
d45dc31f 6303
d45dc31f 6304
d45dc31f 6305
d45dc31f 6306
3e321448
L
6307
6308
d45dc31f
SE
6309
6310
d45dc31f
SE
6311
6312
d45dc31f 6313
d7040cdb
SE
6314# If no C compiler was specified, use CC.
6315LTCC=${LTCC-"$CC"}
42ecbf5e 6316
d7040cdb
SE
6317# If no C compiler flags were specified, use CFLAGS.
6318LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
e5a52504 6319
d7040cdb
SE
6320# Allow CC to be a program name with arguments.
6321compiler=$CC
d15b04bd 6322
d7040cdb
SE
6323
6324# Check for command to grab the raw symbol name followed by C symbol from nm.
81ecdfbb
RW
6325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6326$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
d0ac1c44 6327if ${lt_cv_sys_global_symbol_pipe+:} false; then :
81ecdfbb 6328 $as_echo_n "(cached) " >&6
d15b04bd 6329else
d7040cdb
SE
6330
6331# These are sane defaults that work on at least a few old systems.
6332# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6333
6334# Character class describing NM global symbol codes.
6335symcode='[BCDEGRST]'
6336
6337# Regexp to match symbols that can be accessed directly from C.
6338sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6339
6340# Define system-specific variables.
6341case $host_os in
6342aix*)
6343 symcode='[BCDT]'
6344 ;;
718a6fd8 6345cygwin* | mingw* | pw32* | cegcc*)
d7040cdb
SE
6346 symcode='[ABCDGISTW]'
6347 ;;
6348hpux*)
6349 if test "$host_cpu" = ia64; then
6350 symcode='[ABCDEGRST]'
42ecbf5e 6351 fi
d7040cdb
SE
6352 ;;
6353irix* | nonstopux*)
6354 symcode='[BCDEGRST]'
6355 ;;
6356osf*)
6357 symcode='[BCDEGQRST]'
6358 ;;
6359solaris*)
6360 symcode='[BDRT]'
6361 ;;
6362sco3.2v5*)
6363 symcode='[DT]'
6364 ;;
6365sysv4.2uw2*)
6366 symcode='[DT]'
6367 ;;
6368sysv5* | sco5v6* | unixware* | OpenUNIX*)
6369 symcode='[ABDT]'
6370 ;;
6371sysv4)
6372 symcode='[DFNSTU]'
6373 ;;
6374esac
d15b04bd 6375
d7040cdb
SE
6376# If we're using GNU nm, then use its standard symbol codes.
6377case `$NM -V 2>&1` in
6378*GNU* | *'with BFD'*)
6379 symcode='[ABCDGIRSTW]' ;;
6380esac
e5a52504 6381
d7040cdb
SE
6382# Transform an extracted symbol line into a proper C declaration.
6383# Some systems (esp. on ia64) link data and code symbols differently,
7357c5b6
AM
6384# so use this general approach.
6385lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
d7040cdb 6386
7357c5b6 6387# Transform an extracted symbol line into symbol name and symbol address
f2c621e4
AS
6388lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6389lt_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'"
d7040cdb 6390
7357c5b6
AM
6391# Handle CRLF in mingw tool chain
6392opt_cr=
6393case $build_os in
6394mingw*)
6395 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6396 ;;
6397esac
d7040cdb 6398
7357c5b6
AM
6399# Try without a prefix underscore, then with it.
6400for ac_symprfx in "" "_"; do
d7040cdb 6401
7357c5b6
AM
6402 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6403 symxfrm="\\1 $ac_symprfx\\2 \\2"
d7040cdb 6404
7357c5b6
AM
6405 # Write the raw and C identifiers.
6406 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6407 # Fake it for dumpbin and say T for any non-static function
6408 # and D for any global variable.
6409 # Also find C++ and __fastcall symbols from MSVC++,
6410 # which start with @ or ?.
6411 lt_cv_sys_global_symbol_pipe="$AWK '"\
6412" {last_section=section; section=\$ 3};"\
6413" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6414" \$ 0!~/External *\|/{next};"\
6415" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6416" {if(hide[section]) next};"\
6417" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6418" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6419" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6420" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6421" ' prfx=^$ac_symprfx"
6422 else
6423 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6424 fi
6425
6426 # Check to see that the pipe works correctly.
6427 pipe_works=no
6428
6429 rm -f conftest*
6430 cat > conftest.$ac_ext <<_LT_EOF
6431#ifdef __cplusplus
6432extern "C" {
6433#endif
6434char nm_test_var;
6435void nm_test_func(void);
6436void nm_test_func(void){}
6437#ifdef __cplusplus
d7040cdb 6438}
7357c5b6
AM
6439#endif
6440int main(){nm_test_var='a';nm_test_func();return(0);}
6441_LT_EOF
6442
81ecdfbb 6443 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6 6444 (eval $ac_compile) 2>&5
42ecbf5e 6445 ac_status=$?
81ecdfbb
RW
6446 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6447 test $ac_status = 0; }; then
7357c5b6
AM
6448 # Now try to grab the symbols.
6449 nlist=conftest.nm
3725885a
RW
6450 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6451 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
42ecbf5e 6452 ac_status=$?
81ecdfbb
RW
6453 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6454 test $ac_status = 0; } && test -s "$nlist"; then
7357c5b6
AM
6455 # Try sorting and uniquifying the output.
6456 if sort "$nlist" | uniq > "$nlist"T; then
6457 mv -f "$nlist"T "$nlist"
6458 else
6459 rm -f "$nlist"T
6460 fi
d7040cdb 6461
7357c5b6
AM
6462 # Make sure that we snagged all the symbols we need.
6463 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6464 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6465 cat <<_LT_EOF > conftest.$ac_ext
6466#ifdef __cplusplus
6467extern "C" {
6468#endif
e5a52504 6469
7357c5b6
AM
6470_LT_EOF
6471 # Now generate the symbol file.
6472 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7148cc28 6473
7357c5b6 6474 cat <<_LT_EOF >> conftest.$ac_ext
d7040cdb 6475
7357c5b6 6476/* The mapping between symbol names and symbols. */
f2c621e4 6477const struct {
7357c5b6
AM
6478 const char *name;
6479 void *address;
6480}
6481lt__PROGRAM__LTX_preloaded_symbols[] =
6482{
6483 { "@PROGRAM@", (void *) 0 },
6484_LT_EOF
6485 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6486 cat <<\_LT_EOF >> conftest.$ac_ext
6487 {0, (void *) 0}
6488};
d7040cdb 6489
7357c5b6
AM
6490/* This works around a problem in FreeBSD linker */
6491#ifdef FREEBSD_WORKAROUND
6492static const void *lt_preloaded_setup() {
6493 return lt__PROGRAM__LTX_preloaded_symbols;
6494}
d7040cdb
SE
6495#endif
6496
7357c5b6 6497#ifdef __cplusplus
d7040cdb 6498}
7357c5b6
AM
6499#endif
6500_LT_EOF
6501 # Now try linking the two files.
6502 mv conftest.$ac_objext conftstm.$ac_objext
f2c621e4
AS
6503 lt_save_LIBS="$LIBS"
6504 lt_save_CFLAGS="$CFLAGS"
7357c5b6
AM
6505 LIBS="conftstm.$ac_objext"
6506 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
81ecdfbb 6507 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
d7040cdb
SE
6508 (eval $ac_link) 2>&5
6509 ac_status=$?
81ecdfbb
RW
6510 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6511 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7357c5b6
AM
6512 pipe_works=yes
6513 fi
f2c621e4
AS
6514 LIBS="$lt_save_LIBS"
6515 CFLAGS="$lt_save_CFLAGS"
7357c5b6
AM
6516 else
6517 echo "cannot find nm_test_func in $nlist" >&5
6518 fi
6519 else
6520 echo "cannot find nm_test_var in $nlist" >&5
6521 fi
6522 else
6523 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6524 fi
6525 else
6526 echo "$progname: failed program was:" >&5
6527 cat conftest.$ac_ext >&5
6528 fi
718a6fd8 6529 rm -rf conftest* conftst*
7357c5b6
AM
6530
6531 # Do not use the global_symbol_pipe unless it works.
6532 if test "$pipe_works" = yes; then
6533 break
6534 else
6535 lt_cv_sys_global_symbol_pipe=
6536 fi
6537done
d7040cdb 6538
d7040cdb 6539fi
7357c5b6
AM
6540
6541if test -z "$lt_cv_sys_global_symbol_pipe"; then
6542 lt_cv_sys_global_symbol_to_cdecl=
d7040cdb 6543fi
7357c5b6 6544if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
81ecdfbb
RW
6545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6546$as_echo "failed" >&6; }
7357c5b6 6547else
81ecdfbb
RW
6548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6549$as_echo "ok" >&6; }
d7040cdb 6550fi
20e95c23 6551
20e95c23 6552
20e95c23 6553
20e95c23 6554
20e95c23 6555
20e95c23 6556
20e95c23
DJ
6557
6558
7357c5b6
AM
6559
6560
6561
718a6fd8
SE
6562
6563
6564
6565
6566
7357c5b6 6567
df7b86aa
NC
6568
6569
6570
6571
7357c5b6 6572
81ecdfbb
RW
6573# Check whether --enable-libtool-lock was given.
6574if test "${enable_libtool_lock+set}" = set; then :
6575 enableval=$enable_libtool_lock;
6576fi
7357c5b6 6577
7357c5b6
AM
6578test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6579
6580# Some flags need to be propagated to the compiler or linker for good
6581# libtool support.
6582case $host in
6583ia64-*-hpux*)
6584 # Find out which ABI we are using.
6585 echo 'int i;' > conftest.$ac_ext
81ecdfbb 6586 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6
AM
6587 (eval $ac_compile) 2>&5
6588 ac_status=$?
81ecdfbb
RW
6589 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6590 test $ac_status = 0; }; then
7357c5b6
AM
6591 case `/usr/bin/file conftest.$ac_objext` in
6592 *ELF-32*)
6593 HPUX_IA64_MODE="32"
6594 ;;
6595 *ELF-64*)
6596 HPUX_IA64_MODE="64"
6597 ;;
6598 esac
6599 fi
6600 rm -rf conftest*
6601 ;;
6602*-*-irix6*)
6603 # Find out which ABI we are using.
3725885a 6604 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
81ecdfbb 6605 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6
AM
6606 (eval $ac_compile) 2>&5
6607 ac_status=$?
81ecdfbb
RW
6608 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6609 test $ac_status = 0; }; then
7357c5b6
AM
6610 if test "$lt_cv_prog_gnu_ld" = yes; then
6611 case `/usr/bin/file conftest.$ac_objext` in
6612 *32-bit*)
6613 LD="${LD-ld} -melf32bsmip"
6614 ;;
6615 *N32*)
6616 LD="${LD-ld} -melf32bmipn32"
6617 ;;
6618 *64-bit*)
6619 LD="${LD-ld} -melf64bmip"
6620 ;;
6621 esac
6622 else
6623 case `/usr/bin/file conftest.$ac_objext` in
6624 *32-bit*)
6625 LD="${LD-ld} -32"
6626 ;;
6627 *N32*)
6628 LD="${LD-ld} -n32"
6629 ;;
6630 *64-bit*)
6631 LD="${LD-ld} -64"
6632 ;;
6633 esac
6634 fi
6635 fi
6636 rm -rf conftest*
6637 ;;
6638
cc9afea3 6639x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7357c5b6
AM
6640s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6641 # Find out which ABI we are using.
6642 echo 'int i;' > conftest.$ac_ext
81ecdfbb 6643 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6
AM
6644 (eval $ac_compile) 2>&5
6645 ac_status=$?
81ecdfbb
RW
6646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6647 test $ac_status = 0; }; then
7357c5b6
AM
6648 case `/usr/bin/file conftest.o` in
6649 *32-bit*)
6650 case $host in
6651 x86_64-*kfreebsd*-gnu)
6652 LD="${LD-ld} -m elf_i386_fbsd"
6653 ;;
6654 x86_64-*linux*)
6d2920c8
L
6655 case `/usr/bin/file conftest.o` in
6656 *x86-64*)
6657 LD="${LD-ld} -m elf32_x86_64"
6658 ;;
6659 *)
6660 LD="${LD-ld} -m elf_i386"
6661 ;;
6662 esac
7357c5b6 6663 ;;
cc9afea3
AM
6664 powerpc64le-*linux*)
6665 LD="${LD-ld} -m elf32lppclinux"
6666 ;;
6667 powerpc64-*linux*)
7357c5b6
AM
6668 LD="${LD-ld} -m elf32ppclinux"
6669 ;;
6670 s390x-*linux*)
6671 LD="${LD-ld} -m elf_s390"
6672 ;;
6673 sparc64-*linux*)
6674 LD="${LD-ld} -m elf32_sparc"
6675 ;;
6676 esac
6677 ;;
6678 *64-bit*)
6679 case $host in
6680 x86_64-*kfreebsd*-gnu)
6681 LD="${LD-ld} -m elf_x86_64_fbsd"
6682 ;;
6683 x86_64-*linux*)
6684 LD="${LD-ld} -m elf_x86_64"
6685 ;;
cc9afea3
AM
6686 powerpcle-*linux*)
6687 LD="${LD-ld} -m elf64lppc"
6688 ;;
6689 powerpc-*linux*)
7357c5b6
AM
6690 LD="${LD-ld} -m elf64ppc"
6691 ;;
6692 s390*-*linux*|s390*-*tpf*)
6693 LD="${LD-ld} -m elf64_s390"
6694 ;;
6695 sparc*-*linux*)
6696 LD="${LD-ld} -m elf64_sparc"
6697 ;;
6698 esac
6699 ;;
6700 esac
6701 fi
6702 rm -rf conftest*
6703 ;;
6704
6705*-*-sco3.2v5*)
6706 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6707 SAVE_CFLAGS="$CFLAGS"
6708 CFLAGS="$CFLAGS -belf"
81ecdfbb
RW
6709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6710$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
d0ac1c44 6711if ${lt_cv_cc_needs_belf+:} false; then :
81ecdfbb 6712 $as_echo_n "(cached) " >&6
d7040cdb 6713else
7357c5b6
AM
6714 ac_ext=c
6715ac_cpp='$CPP $CPPFLAGS'
6716ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6717ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6718ac_compiler_gnu=$ac_cv_c_compiler_gnu
6719
81ecdfbb 6720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb 6721/* end confdefs.h. */
20e95c23 6722
7357c5b6
AM
6723int
6724main ()
6725{
6726
6727 ;
6728 return 0;
6729}
d7040cdb 6730_ACEOF
81ecdfbb 6731if ac_fn_c_try_link "$LINENO"; then :
7357c5b6 6732 lt_cv_cc_needs_belf=yes
d15b04bd 6733else
81ecdfbb 6734 lt_cv_cc_needs_belf=no
d7040cdb 6735fi
81ecdfbb
RW
6736rm -f core conftest.err conftest.$ac_objext \
6737 conftest$ac_exeext conftest.$ac_ext
7357c5b6
AM
6738 ac_ext=c
6739ac_cpp='$CPP $CPPFLAGS'
6740ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6741ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6742ac_compiler_gnu=$ac_cv_c_compiler_gnu
20e95c23 6743
718a6fd8 6744fi
81ecdfbb
RW
6745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6746$as_echo "$lt_cv_cc_needs_belf" >&6; }
718a6fd8
SE
6747 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6748 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6749 CFLAGS="$SAVE_CFLAGS"
6750 fi
6751 ;;
6752sparc*-*solaris*)
6753 # Find out which ABI we are using.
6754 echo 'int i;' > conftest.$ac_ext
81ecdfbb 6755 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
718a6fd8
SE
6756 (eval $ac_compile) 2>&5
6757 ac_status=$?
81ecdfbb
RW
6758 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6759 test $ac_status = 0; }; then
718a6fd8
SE
6760 case `/usr/bin/file conftest.o` in
6761 *64-bit*)
6762 case $lt_cv_prog_gnu_ld in
6763 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6764 *)
6765 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6766 LD="${LD-ld} -64"
6767 fi
6768 ;;
6769 esac
6770 ;;
6771 esac
6772 fi
df7b86aa
NC
6773 rm -rf conftest*
6774 ;;
6775esac
6776
6777need_locks="$enable_libtool_lock"
6778
718a6fd8
SE
6779
6780 case $host_os in
6781 rhapsody* | darwin*)
6782 if test -n "$ac_tool_prefix"; then
6783 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6784set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
81ecdfbb
RW
6785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6786$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6787if ${ac_cv_prog_DSYMUTIL+:} false; then :
81ecdfbb 6788 $as_echo_n "(cached) " >&6
718a6fd8
SE
6789else
6790 if test -n "$DSYMUTIL"; then
6791 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6792else
6793as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6794for as_dir in $PATH
6795do
6796 IFS=$as_save_IFS
6797 test -z "$as_dir" && as_dir=.
81ecdfbb 6798 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6799 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
718a6fd8 6800 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
81ecdfbb 6801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
6802 break 2
6803 fi
6804done
81ecdfbb
RW
6805 done
6806IFS=$as_save_IFS
718a6fd8
SE
6807
6808fi
6809fi
6810DSYMUTIL=$ac_cv_prog_DSYMUTIL
6811if test -n "$DSYMUTIL"; then
81ecdfbb
RW
6812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6813$as_echo "$DSYMUTIL" >&6; }
718a6fd8 6814else
81ecdfbb
RW
6815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6816$as_echo "no" >&6; }
718a6fd8
SE
6817fi
6818
81ecdfbb 6819
718a6fd8
SE
6820fi
6821if test -z "$ac_cv_prog_DSYMUTIL"; then
6822 ac_ct_DSYMUTIL=$DSYMUTIL
6823 # Extract the first word of "dsymutil", so it can be a program name with args.
6824set dummy dsymutil; ac_word=$2
81ecdfbb
RW
6825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6826$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6827if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
81ecdfbb 6828 $as_echo_n "(cached) " >&6
718a6fd8
SE
6829else
6830 if test -n "$ac_ct_DSYMUTIL"; then
6831 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6832else
6833as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6834for as_dir in $PATH
6835do
6836 IFS=$as_save_IFS
6837 test -z "$as_dir" && as_dir=.
81ecdfbb 6838 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6839 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
718a6fd8 6840 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
81ecdfbb 6841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
6842 break 2
6843 fi
6844done
81ecdfbb
RW
6845 done
6846IFS=$as_save_IFS
718a6fd8 6847
718a6fd8
SE
6848fi
6849fi
6850ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6851if test -n "$ac_ct_DSYMUTIL"; then
81ecdfbb
RW
6852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6853$as_echo "$ac_ct_DSYMUTIL" >&6; }
718a6fd8 6854else
81ecdfbb
RW
6855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6856$as_echo "no" >&6; }
718a6fd8
SE
6857fi
6858
81ecdfbb
RW
6859 if test "x$ac_ct_DSYMUTIL" = x; then
6860 DSYMUTIL=":"
6861 else
6862 case $cross_compiling:$ac_tool_warned in
6863yes:)
6864{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6865$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6866ac_tool_warned=yes ;;
6867esac
6868 DSYMUTIL=$ac_ct_DSYMUTIL
6869 fi
718a6fd8
SE
6870else
6871 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6872fi
6873
6874 if test -n "$ac_tool_prefix"; then
6875 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6876set dummy ${ac_tool_prefix}nmedit; ac_word=$2
81ecdfbb
RW
6877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6878$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6879if ${ac_cv_prog_NMEDIT+:} false; then :
81ecdfbb 6880 $as_echo_n "(cached) " >&6
718a6fd8
SE
6881else
6882 if test -n "$NMEDIT"; then
6883 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6884else
6885as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6886for as_dir in $PATH
6887do
6888 IFS=$as_save_IFS
6889 test -z "$as_dir" && as_dir=.
81ecdfbb 6890 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6891 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
718a6fd8 6892 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
81ecdfbb 6893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
6894 break 2
6895 fi
6896done
81ecdfbb
RW
6897 done
6898IFS=$as_save_IFS
718a6fd8
SE
6899
6900fi
6901fi
6902NMEDIT=$ac_cv_prog_NMEDIT
6903if test -n "$NMEDIT"; then
81ecdfbb
RW
6904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6905$as_echo "$NMEDIT" >&6; }
718a6fd8 6906else
81ecdfbb
RW
6907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6908$as_echo "no" >&6; }
718a6fd8
SE
6909fi
6910
81ecdfbb 6911
718a6fd8
SE
6912fi
6913if test -z "$ac_cv_prog_NMEDIT"; then
6914 ac_ct_NMEDIT=$NMEDIT
6915 # Extract the first word of "nmedit", so it can be a program name with args.
6916set dummy nmedit; ac_word=$2
81ecdfbb
RW
6917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6918$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6919if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
81ecdfbb 6920 $as_echo_n "(cached) " >&6
718a6fd8
SE
6921else
6922 if test -n "$ac_ct_NMEDIT"; then
6923 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6924else
6925as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6926for as_dir in $PATH
6927do
6928 IFS=$as_save_IFS
6929 test -z "$as_dir" && as_dir=.
81ecdfbb 6930 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6931 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
718a6fd8 6932 ac_cv_prog_ac_ct_NMEDIT="nmedit"
81ecdfbb 6933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
6934 break 2
6935 fi
6936done
81ecdfbb
RW
6937 done
6938IFS=$as_save_IFS
718a6fd8 6939
718a6fd8
SE
6940fi
6941fi
6942ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6943if test -n "$ac_ct_NMEDIT"; then
81ecdfbb
RW
6944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6945$as_echo "$ac_ct_NMEDIT" >&6; }
718a6fd8 6946else
81ecdfbb
RW
6947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6948$as_echo "no" >&6; }
718a6fd8
SE
6949fi
6950
81ecdfbb
RW
6951 if test "x$ac_ct_NMEDIT" = x; then
6952 NMEDIT=":"
6953 else
6954 case $cross_compiling:$ac_tool_warned in
6955yes:)
6956{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6957$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6958ac_tool_warned=yes ;;
6959esac
6960 NMEDIT=$ac_ct_NMEDIT
6961 fi
718a6fd8
SE
6962else
6963 NMEDIT="$ac_cv_prog_NMEDIT"
6964fi
6965
6966 if test -n "$ac_tool_prefix"; then
6967 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6968set dummy ${ac_tool_prefix}lipo; ac_word=$2
81ecdfbb
RW
6969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6970$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6971if ${ac_cv_prog_LIPO+:} false; then :
81ecdfbb 6972 $as_echo_n "(cached) " >&6
718a6fd8
SE
6973else
6974 if test -n "$LIPO"; then
6975 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6976else
6977as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6978for as_dir in $PATH
6979do
6980 IFS=$as_save_IFS
6981 test -z "$as_dir" && as_dir=.
81ecdfbb 6982 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6983 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
718a6fd8 6984 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
81ecdfbb 6985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
6986 break 2
6987 fi
6988done
81ecdfbb
RW
6989 done
6990IFS=$as_save_IFS
718a6fd8
SE
6991
6992fi
6993fi
6994LIPO=$ac_cv_prog_LIPO
6995if test -n "$LIPO"; then
81ecdfbb
RW
6996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6997$as_echo "$LIPO" >&6; }
718a6fd8 6998else
81ecdfbb
RW
6999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7000$as_echo "no" >&6; }
718a6fd8
SE
7001fi
7002
81ecdfbb 7003
718a6fd8
SE
7004fi
7005if test -z "$ac_cv_prog_LIPO"; then
7006 ac_ct_LIPO=$LIPO
7007 # Extract the first word of "lipo", so it can be a program name with args.
7008set dummy lipo; ac_word=$2
81ecdfbb
RW
7009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7010$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 7011if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
81ecdfbb 7012 $as_echo_n "(cached) " >&6
718a6fd8
SE
7013else
7014 if test -n "$ac_ct_LIPO"; then
7015 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7016else
7017as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7018for as_dir in $PATH
7019do
7020 IFS=$as_save_IFS
7021 test -z "$as_dir" && as_dir=.
81ecdfbb 7022 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 7023 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
718a6fd8 7024 ac_cv_prog_ac_ct_LIPO="lipo"
81ecdfbb 7025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
7026 break 2
7027 fi
7028done
81ecdfbb
RW
7029 done
7030IFS=$as_save_IFS
718a6fd8 7031
718a6fd8
SE
7032fi
7033fi
7034ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7035if test -n "$ac_ct_LIPO"; then
81ecdfbb
RW
7036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7037$as_echo "$ac_ct_LIPO" >&6; }
718a6fd8 7038else
81ecdfbb
RW
7039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7040$as_echo "no" >&6; }
718a6fd8
SE
7041fi
7042
81ecdfbb
RW
7043 if test "x$ac_ct_LIPO" = x; then
7044 LIPO=":"
7045 else
7046 case $cross_compiling:$ac_tool_warned in
7047yes:)
7048{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7049$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7050ac_tool_warned=yes ;;
7051esac
7052 LIPO=$ac_ct_LIPO
7053 fi
718a6fd8
SE
7054else
7055 LIPO="$ac_cv_prog_LIPO"
7056fi
7057
7058 if test -n "$ac_tool_prefix"; then
7059 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7060set dummy ${ac_tool_prefix}otool; ac_word=$2
81ecdfbb
RW
7061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7062$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 7063if ${ac_cv_prog_OTOOL+:} false; then :
81ecdfbb 7064 $as_echo_n "(cached) " >&6
718a6fd8
SE
7065else
7066 if test -n "$OTOOL"; then
7067 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7068else
7069as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7070for as_dir in $PATH
7071do
7072 IFS=$as_save_IFS
7073 test -z "$as_dir" && as_dir=.
81ecdfbb 7074 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 7075 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
718a6fd8 7076 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
81ecdfbb 7077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
7078 break 2
7079 fi
7080done
81ecdfbb
RW
7081 done
7082IFS=$as_save_IFS
718a6fd8
SE
7083
7084fi
7085fi
7086OTOOL=$ac_cv_prog_OTOOL
7087if test -n "$OTOOL"; then
81ecdfbb
RW
7088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7089$as_echo "$OTOOL" >&6; }
718a6fd8 7090else
81ecdfbb
RW
7091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7092$as_echo "no" >&6; }
718a6fd8
SE
7093fi
7094
81ecdfbb 7095
718a6fd8
SE
7096fi
7097if test -z "$ac_cv_prog_OTOOL"; then
7098 ac_ct_OTOOL=$OTOOL
7099 # Extract the first word of "otool", so it can be a program name with args.
7100set dummy otool; ac_word=$2
81ecdfbb
RW
7101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7102$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 7103if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
81ecdfbb 7104 $as_echo_n "(cached) " >&6
718a6fd8
SE
7105else
7106 if test -n "$ac_ct_OTOOL"; then
7107 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7108else
7109as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7110for as_dir in $PATH
7111do
7112 IFS=$as_save_IFS
7113 test -z "$as_dir" && as_dir=.
81ecdfbb 7114 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 7115 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
718a6fd8 7116 ac_cv_prog_ac_ct_OTOOL="otool"
81ecdfbb 7117 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
7118 break 2
7119 fi
7120done
81ecdfbb
RW
7121 done
7122IFS=$as_save_IFS
718a6fd8 7123
718a6fd8
SE
7124fi
7125fi
7126ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7127if test -n "$ac_ct_OTOOL"; then
81ecdfbb
RW
7128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7129$as_echo "$ac_ct_OTOOL" >&6; }
718a6fd8 7130else
81ecdfbb
RW
7131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7132$as_echo "no" >&6; }
718a6fd8
SE
7133fi
7134
81ecdfbb
RW
7135 if test "x$ac_ct_OTOOL" = x; then
7136 OTOOL=":"
7137 else
7138 case $cross_compiling:$ac_tool_warned in
7139yes:)
7140{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7141$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7142ac_tool_warned=yes ;;
7143esac
7144 OTOOL=$ac_ct_OTOOL
7145 fi
718a6fd8
SE
7146else
7147 OTOOL="$ac_cv_prog_OTOOL"
7148fi
7149
7150 if test -n "$ac_tool_prefix"; then
7151 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7152set dummy ${ac_tool_prefix}otool64; ac_word=$2
81ecdfbb
RW
7153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7154$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 7155if ${ac_cv_prog_OTOOL64+:} false; then :
81ecdfbb 7156 $as_echo_n "(cached) " >&6
718a6fd8
SE
7157else
7158 if test -n "$OTOOL64"; then
7159 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7160else
7161as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7162for as_dir in $PATH
7163do
7164 IFS=$as_save_IFS
7165 test -z "$as_dir" && as_dir=.
81ecdfbb 7166 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 7167 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
718a6fd8 7168 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
81ecdfbb 7169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
7170 break 2
7171 fi
7172done
81ecdfbb
RW
7173 done
7174IFS=$as_save_IFS
718a6fd8
SE
7175
7176fi
7177fi
7178OTOOL64=$ac_cv_prog_OTOOL64
7179if test -n "$OTOOL64"; then
81ecdfbb
RW
7180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7181$as_echo "$OTOOL64" >&6; }
718a6fd8 7182else
81ecdfbb
RW
7183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7184$as_echo "no" >&6; }
718a6fd8
SE
7185fi
7186
81ecdfbb 7187
718a6fd8
SE
7188fi
7189if test -z "$ac_cv_prog_OTOOL64"; then
7190 ac_ct_OTOOL64=$OTOOL64
7191 # Extract the first word of "otool64", so it can be a program name with args.
7192set dummy otool64; ac_word=$2
81ecdfbb
RW
7193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7194$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 7195if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
81ecdfbb 7196 $as_echo_n "(cached) " >&6
718a6fd8
SE
7197else
7198 if test -n "$ac_ct_OTOOL64"; then
7199 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7200else
7201as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7202for as_dir in $PATH
7203do
7204 IFS=$as_save_IFS
7205 test -z "$as_dir" && as_dir=.
81ecdfbb 7206 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 7207 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
718a6fd8 7208 ac_cv_prog_ac_ct_OTOOL64="otool64"
81ecdfbb 7209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
7210 break 2
7211 fi
7212done
81ecdfbb
RW
7213 done
7214IFS=$as_save_IFS
718a6fd8 7215
718a6fd8
SE
7216fi
7217fi
7218ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7219if test -n "$ac_ct_OTOOL64"; then
81ecdfbb
RW
7220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7221$as_echo "$ac_ct_OTOOL64" >&6; }
718a6fd8 7222else
81ecdfbb
RW
7223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7224$as_echo "no" >&6; }
718a6fd8
SE
7225fi
7226
81ecdfbb
RW
7227 if test "x$ac_ct_OTOOL64" = x; then
7228 OTOOL64=":"
7229 else
7230 case $cross_compiling:$ac_tool_warned in
7231yes:)
7232{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7233$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7234ac_tool_warned=yes ;;
7235esac
7236 OTOOL64=$ac_ct_OTOOL64
7237 fi
718a6fd8
SE
7238else
7239 OTOOL64="$ac_cv_prog_OTOOL64"
7240fi
7241
7242
7243
7244
7245
7246
7247
7248
7249
7250
7251
7252
7253
7254
7255
7256
7257
7258
7259
7260
7261
7262
7263
7264
7265
7266
7267
81ecdfbb
RW
7268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7269$as_echo_n "checking for -single_module linker flag... " >&6; }
d0ac1c44 7270if ${lt_cv_apple_cc_single_mod+:} false; then :
81ecdfbb 7271 $as_echo_n "(cached) " >&6
718a6fd8
SE
7272else
7273 lt_cv_apple_cc_single_mod=no
7274 if test -z "${LT_MULTI_MODULE}"; then
7275 # By default we will add the -single_module flag. You can override
7276 # by either setting the environment variable LT_MULTI_MODULE
7277 # non-empty at configure time, or by adding -multi_module to the
7278 # link flags.
7279 rm -rf libconftest.dylib*
7280 echo "int foo(void){return 1;}" > conftest.c
7281 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7282-dynamiclib -Wl,-single_module conftest.c" >&5
7283 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7284 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7285 _lt_result=$?
7286 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7287 lt_cv_apple_cc_single_mod=yes
7288 else
7289 cat conftest.err >&5
7290 fi
7291 rm -rf libconftest.dylib*
7292 rm -f conftest.*
7293 fi
7294fi
81ecdfbb
RW
7295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7296$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7298$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
d0ac1c44 7299if ${lt_cv_ld_exported_symbols_list+:} false; then :
81ecdfbb 7300 $as_echo_n "(cached) " >&6
718a6fd8
SE
7301else
7302 lt_cv_ld_exported_symbols_list=no
7303 save_LDFLAGS=$LDFLAGS
7304 echo "_main" > conftest.sym
7305 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
81ecdfbb 7306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
718a6fd8
SE
7307/* end confdefs.h. */
7308
7309int
7310main ()
7311{
7312
7313 ;
7314 return 0;
7315}
7316_ACEOF
81ecdfbb 7317if ac_fn_c_try_link "$LINENO"; then :
718a6fd8
SE
7318 lt_cv_ld_exported_symbols_list=yes
7319else
81ecdfbb 7320 lt_cv_ld_exported_symbols_list=no
718a6fd8 7321fi
81ecdfbb
RW
7322rm -f core conftest.err conftest.$ac_objext \
7323 conftest$ac_exeext conftest.$ac_ext
718a6fd8
SE
7324 LDFLAGS="$save_LDFLAGS"
7325
7326fi
81ecdfbb
RW
7327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7328$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
3725885a
RW
7329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7330$as_echo_n "checking for -force_load linker flag... " >&6; }
d0ac1c44 7331if ${lt_cv_ld_force_load+:} false; then :
3725885a
RW
7332 $as_echo_n "(cached) " >&6
7333else
7334 lt_cv_ld_force_load=no
7335 cat > conftest.c << _LT_EOF
7336int forced_loaded() { return 2;}
7337_LT_EOF
7338 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7339 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7340 echo "$AR cru libconftest.a conftest.o" >&5
7341 $AR cru libconftest.a conftest.o 2>&5
7342 cat > conftest.c << _LT_EOF
7343int main() { return 0;}
7344_LT_EOF
7345 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7346 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7347 _lt_result=$?
7348 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7349 lt_cv_ld_force_load=yes
7350 else
7351 cat conftest.err >&5
7352 fi
7353 rm -f conftest.err libconftest.a conftest conftest.c
7354 rm -rf conftest.dSYM
7355
7356fi
7357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7358$as_echo "$lt_cv_ld_force_load" >&6; }
718a6fd8
SE
7359 case $host_os in
7360 rhapsody* | darwin1.[012])
7361 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7362 darwin1.*)
7363 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7364 darwin*) # darwin 5.x on
7365 # if running on 10.5 or later, the deployment target defaults
7366 # to the OS version, if on x86, and 10.4, the deployment
7367 # target defaults to 10.4. Don't you love it?
7368 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7369 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7370 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6e733cce 7371 10.[012][,.]*)
718a6fd8
SE
7372 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7373 10.*)
7374 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7375 esac
7376 ;;
7377 esac
7378 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7379 _lt_dar_single_mod='$single_module'
7380 fi
7381 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7382 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7383 else
7384 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7385 fi
3725885a 7386 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
718a6fd8
SE
7387 _lt_dsymutil='~$DSYMUTIL $lib || :'
7388 else
7389 _lt_dsymutil=
7390 fi
7391 ;;
7392 esac
7393
718a6fd8 7394for ac_header in dlfcn.h
81ecdfbb
RW
7395do :
7396 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7397"
d0ac1c44 7398if test "x$ac_cv_header_dlfcn_h" = xyes; then :
718a6fd8 7399 cat >>confdefs.h <<_ACEOF
81ecdfbb 7400#define HAVE_DLFCN_H 1
718a6fd8
SE
7401_ACEOF
7402
7403fi
7404
7405done
7406
7407
7408
3725885a
RW
7409
7410
718a6fd8
SE
7411# Set options
7412
7413
7414
7415 enable_dlopen=no
7416
7417
7418 enable_win32_dll=no
7419
7420
81ecdfbb
RW
7421 # Check whether --enable-shared was given.
7422if test "${enable_shared+set}" = set; then :
7423 enableval=$enable_shared; p=${PACKAGE-default}
718a6fd8
SE
7424 case $enableval in
7425 yes) enable_shared=yes ;;
7426 no) enable_shared=no ;;
7427 *)
7428 enable_shared=no
7429 # Look at the argument we got. We use all the common list separators.
7430 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7431 for pkg in $enableval; do
7432 IFS="$lt_save_ifs"
7433 if test "X$pkg" = "X$p"; then
7434 enable_shared=yes
7435 fi
7436 done
7437 IFS="$lt_save_ifs"
7438 ;;
7439 esac
7440else
7441 enable_shared=yes
81ecdfbb 7442fi
718a6fd8
SE
7443
7444
7445
7446
7447
7448
7449
7450
81ecdfbb
RW
7451
7452 # Check whether --enable-static was given.
7453if test "${enable_static+set}" = set; then :
7454 enableval=$enable_static; p=${PACKAGE-default}
718a6fd8
SE
7455 case $enableval in
7456 yes) enable_static=yes ;;
7457 no) enable_static=no ;;
7458 *)
7459 enable_static=no
7460 # Look at the argument we got. We use all the common list separators.
7461 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7462 for pkg in $enableval; do
7463 IFS="$lt_save_ifs"
7464 if test "X$pkg" = "X$p"; then
7465 enable_static=yes
7466 fi
7467 done
7468 IFS="$lt_save_ifs"
7469 ;;
7470 esac
7471else
7472 enable_static=yes
81ecdfbb 7473fi
718a6fd8
SE
7474
7475
7476
7477
7478
7479
7480
7481
7482
81ecdfbb
RW
7483
7484# Check whether --with-pic was given.
7485if test "${with_pic+set}" = set; then :
7486 withval=$with_pic; pic_mode="$withval"
718a6fd8
SE
7487else
7488 pic_mode=default
81ecdfbb
RW
7489fi
7490
718a6fd8
SE
7491
7492test -z "$pic_mode" && pic_mode=default
7493
7494
7495
7496
7497
7498
7499
81ecdfbb
RW
7500 # Check whether --enable-fast-install was given.
7501if test "${enable_fast_install+set}" = set; then :
7502 enableval=$enable_fast_install; p=${PACKAGE-default}
718a6fd8
SE
7503 case $enableval in
7504 yes) enable_fast_install=yes ;;
7505 no) enable_fast_install=no ;;
7506 *)
7507 enable_fast_install=no
7508 # Look at the argument we got. We use all the common list separators.
7509 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7510 for pkg in $enableval; do
7511 IFS="$lt_save_ifs"
7512 if test "X$pkg" = "X$p"; then
7513 enable_fast_install=yes
7514 fi
7515 done
7516 IFS="$lt_save_ifs"
7357c5b6
AM
7517 ;;
7518 esac
718a6fd8
SE
7519else
7520 enable_fast_install=yes
81ecdfbb
RW
7521fi
7522
20e95c23 7523
20e95c23
DJ
7524
7525
42ecbf5e 7526
d7040cdb 7527
20e95c23 7528
d7040cdb 7529
d7040cdb
SE
7530
7531
7532
7533# This can be used to rebuild libtool when needed
7534LIBTOOL_DEPS="$ltmain"
7535
7536# Always use our own libtool.
7537LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7538
7539
7540
7541
7542
7543
7544
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557
7558
7559
7560
3725885a 7561
d7040cdb
SE
7562
7563
7564test -z "$LN_S" && LN_S="ln -s"
7565
7566
7567
7568
7569
7570
7571
7572
7573
7574
7575
7576
7577
7578
7579if test -n "${ZSH_VERSION+set}" ; then
7580 setopt NO_GLOB_SUBST
7581fi
7582
81ecdfbb
RW
7583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7584$as_echo_n "checking for objdir... " >&6; }
d0ac1c44 7585if ${lt_cv_objdir+:} false; then :
81ecdfbb 7586 $as_echo_n "(cached) " >&6
20e95c23 7587else
d7040cdb
SE
7588 rm -f .libs 2>/dev/null
7589mkdir .libs 2>/dev/null
7590if test -d .libs; then
7591 lt_cv_objdir=.libs
42ecbf5e 7592else
d7040cdb
SE
7593 # MS-DOS does not allow filenames that begin with a dot.
7594 lt_cv_objdir=_libs
7595fi
7596rmdir .libs 2>/dev/null
42ecbf5e 7597fi
81ecdfbb
RW
7598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7599$as_echo "$lt_cv_objdir" >&6; }
d7040cdb 7600objdir=$lt_cv_objdir
42ecbf5e 7601
d7040cdb
SE
7602
7603
7604
7605
7606cat >>confdefs.h <<_ACEOF
7607#define LT_OBJDIR "$lt_cv_objdir/"
7608_ACEOF
7609
7610
7611
7612
d7040cdb
SE
7613case $host_os in
7614aix3*)
7615 # AIX sometimes has problems with the GCC collect2 program. For some
7616 # reason, if we set the COLLECT_NAMES environment variable, the problems
7617 # vanish in a puff of smoke.
7618 if test "X${COLLECT_NAMES+set}" != Xset; then
7619 COLLECT_NAMES=
7620 export COLLECT_NAMES
7621 fi
7622 ;;
7623esac
7624
d7040cdb
SE
7625# Global variables:
7626ofile=libtool
7627can_build_shared=yes
7628
7629# All known linkers require a `.a' archive for static linking (except MSVC,
7630# which needs '.lib').
7631libext=a
7632
7633with_gnu_ld="$lt_cv_prog_gnu_ld"
7634
7635old_CC="$CC"
7636old_CFLAGS="$CFLAGS"
7637
7638# Set sane defaults for various variables
7639test -z "$CC" && CC=cc
7640test -z "$LTCC" && LTCC=$CC
7641test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7642test -z "$LD" && LD=ld
7643test -z "$ac_objext" && ac_objext=o
7644
7645for cc_temp in $compiler""; do
7646 case $cc_temp in
7647 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7648 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7649 \-*) ;;
7650 *) break;;
7651 esac
7652done
3725885a 7653cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
d7040cdb
SE
7654
7655
7656# Only perform the check for file, if the check method requires it
7657test -z "$MAGIC_CMD" && MAGIC_CMD=file
7658case $deplibs_check_method in
7659file_magic*)
7660 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
81ecdfbb
RW
7661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7662$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
d0ac1c44 7663if ${lt_cv_path_MAGIC_CMD+:} false; then :
81ecdfbb 7664 $as_echo_n "(cached) " >&6
42ecbf5e 7665else
d7040cdb
SE
7666 case $MAGIC_CMD in
7667[\\/*] | ?:[\\/]*)
7668 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
20e95c23 7669 ;;
d7040cdb
SE
7670*)
7671 lt_save_MAGIC_CMD="$MAGIC_CMD"
7672 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7673 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7674 for ac_dir in $ac_dummy; do
7675 IFS="$lt_save_ifs"
7676 test -z "$ac_dir" && ac_dir=.
7677 if test -f $ac_dir/${ac_tool_prefix}file; then
7678 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7679 if test -n "$file_magic_test_file"; then
7680 case $deplibs_check_method in
7681 "file_magic "*)
7682 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7683 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7684 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7685 $EGREP "$file_magic_regex" > /dev/null; then
7686 :
7687 else
7688 cat <<_LT_EOF 1>&2
42ecbf5e 7689
d7040cdb
SE
7690*** Warning: the command libtool uses to detect shared libraries,
7691*** $file_magic_cmd, produces output that libtool cannot recognize.
7692*** The result is that libtool may fail to recognize shared libraries
7693*** as such. This will affect the creation of libtool libraries that
7694*** depend on shared libraries, but programs linked with such libtool
7695*** libraries will work regardless of this problem. Nevertheless, you
7696*** may want to report the problem to your system manager and/or to
7697*** bug-libtool@gnu.org
7698
7699_LT_EOF
7700 fi ;;
7701 esac
7702 fi
7703 break
7704 fi
7705 done
7706 IFS="$lt_save_ifs"
7707 MAGIC_CMD="$lt_save_MAGIC_CMD"
20e95c23
DJ
7708 ;;
7709esac
42ecbf5e 7710fi
20e95c23 7711
d7040cdb
SE
7712MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7713if test -n "$MAGIC_CMD"; then
81ecdfbb
RW
7714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7715$as_echo "$MAGIC_CMD" >&6; }
42ecbf5e 7716else
81ecdfbb
RW
7717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7718$as_echo "no" >&6; }
42ecbf5e
DJ
7719fi
7720
20e95c23
DJ
7721
7722
42ecbf5e 7723
20e95c23 7724
d7040cdb
SE
7725if test -z "$lt_cv_path_MAGIC_CMD"; then
7726 if test -n "$ac_tool_prefix"; then
81ecdfbb
RW
7727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7728$as_echo_n "checking for file... " >&6; }
d0ac1c44 7729if ${lt_cv_path_MAGIC_CMD+:} false; then :
81ecdfbb 7730 $as_echo_n "(cached) " >&6
42ecbf5e 7731else
d7040cdb
SE
7732 case $MAGIC_CMD in
7733[\\/*] | ?:[\\/]*)
7734 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7735 ;;
7736*)
7737 lt_save_MAGIC_CMD="$MAGIC_CMD"
7738 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7739 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7740 for ac_dir in $ac_dummy; do
7741 IFS="$lt_save_ifs"
7742 test -z "$ac_dir" && ac_dir=.
7743 if test -f $ac_dir/file; then
7744 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7745 if test -n "$file_magic_test_file"; then
7746 case $deplibs_check_method in
7747 "file_magic "*)
7748 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7749 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7750 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7751 $EGREP "$file_magic_regex" > /dev/null; then
7752 :
7753 else
7754 cat <<_LT_EOF 1>&2
7755
7756*** Warning: the command libtool uses to detect shared libraries,
7757*** $file_magic_cmd, produces output that libtool cannot recognize.
7758*** The result is that libtool may fail to recognize shared libraries
7759*** as such. This will affect the creation of libtool libraries that
7760*** depend on shared libraries, but programs linked with such libtool
7761*** libraries will work regardless of this problem. Nevertheless, you
7762*** may want to report the problem to your system manager and/or to
7763*** bug-libtool@gnu.org
7764
7765_LT_EOF
7766 fi ;;
7767 esac
7768 fi
7769 break
7770 fi
7771 done
7772 IFS="$lt_save_ifs"
7773 MAGIC_CMD="$lt_save_MAGIC_CMD"
7774 ;;
20e95c23
DJ
7775esac
7776fi
d7040cdb
SE
7777
7778MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7779if test -n "$MAGIC_CMD"; then
81ecdfbb
RW
7780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7781$as_echo "$MAGIC_CMD" >&6; }
20e95c23 7782else
81ecdfbb
RW
7783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7784$as_echo "no" >&6; }
20e95c23
DJ
7785fi
7786
20e95c23 7787
42ecbf5e 7788 else
d7040cdb 7789 MAGIC_CMD=:
42ecbf5e 7790 fi
42ecbf5e 7791fi
42ecbf5e 7792
20e95c23 7793 fi
d7040cdb
SE
7794 ;;
7795esac
42ecbf5e 7796
d7040cdb 7797# Use C for the default configuration in the libtool script
42ecbf5e 7798
d7040cdb
SE
7799lt_save_CC="$CC"
7800ac_ext=c
7801ac_cpp='$CPP $CPPFLAGS'
7802ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7803ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7804ac_compiler_gnu=$ac_cv_c_compiler_gnu
42ecbf5e 7805
42ecbf5e 7806
d7040cdb
SE
7807# Source file extension for C test sources.
7808ac_ext=c
42ecbf5e 7809
d7040cdb
SE
7810# Object file extension for compiled C test sources.
7811objext=o
7812objext=$objext
42ecbf5e 7813
d7040cdb
SE
7814# Code to be used in simple compile tests
7815lt_simple_compile_test_code="int some_variable = 0;"
42ecbf5e 7816
d7040cdb
SE
7817# Code to be used in simple link tests
7818lt_simple_link_test_code='int main(){return(0);}'
42ecbf5e 7819
ac48eca1 7820
42ecbf5e 7821
42ecbf5e 7822
d5fbea21 7823
d5fbea21
DJ
7824
7825
d7040cdb
SE
7826# If no C compiler was specified, use CC.
7827LTCC=${LTCC-"$CC"}
20e95c23 7828
d7040cdb
SE
7829# If no C compiler flags were specified, use CFLAGS.
7830LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
42ecbf5e 7831
d7040cdb
SE
7832# Allow CC to be a program name with arguments.
7833compiler=$CC
252b5132 7834
d7040cdb
SE
7835# Save the default compiler, since it gets overwritten when the other
7836# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7837compiler_DEFAULT=$CC
42ecbf5e 7838
d7040cdb
SE
7839# save warnings/boilerplate of simple test code
7840ac_outfile=conftest.$ac_objext
7841echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7842eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7843_lt_compiler_boilerplate=`cat conftest.err`
7844$RM conftest*
252b5132 7845
d7040cdb
SE
7846ac_outfile=conftest.$ac_objext
7847echo "$lt_simple_link_test_code" >conftest.$ac_ext
7848eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7849_lt_linker_boilerplate=`cat conftest.err`
718a6fd8 7850$RM -r conftest*
252b5132 7851
42ecbf5e 7852
f2c621e4
AS
7853## CAVEAT EMPTOR:
7854## There is no encapsulation within the following macros, do not change
7855## the running order or otherwise move them around unless you know exactly
7856## what you are doing...
d7040cdb 7857if test -n "$compiler"; then
252b5132 7858
d7040cdb 7859lt_prog_compiler_no_builtin_flag=
252b5132 7860
d7040cdb 7861if test "$GCC" = yes; then
3725885a
RW
7862 case $cc_basename in
7863 nvcc*)
7864 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7865 *)
7866 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7867 esac
d15b04bd 7868
81ecdfbb
RW
7869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7870$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
d0ac1c44 7871if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
81ecdfbb 7872 $as_echo_n "(cached) " >&6
252b5132 7873else
d7040cdb
SE
7874 lt_cv_prog_compiler_rtti_exceptions=no
7875 ac_outfile=conftest.$ac_objext
7876 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7877 lt_compiler_flag="-fno-rtti -fno-exceptions"
7878 # Insert the option either (1) after the last *FLAGS variable, or
7879 # (2) before a word containing "conftest.", or (3) at the end.
7880 # Note that $ac_compile itself does not contain backslashes and begins
7881 # with a dollar sign (not a hyphen), so the echo should work correctly.
7882 # The option is referenced via a variable to avoid confusing sed.
7883 lt_compile=`echo "$ac_compile" | $SED \
7884 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7885 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7886 -e 's:$: $lt_compiler_flag:'`
3725885a 7887 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
d7040cdb
SE
7888 (eval "$lt_compile" 2>conftest.err)
7889 ac_status=$?
7890 cat conftest.err >&5
3725885a 7891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7040cdb
SE
7892 if (exit $ac_status) && test -s "$ac_outfile"; then
7893 # The compiler can only warn and ignore the option if not recognized
7894 # So say no if there are warnings other than the usual output.
3725885a 7895 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
d7040cdb
SE
7896 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7897 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7898 lt_cv_prog_compiler_rtti_exceptions=yes
7899 fi
7900 fi
7901 $RM conftest*
42ecbf5e 7902
252b5132 7903fi
81ecdfbb
RW
7904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7905$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
d7040cdb
SE
7906
7907if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7908 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
20e95c23 7909else
d7040cdb 7910 :
252b5132 7911fi
252b5132
RH
7912
7913fi
d7040cdb
SE
7914
7915
7916
7917
7918
7919
7920 lt_prog_compiler_wl=
7921lt_prog_compiler_pic=
7922lt_prog_compiler_static=
7923
f2c621e4
AS
7924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7925$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
d7040cdb
SE
7926
7927 if test "$GCC" = yes; then
7928 lt_prog_compiler_wl='-Wl,'
7929 lt_prog_compiler_static='-static'
7930
7931 case $host_os in
7932 aix*)
7933 # All AIX code is PIC.
7934 if test "$host_cpu" = ia64; then
7935 # AIX 5 now supports IA64 processor
7936 lt_prog_compiler_static='-Bstatic'
7937 fi
6c9c0a50 7938 lt_prog_compiler_pic='-fPIC'
d7040cdb
SE
7939 ;;
7940
7941 amigaos*)
718a6fd8
SE
7942 case $host_cpu in
7943 powerpc)
7944 # see comment about AmigaOS4 .so support
7945 lt_prog_compiler_pic='-fPIC'
7946 ;;
7947 m68k)
7948 # FIXME: we need at least 68020 code to build shared libraries, but
7949 # adding the `-m68020' flag to GCC prevents building anything better,
7950 # like `-m68040'.
7951 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7952 ;;
7953 esac
d7040cdb
SE
7954 ;;
7955
7956 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7957 # PIC is the default for these OSes.
7958 ;;
7959
718a6fd8 7960 mingw* | cygwin* | pw32* | os2* | cegcc*)
d7040cdb
SE
7961 # This hack is so that the source file can tell whether it is being
7962 # built for inclusion in a dll (and should export symbols for example).
7963 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7964 # (--disable-auto-import) libraries
7965 lt_prog_compiler_pic='-DDLL_EXPORT'
7966 ;;
7967
7968 darwin* | rhapsody*)
7969 # PIC is the default on this platform
7970 # Common symbols not allowed in MH_DYLIB files
7971 lt_prog_compiler_pic='-fno-common'
7972 ;;
7973
3725885a
RW
7974 haiku*)
7975 # PIC is the default for Haiku.
7976 # The "-static" flag exists, but is broken.
7977 lt_prog_compiler_static=
7978 ;;
7979
d7040cdb 7980 hpux*)
718a6fd8
SE
7981 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7982 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7983 # sets the default TLS model and affects inlining.
d7040cdb 7984 case $host_cpu in
718a6fd8 7985 hppa*64*)
d7040cdb
SE
7986 # +Z the default
7987 ;;
7988 *)
7989 lt_prog_compiler_pic='-fPIC'
7990 ;;
7991 esac
7992 ;;
7993
7994 interix[3-9]*)
7995 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7996 # Instead, we relocate shared libraries at runtime.
7997 ;;
7998
7999 msdosdjgpp*)
8000 # Just because we use GCC doesn't mean we suddenly get shared libraries
8001 # on systems that don't support them.
8002 lt_prog_compiler_can_build_shared=no
8003 enable_shared=no
8004 ;;
8005
8006 *nto* | *qnx*)
8007 # QNX uses GNU C++, but need to define -shared option too, otherwise
8008 # it will coredump.
8009 lt_prog_compiler_pic='-fPIC -shared'
8010 ;;
8011
8012 sysv4*MP*)
8013 if test -d /usr/nec; then
8014 lt_prog_compiler_pic=-Kconform_pic
8015 fi
8016 ;;
8017
8018 *)
8019 lt_prog_compiler_pic='-fPIC'
8020 ;;
8021 esac
3725885a
RW
8022
8023 case $cc_basename in
8024 nvcc*) # Cuda Compiler Driver 2.2
8025 lt_prog_compiler_wl='-Xlinker '
8026 lt_prog_compiler_pic='-Xcompiler -fPIC'
8027 ;;
8028 esac
d7040cdb
SE
8029 else
8030 # PORTME Check for flag to pass linker flags through the system compiler.
8031 case $host_os in
8032 aix*)
8033 lt_prog_compiler_wl='-Wl,'
8034 if test "$host_cpu" = ia64; then
8035 # AIX 5 now supports IA64 processor
8036 lt_prog_compiler_static='-Bstatic'
8037 else
8038 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8039 fi
8040 ;;
d7040cdb 8041
718a6fd8 8042 mingw* | cygwin* | pw32* | os2* | cegcc*)
d7040cdb
SE
8043 # This hack is so that the source file can tell whether it is being
8044 # built for inclusion in a dll (and should export symbols for example).
8045 lt_prog_compiler_pic='-DDLL_EXPORT'
8046 ;;
8047
8048 hpux9* | hpux10* | hpux11*)
8049 lt_prog_compiler_wl='-Wl,'
8050 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8051 # not for PA HP-UX.
8052 case $host_cpu in
8053 hppa*64*|ia64*)
8054 # +Z the default
8055 ;;
8056 *)
8057 lt_prog_compiler_pic='+Z'
8058 ;;
8059 esac
8060 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8061 lt_prog_compiler_static='${wl}-a ${wl}archive'
8062 ;;
8063
8064 irix5* | irix6* | nonstopux*)
8065 lt_prog_compiler_wl='-Wl,'
8066 # PIC (with -KPIC) is the default.
8067 lt_prog_compiler_static='-non_shared'
8068 ;;
8069
58e24671 8070 linux* | k*bsd*-gnu | kopensolaris*-gnu)
d7040cdb 8071 case $cc_basename in
718a6fd8
SE
8072 # old Intel for x86_64 which still supported -KPIC.
8073 ecc*)
d7040cdb
SE
8074 lt_prog_compiler_wl='-Wl,'
8075 lt_prog_compiler_pic='-KPIC'
8076 lt_prog_compiler_static='-static'
8077 ;;
718a6fd8
SE
8078 # icc used to be incompatible with GCC.
8079 # ICC 10 doesn't accept -KPIC any more.
8080 icc* | ifort*)
8081 lt_prog_compiler_wl='-Wl,'
8082 lt_prog_compiler_pic='-fPIC'
8083 lt_prog_compiler_static='-static'
8084 ;;
8085 # Lahey Fortran 8.1.
8086 lf95*)
8087 lt_prog_compiler_wl='-Wl,'
8088 lt_prog_compiler_pic='--shared'
8089 lt_prog_compiler_static='--static'
8090 ;;
3725885a 8091 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
d7040cdb
SE
8092 # Portland Group compilers (*not* the Pentium gcc compiler,
8093 # which looks to be a dead project)
8094 lt_prog_compiler_wl='-Wl,'
8095 lt_prog_compiler_pic='-fpic'
8096 lt_prog_compiler_static='-Bstatic'
8097 ;;
8098 ccc*)
8099 lt_prog_compiler_wl='-Wl,'
8100 # All Alpha code is PIC.
8101 lt_prog_compiler_static='-non_shared'
8102 ;;
3725885a
RW
8103 xl* | bgxl* | bgf* | mpixl*)
8104 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
718a6fd8
SE
8105 lt_prog_compiler_wl='-Wl,'
8106 lt_prog_compiler_pic='-qpic'
8107 lt_prog_compiler_static='-qstaticlink'
8108 ;;
d7040cdb
SE
8109 *)
8110 case `$CC -V 2>&1 | sed 5q` in
3725885a
RW
8111 *Sun\ F* | *Sun*Fortran*)
8112 # Sun Fortran 8.3 passes all unrecognized flags to the linker
d7040cdb
SE
8113 lt_prog_compiler_pic='-KPIC'
8114 lt_prog_compiler_static='-Bstatic'
3725885a 8115 lt_prog_compiler_wl=''
d7040cdb 8116 ;;
3725885a
RW
8117 *Sun\ C*)
8118 # Sun C 5.9
d7040cdb
SE
8119 lt_prog_compiler_pic='-KPIC'
8120 lt_prog_compiler_static='-Bstatic'
3725885a 8121 lt_prog_compiler_wl='-Wl,'
d7040cdb
SE
8122 ;;
8123 esac
8124 ;;
8125 esac
8126 ;;
8127
8128 newsos6)
8129 lt_prog_compiler_pic='-KPIC'
8130 lt_prog_compiler_static='-Bstatic'
8131 ;;
8132
8133 *nto* | *qnx*)
8134 # QNX uses GNU C++, but need to define -shared option too, otherwise
8135 # it will coredump.
8136 lt_prog_compiler_pic='-fPIC -shared'
8137 ;;
8138
8139 osf3* | osf4* | osf5*)
8140 lt_prog_compiler_wl='-Wl,'
8141 # All OSF/1 code is PIC.
8142 lt_prog_compiler_static='-non_shared'
8143 ;;
8144
8145 rdos*)
8146 lt_prog_compiler_static='-non_shared'
8147 ;;
8148
8149 solaris*)
8150 lt_prog_compiler_pic='-KPIC'
8151 lt_prog_compiler_static='-Bstatic'
8152 case $cc_basename in
f2c621e4 8153 f77* | f90* | f95*)
d7040cdb
SE
8154 lt_prog_compiler_wl='-Qoption ld ';;
8155 *)
8156 lt_prog_compiler_wl='-Wl,';;
8157 esac
8158 ;;
8159
8160 sunos4*)
8161 lt_prog_compiler_wl='-Qoption ld '
8162 lt_prog_compiler_pic='-PIC'
8163 lt_prog_compiler_static='-Bstatic'
8164 ;;
8165
8166 sysv4 | sysv4.2uw2* | sysv4.3*)
8167 lt_prog_compiler_wl='-Wl,'
8168 lt_prog_compiler_pic='-KPIC'
8169 lt_prog_compiler_static='-Bstatic'
8170 ;;
8171
8172 sysv4*MP*)
8173 if test -d /usr/nec ;then
8174 lt_prog_compiler_pic='-Kconform_pic'
8175 lt_prog_compiler_static='-Bstatic'
8176 fi
8177 ;;
8178
8179 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8180 lt_prog_compiler_wl='-Wl,'
8181 lt_prog_compiler_pic='-KPIC'
8182 lt_prog_compiler_static='-Bstatic'
8183 ;;
8184
8185 unicos*)
8186 lt_prog_compiler_wl='-Wl,'
8187 lt_prog_compiler_can_build_shared=no
8188 ;;
8189
8190 uts4*)
8191 lt_prog_compiler_pic='-pic'
8192 lt_prog_compiler_static='-Bstatic'
8193 ;;
8194
8195 *)
8196 lt_prog_compiler_can_build_shared=no
8197 ;;
8198 esac
8199 fi
8200
8201case $host_os in
8202 # For platforms which do not support PIC, -DPIC is meaningless:
8203 *djgpp*)
8204 lt_prog_compiler_pic=
8205 ;;
8206 *)
8207 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8208 ;;
8209esac
f2c621e4
AS
8210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8211$as_echo "$lt_prog_compiler_pic" >&6; }
8212
8213
8214
8215
d7040cdb
SE
8216
8217
8218#
8219# Check to make sure the PIC flag actually works.
8220#
8221if test -n "$lt_prog_compiler_pic"; then
81ecdfbb
RW
8222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8223$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
d0ac1c44 8224if ${lt_cv_prog_compiler_pic_works+:} false; then :
81ecdfbb 8225 $as_echo_n "(cached) " >&6
42ecbf5e 8226else
718a6fd8 8227 lt_cv_prog_compiler_pic_works=no
d7040cdb
SE
8228 ac_outfile=conftest.$ac_objext
8229 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8230 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8231 # Insert the option either (1) after the last *FLAGS variable, or
8232 # (2) before a word containing "conftest.", or (3) at the end.
8233 # Note that $ac_compile itself does not contain backslashes and begins
8234 # with a dollar sign (not a hyphen), so the echo should work correctly.
8235 # The option is referenced via a variable to avoid confusing sed.
8236 lt_compile=`echo "$ac_compile" | $SED \
8237 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8238 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8239 -e 's:$: $lt_compiler_flag:'`
3725885a 8240 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
d7040cdb
SE
8241 (eval "$lt_compile" 2>conftest.err)
8242 ac_status=$?
8243 cat conftest.err >&5
3725885a 8244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7040cdb
SE
8245 if (exit $ac_status) && test -s "$ac_outfile"; then
8246 # The compiler can only warn and ignore the option if not recognized
8247 # So say no if there are warnings other than the usual output.
3725885a 8248 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
d7040cdb
SE
8249 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8250 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
718a6fd8 8251 lt_cv_prog_compiler_pic_works=yes
d7040cdb
SE
8252 fi
8253 fi
8254 $RM conftest*
42ecbf5e 8255
252b5132 8256fi
81ecdfbb
RW
8257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8258$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
d7040cdb 8259
718a6fd8 8260if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
d7040cdb
SE
8261 case $lt_prog_compiler_pic in
8262 "" | " "*) ;;
8263 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8264 esac
252b5132 8265else
d7040cdb
SE
8266 lt_prog_compiler_pic=
8267 lt_prog_compiler_can_build_shared=no
252b5132 8268fi
252b5132
RH
8269
8270fi
42ecbf5e 8271
d7040cdb
SE
8272
8273
8274
8275
8276
8277#
8278# Check to make sure the static flag actually works.
8279#
8280wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
81ecdfbb
RW
8281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8282$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
d0ac1c44 8283if ${lt_cv_prog_compiler_static_works+:} false; then :
81ecdfbb 8284 $as_echo_n "(cached) " >&6
42ecbf5e 8285else
718a6fd8 8286 lt_cv_prog_compiler_static_works=no
d7040cdb
SE
8287 save_LDFLAGS="$LDFLAGS"
8288 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8289 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8290 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8291 # The linker can only warn and ignore the option if not recognized
8292 # So say no if there are warnings
8293 if test -s conftest.err; then
8294 # Append any errors to the config.log.
8295 cat conftest.err 1>&5
3725885a 8296 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
d7040cdb
SE
8297 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8298 if diff conftest.exp conftest.er2 >/dev/null; then
718a6fd8 8299 lt_cv_prog_compiler_static_works=yes
d7040cdb
SE
8300 fi
8301 else
718a6fd8 8302 lt_cv_prog_compiler_static_works=yes
d7040cdb
SE
8303 fi
8304 fi
718a6fd8 8305 $RM -r conftest*
d7040cdb 8306 LDFLAGS="$save_LDFLAGS"
42ecbf5e 8307
42ecbf5e 8308fi
81ecdfbb
RW
8309{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8310$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
d7040cdb 8311
718a6fd8 8312if test x"$lt_cv_prog_compiler_static_works" = xyes; then
d7040cdb
SE
8313 :
8314else
8315 lt_prog_compiler_static=
42ecbf5e 8316fi
42ecbf5e 8317
252b5132 8318
252b5132 8319
42ecbf5e 8320
252b5132 8321
20e95c23 8322
d7040cdb 8323
81ecdfbb
RW
8324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8325$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
d0ac1c44 8326if ${lt_cv_prog_compiler_c_o+:} false; then :
81ecdfbb 8327 $as_echo_n "(cached) " >&6
252b5132 8328else
d7040cdb
SE
8329 lt_cv_prog_compiler_c_o=no
8330 $RM -r conftest 2>/dev/null
8331 mkdir conftest
8332 cd conftest
8333 mkdir out
8334 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8335
8336 lt_compiler_flag="-o out/conftest2.$ac_objext"
8337 # Insert the option either (1) after the last *FLAGS variable, or
8338 # (2) before a word containing "conftest.", or (3) at the end.
8339 # Note that $ac_compile itself does not contain backslashes and begins
8340 # with a dollar sign (not a hyphen), so the echo should work correctly.
8341 lt_compile=`echo "$ac_compile" | $SED \
8342 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8343 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8344 -e 's:$: $lt_compiler_flag:'`
3725885a 8345 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
d7040cdb
SE
8346 (eval "$lt_compile" 2>out/conftest.err)
8347 ac_status=$?
8348 cat out/conftest.err >&5
3725885a 8349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7040cdb
SE
8350 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8351 then
8352 # The compiler can only warn and ignore the option if not recognized
8353 # So say no if there are warnings
3725885a 8354 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
d7040cdb
SE
8355 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8356 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8357 lt_cv_prog_compiler_c_o=yes
8358 fi
8359 fi
8360 chmod u+w . 2>&5
8361 $RM conftest*
8362 # SGI C++ compiler will create directory out/ii_files/ for
8363 # template instantiation
8364 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8365 $RM out/* && rmdir out
8366 cd ..
8367 $RM -r conftest
8368 $RM conftest*
8369
252b5132 8370fi
81ecdfbb
RW
8371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8372$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
42ecbf5e 8373
20e95c23 8374
20e95c23
DJ
8375
8376
d7040cdb
SE
8377
8378
81ecdfbb
RW
8379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8380$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
d0ac1c44 8381if ${lt_cv_prog_compiler_c_o+:} false; then :
81ecdfbb 8382 $as_echo_n "(cached) " >&6
42ecbf5e 8383else
d7040cdb
SE
8384 lt_cv_prog_compiler_c_o=no
8385 $RM -r conftest 2>/dev/null
8386 mkdir conftest
8387 cd conftest
8388 mkdir out
8389 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8390
8391 lt_compiler_flag="-o out/conftest2.$ac_objext"
8392 # Insert the option either (1) after the last *FLAGS variable, or
8393 # (2) before a word containing "conftest.", or (3) at the end.
8394 # Note that $ac_compile itself does not contain backslashes and begins
8395 # with a dollar sign (not a hyphen), so the echo should work correctly.
8396 lt_compile=`echo "$ac_compile" | $SED \
8397 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8398 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8399 -e 's:$: $lt_compiler_flag:'`
3725885a 8400 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
d7040cdb
SE
8401 (eval "$lt_compile" 2>out/conftest.err)
8402 ac_status=$?
8403 cat out/conftest.err >&5
3725885a 8404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7040cdb
SE
8405 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8406 then
8407 # The compiler can only warn and ignore the option if not recognized
8408 # So say no if there are warnings
3725885a 8409 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
d7040cdb
SE
8410 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8411 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8412 lt_cv_prog_compiler_c_o=yes
8413 fi
8414 fi
8415 chmod u+w . 2>&5
8416 $RM conftest*
8417 # SGI C++ compiler will create directory out/ii_files/ for
8418 # template instantiation
8419 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8420 $RM out/* && rmdir out
8421 cd ..
8422 $RM -r conftest
8423 $RM conftest*
8424
8425fi
81ecdfbb
RW
8426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8427$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
d7040cdb
SE
8428
8429
8430
8431
8432hard_links="nottested"
8433if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8434 # do not overwrite the value of need_locks provided by the user
81ecdfbb
RW
8435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8436$as_echo_n "checking if we can lock with hard links... " >&6; }
d7040cdb
SE
8437 hard_links=yes
8438 $RM conftest*
8439 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8440 touch conftest.a
8441 ln conftest.a conftest.b 2>&5 || hard_links=no
8442 ln conftest.a conftest.b 2>/dev/null && hard_links=no
81ecdfbb
RW
8443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8444$as_echo "$hard_links" >&6; }
d7040cdb 8445 if test "$hard_links" = no; then
81ecdfbb
RW
8446 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8447$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
d7040cdb
SE
8448 need_locks=warn
8449 fi
8450else
8451 need_locks=no
8452fi
8453
8454
8455
8456
8457
8458
81ecdfbb
RW
8459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8460$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
d7040cdb
SE
8461
8462 runpath_var=
8463 allow_undefined_flag=
8464 always_export_symbols=no
8465 archive_cmds=
8466 archive_expsym_cmds=
8467 compiler_needs_object=no
8468 enable_shared_with_static_runtimes=no
8469 export_dynamic_flag_spec=
8470 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8471 hardcode_automatic=no
8472 hardcode_direct=no
8473 hardcode_direct_absolute=no
8474 hardcode_libdir_flag_spec=
8475 hardcode_libdir_flag_spec_ld=
8476 hardcode_libdir_separator=
8477 hardcode_minus_L=no
8478 hardcode_shlibpath_var=unsupported
8479 inherit_rpath=no
8480 link_all_deplibs=unknown
8481 module_cmds=
8482 module_expsym_cmds=
8483 old_archive_from_new_cmds=
8484 old_archive_from_expsyms_cmds=
8485 thread_safe_flag_spec=
8486 whole_archive_flag_spec=
8487 # include_expsyms should be a list of space-separated symbols to be *always*
8488 # included in the symbol list
8489 include_expsyms=
8490 # exclude_expsyms can be an extended regexp of symbols to exclude
8491 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8492 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8493 # as well as any symbol that contains `d'.
718a6fd8 8494 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
d7040cdb
SE
8495 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8496 # platforms (ab)use it in PIC code, but their linkers get confused if
8497 # the symbol is explicitly referenced. Since portable code cannot
8498 # rely on this symbol name, it's probably fine to never include it in
8499 # preloaded symbol tables.
718a6fd8 8500 # Exclude shared library initialization/finalization symbols.
d7040cdb
SE
8501 extract_expsyms_cmds=
8502
8503 case $host_os in
718a6fd8 8504 cygwin* | mingw* | pw32* | cegcc*)
d7040cdb
SE
8505 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8506 # When not using gcc, we currently assume that we are using
8507 # Microsoft Visual C++.
8508 if test "$GCC" != yes; then
8509 with_gnu_ld=no
8510 fi
8511 ;;
8512 interix*)
8513 # we just hope/assume this is gcc and not c89 (= MSVC++)
8514 with_gnu_ld=yes
8515 ;;
8516 openbsd*)
8517 with_gnu_ld=no
8518 ;;
8519 esac
8520
8521 ld_shlibs=yes
3725885a
RW
8522
8523 # On some targets, GNU ld is compatible enough with the native linker
8524 # that we're better off using the native interface for both.
8525 lt_use_gnu_ld_interface=no
d7040cdb 8526 if test "$with_gnu_ld" = yes; then
3725885a
RW
8527 case $host_os in
8528 aix*)
8529 # The AIX port of GNU ld has always aspired to compatibility
8530 # with the native linker. However, as the warning in the GNU ld
8531 # block says, versions before 2.19.5* couldn't really create working
8532 # shared libraries, regardless of the interface used.
8533 case `$LD -v 2>&1` in
8534 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8535 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8536 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8537 *)
8538 lt_use_gnu_ld_interface=yes
8539 ;;
8540 esac
8541 ;;
8542 *)
8543 lt_use_gnu_ld_interface=yes
8544 ;;
8545 esac
8546 fi
8547
8548 if test "$lt_use_gnu_ld_interface" = yes; then
d7040cdb
SE
8549 # If archive_cmds runs LD, not CC, wlarc should be empty
8550 wlarc='${wl}'
8551
8552 # Set some defaults for GNU ld with shared library support. These
8553 # are reset later if shared libraries are not supported. Putting them
8554 # here allows them to be overridden if necessary.
8555 runpath_var=LD_RUN_PATH
8556 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8557 export_dynamic_flag_spec='${wl}--export-dynamic'
8558 # ancient GNU ld didn't support --whole-archive et. al.
8559 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8560 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8561 else
8562 whole_archive_flag_spec=
8563 fi
8564 supports_anon_versioning=no
8565 case `$LD -v 2>&1` in
3725885a 8566 *GNU\ gold*) supports_anon_versioning=yes ;;
d7040cdb
SE
8567 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8568 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8569 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8570 *\ 2.11.*) ;; # other 2.11 versions
8571 *) supports_anon_versioning=yes ;;
8572 esac
8573
8574 # See if GNU ld supports shared libraries.
8575 case $host_os in
50e7d84b 8576 aix[3-9]*)
d7040cdb
SE
8577 # On AIX/PPC, the GNU linker is very broken
8578 if test "$host_cpu" != ia64; then
8579 ld_shlibs=no
8580 cat <<_LT_EOF 1>&2
8581
3725885a 8582*** Warning: the GNU linker, at least up to release 2.19, is reported
d7040cdb
SE
8583*** to be unable to reliably create shared libraries on AIX.
8584*** Therefore, libtool is disabling shared libraries support. If you
3725885a
RW
8585*** really care for shared libraries, you may want to install binutils
8586*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8587*** You will then need to restart the configuration process.
d7040cdb
SE
8588
8589_LT_EOF
8590 fi
8591 ;;
8592
8593 amigaos*)
718a6fd8
SE
8594 case $host_cpu in
8595 powerpc)
8596 # see comment about AmigaOS4 .so support
8597 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8598 archive_expsym_cmds=''
8599 ;;
8600 m68k)
8601 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)'
8602 hardcode_libdir_flag_spec='-L$libdir'
8603 hardcode_minus_L=yes
8604 ;;
8605 esac
d7040cdb
SE
8606 ;;
8607
8608 beos*)
8609 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8610 allow_undefined_flag=unsupported
8611 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8612 # support --undefined. This deserves some investigation. FIXME
8613 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8614 else
8615 ld_shlibs=no
8616 fi
8617 ;;
8618
718a6fd8 8619 cygwin* | mingw* | pw32* | cegcc*)
d7040cdb
SE
8620 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8621 # as there is no search path for DLLs.
8622 hardcode_libdir_flag_spec='-L$libdir'
3725885a 8623 export_dynamic_flag_spec='${wl}--export-all-symbols'
d7040cdb
SE
8624 allow_undefined_flag=unsupported
8625 always_export_symbols=no
8626 enable_shared_with_static_runtimes=yes
f2c621e4 8627 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
d7040cdb
SE
8628
8629 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8630 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8631 # If the export-symbols file already is a .def file (1st line
8632 # is EXPORTS), use it as is; otherwise, prepend...
8633 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8634 cp $export_symbols $output_objdir/$soname.def;
8635 else
8636 echo EXPORTS > $output_objdir/$soname.def;
8637 cat $export_symbols >> $output_objdir/$soname.def;
8638 fi~
8639 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8640 else
8641 ld_shlibs=no
8642 fi
8643 ;;
8644
3725885a
RW
8645 haiku*)
8646 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8647 link_all_deplibs=yes
8648 ;;
8649
d7040cdb
SE
8650 interix[3-9]*)
8651 hardcode_direct=no
8652 hardcode_shlibpath_var=no
8653 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8654 export_dynamic_flag_spec='${wl}-E'
8655 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8656 # Instead, shared libraries are loaded at an image base (0x10000000 by
8657 # default) and relocated if they conflict, which is a slow very memory
8658 # consuming and fragmenting process. To avoid this, we pick a random,
8659 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8660 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8661 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8662 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'
8663 ;;
8664
58e24671 8665 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
d7040cdb
SE
8666 tmp_diet=no
8667 if test "$host_os" = linux-dietlibc; then
8668 case $cc_basename in
8669 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8670 esac
8671 fi
8672 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8673 && test "$tmp_diet" = no
8674 then
6e733cce 8675 tmp_addflag=' $pic_flag'
718a6fd8 8676 tmp_sharedflag='-shared'
d7040cdb
SE
8677 case $cc_basename,$host_cpu in
8678 pgcc*) # Portland Group C compiler
3725885a 8679 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'
d7040cdb
SE
8680 tmp_addflag=' $pic_flag'
8681 ;;
3725885a
RW
8682 pgf77* | pgf90* | pgf95* | pgfortran*)
8683 # Portland Group f77 and f90 compilers
8684 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'
d7040cdb
SE
8685 tmp_addflag=' $pic_flag -Mnomain' ;;
8686 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8687 tmp_addflag=' -i_dynamic' ;;
8688 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8689 tmp_addflag=' -i_dynamic -nofor_main' ;;
8690 ifc* | ifort*) # Intel Fortran compiler
8691 tmp_addflag=' -nofor_main' ;;
718a6fd8
SE
8692 lf95*) # Lahey Fortran 8.1
8693 whole_archive_flag_spec=
8694 tmp_sharedflag='--shared' ;;
3725885a 8695 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
718a6fd8
SE
8696 tmp_sharedflag='-qmkshrobj'
8697 tmp_addflag= ;;
3725885a
RW
8698 nvcc*) # Cuda Compiler Driver 2.2
8699 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'
8700 compiler_needs_object=yes
8701 ;;
d7040cdb
SE
8702 esac
8703 case `$CC -V 2>&1 | sed 5q` in
8704 *Sun\ C*) # Sun C 5.9
3725885a 8705 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'
d7040cdb
SE
8706 compiler_needs_object=yes
8707 tmp_sharedflag='-G' ;;
8708 *Sun\ F*) # Sun Fortran 8.3
8709 tmp_sharedflag='-G' ;;
d7040cdb
SE
8710 esac
8711 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8712
8713 if test "x$supports_anon_versioning" = xyes; then
8714 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8715 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8716 echo "local: *; };" >> $output_objdir/$libname.ver~
8717 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8718 fi
718a6fd8
SE
8719
8720 case $cc_basename in
3725885a 8721 xlf* | bgf* | bgxlf* | mpixlf*)
718a6fd8
SE
8722 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8723 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8724 hardcode_libdir_flag_spec=
8725 hardcode_libdir_flag_spec_ld='-rpath $libdir'
f2c621e4 8726 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
718a6fd8
SE
8727 if test "x$supports_anon_versioning" = xyes; then
8728 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8729 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8730 echo "local: *; };" >> $output_objdir/$libname.ver~
f2c621e4 8731 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
718a6fd8
SE
8732 fi
8733 ;;
8734 esac
d7040cdb
SE
8735 else
8736 ld_shlibs=no
8737 fi
8738 ;;
8739
8740 netbsd*)
8741 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8742 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8743 wlarc=
8744 else
f2c621e4
AS
8745 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8746 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
d7040cdb
SE
8747 fi
8748 ;;
8749
8750 solaris*)
8751 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8752 ld_shlibs=no
8753 cat <<_LT_EOF 1>&2
8754
8755*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8756*** create shared libraries on Solaris systems. Therefore, libtool
8757*** is disabling shared libraries support. We urge you to upgrade GNU
8758*** binutils to release 2.9.1 or newer. Another option is to modify
8759*** your PATH or compiler configuration so that the native linker is
8760*** used, and then restart.
8761
8762_LT_EOF
8763 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
f2c621e4
AS
8764 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8765 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
d7040cdb
SE
8766 else
8767 ld_shlibs=no
8768 fi
8769 ;;
8770
8771 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8772 case `$LD -v 2>&1` in
8773 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8774 ld_shlibs=no
8775 cat <<_LT_EOF 1>&2
8776
8777*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8778*** reliably create shared libraries on SCO systems. Therefore, libtool
8779*** is disabling shared libraries support. We urge you to upgrade GNU
8780*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8781*** your PATH or compiler configuration so that the native linker is
8782*** used, and then restart.
8783
8784_LT_EOF
8785 ;;
8786 *)
8787 # For security reasons, it is highly recommended that you always
8788 # use absolute paths for naming shared libraries, and exclude the
8789 # DT_RUNPATH tag from executables and libraries. But doing so
8790 # requires that you compile everything twice, which is a pain.
8791 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8792 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8793 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8794 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8795 else
8796 ld_shlibs=no
8797 fi
8798 ;;
8799 esac
8800 ;;
8801
8802 sunos4*)
8803 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8804 wlarc=
8805 hardcode_direct=yes
8806 hardcode_shlibpath_var=no
8807 ;;
8808
8809 *)
8810 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
f2c621e4
AS
8811 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8812 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
d7040cdb
SE
8813 else
8814 ld_shlibs=no
8815 fi
8816 ;;
8817 esac
8818
8819 if test "$ld_shlibs" = no; then
8820 runpath_var=
8821 hardcode_libdir_flag_spec=
8822 export_dynamic_flag_spec=
8823 whole_archive_flag_spec=
8824 fi
8825 else
8826 # PORTME fill in a description of your system's linker (not GNU ld)
8827 case $host_os in
8828 aix3*)
8829 allow_undefined_flag=unsupported
8830 always_export_symbols=yes
8831 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'
8832 # Note: this linker hardcodes the directories in LIBPATH if there
8833 # are no directories specified by -L.
8834 hardcode_minus_L=yes
8835 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8836 # Neither direct hardcoding nor static linking is supported with a
8837 # broken collect2.
8838 hardcode_direct=unsupported
8839 fi
8840 ;;
8841
50e7d84b 8842 aix[4-9]*)
d7040cdb
SE
8843 if test "$host_cpu" = ia64; then
8844 # On IA64, the linker does run time linking by default, so we don't
8845 # have to do anything special.
8846 aix_use_runtimelinking=no
8847 exp_sym_flag='-Bexport'
8848 no_entry_flag=""
8849 else
8850 # If we're using GNU nm, then we don't want the "-C" option.
8851 # -C means demangle to AIX nm, but means don't demangle with GNU nm
3725885a
RW
8852 # Also, AIX nm treats weak defined symbols like other global
8853 # defined symbols, whereas GNU nm marks them as "W".
d7040cdb 8854 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
3725885a 8855 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'
d7040cdb 8856 else
5c14705f 8857 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'
d7040cdb
SE
8858 fi
8859 aix_use_runtimelinking=no
8860
8861 # Test if we are trying to use run time linking or normal
8862 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8863 # need to do runtime linking.
50e7d84b 8864 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
d7040cdb
SE
8865 for ld_flag in $LDFLAGS; do
8866 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8867 aix_use_runtimelinking=yes
8868 break
8869 fi
8870 done
8871 ;;
8872 esac
8873
8874 exp_sym_flag='-bexport'
8875 no_entry_flag='-bnoentry'
8876 fi
8877
8878 # When large executables or shared objects are built, AIX ld can
8879 # have problems creating the table of contents. If linking a library
8880 # or program results in "error TOC overflow" add -mminimal-toc to
8881 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8882 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8883
8884 archive_cmds=''
8885 hardcode_direct=yes
8886 hardcode_direct_absolute=yes
8887 hardcode_libdir_separator=':'
8888 link_all_deplibs=yes
8889 file_list_spec='${wl}-f,'
8890
8891 if test "$GCC" = yes; then
8892 case $host_os in aix4.[012]|aix4.[012].*)
8893 # We only want to do this on AIX 4.2 and lower, the check
8894 # below for broken collect2 doesn't work under 4.3+
8895 collect2name=`${CC} -print-prog-name=collect2`
8896 if test -f "$collect2name" &&
8897 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8898 then
8899 # We have reworked collect2
8900 :
8901 else
8902 # We have old collect2
8903 hardcode_direct=unsupported
8904 # It fails to find uninstalled libraries when the uninstalled
8905 # path is not listed in the libpath. Setting hardcode_minus_L
8906 # to unsupported forces relinking
8907 hardcode_minus_L=yes
8908 hardcode_libdir_flag_spec='-L$libdir'
8909 hardcode_libdir_separator=
8910 fi
8911 ;;
8912 esac
8913 shared_flag='-shared'
8914 if test "$aix_use_runtimelinking" = yes; then
8915 shared_flag="$shared_flag "'${wl}-G'
8916 fi
8917 else
8918 # not using gcc
8919 if test "$host_cpu" = ia64; then
8920 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8921 # chokes on -Wl,-G. The following line is correct:
8922 shared_flag='-G'
8923 else
8924 if test "$aix_use_runtimelinking" = yes; then
8925 shared_flag='${wl}-G'
8926 else
8927 shared_flag='${wl}-bM:SRE'
8928 fi
8929 fi
8930 fi
8931
718a6fd8 8932 export_dynamic_flag_spec='${wl}-bexpall'
d7040cdb
SE
8933 # It seems that -bexpall does not export symbols beginning with
8934 # underscore (_), so it is better to generate a list of symbols to export.
8935 always_export_symbols=yes
8936 if test "$aix_use_runtimelinking" = yes; then
8937 # Warning - without using the other runtime loading flags (-brtl),
8938 # -berok will link without error, but may produce a broken library.
8939 allow_undefined_flag='-berok'
8940 # Determine the default libpath from the value encoded in an
8941 # empty executable.
f2c621e4 8942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e 8943/* end confdefs.h. */
d7040cdb
SE
8944
8945int
8946main ()
8947{
8948
8949 ;
8950 return 0;
8951}
42ecbf5e 8952_ACEOF
81ecdfbb 8953if ac_fn_c_try_link "$LINENO"; then :
d7040cdb 8954
f2c621e4
AS
8955lt_aix_libpath_sed='
8956 /Import File Strings/,/^$/ {
8957 /^0/ {
8958 s/^0 *\(.*\)$/\1/
8959 p
8960 }
8961 }'
8962aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8963# Check for a 64-bit object if we didn't find anything.
8964if test -z "$aix_libpath"; then
8965 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8966fi
252b5132 8967fi
81ecdfbb
RW
8968rm -f core conftest.err conftest.$ac_objext \
8969 conftest$ac_exeext conftest.$ac_ext
f2c621e4 8970if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
252b5132 8971
d7040cdb 8972 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
3725885a 8973 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"
d7040cdb
SE
8974 else
8975 if test "$host_cpu" = ia64; then
8976 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8977 allow_undefined_flag="-z nodefs"
8978 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"
8979 else
8980 # Determine the default libpath from the value encoded in an
8981 # empty executable.
f2c621e4 8982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e 8983/* end confdefs.h. */
d7040cdb
SE
8984
8985int
8986main ()
8987{
8988
8989 ;
8990 return 0;
8991}
42ecbf5e 8992_ACEOF
81ecdfbb 8993if ac_fn_c_try_link "$LINENO"; then :
d7040cdb 8994
f2c621e4
AS
8995lt_aix_libpath_sed='
8996 /Import File Strings/,/^$/ {
8997 /^0/ {
8998 s/^0 *\(.*\)$/\1/
8999 p
9000 }
9001 }'
9002aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9003# Check for a 64-bit object if we didn't find anything.
9004if test -z "$aix_libpath"; then
9005 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9006fi
252b5132 9007fi
81ecdfbb
RW
9008rm -f core conftest.err conftest.$ac_objext \
9009 conftest$ac_exeext conftest.$ac_ext
f2c621e4 9010if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
d7040cdb
SE
9011
9012 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9013 # Warning - without using the other run time loading flags,
9014 # -berok will link without error, but may produce a broken library.
9015 no_undefined_flag=' ${wl}-bernotok'
9016 allow_undefined_flag=' ${wl}-berok'
3725885a
RW
9017 if test "$with_gnu_ld" = yes; then
9018 # We only use this code for GNU lds that support --whole-archive.
9019 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9020 else
9021 # Exported symbols can be pulled into shared objects from archives
9022 whole_archive_flag_spec='$convenience'
9023 fi
d7040cdb
SE
9024 archive_cmds_need_lc=yes
9025 # This is similar to how AIX traditionally builds its shared libraries.
9026 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'
9027 fi
9028 fi
9029 ;;
42ecbf5e 9030
d7040cdb 9031 amigaos*)
718a6fd8
SE
9032 case $host_cpu in
9033 powerpc)
9034 # see comment about AmigaOS4 .so support
9035 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9036 archive_expsym_cmds=''
9037 ;;
9038 m68k)
9039 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)'
9040 hardcode_libdir_flag_spec='-L$libdir'
9041 hardcode_minus_L=yes
9042 ;;
9043 esac
d7040cdb 9044 ;;
252b5132 9045
d7040cdb
SE
9046 bsdi[45]*)
9047 export_dynamic_flag_spec=-rdynamic
9048 ;;
252b5132 9049
718a6fd8 9050 cygwin* | mingw* | pw32* | cegcc*)
d7040cdb
SE
9051 # When not using gcc, we currently assume that we are using
9052 # Microsoft Visual C++.
9053 # hardcode_libdir_flag_spec is actually meaningless, as there is
9054 # no search path for DLLs.
f2c621e4
AS
9055 hardcode_libdir_flag_spec=' '
9056 allow_undefined_flag=unsupported
9057 # Tell ltmain to make .lib files, not .a files.
9058 libext=lib
9059 # Tell ltmain to make .dll files, not .so files.
9060 shrext_cmds=".dll"
9061 # FIXME: Setting linknames here is a bad hack.
9062 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9063 # The linker will automatically build a .lib file if we build a DLL.
9064 old_archive_from_new_cmds='true'
9065 # FIXME: Should let the user specify the lib program.
9066 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9067 fix_srcfile_path='`cygpath -w "$srcfile"`'
9068 enable_shared_with_static_runtimes=yes
d7040cdb 9069 ;;
252b5132 9070
d7040cdb 9071 darwin* | rhapsody*)
c46f8c51 9072
718a6fd8
SE
9073
9074 archive_cmds_need_lc=no
9075 hardcode_direct=no
9076 hardcode_automatic=yes
9077 hardcode_shlibpath_var=unsupported
3725885a
RW
9078 if test "$lt_cv_ld_force_load" = "yes"; then
9079 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\"`'
9080 else
9081 whole_archive_flag_spec=''
9082 fi
718a6fd8
SE
9083 link_all_deplibs=yes
9084 allow_undefined_flag="$_lt_dar_allow_undefined"
9085 case $cc_basename in
9086 ifort*) _lt_dar_can_shared=yes ;;
9087 *) _lt_dar_can_shared=$GCC ;;
9088 esac
9089 if test "$_lt_dar_can_shared" = "yes"; then
3725885a 9090 output_verbose_link_cmd=func_echo_all
718a6fd8
SE
9091 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9092 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9093 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}"
9094 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}"
9095
9096 else
9097 ld_shlibs=no
9098 fi
9099
d7040cdb 9100 ;;
42ecbf5e 9101
d7040cdb
SE
9102 dgux*)
9103 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9104 hardcode_libdir_flag_spec='-L$libdir'
9105 hardcode_shlibpath_var=no
9106 ;;
252b5132 9107
d7040cdb
SE
9108 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9109 # support. Future versions do this automatically, but an explicit c++rt0.o
9110 # does not break anything, and helps significantly (at the cost of a little
9111 # extra space).
9112 freebsd2.2*)
9113 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9114 hardcode_libdir_flag_spec='-R$libdir'
9115 hardcode_direct=yes
9116 hardcode_shlibpath_var=no
9117 ;;
252b5132 9118
d7040cdb 9119 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6d2920c8 9120 freebsd2.*)
d7040cdb
SE
9121 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9122 hardcode_direct=yes
9123 hardcode_minus_L=yes
9124 hardcode_shlibpath_var=no
9125 ;;
42ecbf5e 9126
d7040cdb
SE
9127 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9128 freebsd* | dragonfly*)
f2c621e4 9129 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
d7040cdb
SE
9130 hardcode_libdir_flag_spec='-R$libdir'
9131 hardcode_direct=yes
9132 hardcode_shlibpath_var=no
9133 ;;
252b5132 9134
d7040cdb
SE
9135 hpux9*)
9136 if test "$GCC" = yes; then
f2c621e4 9137 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'
d7040cdb
SE
9138 else
9139 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'
9140 fi
9141 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9142 hardcode_libdir_separator=:
9143 hardcode_direct=yes
9144
9145 # hardcode_minus_L: Not really in the search PATH,
9146 # but as the default location of the library.
9147 hardcode_minus_L=yes
9148 export_dynamic_flag_spec='${wl}-E'
9149 ;;
20e95c23 9150
d7040cdb 9151 hpux10*)
3725885a 9152 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
f2c621e4 9153 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
d7040cdb
SE
9154 else
9155 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9156 fi
9157 if test "$with_gnu_ld" = no; then
9158 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9159 hardcode_libdir_flag_spec_ld='+b $libdir'
9160 hardcode_libdir_separator=:
9161 hardcode_direct=yes
9162 hardcode_direct_absolute=yes
9163 export_dynamic_flag_spec='${wl}-E'
9164 # hardcode_minus_L: Not really in the search PATH,
9165 # but as the default location of the library.
9166 hardcode_minus_L=yes
9167 fi
9168 ;;
20e95c23 9169
d7040cdb 9170 hpux11*)
3725885a 9171 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
d7040cdb
SE
9172 case $host_cpu in
9173 hppa*64*)
9174 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9175 ;;
9176 ia64*)
f2c621e4 9177 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
d7040cdb
SE
9178 ;;
9179 *)
f2c621e4 9180 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
d7040cdb
SE
9181 ;;
9182 esac
9183 else
9184 case $host_cpu in
9185 hppa*64*)
9186 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9187 ;;
9188 ia64*)
9189 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9190 ;;
9191 *)
3725885a
RW
9192
9193 # Older versions of the 11.00 compiler do not understand -b yet
9194 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9196$as_echo_n "checking if $CC understands -b... " >&6; }
d0ac1c44 9197if ${lt_cv_prog_compiler__b+:} false; then :
3725885a
RW
9198 $as_echo_n "(cached) " >&6
9199else
9200 lt_cv_prog_compiler__b=no
9201 save_LDFLAGS="$LDFLAGS"
9202 LDFLAGS="$LDFLAGS -b"
9203 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9204 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9205 # The linker can only warn and ignore the option if not recognized
9206 # So say no if there are warnings
9207 if test -s conftest.err; then
9208 # Append any errors to the config.log.
9209 cat conftest.err 1>&5
9210 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9211 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9212 if diff conftest.exp conftest.er2 >/dev/null; then
9213 lt_cv_prog_compiler__b=yes
9214 fi
9215 else
9216 lt_cv_prog_compiler__b=yes
9217 fi
9218 fi
9219 $RM -r conftest*
9220 LDFLAGS="$save_LDFLAGS"
9221
9222fi
9223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9224$as_echo "$lt_cv_prog_compiler__b" >&6; }
9225
9226if test x"$lt_cv_prog_compiler__b" = xyes; then
9227 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9228else
9229 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9230fi
9231
d7040cdb
SE
9232 ;;
9233 esac
9234 fi
9235 if test "$with_gnu_ld" = no; then
9236 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9237 hardcode_libdir_separator=:
9238
9239 case $host_cpu in
9240 hppa*64*|ia64*)
9241 hardcode_direct=no
9242 hardcode_shlibpath_var=no
9243 ;;
9244 *)
9245 hardcode_direct=yes
9246 hardcode_direct_absolute=yes
9247 export_dynamic_flag_spec='${wl}-E'
9248
9249 # hardcode_minus_L: Not really in the search PATH,
9250 # but as the default location of the library.
9251 hardcode_minus_L=yes
9252 ;;
9253 esac
9254 fi
9255 ;;
9256
9257 irix5* | irix6* | nonstopux*)
9258 if test "$GCC" = yes; then
f2c621e4 9259 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'
d7040cdb
SE
9260 # Try to use the -exported_symbol ld option, if it does not
9261 # work, assume that -exports_file does not work either and
9262 # implicitly export all symbols.
f2c621e4
AS
9263 save_LDFLAGS="$LDFLAGS"
9264 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
81ecdfbb 9266/* end confdefs.h. */
f2c621e4 9267int foo(void) {}
42ecbf5e 9268_ACEOF
81ecdfbb 9269if ac_fn_c_try_link "$LINENO"; then :
f2c621e4
AS
9270 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'
9271
42ecbf5e 9272fi
81ecdfbb
RW
9273rm -f core conftest.err conftest.$ac_objext \
9274 conftest$ac_exeext conftest.$ac_ext
f2c621e4 9275 LDFLAGS="$save_LDFLAGS"
d7040cdb 9276 else
3725885a
RW
9277 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'
9278 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'
d7040cdb
SE
9279 fi
9280 archive_cmds_need_lc='no'
9281 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9282 hardcode_libdir_separator=:
9283 inherit_rpath=yes
9284 link_all_deplibs=yes
9285 ;;
42ecbf5e 9286
d7040cdb
SE
9287 netbsd*)
9288 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9289 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9290 else
9291 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9292 fi
9293 hardcode_libdir_flag_spec='-R$libdir'
9294 hardcode_direct=yes
9295 hardcode_shlibpath_var=no
9296 ;;
42ecbf5e 9297
d7040cdb
SE
9298 newsos6)
9299 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9300 hardcode_direct=yes
9301 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9302 hardcode_libdir_separator=:
9303 hardcode_shlibpath_var=no
9304 ;;
42ecbf5e 9305
d7040cdb
SE
9306 *nto* | *qnx*)
9307 ;;
252b5132 9308
d7040cdb 9309 openbsd*)
718a6fd8
SE
9310 if test -f /usr/libexec/ld.so; then
9311 hardcode_direct=yes
9312 hardcode_shlibpath_var=no
9313 hardcode_direct_absolute=yes
9314 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
d7040cdb 9315 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
718a6fd8 9316 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
d7040cdb 9317 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
718a6fd8
SE
9318 export_dynamic_flag_spec='${wl}-E'
9319 else
9320 case $host_os in
9321 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9322 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9323 hardcode_libdir_flag_spec='-R$libdir'
9324 ;;
9325 *)
9326 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9327 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9328 ;;
9329 esac
9330 fi
9331 else
9332 ld_shlibs=no
d7040cdb
SE
9333 fi
9334 ;;
252b5132 9335
d7040cdb
SE
9336 os2*)
9337 hardcode_libdir_flag_spec='-L$libdir'
9338 hardcode_minus_L=yes
9339 allow_undefined_flag=unsupported
3725885a 9340 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'
d7040cdb
SE
9341 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9342 ;;
2481e6a2 9343
d7040cdb
SE
9344 osf3*)
9345 if test "$GCC" = yes; then
9346 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
3725885a 9347 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'
d7040cdb
SE
9348 else
9349 allow_undefined_flag=' -expect_unresolved \*'
3725885a 9350 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'
d7040cdb
SE
9351 fi
9352 archive_cmds_need_lc='no'
9353 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9354 hardcode_libdir_separator=:
9355 ;;
42ecbf5e 9356
d7040cdb
SE
9357 osf4* | osf5*) # as osf3* with the addition of -msym flag
9358 if test "$GCC" = yes; then
9359 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
f2c621e4 9360 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'
d7040cdb
SE
9361 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9362 else
9363 allow_undefined_flag=' -expect_unresolved \*'
3725885a 9364 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'
d7040cdb 9365 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~
3725885a 9366 $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'
42ecbf5e 9367
d7040cdb
SE
9368 # Both c and cxx compiler support -rpath directly
9369 hardcode_libdir_flag_spec='-rpath $libdir'
9370 fi
9371 archive_cmds_need_lc='no'
9372 hardcode_libdir_separator=:
9373 ;;
9374
9375 solaris*)
9376 no_undefined_flag=' -z defs'
9377 if test "$GCC" = yes; then
9378 wlarc='${wl}'
f2c621e4 9379 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
d7040cdb 9380 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
f2c621e4 9381 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
d7040cdb
SE
9382 else
9383 case `$CC -V 2>&1` in
9384 *"Compilers 5.0"*)
9385 wlarc=''
9386 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9387 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9388 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9389 ;;
9390 *)
9391 wlarc='${wl}'
9392 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9393 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9394 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9395 ;;
9396 esac
9397 fi
9398 hardcode_libdir_flag_spec='-R$libdir'
9399 hardcode_shlibpath_var=no
9400 case $host_os in
9401 solaris2.[0-5] | solaris2.[0-5].*) ;;
9402 *)
9403 # The compiler driver will combine and reorder linker options,
9404 # but understands `-z linker_flag'. GCC discards it without `$wl',
9405 # but is careful enough not to reorder.
9406 # Supported since Solaris 2.6 (maybe 2.5.1?)
9407 if test "$GCC" = yes; then
9408 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9409 else
9410 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9411 fi
9412 ;;
9413 esac
9414 link_all_deplibs=yes
9415 ;;
9416
9417 sunos4*)
9418 if test "x$host_vendor" = xsequent; then
9419 # Use $CC to link under sequent, because it throws in some extra .o
9420 # files that make .init and .fini sections work.
9421 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9422 else
9423 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9424 fi
9425 hardcode_libdir_flag_spec='-L$libdir'
9426 hardcode_direct=yes
9427 hardcode_minus_L=yes
9428 hardcode_shlibpath_var=no
9429 ;;
9430
9431 sysv4)
9432 case $host_vendor in
9433 sni)
9434 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9435 hardcode_direct=yes # is this really true???
9436 ;;
9437 siemens)
9438 ## LD is ld it makes a PLAMLIB
9439 ## CC just makes a GrossModule.
9440 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9441 reload_cmds='$CC -r -o $output$reload_objs'
9442 hardcode_direct=no
9443 ;;
9444 motorola)
9445 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9446 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9447 ;;
9448 esac
9449 runpath_var='LD_RUN_PATH'
9450 hardcode_shlibpath_var=no
9451 ;;
9452
9453 sysv4.3*)
9454 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9455 hardcode_shlibpath_var=no
9456 export_dynamic_flag_spec='-Bexport'
9457 ;;
9458
9459 sysv4*MP*)
9460 if test -d /usr/nec; then
9461 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9462 hardcode_shlibpath_var=no
9463 runpath_var=LD_RUN_PATH
9464 hardcode_runpath_var=yes
9465 ld_shlibs=yes
9466 fi
9467 ;;
9468
9469 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9470 no_undefined_flag='${wl}-z,text'
9471 archive_cmds_need_lc=no
9472 hardcode_shlibpath_var=no
9473 runpath_var='LD_RUN_PATH'
9474
9475 if test "$GCC" = yes; then
9476 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9477 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9478 else
9479 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9480 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9481 fi
9482 ;;
9483
9484 sysv5* | sco3.2v5* | sco5v6*)
9485 # Note: We can NOT use -z defs as we might desire, because we do not
9486 # link with -lc, and that would cause any symbols used from libc to
9487 # always be unresolved, which means just about no library would
9488 # ever link correctly. If we're not using GNU ld we use -z text
9489 # though, which does catch some bad symbols but isn't as heavy-handed
9490 # as -z defs.
9491 no_undefined_flag='${wl}-z,text'
9492 allow_undefined_flag='${wl}-z,nodefs'
9493 archive_cmds_need_lc=no
9494 hardcode_shlibpath_var=no
9495 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9496 hardcode_libdir_separator=':'
9497 link_all_deplibs=yes
9498 export_dynamic_flag_spec='${wl}-Bexport'
9499 runpath_var='LD_RUN_PATH'
9500
9501 if test "$GCC" = yes; then
9502 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9503 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9504 else
9505 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9506 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9507 fi
9508 ;;
9509
9510 uts4*)
9511 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9512 hardcode_libdir_flag_spec='-L$libdir'
9513 hardcode_shlibpath_var=no
9514 ;;
9515
9516 *)
9517 ld_shlibs=no
9518 ;;
9519 esac
9520
9521 if test x$host_vendor = xsni; then
9522 case $host in
9523 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9524 export_dynamic_flag_spec='${wl}-Blargedynsym'
9525 ;;
9526 esac
9527 fi
9528 fi
9529
81ecdfbb
RW
9530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9531$as_echo "$ld_shlibs" >&6; }
d7040cdb
SE
9532test "$ld_shlibs" = no && can_build_shared=no
9533
9534with_gnu_ld=$with_gnu_ld
9535
9536
9537
9538
9539
9540
9541
9542
9543
9544
9545
9546
9547
9548
9549
9550#
9551# Do we need to explicitly link libc?
9552#
9553case "x$archive_cmds_need_lc" in
9554x|xyes)
9555 # Assume -lc should be added
9556 archive_cmds_need_lc=yes
9557
9558 if test "$enable_shared" = yes && test "$GCC" = yes; then
9559 case $archive_cmds in
9560 *'~'*)
9561 # FIXME: we may have to deal with multi-command sequences.
9562 ;;
9563 '$CC '*)
9564 # Test whether the compiler implicitly links with -lc since on some
9565 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9566 # to ld, don't add -lc before -lgcc.
81ecdfbb
RW
9567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9568$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
d0ac1c44 9569if ${lt_cv_archive_cmds_need_lc+:} false; then :
81ecdfbb 9570 $as_echo_n "(cached) " >&6
39144654
RW
9571else
9572 $RM conftest*
9573 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d7040cdb 9574
81ecdfbb 9575 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
d7040cdb 9576 (eval $ac_compile) 2>&5
20e95c23 9577 ac_status=$?
81ecdfbb
RW
9578 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9579 test $ac_status = 0; } 2>conftest.err; then
39144654
RW
9580 soname=conftest
9581 lib=conftest
9582 libobjs=conftest.$ac_objext
9583 deplibs=
9584 wl=$lt_prog_compiler_wl
9585 pic_flag=$lt_prog_compiler_pic
9586 compiler_flags=-v
9587 linker_flags=-v
9588 verstring=
9589 output_objdir=.
9590 libname=conftest
9591 lt_save_allow_undefined_flag=$allow_undefined_flag
9592 allow_undefined_flag=
81ecdfbb 9593 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
d7040cdb 9594 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20e95c23 9595 ac_status=$?
81ecdfbb
RW
9596 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9597 test $ac_status = 0; }
39144654
RW
9598 then
9599 lt_cv_archive_cmds_need_lc=no
9600 else
9601 lt_cv_archive_cmds_need_lc=yes
9602 fi
9603 allow_undefined_flag=$lt_save_allow_undefined_flag
9604 else
9605 cat conftest.err 1>&5
9606 fi
9607 $RM conftest*
9608
9609fi
81ecdfbb
RW
9610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9611$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
39144654 9612 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
d7040cdb
SE
9613 ;;
9614 esac
9615 fi
9616 ;;
9617esac
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
9678
9679
9680
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710
9711
9712
9713
9714
9715
9716
9717
9718
9719
9720
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769
9770
9771
9772
9773
9774
81ecdfbb
RW
9775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9776$as_echo_n "checking dynamic linker characteristics... " >&6; }
718a6fd8
SE
9777
9778if test "$GCC" = yes; then
d7040cdb
SE
9779 case $host_os in
9780 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9781 *) lt_awk_arg="/^libraries:/" ;;
9782 esac
3725885a
RW
9783 case $host_os in
9784 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9785 *) lt_sed_strip_eq="s,=/,/,g" ;;
9786 esac
9787 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9788 case $lt_search_path_spec in
9789 *\;*)
d7040cdb
SE
9790 # if the path contains ";" then we assume it to be the separator
9791 # otherwise default to the standard path separator (i.e. ":") - it is
9792 # assumed that no part of a normal pathname contains ";" but that should
9793 # okay in the real world where ";" in dirpaths is itself problematic.
3725885a
RW
9794 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9795 ;;
9796 *)
9797 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9798 ;;
9799 esac
d7040cdb
SE
9800 # Ok, now we have the path, separated by spaces, we can step through it
9801 # and add multilib dir if necessary.
9802 lt_tmp_lt_search_path_spec=
9803 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9804 for lt_sys_path in $lt_search_path_spec; do
9805 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9806 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9807 else
9808 test -d "$lt_sys_path" && \
9809 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9810 fi
9811 done
3725885a 9812 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
d7040cdb
SE
9813BEGIN {RS=" "; FS="/|\n";} {
9814 lt_foo="";
9815 lt_count=0;
9816 for (lt_i = NF; lt_i > 0; lt_i--) {
9817 if ($lt_i != "" && $lt_i != ".") {
9818 if ($lt_i == "..") {
9819 lt_count++;
9820 } else {
9821 if (lt_count == 0) {
9822 lt_foo="/" $lt_i lt_foo;
9823 } else {
9824 lt_count--;
9825 }
9826 }
9827 }
9828 }
9829 if (lt_foo != "") { lt_freq[lt_foo]++; }
9830 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9831}'`
3725885a
RW
9832 # AWK program above erroneously prepends '/' to C:/dos/paths
9833 # for these hosts.
9834 case $host_os in
9835 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9836 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9837 esac
9838 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
d7040cdb
SE
9839else
9840 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9841fi
9842library_names_spec=
9843libname_spec='lib$name'
9844soname_spec=
9845shrext_cmds=".so"
9846postinstall_cmds=
9847postuninstall_cmds=
9848finish_cmds=
9849finish_eval=
9850shlibpath_var=
9851shlibpath_overrides_runpath=unknown
9852version_type=none
9853dynamic_linker="$host_os ld.so"
9854sys_lib_dlsearch_path_spec="/lib /usr/lib"
9855need_lib_prefix=unknown
9856hardcode_into_libs=no
9857
9858# when you set need_version to no, make sure it does not cause -set_version
9859# flags to be left without arguments
9860need_version=unknown
9861
9862case $host_os in
9863aix3*)
9864 version_type=linux
9865 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9866 shlibpath_var=LIBPATH
9867
9868 # AIX 3 has no versioning support, so we append a major version to the name.
9869 soname_spec='${libname}${release}${shared_ext}$major'
9870 ;;
9871
50e7d84b 9872aix[4-9]*)
d7040cdb
SE
9873 version_type=linux
9874 need_lib_prefix=no
9875 need_version=no
9876 hardcode_into_libs=yes
9877 if test "$host_cpu" = ia64; then
9878 # AIX 5 supports IA64
9879 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9880 shlibpath_var=LD_LIBRARY_PATH
9881 else
9882 # With GCC up to 2.95.x, collect2 would create an import file
9883 # for dependence libraries. The import file would start with
9884 # the line `#! .'. This would cause the generated library to
9885 # depend on `.', always an invalid library. This was fixed in
9886 # development snapshots of GCC prior to 3.0.
9887 case $host_os in
9888 aix4 | aix4.[01] | aix4.[01].*)
9889 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9890 echo ' yes '
9891 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9892 :
9893 else
9894 can_build_shared=no
9895 fi
9896 ;;
9897 esac
9898 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9899 # soname into executable. Probably we can add versioning support to
9900 # collect2, so additional links can be useful in future.
9901 if test "$aix_use_runtimelinking" = yes; then
9902 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9903 # instead of lib<name>.a to let people know that these are not
9904 # typical AIX shared libraries.
9905 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9906 else
9907 # We preserve .a as extension for shared libraries through AIX4.2
9908 # and later when we are not doing run time linking.
9909 library_names_spec='${libname}${release}.a $libname.a'
9910 soname_spec='${libname}${release}${shared_ext}$major'
9911 fi
9912 shlibpath_var=LIBPATH
9913 fi
9914 ;;
9915
9916amigaos*)
718a6fd8
SE
9917 case $host_cpu in
9918 powerpc)
9919 # Since July 2007 AmigaOS4 officially supports .so libraries.
9920 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9922 ;;
9923 m68k)
d7040cdb
SE
9924 library_names_spec='$libname.ixlibrary $libname.a'
9925 # Create ${libname}_ixlibrary.a entries in /sys/libs.
3725885a 9926 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'
718a6fd8
SE
9927 ;;
9928 esac
d7040cdb
SE
9929 ;;
9930
9931beos*)
9932 library_names_spec='${libname}${shared_ext}'
9933 dynamic_linker="$host_os ld.so"
9934 shlibpath_var=LIBRARY_PATH
9935 ;;
9936
9937bsdi[45]*)
9938 version_type=linux
9939 need_version=no
9940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9941 soname_spec='${libname}${release}${shared_ext}$major'
9942 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9943 shlibpath_var=LD_LIBRARY_PATH
9944 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9945 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9946 # the default ld.so.conf also contains /usr/contrib/lib and
9947 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9948 # libtool to hard-code these into programs
9949 ;;
9950
718a6fd8 9951cygwin* | mingw* | pw32* | cegcc*)
d7040cdb
SE
9952 version_type=windows
9953 shrext_cmds=".dll"
9954 need_version=no
9955 need_lib_prefix=no
9956
f2c621e4
AS
9957 case $GCC,$host_os in
9958 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
d7040cdb
SE
9959 library_names_spec='$libname.dll.a'
9960 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9961 postinstall_cmds='base_file=`basename \${file}`~
9962 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9963 dldir=$destdir/`dirname \$dlpath`~
9964 test -d \$dldir || mkdir -p \$dldir~
9965 $install_prog $dir/$dlname \$dldir/$dlname~
9966 chmod a+x \$dldir/$dlname~
9967 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9968 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9969 fi'
9970 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9971 dlpath=$dir/\$dldll~
9972 $RM \$dlpath'
9973 shlibpath_overrides_runpath=yes
9974
9975 case $host_os in
9976 cygwin*)
9977 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9978 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
3725885a
RW
9979
9980 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
d7040cdb 9981 ;;
718a6fd8 9982 mingw* | cegcc*)
d7040cdb
SE
9983 # MinGW DLLs use traditional 'lib' prefix
9984 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
d7040cdb
SE
9985 ;;
9986 pw32*)
9987 # pw32 DLLs use 'pw' prefix rather than 'lib'
9988 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9989 ;;
9990 esac
9991 ;;
9992
9993 *)
9994 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9995 ;;
9996 esac
f2c621e4 9997 dynamic_linker='Win32 ld.exe'
d7040cdb
SE
9998 # FIXME: first we should search . and the directory the executable is in
9999 shlibpath_var=PATH
10000 ;;
10001
10002darwin* | rhapsody*)
10003 dynamic_linker="$host_os dyld"
10004 version_type=darwin
10005 need_lib_prefix=no
10006 need_version=no
10007 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10008 soname_spec='${libname}${release}${major}$shared_ext'
10009 shlibpath_overrides_runpath=yes
10010 shlibpath_var=DYLD_LIBRARY_PATH
10011 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10012
10013 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10014 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10015 ;;
10016
10017dgux*)
10018 version_type=linux
10019 need_lib_prefix=no
10020 need_version=no
10021 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10022 soname_spec='${libname}${release}${shared_ext}$major'
10023 shlibpath_var=LD_LIBRARY_PATH
10024 ;;
10025
d7040cdb
SE
10026freebsd* | dragonfly*)
10027 # DragonFly does not have aout. When/if they implement a new
10028 # versioning mechanism, adjust this.
10029 if test -x /usr/bin/objformat; then
10030 objformat=`/usr/bin/objformat`
10031 else
10032 case $host_os in
6d2920c8 10033 freebsd[23].*) objformat=aout ;;
d7040cdb
SE
10034 *) objformat=elf ;;
10035 esac
10036 fi
10037 version_type=freebsd-$objformat
10038 case $version_type in
10039 freebsd-elf*)
10040 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10041 need_version=no
10042 need_lib_prefix=no
10043 ;;
10044 freebsd-*)
10045 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10046 need_version=yes
10047 ;;
10048 esac
10049 shlibpath_var=LD_LIBRARY_PATH
10050 case $host_os in
6d2920c8 10051 freebsd2.*)
d7040cdb
SE
10052 shlibpath_overrides_runpath=yes
10053 ;;
10054 freebsd3.[01]* | freebsdelf3.[01]*)
10055 shlibpath_overrides_runpath=yes
10056 hardcode_into_libs=yes
10057 ;;
10058 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10059 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10060 shlibpath_overrides_runpath=no
10061 hardcode_into_libs=yes
10062 ;;
10063 *) # from 4.6 on, and DragonFly
10064 shlibpath_overrides_runpath=yes
10065 hardcode_into_libs=yes
10066 ;;
10067 esac
10068 ;;
10069
3725885a
RW
10070haiku*)
10071 version_type=linux
10072 need_lib_prefix=no
10073 need_version=no
10074 dynamic_linker="$host_os runtime_loader"
10075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10076 soname_spec='${libname}${release}${shared_ext}$major'
10077 shlibpath_var=LIBRARY_PATH
10078 shlibpath_overrides_runpath=yes
f2c621e4 10079 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
3725885a
RW
10080 hardcode_into_libs=yes
10081 ;;
10082
d7040cdb
SE
10083hpux9* | hpux10* | hpux11*)
10084 # Give a soname corresponding to the major version so that dld.sl refuses to
10085 # link against other versions.
10086 version_type=sunos
10087 need_lib_prefix=no
10088 need_version=no
10089 case $host_cpu in
10090 ia64*)
10091 shrext_cmds='.so'
10092 hardcode_into_libs=yes
10093 dynamic_linker="$host_os dld.so"
10094 shlibpath_var=LD_LIBRARY_PATH
10095 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10097 soname_spec='${libname}${release}${shared_ext}$major'
10098 if test "X$HPUX_IA64_MODE" = X32; then
10099 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10100 else
10101 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10102 fi
10103 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10104 ;;
10105 hppa*64*)
10106 shrext_cmds='.sl'
10107 hardcode_into_libs=yes
10108 dynamic_linker="$host_os dld.sl"
10109 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10110 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10112 soname_spec='${libname}${release}${shared_ext}$major'
10113 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10114 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10115 ;;
10116 *)
10117 shrext_cmds='.sl'
10118 dynamic_linker="$host_os dld.sl"
10119 shlibpath_var=SHLIB_PATH
10120 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10121 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10122 soname_spec='${libname}${release}${shared_ext}$major'
10123 ;;
10124 esac
3725885a 10125 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
d7040cdb 10126 postinstall_cmds='chmod 555 $lib'
3725885a
RW
10127 # or fails outright, so override atomically:
10128 install_override_mode=555
d7040cdb
SE
10129 ;;
10130
10131interix[3-9]*)
10132 version_type=linux
10133 need_lib_prefix=no
10134 need_version=no
10135 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10136 soname_spec='${libname}${release}${shared_ext}$major'
10137 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10138 shlibpath_var=LD_LIBRARY_PATH
10139 shlibpath_overrides_runpath=no
10140 hardcode_into_libs=yes
10141 ;;
10142
10143irix5* | irix6* | nonstopux*)
10144 case $host_os in
10145 nonstopux*) version_type=nonstopux ;;
10146 *)
10147 if test "$lt_cv_prog_gnu_ld" = yes; then
10148 version_type=linux
10149 else
10150 version_type=irix
10151 fi ;;
10152 esac
10153 need_lib_prefix=no
10154 need_version=no
10155 soname_spec='${libname}${release}${shared_ext}$major'
10156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10157 case $host_os in
10158 irix5* | nonstopux*)
10159 libsuff= shlibsuff=
10160 ;;
10161 *)
10162 case $LD in # libtool.m4 will add one of these switches to LD
10163 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10164 libsuff= shlibsuff= libmagic=32-bit;;
10165 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10166 libsuff=32 shlibsuff=N32 libmagic=N32;;
10167 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10168 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10169 *) libsuff= shlibsuff= libmagic=never-match;;
10170 esac
10171 ;;
10172 esac
10173 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10174 shlibpath_overrides_runpath=no
10175 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10176 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10177 hardcode_into_libs=yes
10178 ;;
10179
10180# No shared lib support for Linux oldld, aout, or coff.
10181linux*oldld* | linux*aout* | linux*coff*)
10182 dynamic_linker=no
10183 ;;
10184
10185# This must be Linux ELF.
f4782128 10186linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
d7040cdb
SE
10187 version_type=linux
10188 need_lib_prefix=no
10189 need_version=no
10190 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10191 soname_spec='${libname}${release}${shared_ext}$major'
10192 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10193 shlibpath_var=LD_LIBRARY_PATH
10194 shlibpath_overrides_runpath=no
39144654 10195
d7040cdb 10196 # Some binutils ld are patched to set DT_RUNPATH
d0ac1c44 10197 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
81ecdfbb 10198 $as_echo_n "(cached) " >&6
39144654
RW
10199else
10200 lt_cv_shlibpath_overrides_runpath=no
10201 save_LDFLAGS=$LDFLAGS
10202 save_libdir=$libdir
10203 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10204 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
81ecdfbb 10205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb
SE
10206/* end confdefs.h. */
10207
10208int
10209main ()
10210{
10211
10212 ;
10213 return 0;
10214}
10215_ACEOF
81ecdfbb
RW
10216if ac_fn_c_try_link "$LINENO"; then :
10217 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
39144654 10218 lt_cv_shlibpath_overrides_runpath=yes
d7040cdb 10219fi
d7040cdb 10220fi
81ecdfbb
RW
10221rm -f core conftest.err conftest.$ac_objext \
10222 conftest$ac_exeext conftest.$ac_ext
39144654
RW
10223 LDFLAGS=$save_LDFLAGS
10224 libdir=$save_libdir
10225
10226fi
10227
10228 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
d7040cdb
SE
10229
10230 # This implies no fast_install, which is unacceptable.
10231 # Some rework will be needed to allow for fast_install
10232 # before this can be enabled.
10233 hardcode_into_libs=yes
10234
10235 # Append ld.so.conf contents to the search path
10236 if test -f /etc/ld.so.conf; then
3725885a 10237 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' ' '`
f2c621e4 10238 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
d7040cdb
SE
10239 fi
10240
10241 # We used to test for /lib/ld.so.1 and disable shared libraries on
10242 # powerpc, because MkLinux only supported shared libraries with the
10243 # GNU dynamic linker. Since this was broken with cross compilers,
10244 # most powerpc-linux boxes support dynamic linking these days and
10245 # people can always --disable-shared, the test was removed, and we
10246 # assume the GNU/Linux dynamic linker is in use.
10247 dynamic_linker='GNU/Linux ld.so'
10248 ;;
10249
10250netbsd*)
10251 version_type=sunos
10252 need_lib_prefix=no
10253 need_version=no
10254 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10256 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10257 dynamic_linker='NetBSD (a.out) ld.so'
10258 else
10259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10260 soname_spec='${libname}${release}${shared_ext}$major'
10261 dynamic_linker='NetBSD ld.elf_so'
10262 fi
10263 shlibpath_var=LD_LIBRARY_PATH
10264 shlibpath_overrides_runpath=yes
10265 hardcode_into_libs=yes
10266 ;;
10267
10268newsos6)
10269 version_type=linux
10270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10271 shlibpath_var=LD_LIBRARY_PATH
10272 shlibpath_overrides_runpath=yes
10273 ;;
10274
10275*nto* | *qnx*)
10276 version_type=qnx
10277 need_lib_prefix=no
10278 need_version=no
10279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10280 soname_spec='${libname}${release}${shared_ext}$major'
10281 shlibpath_var=LD_LIBRARY_PATH
10282 shlibpath_overrides_runpath=no
10283 hardcode_into_libs=yes
10284 dynamic_linker='ldqnx.so'
10285 ;;
10286
10287openbsd*)
10288 version_type=sunos
10289 sys_lib_dlsearch_path_spec="/usr/lib"
10290 need_lib_prefix=no
10291 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10292 case $host_os in
10293 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10294 *) need_version=no ;;
10295 esac
10296 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10297 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10298 shlibpath_var=LD_LIBRARY_PATH
10299 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10300 case $host_os in
10301 openbsd2.[89] | openbsd2.[89].*)
10302 shlibpath_overrides_runpath=no
10303 ;;
10304 *)
10305 shlibpath_overrides_runpath=yes
10306 ;;
10307 esac
10308 else
10309 shlibpath_overrides_runpath=yes
10310 fi
10311 ;;
10312
10313os2*)
10314 libname_spec='$name'
10315 shrext_cmds=".dll"
10316 need_lib_prefix=no
10317 library_names_spec='$libname${shared_ext} $libname.a'
10318 dynamic_linker='OS/2 ld.exe'
10319 shlibpath_var=LIBPATH
10320 ;;
10321
10322osf3* | osf4* | osf5*)
10323 version_type=osf
10324 need_lib_prefix=no
10325 need_version=no
10326 soname_spec='${libname}${release}${shared_ext}$major'
10327 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10328 shlibpath_var=LD_LIBRARY_PATH
10329 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10330 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10331 ;;
10332
10333rdos*)
10334 dynamic_linker=no
10335 ;;
10336
10337solaris*)
10338 version_type=linux
10339 need_lib_prefix=no
10340 need_version=no
10341 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10342 soname_spec='${libname}${release}${shared_ext}$major'
10343 shlibpath_var=LD_LIBRARY_PATH
10344 shlibpath_overrides_runpath=yes
10345 hardcode_into_libs=yes
10346 # ldd complains unless libraries are executable
10347 postinstall_cmds='chmod +x $lib'
10348 ;;
10349
10350sunos4*)
10351 version_type=sunos
10352 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10353 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10354 shlibpath_var=LD_LIBRARY_PATH
10355 shlibpath_overrides_runpath=yes
10356 if test "$with_gnu_ld" = yes; then
10357 need_lib_prefix=no
10358 fi
10359 need_version=yes
10360 ;;
10361
10362sysv4 | sysv4.3*)
10363 version_type=linux
10364 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10365 soname_spec='${libname}${release}${shared_ext}$major'
10366 shlibpath_var=LD_LIBRARY_PATH
10367 case $host_vendor in
10368 sni)
10369 shlibpath_overrides_runpath=no
10370 need_lib_prefix=no
10371 runpath_var=LD_RUN_PATH
10372 ;;
10373 siemens)
10374 need_lib_prefix=no
10375 ;;
10376 motorola)
10377 need_lib_prefix=no
10378 need_version=no
10379 shlibpath_overrides_runpath=no
10380 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10381 ;;
10382 esac
10383 ;;
10384
10385sysv4*MP*)
10386 if test -d /usr/nec ;then
10387 version_type=linux
10388 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10389 soname_spec='$libname${shared_ext}.$major'
10390 shlibpath_var=LD_LIBRARY_PATH
10391 fi
10392 ;;
10393
10394sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10395 version_type=freebsd-elf
10396 need_lib_prefix=no
10397 need_version=no
10398 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10399 soname_spec='${libname}${release}${shared_ext}$major'
10400 shlibpath_var=LD_LIBRARY_PATH
10401 shlibpath_overrides_runpath=yes
10402 hardcode_into_libs=yes
10403 if test "$with_gnu_ld" = yes; then
10404 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10405 else
10406 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10407 case $host_os in
10408 sco3.2v5*)
10409 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10410 ;;
10411 esac
10412 fi
10413 sys_lib_dlsearch_path_spec='/usr/lib'
10414 ;;
10415
10416tpf*)
10417 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10418 version_type=linux
10419 need_lib_prefix=no
10420 need_version=no
718a6fd8 10421 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
d7040cdb
SE
10422 shlibpath_var=LD_LIBRARY_PATH
10423 shlibpath_overrides_runpath=no
10424 hardcode_into_libs=yes
10425 ;;
10426
10427uts4*)
10428 version_type=linux
10429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10430 soname_spec='${libname}${release}${shared_ext}$major'
10431 shlibpath_var=LD_LIBRARY_PATH
10432 ;;
10433
10434*)
10435 dynamic_linker=no
10436 ;;
10437esac
81ecdfbb
RW
10438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10439$as_echo "$dynamic_linker" >&6; }
d7040cdb
SE
10440test "$dynamic_linker" = no && can_build_shared=no
10441
10442variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10443if test "$GCC" = yes; then
10444 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10445fi
10446
718a6fd8
SE
10447if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10448 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10449fi
10450if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10451 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10452fi
10453
d7040cdb
SE
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
3725885a
RW
10534
10535
10536
10537
10538
d7040cdb
SE
10539
10540
10541
10542
10543
10544
81ecdfbb
RW
10545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10546$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
d7040cdb
SE
10547hardcode_action=
10548if test -n "$hardcode_libdir_flag_spec" ||
10549 test -n "$runpath_var" ||
10550 test "X$hardcode_automatic" = "Xyes" ; then
10551
10552 # We can hardcode non-existent directories.
10553 if test "$hardcode_direct" != no &&
10554 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10555 # have to relink, otherwise we might link with an installed library
10556 # when we should be linking with a yet-to-be-installed one
10557 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10558 test "$hardcode_minus_L" != no; then
10559 # Linking always hardcodes the temporary library directory.
10560 hardcode_action=relink
10561 else
10562 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10563 hardcode_action=immediate
10564 fi
10565else
10566 # We cannot hardcode anything, or else we can only hardcode existing
10567 # directories.
10568 hardcode_action=unsupported
10569fi
81ecdfbb
RW
10570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10571$as_echo "$hardcode_action" >&6; }
d7040cdb
SE
10572
10573if test "$hardcode_action" = relink ||
10574 test "$inherit_rpath" = yes; then
10575 # Fast installation is not supported
10576 enable_fast_install=no
10577elif test "$shlibpath_overrides_runpath" = yes ||
10578 test "$enable_shared" = no; then
10579 # Fast installation is not necessary
10580 enable_fast_install=needless
10581fi
10582
10583
10584
10585
10586
10587
10588 if test "x$enable_dlopen" != xyes; then
10589 enable_dlopen=unknown
10590 enable_dlopen_self=unknown
10591 enable_dlopen_self_static=unknown
10592else
10593 lt_cv_dlopen=no
10594 lt_cv_dlopen_libs=
10595
10596 case $host_os in
10597 beos*)
10598 lt_cv_dlopen="load_add_on"
10599 lt_cv_dlopen_libs=
10600 lt_cv_dlopen_self=yes
10601 ;;
10602
718a6fd8 10603 mingw* | pw32* | cegcc*)
d7040cdb
SE
10604 lt_cv_dlopen="LoadLibrary"
10605 lt_cv_dlopen_libs=
10606 ;;
10607
10608 cygwin*)
10609 lt_cv_dlopen="dlopen"
10610 lt_cv_dlopen_libs=
10611 ;;
10612
10613 darwin*)
10614 # if libdl is installed we need to link against it
81ecdfbb
RW
10615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10616$as_echo_n "checking for dlopen in -ldl... " >&6; }
d0ac1c44 10617if ${ac_cv_lib_dl_dlopen+:} false; then :
81ecdfbb 10618 $as_echo_n "(cached) " >&6
d7040cdb
SE
10619else
10620 ac_check_lib_save_LIBS=$LIBS
10621LIBS="-ldl $LIBS"
81ecdfbb 10622cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb
SE
10623/* end confdefs.h. */
10624
81ecdfbb
RW
10625/* Override any GCC internal prototype to avoid an error.
10626 Use char because int might match the return type of a GCC
10627 builtin and then its argument prototype would still apply. */
d7040cdb
SE
10628#ifdef __cplusplus
10629extern "C"
10630#endif
d7040cdb
SE
10631char dlopen ();
10632int
10633main ()
10634{
81ecdfbb 10635return dlopen ();
d7040cdb
SE
10636 ;
10637 return 0;
10638}
10639_ACEOF
81ecdfbb 10640if ac_fn_c_try_link "$LINENO"; then :
d7040cdb
SE
10641 ac_cv_lib_dl_dlopen=yes
10642else
81ecdfbb 10643 ac_cv_lib_dl_dlopen=no
d7040cdb 10644fi
81ecdfbb
RW
10645rm -f core conftest.err conftest.$ac_objext \
10646 conftest$ac_exeext conftest.$ac_ext
d7040cdb
SE
10647LIBS=$ac_check_lib_save_LIBS
10648fi
81ecdfbb
RW
10649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10650$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
d0ac1c44 10651if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
d7040cdb
SE
10652 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10653else
10654
10655 lt_cv_dlopen="dyld"
10656 lt_cv_dlopen_libs=
10657 lt_cv_dlopen_self=yes
10658
10659fi
10660
10661 ;;
10662
10663 *)
81ecdfbb 10664 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
d0ac1c44 10665if test "x$ac_cv_func_shl_load" = xyes; then :
d7040cdb
SE
10666 lt_cv_dlopen="shl_load"
10667else
81ecdfbb
RW
10668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10669$as_echo_n "checking for shl_load in -ldld... " >&6; }
d0ac1c44 10670if ${ac_cv_lib_dld_shl_load+:} false; then :
81ecdfbb 10671 $as_echo_n "(cached) " >&6
d7040cdb
SE
10672else
10673 ac_check_lib_save_LIBS=$LIBS
10674LIBS="-ldld $LIBS"
81ecdfbb 10675cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb
SE
10676/* end confdefs.h. */
10677
81ecdfbb
RW
10678/* Override any GCC internal prototype to avoid an error.
10679 Use char because int might match the return type of a GCC
10680 builtin and then its argument prototype would still apply. */
d7040cdb
SE
10681#ifdef __cplusplus
10682extern "C"
10683#endif
d7040cdb
SE
10684char shl_load ();
10685int
10686main ()
10687{
81ecdfbb 10688return shl_load ();
d7040cdb
SE
10689 ;
10690 return 0;
10691}
10692_ACEOF
81ecdfbb 10693if ac_fn_c_try_link "$LINENO"; then :
d7040cdb
SE
10694 ac_cv_lib_dld_shl_load=yes
10695else
81ecdfbb 10696 ac_cv_lib_dld_shl_load=no
d7040cdb 10697fi
81ecdfbb
RW
10698rm -f core conftest.err conftest.$ac_objext \
10699 conftest$ac_exeext conftest.$ac_ext
d7040cdb
SE
10700LIBS=$ac_check_lib_save_LIBS
10701fi
81ecdfbb
RW
10702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10703$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
d0ac1c44 10704if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
718a6fd8 10705 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
d7040cdb 10706else
81ecdfbb 10707 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
d0ac1c44 10708if test "x$ac_cv_func_dlopen" = xyes; then :
81ecdfbb 10709 lt_cv_dlopen="dlopen"
d7040cdb 10710else
81ecdfbb
RW
10711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10712$as_echo_n "checking for dlopen in -ldl... " >&6; }
d0ac1c44 10713if ${ac_cv_lib_dl_dlopen+:} false; then :
81ecdfbb
RW
10714 $as_echo_n "(cached) " >&6
10715else
10716 ac_check_lib_save_LIBS=$LIBS
10717LIBS="-ldl $LIBS"
10718cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb 10719/* end confdefs.h. */
d7040cdb 10720
81ecdfbb
RW
10721/* Override any GCC internal prototype to avoid an error.
10722 Use char because int might match the return type of a GCC
10723 builtin and then its argument prototype would still apply. */
d7040cdb
SE
10724#ifdef __cplusplus
10725extern "C"
d7040cdb 10726#endif
d7040cdb 10727char dlopen ();
d7040cdb
SE
10728int
10729main ()
10730{
81ecdfbb 10731return dlopen ();
d7040cdb
SE
10732 ;
10733 return 0;
10734}
10735_ACEOF
81ecdfbb
RW
10736if ac_fn_c_try_link "$LINENO"; then :
10737 ac_cv_lib_dl_dlopen=yes
d7040cdb 10738else
81ecdfbb 10739 ac_cv_lib_dl_dlopen=no
d7040cdb 10740fi
81ecdfbb
RW
10741rm -f core conftest.err conftest.$ac_objext \
10742 conftest$ac_exeext conftest.$ac_ext
10743LIBS=$ac_check_lib_save_LIBS
d7040cdb 10744fi
81ecdfbb
RW
10745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10746$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
d0ac1c44 10747if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
81ecdfbb 10748 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
d7040cdb 10749else
81ecdfbb
RW
10750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10751$as_echo_n "checking for dlopen in -lsvld... " >&6; }
d0ac1c44 10752if ${ac_cv_lib_svld_dlopen+:} false; then :
81ecdfbb 10753 $as_echo_n "(cached) " >&6
d7040cdb
SE
10754else
10755 ac_check_lib_save_LIBS=$LIBS
81ecdfbb
RW
10756LIBS="-lsvld $LIBS"
10757cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb
SE
10758/* end confdefs.h. */
10759
81ecdfbb
RW
10760/* Override any GCC internal prototype to avoid an error.
10761 Use char because int might match the return type of a GCC
10762 builtin and then its argument prototype would still apply. */
d7040cdb
SE
10763#ifdef __cplusplus
10764extern "C"
10765#endif
d7040cdb
SE
10766char dlopen ();
10767int
10768main ()
10769{
81ecdfbb 10770return dlopen ();
d7040cdb
SE
10771 ;
10772 return 0;
10773}
10774_ACEOF
81ecdfbb
RW
10775if ac_fn_c_try_link "$LINENO"; then :
10776 ac_cv_lib_svld_dlopen=yes
d7040cdb 10777else
81ecdfbb 10778 ac_cv_lib_svld_dlopen=no
d7040cdb 10779fi
81ecdfbb
RW
10780rm -f core conftest.err conftest.$ac_objext \
10781 conftest$ac_exeext conftest.$ac_ext
d7040cdb
SE
10782LIBS=$ac_check_lib_save_LIBS
10783fi
81ecdfbb
RW
10784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10785$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
d0ac1c44 10786if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
81ecdfbb 10787 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
d7040cdb 10788else
81ecdfbb
RW
10789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10790$as_echo_n "checking for dld_link in -ldld... " >&6; }
d0ac1c44 10791if ${ac_cv_lib_dld_dld_link+:} false; then :
81ecdfbb 10792 $as_echo_n "(cached) " >&6
d7040cdb
SE
10793else
10794 ac_check_lib_save_LIBS=$LIBS
81ecdfbb
RW
10795LIBS="-ldld $LIBS"
10796cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb
SE
10797/* end confdefs.h. */
10798
81ecdfbb
RW
10799/* Override any GCC internal prototype to avoid an error.
10800 Use char because int might match the return type of a GCC
10801 builtin and then its argument prototype would still apply. */
d7040cdb
SE
10802#ifdef __cplusplus
10803extern "C"
10804#endif
81ecdfbb 10805char dld_link ();
d7040cdb
SE
10806int
10807main ()
10808{
81ecdfbb 10809return dld_link ();
d7040cdb
SE
10810 ;
10811 return 0;
10812}
10813_ACEOF
81ecdfbb 10814if ac_fn_c_try_link "$LINENO"; then :
d7040cdb
SE
10815 ac_cv_lib_dld_dld_link=yes
10816else
81ecdfbb 10817 ac_cv_lib_dld_dld_link=no
d7040cdb 10818fi
81ecdfbb
RW
10819rm -f core conftest.err conftest.$ac_objext \
10820 conftest$ac_exeext conftest.$ac_ext
d7040cdb
SE
10821LIBS=$ac_check_lib_save_LIBS
10822fi
81ecdfbb
RW
10823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10824$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
d0ac1c44 10825if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
718a6fd8 10826 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
d7040cdb
SE
10827fi
10828
10829
10830fi
10831
10832
10833fi
10834
10835
10836fi
10837
10838
10839fi
10840
10841
10842fi
10843
10844 ;;
10845 esac
10846
10847 if test "x$lt_cv_dlopen" != xno; then
10848 enable_dlopen=yes
10849 else
10850 enable_dlopen=no
10851 fi
10852
10853 case $lt_cv_dlopen in
10854 dlopen)
10855 save_CPPFLAGS="$CPPFLAGS"
10856 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10857
10858 save_LDFLAGS="$LDFLAGS"
10859 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10860
10861 save_LIBS="$LIBS"
10862 LIBS="$lt_cv_dlopen_libs $LIBS"
10863
81ecdfbb
RW
10864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10865$as_echo_n "checking whether a program can dlopen itself... " >&6; }
d0ac1c44 10866if ${lt_cv_dlopen_self+:} false; then :
81ecdfbb 10867 $as_echo_n "(cached) " >&6
d7040cdb
SE
10868else
10869 if test "$cross_compiling" = yes; then :
10870 lt_cv_dlopen_self=cross
10871else
10872 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10873 lt_status=$lt_dlunknown
10874 cat > conftest.$ac_ext <<_LT_EOF
87b9f255 10875#line 10875 "configure"
d7040cdb
SE
10876#include "confdefs.h"
10877
10878#if HAVE_DLFCN_H
10879#include <dlfcn.h>
10880#endif
10881
10882#include <stdio.h>
10883
10884#ifdef RTLD_GLOBAL
10885# define LT_DLGLOBAL RTLD_GLOBAL
10886#else
10887# ifdef DL_GLOBAL
10888# define LT_DLGLOBAL DL_GLOBAL
10889# else
10890# define LT_DLGLOBAL 0
10891# endif
10892#endif
10893
10894/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10895 find out it does not work in some platform. */
10896#ifndef LT_DLLAZY_OR_NOW
10897# ifdef RTLD_LAZY
10898# define LT_DLLAZY_OR_NOW RTLD_LAZY
10899# else
10900# ifdef DL_LAZY
10901# define LT_DLLAZY_OR_NOW DL_LAZY
10902# else
10903# ifdef RTLD_NOW
10904# define LT_DLLAZY_OR_NOW RTLD_NOW
10905# else
10906# ifdef DL_NOW
10907# define LT_DLLAZY_OR_NOW DL_NOW
10908# else
10909# define LT_DLLAZY_OR_NOW 0
10910# endif
10911# endif
10912# endif
10913# endif
10914#endif
10915
3725885a
RW
10916/* When -fvisbility=hidden is used, assume the code has been annotated
10917 correspondingly for the symbols needed. */
10918#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
f2c621e4 10919void fnord () __attribute__((visibility("default")));
3725885a
RW
10920#endif
10921
f2c621e4 10922void fnord () { int i=42; }
d7040cdb
SE
10923int main ()
10924{
10925 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10926 int status = $lt_dlunknown;
10927
10928 if (self)
10929 {
10930 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
3725885a
RW
10931 else
10932 {
10933 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10934 else puts (dlerror ());
10935 }
d7040cdb
SE
10936 /* dlclose (self); */
10937 }
10938 else
10939 puts (dlerror ());
10940
718a6fd8 10941 return status;
d7040cdb
SE
10942}
10943_LT_EOF
81ecdfbb 10944 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
d7040cdb
SE
10945 (eval $ac_link) 2>&5
10946 ac_status=$?
81ecdfbb
RW
10947 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10948 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
d7040cdb
SE
10949 (./conftest; exit; ) >&5 2>/dev/null
10950 lt_status=$?
10951 case x$lt_status in
10952 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10953 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10954 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10955 esac
10956 else :
10957 # compilation failed
10958 lt_cv_dlopen_self=no
10959 fi
10960fi
10961rm -fr conftest*
10962
10963
10964fi
81ecdfbb
RW
10965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10966$as_echo "$lt_cv_dlopen_self" >&6; }
d7040cdb
SE
10967
10968 if test "x$lt_cv_dlopen_self" = xyes; then
10969 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
81ecdfbb
RW
10970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10971$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
d0ac1c44 10972if ${lt_cv_dlopen_self_static+:} false; then :
81ecdfbb 10973 $as_echo_n "(cached) " >&6
d7040cdb
SE
10974else
10975 if test "$cross_compiling" = yes; then :
10976 lt_cv_dlopen_self_static=cross
10977else
10978 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10979 lt_status=$lt_dlunknown
10980 cat > conftest.$ac_ext <<_LT_EOF
87b9f255 10981#line 10981 "configure"
d7040cdb
SE
10982#include "confdefs.h"
10983
10984#if HAVE_DLFCN_H
10985#include <dlfcn.h>
10986#endif
10987
10988#include <stdio.h>
10989
10990#ifdef RTLD_GLOBAL
10991# define LT_DLGLOBAL RTLD_GLOBAL
10992#else
10993# ifdef DL_GLOBAL
10994# define LT_DLGLOBAL DL_GLOBAL
10995# else
10996# define LT_DLGLOBAL 0
10997# endif
10998#endif
10999
11000/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11001 find out it does not work in some platform. */
11002#ifndef LT_DLLAZY_OR_NOW
11003# ifdef RTLD_LAZY
11004# define LT_DLLAZY_OR_NOW RTLD_LAZY
11005# else
11006# ifdef DL_LAZY
11007# define LT_DLLAZY_OR_NOW DL_LAZY
11008# else
11009# ifdef RTLD_NOW
11010# define LT_DLLAZY_OR_NOW RTLD_NOW
11011# else
11012# ifdef DL_NOW
11013# define LT_DLLAZY_OR_NOW DL_NOW
11014# else
11015# define LT_DLLAZY_OR_NOW 0
11016# endif
11017# endif
11018# endif
11019# endif
11020#endif
11021
3725885a
RW
11022/* When -fvisbility=hidden is used, assume the code has been annotated
11023 correspondingly for the symbols needed. */
11024#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
f2c621e4 11025void fnord () __attribute__((visibility("default")));
3725885a
RW
11026#endif
11027
f2c621e4 11028void fnord () { int i=42; }
d7040cdb
SE
11029int main ()
11030{
11031 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11032 int status = $lt_dlunknown;
11033
11034 if (self)
11035 {
11036 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
3725885a
RW
11037 else
11038 {
11039 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11040 else puts (dlerror ());
11041 }
d7040cdb
SE
11042 /* dlclose (self); */
11043 }
11044 else
11045 puts (dlerror ());
11046
718a6fd8 11047 return status;
d7040cdb
SE
11048}
11049_LT_EOF
81ecdfbb 11050 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
d7040cdb
SE
11051 (eval $ac_link) 2>&5
11052 ac_status=$?
81ecdfbb
RW
11053 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11054 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
d7040cdb
SE
11055 (./conftest; exit; ) >&5 2>/dev/null
11056 lt_status=$?
11057 case x$lt_status in
11058 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11059 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11060 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11061 esac
11062 else :
11063 # compilation failed
11064 lt_cv_dlopen_self_static=no
11065 fi
11066fi
11067rm -fr conftest*
11068
11069
11070fi
81ecdfbb
RW
11071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11072$as_echo "$lt_cv_dlopen_self_static" >&6; }
d7040cdb
SE
11073 fi
11074
11075 CPPFLAGS="$save_CPPFLAGS"
11076 LDFLAGS="$save_LDFLAGS"
11077 LIBS="$save_LIBS"
11078 ;;
11079 esac
11080
11081 case $lt_cv_dlopen_self in
11082 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11083 *) enable_dlopen_self=unknown ;;
11084 esac
11085
11086 case $lt_cv_dlopen_self_static in
11087 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11088 *) enable_dlopen_self_static=unknown ;;
11089 esac
11090fi
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108striplib=
11109old_striplib=
81ecdfbb
RW
11110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11111$as_echo_n "checking whether stripping libraries is possible... " >&6; }
d7040cdb
SE
11112if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11113 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11114 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
81ecdfbb
RW
11115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11116$as_echo "yes" >&6; }
d7040cdb
SE
11117else
11118# FIXME - insert some real tests, host_os isn't really good enough
11119 case $host_os in
11120 darwin*)
11121 if test -n "$STRIP" ; then
11122 striplib="$STRIP -x"
11123 old_striplib="$STRIP -S"
81ecdfbb
RW
11124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11125$as_echo "yes" >&6; }
d7040cdb 11126 else
81ecdfbb
RW
11127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11128$as_echo "no" >&6; }
d7040cdb
SE
11129 fi
11130 ;;
11131 *)
81ecdfbb
RW
11132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11133$as_echo "no" >&6; }
d7040cdb
SE
11134 ;;
11135 esac
11136fi
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149 # Report which library types will actually be built
81ecdfbb
RW
11150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11151$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11153$as_echo "$can_build_shared" >&6; }
d7040cdb 11154
81ecdfbb
RW
11155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11156$as_echo_n "checking whether to build shared libraries... " >&6; }
d7040cdb
SE
11157 test "$can_build_shared" = "no" && enable_shared=no
11158
11159 # On AIX, shared libraries and static libraries use the same namespace, and
11160 # are all built from PIC.
11161 case $host_os in
11162 aix3*)
11163 test "$enable_shared" = yes && enable_static=no
11164 if test -n "$RANLIB"; then
11165 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11166 postinstall_cmds='$RANLIB $lib'
11167 fi
11168 ;;
11169
50e7d84b 11170 aix[4-9]*)
d7040cdb
SE
11171 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11172 test "$enable_shared" = yes && enable_static=no
11173 fi
11174 ;;
11175 esac
81ecdfbb
RW
11176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11177$as_echo "$enable_shared" >&6; }
d7040cdb 11178
81ecdfbb
RW
11179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11180$as_echo_n "checking whether to build static libraries... " >&6; }
d7040cdb
SE
11181 # Make sure either enable_shared or enable_static is yes.
11182 test "$enable_shared" = yes || enable_static=yes
81ecdfbb
RW
11183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11184$as_echo "$enable_static" >&6; }
d7040cdb
SE
11185
11186
11187
11188
11189fi
11190ac_ext=c
11191ac_cpp='$CPP $CPPFLAGS'
11192ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11193ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11194ac_compiler_gnu=$ac_cv_c_compiler_gnu
11195
11196CC="$lt_save_CC"
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
81ecdfbb 11210 ac_config_commands="$ac_config_commands libtool"
d7040cdb
SE
11211
11212
11213
11214
11215# Only expand once:
11216
11217
11218
b879806f
AM
11219# The tests for host and target for $enable_largefile require
11220# canonical names.
11221
11222
11223
11224# As the $enable_largefile decision depends on --enable-plugins we must set it
11225# even in directories otherwise not depending on the $plugins option.
11226
11227
11228 maybe_plugins=no
11229 for ac_header in dlfcn.h
11230do :
11231 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
11232"
d0ac1c44 11233if test "x$ac_cv_header_dlfcn_h" = xyes; then :
b879806f
AM
11234 cat >>confdefs.h <<_ACEOF
11235#define HAVE_DLFCN_H 1
11236_ACEOF
11237 maybe_plugins=yes
11238fi
11239
11240done
11241
11242 for ac_header in windows.h
11243do :
11244 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
11245"
d0ac1c44 11246if test "x$ac_cv_header_windows_h" = xyes; then :
b879806f
AM
11247 cat >>confdefs.h <<_ACEOF
11248#define HAVE_WINDOWS_H 1
11249_ACEOF
11250 maybe_plugins=yes
11251fi
11252
11253done
11254
11255
11256 # Check whether --enable-plugins was given.
11257if test "${enable_plugins+set}" = set; then :
11258 enableval=$enable_plugins; case "${enableval}" in
11259 no) plugins=no ;;
11260 *) plugins=yes
11261 if test "$maybe_plugins" != "yes" ; then
d0ac1c44 11262 as_fn_error $? "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
b879806f
AM
11263 fi ;;
11264 esac
11265else
11266 plugins=$maybe_plugins
11267
11268fi
11269
2974be62 11270 if test "$plugins" = "yes"; then
3cba8b6c
L
11271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
11272$as_echo_n "checking for library containing dlsym... " >&6; }
d0ac1c44 11273if ${ac_cv_search_dlsym+:} false; then :
2974be62
AM
11274 $as_echo_n "(cached) " >&6
11275else
11276 ac_func_search_save_LIBS=$LIBS
11277cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11278/* end confdefs.h. */
11279
11280/* Override any GCC internal prototype to avoid an error.
11281 Use char because int might match the return type of a GCC
11282 builtin and then its argument prototype would still apply. */
11283#ifdef __cplusplus
11284extern "C"
11285#endif
3cba8b6c 11286char dlsym ();
2974be62
AM
11287int
11288main ()
11289{
3cba8b6c 11290return dlsym ();
2974be62
AM
11291 ;
11292 return 0;
11293}
11294_ACEOF
11295for ac_lib in '' dl; do
11296 if test -z "$ac_lib"; then
11297 ac_res="none required"
11298 else
11299 ac_res=-l$ac_lib
11300 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11301 fi
11302 if ac_fn_c_try_link "$LINENO"; then :
3cba8b6c 11303 ac_cv_search_dlsym=$ac_res
2974be62
AM
11304fi
11305rm -f core conftest.err conftest.$ac_objext \
11306 conftest$ac_exeext
d0ac1c44 11307 if ${ac_cv_search_dlsym+:} false; then :
2974be62
AM
11308 break
11309fi
11310done
d0ac1c44 11311if ${ac_cv_search_dlsym+:} false; then :
2974be62
AM
11312
11313else
3cba8b6c 11314 ac_cv_search_dlsym=no
2974be62
AM
11315fi
11316rm conftest.$ac_ext
11317LIBS=$ac_func_search_save_LIBS
11318fi
3cba8b6c
L
11319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
11320$as_echo "$ac_cv_search_dlsym" >&6; }
11321ac_res=$ac_cv_search_dlsym
2974be62
AM
11322if test "$ac_res" != no; then :
11323 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11324
11325fi
11326
11327 fi
b879806f
AM
11328
11329
11330case "${host}" in
c8693053
RO
11331 sparc-*-solaris*|i?86-*-solaris*)
11332 # On native 32-bit Solaris/SPARC and x86, large-file and procfs support
11333 # were mutually exclusive until Solaris 11.3. Without procfs support,
11334 # the bfd/ elf module cannot provide certain routines such as
11335 # elfcore_write_prpsinfo or elfcore_write_prstatus. So unless the user
11336 # explicitly requested large-file support through the
11337 # --enable-largefile switch, disable large-file support in favor of
11338 # procfs support.
11339 #
11340 # Check if <sys/procfs.h> is incompatible with large-file support.
11341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11342/* end confdefs.h. */
11343#define _FILE_OFFSET_BITS 64
11344#define _STRUCTURED_PROC 1
11345#include <sys/procfs.h>
11346int
11347main ()
11348{
11349
11350 ;
11351 return 0;
11352}
11353_ACEOF
11354if ac_fn_c_try_compile "$LINENO"; then :
11355 acx_cv_procfs_lfs=yes
11356else
11357 acx_cv_procfs_lfs=no
11358fi
11359rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11360 #
11361 # Forcefully disable large-file support only if necessary, gdb is in
11362 # tree and enabled.
11363 if test "${target}" = "${host}" -a "$acx_cv_procfs_lfs" = no \
11364 -a -d $srcdir/../gdb -a "$enable_gdb" != no; then
11365 : ${enable_largefile="no"}
11366 if test "$plugins" = yes; then
11367 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
11368plugin support disabled; require large-file support which is incompatible with GDB." >&5
11369$as_echo "$as_me: WARNING:
11370plugin support disabled; require large-file support which is incompatible with GDB." >&2;}
11371 plugins=no
11372 fi
11373 fi
11374 #
11375 # Explicitly undef _FILE_OFFSET_BITS if enable_largefile=no for the
11376 # benefit of g++ 9+ which predefines it on Solaris.
11377 if test "$enable_largefile" = no; then
11378 LARGEFILE_CPPFLAGS="-U_FILE_OFFSET_BITS"
11379
11380 fi
b879806f
AM
11381 ;;
11382esac
11383
11384# Check whether --enable-largefile was given.
11385if test "${enable_largefile+set}" = set; then :
11386 enableval=$enable_largefile;
11387fi
11388
11389if test "$enable_largefile" != no; then
11390
11391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
11392$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
d0ac1c44 11393if ${ac_cv_sys_largefile_CC+:} false; then :
b879806f
AM
11394 $as_echo_n "(cached) " >&6
11395else
11396 ac_cv_sys_largefile_CC=no
11397 if test "$GCC" != yes; then
11398 ac_save_CC=$CC
11399 while :; do
11400 # IRIX 6.2 and later do not support large files by default,
11401 # so use the C compiler's -n32 option if that helps.
11402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11403/* end confdefs.h. */
11404#include <sys/types.h>
11405 /* Check that off_t can represent 2**63 - 1 correctly.
11406 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11407 since some C++ compilers masquerading as C compilers
11408 incorrectly reject 9223372036854775807. */
e0b2a78c 11409#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
b879806f
AM
11410 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11411 && LARGE_OFF_T % 2147483647 == 1)
11412 ? 1 : -1];
11413int
11414main ()
11415{
11416
11417 ;
11418 return 0;
11419}
11420_ACEOF
11421 if ac_fn_c_try_compile "$LINENO"; then :
11422 break
11423fi
11424rm -f core conftest.err conftest.$ac_objext
11425 CC="$CC -n32"
11426 if ac_fn_c_try_compile "$LINENO"; then :
11427 ac_cv_sys_largefile_CC=' -n32'; break
11428fi
11429rm -f core conftest.err conftest.$ac_objext
11430 break
11431 done
11432 CC=$ac_save_CC
11433 rm -f conftest.$ac_ext
11434 fi
11435fi
11436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
11437$as_echo "$ac_cv_sys_largefile_CC" >&6; }
11438 if test "$ac_cv_sys_largefile_CC" != no; then
11439 CC=$CC$ac_cv_sys_largefile_CC
11440 fi
11441
11442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
11443$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
d0ac1c44 11444if ${ac_cv_sys_file_offset_bits+:} false; then :
b879806f
AM
11445 $as_echo_n "(cached) " >&6
11446else
11447 while :; do
11448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11449/* end confdefs.h. */
11450#include <sys/types.h>
11451 /* Check that off_t can represent 2**63 - 1 correctly.
11452 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11453 since some C++ compilers masquerading as C compilers
11454 incorrectly reject 9223372036854775807. */
e0b2a78c 11455#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
b879806f
AM
11456 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11457 && LARGE_OFF_T % 2147483647 == 1)
11458 ? 1 : -1];
11459int
11460main ()
11461{
11462
11463 ;
11464 return 0;
11465}
11466_ACEOF
11467if ac_fn_c_try_compile "$LINENO"; then :
11468 ac_cv_sys_file_offset_bits=no; break
11469fi
11470rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11472/* end confdefs.h. */
11473#define _FILE_OFFSET_BITS 64
11474#include <sys/types.h>
11475 /* Check that off_t can represent 2**63 - 1 correctly.
11476 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11477 since some C++ compilers masquerading as C compilers
11478 incorrectly reject 9223372036854775807. */
e0b2a78c 11479#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
b879806f
AM
11480 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11481 && LARGE_OFF_T % 2147483647 == 1)
11482 ? 1 : -1];
11483int
11484main ()
11485{
11486
11487 ;
11488 return 0;
11489}
11490_ACEOF
11491if ac_fn_c_try_compile "$LINENO"; then :
11492 ac_cv_sys_file_offset_bits=64; break
11493fi
11494rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11495 ac_cv_sys_file_offset_bits=unknown
11496 break
11497done
11498fi
11499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
11500$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
11501case $ac_cv_sys_file_offset_bits in #(
11502 no | unknown) ;;
11503 *)
11504cat >>confdefs.h <<_ACEOF
11505#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
11506_ACEOF
11507;;
11508esac
11509rm -rf conftest*
11510 if test $ac_cv_sys_file_offset_bits = unknown; then
11511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
11512$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
d0ac1c44 11513if ${ac_cv_sys_large_files+:} false; then :
b879806f
AM
11514 $as_echo_n "(cached) " >&6
11515else
11516 while :; do
11517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11518/* end confdefs.h. */
11519#include <sys/types.h>
11520 /* Check that off_t can represent 2**63 - 1 correctly.
11521 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11522 since some C++ compilers masquerading as C compilers
11523 incorrectly reject 9223372036854775807. */
e0b2a78c 11524#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
b879806f
AM
11525 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11526 && LARGE_OFF_T % 2147483647 == 1)
11527 ? 1 : -1];
11528int
11529main ()
11530{
11531
11532 ;
11533 return 0;
11534}
11535_ACEOF
11536if ac_fn_c_try_compile "$LINENO"; then :
11537 ac_cv_sys_large_files=no; break
11538fi
11539rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11541/* end confdefs.h. */
11542#define _LARGE_FILES 1
11543#include <sys/types.h>
11544 /* Check that off_t can represent 2**63 - 1 correctly.
11545 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11546 since some C++ compilers masquerading as C compilers
11547 incorrectly reject 9223372036854775807. */
e0b2a78c 11548#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
b879806f
AM
11549 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11550 && LARGE_OFF_T % 2147483647 == 1)
11551 ? 1 : -1];
11552int
11553main ()
11554{
11555
11556 ;
11557 return 0;
11558}
11559_ACEOF
11560if ac_fn_c_try_compile "$LINENO"; then :
11561 ac_cv_sys_large_files=1; break
11562fi
11563rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11564 ac_cv_sys_large_files=unknown
11565 break
11566done
11567fi
11568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
11569$as_echo "$ac_cv_sys_large_files" >&6; }
11570case $ac_cv_sys_large_files in #(
11571 no | unknown) ;;
11572 *)
11573cat >>confdefs.h <<_ACEOF
11574#define _LARGE_FILES $ac_cv_sys_large_files
11575_ACEOF
11576;;
11577esac
11578rm -rf conftest*
11579 fi
d0ac1c44
SM
11580
11581
b879806f
AM
11582fi
11583
11584
11585
81ecdfbb
RW
11586# Check whether --enable-targets was given.
11587if test "${enable_targets+set}" = set; then :
11588 enableval=$enable_targets; case "${enableval}" in
d0ac1c44 11589 yes | "") as_fn_error $? "enable-targets option must specify target names or 'all'" "$LINENO" 5
d7040cdb
SE
11590 ;;
11591 no) enable_targets= ;;
11592 *) enable_targets=$enableval ;;
11593esac
81ecdfbb
RW
11594fi
11595
e6f6aa8d 11596
9cb80f72
RM
11597# Check whether --enable-deterministic-archives was given.
11598if test "${enable_deterministic_archives+set}" = set; then :
11599 enableval=$enable_deterministic_archives;
11600if test "${enableval}" = no; then
11601 default_ar_deterministic=0
11602else
11603 default_ar_deterministic=1
11604fi
11605else
11606 default_ar_deterministic=0
11607fi
11608
11609
11610
11611cat >>confdefs.h <<_ACEOF
11612#define DEFAULT_AR_DETERMINISTIC $default_ar_deterministic
11613_ACEOF
11614
11615
e6f6aa8d 11616
7fac9594
NC
11617# Check whether --enable-default-strings-all was given.
11618if test "${enable_default_strings_all+set}" = set; then :
11619 enableval=$enable_default_strings_all;
11620if test "${enableval}" = no; then
11621 default_strings_all=0
11622else
11623 default_strings_all=1
11624fi
11625else
11626 default_strings_all=1
11627fi
11628
11629
11630
e6f6aa8d
NC
11631cat >>confdefs.h <<_ACEOF
11632#define DEFAULT_STRINGS_ALL $default_strings_all
11633_ACEOF
11634
11635
11636
11637# Check whether --enable-f-for-ifunc-symbols was given.
11638if test "${enable_f_for_ifunc_symbols+set}" = set; then :
11639 enableval=$enable_f_for_ifunc_symbols;
11640if test "${enableval}" = no; then
11641 default_f_for_ifunc=0
11642else
11643 default_f_for_ifunc=1
11644fi
11645else
11646 default_f_for_ifunc=0
11647fi
11648
11649
11650
11651cat >>confdefs.h <<_ACEOF
11652#define DEFAULT_F_FOR_IFUNC_SYMBOLS $default_f_for_ifunc
11653_ACEOF
11654
11655
11656
c46b7066
NC
11657# Check whether --enable-follow-debug-links was given.
11658if test "${enable_follow_debug_links+set}" = set; then :
11659 enableval=$enable_follow_debug_links;
11660if test "${enableval}" = no; then
11661 default_for_follow_links=0
11662else
11663 default_for_follow_links=1
11664fi
11665else
11666 default_for_follow_links=1
11667fi
11668
11669
11670
11671cat >>confdefs.h <<_ACEOF
11672#define DEFAULT_FOR_FOLLOW_LINKS $default_for_follow_links
11673_ACEOF
11674
11675
11676
11677
f6720b1c
AM
11678
11679
11680
11681
11682
11683
11684if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11685 if test -n "$ac_tool_prefix"; then
11686 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
11687set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
11688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11689$as_echo_n "checking for $ac_word... " >&6; }
11690if ${ac_cv_path_PKG_CONFIG+:} false; then :
11691 $as_echo_n "(cached) " >&6
11692else
11693 case $PKG_CONFIG in
11694 [\\/]* | ?:[\\/]*)
11695 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11696 ;;
11697 *)
11698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11699for as_dir in $PATH
11700do
11701 IFS=$as_save_IFS
11702 test -z "$as_dir" && as_dir=.
11703 for ac_exec_ext in '' $ac_executable_extensions; do
11704 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11705 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11707 break 2
11708 fi
11709done
11710 done
11711IFS=$as_save_IFS
11712
11713 ;;
11714esac
11715fi
11716PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11717if test -n "$PKG_CONFIG"; then
11718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11719$as_echo "$PKG_CONFIG" >&6; }
11720else
11721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11722$as_echo "no" >&6; }
11723fi
11724
11725
11726fi
11727if test -z "$ac_cv_path_PKG_CONFIG"; then
11728 ac_pt_PKG_CONFIG=$PKG_CONFIG
11729 # Extract the first word of "pkg-config", so it can be a program name with args.
11730set dummy pkg-config; ac_word=$2
11731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11732$as_echo_n "checking for $ac_word... " >&6; }
11733if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
11734 $as_echo_n "(cached) " >&6
11735else
11736 case $ac_pt_PKG_CONFIG in
11737 [\\/]* | ?:[\\/]*)
11738 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
11739 ;;
11740 *)
11741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11742for as_dir in $PATH
11743do
11744 IFS=$as_save_IFS
11745 test -z "$as_dir" && as_dir=.
11746 for ac_exec_ext in '' $ac_executable_extensions; do
11747 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11748 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11750 break 2
11751 fi
11752done
11753 done
11754IFS=$as_save_IFS
11755
11756 ;;
11757esac
11758fi
11759ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
11760if test -n "$ac_pt_PKG_CONFIG"; then
11761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
11762$as_echo "$ac_pt_PKG_CONFIG" >&6; }
11763else
11764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11765$as_echo "no" >&6; }
11766fi
11767
11768 if test "x$ac_pt_PKG_CONFIG" = x; then
11769 PKG_CONFIG=""
11770 else
11771 case $cross_compiling:$ac_tool_warned in
11772yes:)
11773{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11774$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11775ac_tool_warned=yes ;;
11776esac
11777 PKG_CONFIG=$ac_pt_PKG_CONFIG
11778 fi
11779else
11780 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11781fi
11782
11783fi
11784if test -n "$PKG_CONFIG"; then
11785 _pkg_min_version=0.9.0
11786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
11787$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
11788 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
11789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11790$as_echo "yes" >&6; }
11791 else
11792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11793$as_echo "no" >&6; }
11794 PKG_CONFIG=""
11795 fi
11796fi
11797
11798# Handle optional debuginfod support
301a9420
AM
11799
11800# Check whether --with-debuginfod was given.
11801if test "${with_debuginfod+set}" = set; then :
11802 withval=$with_debuginfod;
11803else
11804 with_debuginfod=auto
11805fi
11806
11807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use debuginfod" >&5
11808$as_echo_n "checking whether to use debuginfod... " >&6; }
11809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_debuginfod" >&5
11810$as_echo "$with_debuginfod" >&6; }
11811
f6720b1c 11812if test "x$with_debuginfod" != xno; then
301a9420 11813
f6720b1c
AM
11814pkg_failed=no
11815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libdebuginfod >= 0.179" >&5
11816$as_echo_n "checking for libdebuginfod >= 0.179... " >&6; }
11817
11818if test -n "$DEBUGINFOD_CFLAGS"; then
11819 pkg_cv_DEBUGINFOD_CFLAGS="$DEBUGINFOD_CFLAGS"
11820 elif test -n "$PKG_CONFIG"; then
11821 if test -n "$PKG_CONFIG" && \
11822 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdebuginfod >= 0.179\""; } >&5
11823 ($PKG_CONFIG --exists --print-errors "libdebuginfod >= 0.179") 2>&5
11824 ac_status=$?
11825 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11826 test $ac_status = 0; }; then
11827 pkg_cv_DEBUGINFOD_CFLAGS=`$PKG_CONFIG --cflags "libdebuginfod >= 0.179" 2>/dev/null`
11828 test "x$?" != "x0" && pkg_failed=yes
301a9420 11829else
f6720b1c 11830 pkg_failed=yes
301a9420 11831fi
f6720b1c
AM
11832 else
11833 pkg_failed=untried
301a9420 11834fi
f6720b1c
AM
11835if test -n "$DEBUGINFOD_LIBS"; then
11836 pkg_cv_DEBUGINFOD_LIBS="$DEBUGINFOD_LIBS"
11837 elif test -n "$PKG_CONFIG"; then
11838 if test -n "$PKG_CONFIG" && \
11839 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdebuginfod >= 0.179\""; } >&5
11840 ($PKG_CONFIG --exists --print-errors "libdebuginfod >= 0.179") 2>&5
11841 ac_status=$?
11842 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11843 test $ac_status = 0; }; then
11844 pkg_cv_DEBUGINFOD_LIBS=`$PKG_CONFIG --libs "libdebuginfod >= 0.179" 2>/dev/null`
11845 test "x$?" != "x0" && pkg_failed=yes
11846else
11847 pkg_failed=yes
301a9420 11848fi
f6720b1c
AM
11849 else
11850 pkg_failed=untried
301a9420
AM
11851fi
11852
377170fa
L
11853if test $pkg_failed = no; then
11854 pkg_save_LDFLAGS="$LDFLAGS"
11855 LDFLAGS="$LDFLAGS $pkg_cv_DEBUGINFOD_LIBS"
11856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d70f978b
L
11857/* end confdefs.h. */
11858
11859int
11860main ()
11861{
377170fa 11862
d70f978b
L
11863 ;
11864 return 0;
11865}
11866_ACEOF
11867if ac_fn_c_try_link "$LINENO"; then :
377170fa 11868
d70f978b
L
11869else
11870 pkg_failed=yes
11871fi
11872rm -f core conftest.err conftest.$ac_objext \
11873 conftest$ac_exeext conftest.$ac_ext
377170fa
L
11874 LDFLAGS=$pkg_save_LDFLAGS
11875fi
d70f978b 11876
301a9420 11877
301a9420 11878
f6720b1c
AM
11879if test $pkg_failed = yes; then
11880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11881$as_echo "no" >&6; }
301a9420 11882
f6720b1c
AM
11883if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11884 _pkg_short_errors_supported=yes
11885else
11886 _pkg_short_errors_supported=no
11887fi
11888 if test $_pkg_short_errors_supported = yes; then
11889 DEBUGINFOD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdebuginfod >= 0.179" 2>&1`
11890 else
11891 DEBUGINFOD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdebuginfod >= 0.179" 2>&1`
11892 fi
11893 # Put the nasty error message in config.log where it belongs
11894 echo "$DEBUGINFOD_PKG_ERRORS" >&5
301a9420 11895
f6720b1c
AM
11896 if test "x$with_debuginfod" = xyes; then
11897 as_fn_error $? "\"--with-debuginfod was given, but libdebuginfod is missing or unusable.\"" "$LINENO" 5
11898 else
11899 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libdebuginfod is missing or unusable; some features may be unavailable." >&5
11900$as_echo "$as_me: WARNING: libdebuginfod is missing or unusable; some features may be unavailable." >&2;}
11901 fi
11902elif test $pkg_failed = untried; then
11903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11904$as_echo "no" >&6; }
11905 if test "x$with_debuginfod" = xyes; then
11906 as_fn_error $? "\"--with-debuginfod was given, but libdebuginfod is missing or unusable.\"" "$LINENO" 5
11907 else
11908 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libdebuginfod is missing or unusable; some features may be unavailable." >&5
11909$as_echo "$as_me: WARNING: libdebuginfod is missing or unusable; some features may be unavailable." >&2;}
11910 fi
11911else
11912 DEBUGINFOD_CFLAGS=$pkg_cv_DEBUGINFOD_CFLAGS
11913 DEBUGINFOD_LIBS=$pkg_cv_DEBUGINFOD_LIBS
11914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11915$as_echo "yes" >&6; }
11916
11917$as_echo "#define HAVE_LIBDEBUGINFOD 1" >>confdefs.h
11918
11919fi
11920else
11921 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: debuginfod support disabled; some features may be unavailable." >&5
11922$as_echo "$as_me: WARNING: debuginfod support disabled; some features may be unavailable." >&2;}
301a9420
AM
11923fi
11924
11925
094e34f2
NA
11926 # Check whether --enable-libctf was given.
11927if test "${enable_libctf+set}" = set; then :
11928 enableval=$enable_libctf;
11929 case "$enableval" in
11930 yes|no) ;;
11931 *) as_fn_error $? "Argument to enable/disable libctf must be yes or no" "$LINENO" 5 ;;
11932 esac
11933
11934else
11935 enable_libctf=yes
11936fi
11937
11938
11939if test "${enable_libctf}" = yes; then
11940
11941$as_echo "#define ENABLE_LIBCTF 1" >>confdefs.h
11942
11943fi
11944 if test "${enable_libctf}" = yes; then
11945 ENABLE_LIBCTF_TRUE=
11946 ENABLE_LIBCTF_FALSE='#'
11947else
11948 ENABLE_LIBCTF_TRUE='#'
11949 ENABLE_LIBCTF_FALSE=
11950fi
11951
11952
d7040cdb 11953
270c9937
JB
11954# Set the 'development' global.
11955. $srcdir/../bfd/development.sh
11956
c5da1932
VZ
11957# Set acp_cpp_for_build variable
11958ac_cpp_for_build="$CC_FOR_BUILD -E $CPPFLAGS_FOR_BUILD"
11959
9780e045 11960# Default set of GCC warnings to enable.
397841b5 11961GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
c5da1932 11962GCC_WARN_CFLAGS_FOR_BUILD="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
9780e045
NC
11963
11964# Add -Wshadow if the compiler is a sufficiently recent version of GCC.
397841b5
AM
11965cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11966/* end confdefs.h. */
11967__GNUC__
11968_ACEOF
11969if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3107326d 11970 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then :
397841b5
AM
11971
11972else
11973 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wshadow"
11974fi
11975rm -f conftest*
11976
d7040cdb 11977
9780e045
NC
11978# Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
11979cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11980/* end confdefs.h. */
11981__GNUC__
11982_ACEOF
11983if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3107326d 11984 $EGREP "(^[0-4]$|^__GNUC__$)" >/dev/null 2>&1; then :
9780e045
NC
11985
11986else
11987 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wstack-usage=262144"
11988fi
11989rm -f conftest*
11990
11991
6757cf57
TS
11992# Set WARN_WRITE_STRINGS if the compiler supports -Wwrite-strings.
11993WARN_WRITE_STRINGS=""
11994cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11995/* end confdefs.h. */
11996__GNUC__
11997_ACEOF
11998if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3107326d 11999 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then :
6757cf57
TS
12000
12001else
12002 WARN_WRITE_STRINGS="-Wwrite-strings"
12003fi
12004rm -f conftest*
12005
9780e045 12006
96fe4562 12007# Verify CC_FOR_BUILD to be compatible with warning flags
c5da1932
VZ
12008
12009# Add -Wshadow if the compiler is a sufficiently recent version of GCC.
12010cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12011/* end confdefs.h. */
12012__GNUC__
12013_ACEOF
12014if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
3107326d 12015 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then :
c5da1932
VZ
12016
12017else
12018 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wshadow"
12019fi
12020rm -f conftest*
12021
12022
12023# Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
12024cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12025/* end confdefs.h. */
12026__GNUC__
12027_ACEOF
12028if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
3107326d 12029 $EGREP "(^[0-4]$|^__GNUC__$)" >/dev/null 2>&1; then :
c5da1932
VZ
12030
12031else
12032 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wstack-usage=262144"
12033fi
12034rm -f conftest*
12035
12036
81ecdfbb
RW
12037# Check whether --enable-werror was given.
12038if test "${enable_werror+set}" = set; then :
12039 enableval=$enable_werror; case "${enableval}" in
d7040cdb
SE
12040 yes | y) ERROR_ON_WARNING="yes" ;;
12041 no | n) ERROR_ON_WARNING="no" ;;
d0ac1c44 12042 *) as_fn_error $? "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
d7040cdb 12043 esac
81ecdfbb
RW
12044fi
12045
d7040cdb 12046
397841b5 12047# Disable -Wformat by default when using gcc on mingw
bb8541b9
L
12048case "${host}" in
12049 *-*-mingw32*)
12050 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
12051 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
c5da1932 12052 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wno-format"
bb8541b9
L
12053 fi
12054 ;;
12055 *) ;;
12056esac
12057
270c9937
JB
12058# Enable -Werror by default when using gcc. Turn it off for releases.
12059if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" -a "$development" = true ; then
d7040cdb
SE
12060 ERROR_ON_WARNING=yes
12061fi
12062
12063NO_WERROR=
12064if test "${ERROR_ON_WARNING}" = yes ; then
9780e045 12065 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
c5da1932 12066 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Werror"
d7040cdb
SE
12067 NO_WERROR="-Wno-error"
12068fi
12069
12070if test "${GCC}" = yes ; then
12071 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
c5da1932 12072 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD}"
d7040cdb
SE
12073fi
12074
81ecdfbb
RW
12075# Check whether --enable-build-warnings was given.
12076if test "${enable_build_warnings+set}" = set; then :
12077 enableval=$enable_build_warnings; case "${enableval}" in
c5da1932
VZ
12078 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}"
12079 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD}";;
d7040cdb
SE
12080 no) if test "${GCC}" = yes ; then
12081 WARN_CFLAGS="-w"
c5da1932 12082 WARN_CFLAGS_FOR_BUILD="-w"
d7040cdb
SE
12083 fi;;
12084 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
c5da1932
VZ
12085 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}"
12086 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD} ${t}";;
d7040cdb 12087 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
c5da1932
VZ
12088 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}"
12089 WARN_CFLAGS_FOR_BUILD="${t} ${GCC_WARN_CFLAGS_FOR_BUILD}";;
12090 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`
12091 WARN_CFLAGS_FOR_BUILD=`echo "${enableval}" | sed -e "s/,/ /g"`;;
d7040cdb 12092esac
81ecdfbb
RW
12093fi
12094
d7040cdb
SE
12095
12096if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
12097 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
12098fi
12099
12100
12101
12102
12103
6757cf57 12104
c5da1932 12105
81ecdfbb 12106ac_config_headers="$ac_config_headers config.h:config.in"
d7040cdb
SE
12107
12108
df7b86aa
NC
12109
12110
d7040cdb 12111if test -z "$target" ; then
d0ac1c44 12112 as_fn_error $? "Unrecognized target system type; please check config.sub." "$LINENO" 5
d7040cdb
SE
12113fi
12114if test -z "$host" ; then
d0ac1c44 12115 as_fn_error $? "Unrecognized host system type; please check config.sub." "$LINENO" 5
d7040cdb
SE
12116fi
12117
12118for ac_prog in 'bison -y' byacc
12119do
12120 # Extract the first word of "$ac_prog", so it can be a program name with args.
12121set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
12122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12123$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12124if ${ac_cv_prog_YACC+:} false; then :
81ecdfbb 12125 $as_echo_n "(cached) " >&6
d7040cdb
SE
12126else
12127 if test -n "$YACC"; then
12128 ac_cv_prog_YACC="$YACC" # Let the user override the test.
12129else
12130as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12131for as_dir in $PATH
12132do
12133 IFS=$as_save_IFS
12134 test -z "$as_dir" && as_dir=.
81ecdfbb 12135 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12136 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d7040cdb 12137 ac_cv_prog_YACC="$ac_prog"
81ecdfbb 12138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb
SE
12139 break 2
12140 fi
12141done
81ecdfbb
RW
12142 done
12143IFS=$as_save_IFS
d7040cdb
SE
12144
12145fi
12146fi
12147YACC=$ac_cv_prog_YACC
12148if test -n "$YACC"; then
81ecdfbb
RW
12149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
12150$as_echo "$YACC" >&6; }
d7040cdb 12151else
81ecdfbb
RW
12152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12153$as_echo "no" >&6; }
d7040cdb
SE
12154fi
12155
81ecdfbb 12156
d7040cdb
SE
12157 test -n "$YACC" && break
12158done
12159test -n "$YACC" || YACC="yacc"
12160
12161for ac_prog in flex lex
12162do
12163 # Extract the first word of "$ac_prog", so it can be a program name with args.
12164set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
12165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12166$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12167if ${ac_cv_prog_LEX+:} false; then :
81ecdfbb 12168 $as_echo_n "(cached) " >&6
d7040cdb
SE
12169else
12170 if test -n "$LEX"; then
12171 ac_cv_prog_LEX="$LEX" # Let the user override the test.
12172else
12173as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12174for as_dir in $PATH
12175do
12176 IFS=$as_save_IFS
12177 test -z "$as_dir" && as_dir=.
81ecdfbb 12178 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12179 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d7040cdb 12180 ac_cv_prog_LEX="$ac_prog"
81ecdfbb 12181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb
SE
12182 break 2
12183 fi
12184done
81ecdfbb
RW
12185 done
12186IFS=$as_save_IFS
d7040cdb
SE
12187
12188fi
12189fi
12190LEX=$ac_cv_prog_LEX
12191if test -n "$LEX"; then
81ecdfbb
RW
12192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
12193$as_echo "$LEX" >&6; }
d7040cdb 12194else
81ecdfbb
RW
12195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12196$as_echo "no" >&6; }
d7040cdb
SE
12197fi
12198
81ecdfbb 12199
d7040cdb
SE
12200 test -n "$LEX" && break
12201done
12202test -n "$LEX" || LEX=":"
12203
3d961d0d
AM
12204case "$LEX" in
12205 :|*"missing "*) ;;
12206 *) cat >conftest.l <<_ACEOF
81ecdfbb
RW
12207%%
12208a { ECHO; }
12209b { REJECT; }
12210c { yymore (); }
12211d { yyless (1); }
d0ac1c44
SM
12212e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
12213 yyless ((input () != 0)); }
81ecdfbb
RW
12214f { unput (yytext[0]); }
12215. { BEGIN INITIAL; }
12216%%
12217#ifdef YYTEXT_POINTER
12218extern char *yytext;
d7040cdb 12219#endif
d7040cdb 12220int
81ecdfbb 12221main (void)
d7040cdb 12222{
81ecdfbb 12223 return ! yylex () + ! yywrap ();
d7040cdb
SE
12224}
12225_ACEOF
81ecdfbb
RW
12226{ { ac_try="$LEX conftest.l"
12227case "(($ac_try" in
12228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12229 *) ac_try_echo=$ac_try;;
12230esac
12231eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12232$as_echo "$ac_try_echo"; } >&5
12233 (eval "$LEX conftest.l") 2>&5
d7040cdb 12234 ac_status=$?
81ecdfbb
RW
12235 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12236 test $ac_status = 0; }
12237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
12238$as_echo_n "checking lex output file root... " >&6; }
d0ac1c44 12239if ${ac_cv_prog_lex_root+:} false; then :
81ecdfbb 12240 $as_echo_n "(cached) " >&6
d7040cdb 12241else
d7040cdb 12242
81ecdfbb
RW
12243if test -f lex.yy.c; then
12244 ac_cv_prog_lex_root=lex.yy
12245elif test -f lexyy.c; then
12246 ac_cv_prog_lex_root=lexyy
12247else
d0ac1c44 12248 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
d7040cdb 12249fi
d7040cdb 12250fi
81ecdfbb
RW
12251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
12252$as_echo "$ac_cv_prog_lex_root" >&6; }
12253LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
d7040cdb 12254
81ecdfbb
RW
12255if test -z "${LEXLIB+set}"; then
12256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
12257$as_echo_n "checking lex library... " >&6; }
d0ac1c44 12258if ${ac_cv_lib_lex+:} false; then :
81ecdfbb 12259 $as_echo_n "(cached) " >&6
d7040cdb 12260else
d7040cdb 12261
81ecdfbb
RW
12262 ac_save_LIBS=$LIBS
12263 ac_cv_lib_lex='none needed'
12264 for ac_lib in '' -lfl -ll; do
12265 LIBS="$ac_lib $ac_save_LIBS"
12266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12267/* end confdefs.h. */
12268`cat $LEX_OUTPUT_ROOT.c`
12269_ACEOF
12270if ac_fn_c_try_link "$LINENO"; then :
12271 ac_cv_lib_lex=$ac_lib
d7040cdb 12272fi
81ecdfbb
RW
12273rm -f core conftest.err conftest.$ac_objext \
12274 conftest$ac_exeext conftest.$ac_ext
12275 test "$ac_cv_lib_lex" != 'none needed' && break
12276 done
12277 LIBS=$ac_save_LIBS
d7040cdb
SE
12278
12279fi
81ecdfbb
RW
12280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
12281$as_echo "$ac_cv_lib_lex" >&6; }
12282 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
d7040cdb
SE
12283fi
12284
d7040cdb 12285
81ecdfbb
RW
12286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
12287$as_echo_n "checking whether yytext is a pointer... " >&6; }
d0ac1c44 12288if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
81ecdfbb 12289 $as_echo_n "(cached) " >&6
d7040cdb
SE
12290else
12291 # POSIX says lex can declare yytext either as a pointer or an array; the
81ecdfbb 12292# default is implementation-dependent. Figure out which it is, since
d7040cdb
SE
12293# not all implementations provide the %pointer and %array declarations.
12294ac_cv_prog_lex_yytext_pointer=no
d7040cdb 12295ac_save_LIBS=$LIBS
81ecdfbb
RW
12296LIBS="$LEXLIB $ac_save_LIBS"
12297cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12298/* end confdefs.h. */
d0ac1c44
SM
12299
12300 #define YYTEXT_POINTER 1
d7040cdb
SE
12301`cat $LEX_OUTPUT_ROOT.c`
12302_ACEOF
81ecdfbb 12303if ac_fn_c_try_link "$LINENO"; then :
d7040cdb 12304 ac_cv_prog_lex_yytext_pointer=yes
d7040cdb 12305fi
81ecdfbb
RW
12306rm -f core conftest.err conftest.$ac_objext \
12307 conftest$ac_exeext conftest.$ac_ext
d7040cdb 12308LIBS=$ac_save_LIBS
d7040cdb
SE
12309
12310fi
81ecdfbb
RW
12311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
12312$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
d7040cdb
SE
12313if test $ac_cv_prog_lex_yytext_pointer = yes; then
12314
81ecdfbb 12315$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
d7040cdb
SE
12316
12317fi
81ecdfbb 12318rm -f conftest.l $LEX_OUTPUT_ROOT.c
3d961d0d
AM
12319 ;;
12320esac
d7040cdb
SE
12321if test "$LEX" = :; then
12322 LEX=${am_missing_run}flex
12323fi
12324
e184813f 12325ALL_LINGUAS="bg ca da es fi fr hr id it ja pt ro ru rw sk sr sv tr uk vi zh_CN zh_TW"
d7040cdb
SE
12326# If we haven't got the data from the intl directory,
12327# assume NLS is disabled.
12328USE_NLS=no
12329LIBINTL=
12330LIBINTL_DEP=
12331INCINTL=
12332XGETTEXT=
12333GMSGFMT=
12334POSUB=
12335
12336if test -f ../intl/config.intl; then
12337 . ../intl/config.intl
12338fi
81ecdfbb
RW
12339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
12340$as_echo_n "checking whether NLS is requested... " >&6; }
d7040cdb 12341if test x"$USE_NLS" != xyes; then
81ecdfbb
RW
12342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12343$as_echo "no" >&6; }
d7040cdb 12344else
81ecdfbb
RW
12345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12346$as_echo "yes" >&6; }
d7040cdb 12347
81ecdfbb 12348$as_echo "#define ENABLE_NLS 1" >>confdefs.h
d7040cdb
SE
12349
12350
81ecdfbb
RW
12351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
12352$as_echo_n "checking for catalogs to be installed... " >&6; }
d7040cdb
SE
12353 # Look for .po and .gmo files in the source directory.
12354 CATALOGS=
12355 XLINGUAS=
12356 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
12357 # If there aren't any .gmo files the shell will give us the
12358 # literal string "../path/to/srcdir/po/*.gmo" which has to be
12359 # weeded out.
12360 case "$cat" in *\**)
12361 continue;;
12362 esac
12363 # The quadruple backslash is collapsed to a double backslash
12364 # by the backticks, then collapsed again by the double quotes,
12365 # leaving us with one backslash in the sed expression (right
12366 # before the dot that mustn't act as a wildcard).
12367 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
12368 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
12369 # The user is allowed to set LINGUAS to a list of languages to
12370 # install catalogs for. If it's empty that means "all of them."
12371 if test "x$LINGUAS" = x; then
12372 CATALOGS="$CATALOGS $cat"
12373 XLINGUAS="$XLINGUAS $lang"
12374 else
12375 case "$LINGUAS" in *$lang*)
12376 CATALOGS="$CATALOGS $cat"
12377 XLINGUAS="$XLINGUAS $lang"
12378 ;;
12379 esac
12380 fi
12381 done
12382 LINGUAS="$XLINGUAS"
81ecdfbb
RW
12383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
12384$as_echo "$LINGUAS" >&6; }
d7040cdb
SE
12385
12386
12387 DATADIRNAME=share
12388
12389 INSTOBJEXT=.mo
12390
12391 GENCAT=gencat
12392
12393 CATOBJEXT=.gmo
12394
12395fi
12396
12397 MKINSTALLDIRS=
12398 if test -n "$ac_aux_dir"; then
12399 case "$ac_aux_dir" in
12400 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
12401 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
12402 esac
12403 fi
12404 if test -z "$MKINSTALLDIRS"; then
12405 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
12406 fi
12407
12408
12409
81ecdfbb
RW
12410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
12411$as_echo_n "checking whether NLS is requested... " >&6; }
12412 # Check whether --enable-nls was given.
12413if test "${enable_nls+set}" = set; then :
12414 enableval=$enable_nls; USE_NLS=$enableval
d7040cdb
SE
12415else
12416 USE_NLS=yes
81ecdfbb
RW
12417fi
12418
12419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
12420$as_echo "$USE_NLS" >&6; }
d7040cdb
SE
12421
12422
12423
12424
12425
12426
12427# Prepare PATH_SEPARATOR.
12428# The user is always right.
12429if test "${PATH_SEPARATOR+set}" != set; then
12430 echo "#! /bin/sh" >conf$$.sh
12431 echo "exit 0" >>conf$$.sh
12432 chmod +x conf$$.sh
12433 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12434 PATH_SEPARATOR=';'
12435 else
12436 PATH_SEPARATOR=:
12437 fi
12438 rm -f conf$$.sh
12439fi
12440
12441# Find out how to test for executable files. Don't use a zero-byte file,
12442# as systems may use methods other than mode bits to determine executability.
12443cat >conf$$.file <<_ASEOF
12444#! /bin/sh
12445exit 0
12446_ASEOF
12447chmod +x conf$$.file
12448if test -x conf$$.file >/dev/null 2>&1; then
12449 ac_executable_p="test -x"
12450else
12451 ac_executable_p="test -f"
12452fi
12453rm -f conf$$.file
12454
12455# Extract the first word of "msgfmt", so it can be a program name with args.
12456set dummy msgfmt; ac_word=$2
81ecdfbb
RW
12457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12458$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12459if ${ac_cv_path_MSGFMT+:} false; then :
81ecdfbb 12460 $as_echo_n "(cached) " >&6
d7040cdb
SE
12461else
12462 case "$MSGFMT" in
12463 [\\/]* | ?:[\\/]*)
12464 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
12465 ;;
12466 *)
12467 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12468 for ac_dir in $PATH; do
12469 IFS="$ac_save_IFS"
12470 test -z "$ac_dir" && ac_dir=.
12471 for ac_exec_ext in '' $ac_executable_extensions; do
12472 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12473 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
12474 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12475 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
12476 break 2
12477 fi
12478 fi
12479 done
12480 done
12481 IFS="$ac_save_IFS"
12482 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
12483 ;;
12484esac
12485fi
12486MSGFMT="$ac_cv_path_MSGFMT"
12487if test "$MSGFMT" != ":"; then
81ecdfbb
RW
12488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
12489$as_echo "$MSGFMT" >&6; }
d7040cdb 12490else
81ecdfbb
RW
12491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12492$as_echo "no" >&6; }
d7040cdb
SE
12493fi
12494
12495 # Extract the first word of "gmsgfmt", so it can be a program name with args.
12496set dummy gmsgfmt; ac_word=$2
81ecdfbb
RW
12497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12498$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12499if ${ac_cv_path_GMSGFMT+:} false; then :
81ecdfbb 12500 $as_echo_n "(cached) " >&6
d7040cdb
SE
12501else
12502 case $GMSGFMT in
12503 [\\/]* | ?:[\\/]*)
12504 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
12505 ;;
12506 *)
12507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12508for as_dir in $PATH
12509do
12510 IFS=$as_save_IFS
12511 test -z "$as_dir" && as_dir=.
81ecdfbb 12512 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12513 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d7040cdb 12514 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 12515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb
SE
12516 break 2
12517 fi
12518done
81ecdfbb
RW
12519 done
12520IFS=$as_save_IFS
d7040cdb
SE
12521
12522 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
12523 ;;
12524esac
12525fi
12526GMSGFMT=$ac_cv_path_GMSGFMT
d7040cdb 12527if test -n "$GMSGFMT"; then
81ecdfbb
RW
12528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
12529$as_echo "$GMSGFMT" >&6; }
d7040cdb 12530else
81ecdfbb
RW
12531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12532$as_echo "no" >&6; }
d7040cdb
SE
12533fi
12534
12535
12536
81ecdfbb 12537
d7040cdb
SE
12538# Prepare PATH_SEPARATOR.
12539# The user is always right.
12540if test "${PATH_SEPARATOR+set}" != set; then
12541 echo "#! /bin/sh" >conf$$.sh
12542 echo "exit 0" >>conf$$.sh
12543 chmod +x conf$$.sh
12544 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12545 PATH_SEPARATOR=';'
12546 else
12547 PATH_SEPARATOR=:
12548 fi
12549 rm -f conf$$.sh
12550fi
12551
12552# Find out how to test for executable files. Don't use a zero-byte file,
12553# as systems may use methods other than mode bits to determine executability.
12554cat >conf$$.file <<_ASEOF
12555#! /bin/sh
12556exit 0
12557_ASEOF
12558chmod +x conf$$.file
12559if test -x conf$$.file >/dev/null 2>&1; then
12560 ac_executable_p="test -x"
12561else
12562 ac_executable_p="test -f"
12563fi
12564rm -f conf$$.file
12565
12566# Extract the first word of "xgettext", so it can be a program name with args.
12567set dummy xgettext; ac_word=$2
81ecdfbb
RW
12568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12569$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12570if ${ac_cv_path_XGETTEXT+:} false; then :
81ecdfbb 12571 $as_echo_n "(cached) " >&6
d7040cdb
SE
12572else
12573 case "$XGETTEXT" in
12574 [\\/]* | ?:[\\/]*)
12575 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
12576 ;;
12577 *)
12578 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12579 for ac_dir in $PATH; do
12580 IFS="$ac_save_IFS"
12581 test -z "$ac_dir" && ac_dir=.
12582 for ac_exec_ext in '' $ac_executable_extensions; do
12583 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12584 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
12585 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12586 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
12587 break 2
12588 fi
12589 fi
12590 done
12591 done
12592 IFS="$ac_save_IFS"
12593 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
12594 ;;
12595esac
12596fi
12597XGETTEXT="$ac_cv_path_XGETTEXT"
12598if test "$XGETTEXT" != ":"; then
81ecdfbb
RW
12599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
12600$as_echo "$XGETTEXT" >&6; }
d7040cdb 12601else
81ecdfbb
RW
12602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12603$as_echo "no" >&6; }
d7040cdb
SE
12604fi
12605
12606 rm -f messages.po
12607
12608
12609# Prepare PATH_SEPARATOR.
12610# The user is always right.
12611if test "${PATH_SEPARATOR+set}" != set; then
12612 echo "#! /bin/sh" >conf$$.sh
12613 echo "exit 0" >>conf$$.sh
12614 chmod +x conf$$.sh
12615 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12616 PATH_SEPARATOR=';'
12617 else
12618 PATH_SEPARATOR=:
12619 fi
12620 rm -f conf$$.sh
12621fi
12622
12623# Find out how to test for executable files. Don't use a zero-byte file,
12624# as systems may use methods other than mode bits to determine executability.
12625cat >conf$$.file <<_ASEOF
12626#! /bin/sh
12627exit 0
12628_ASEOF
12629chmod +x conf$$.file
12630if test -x conf$$.file >/dev/null 2>&1; then
12631 ac_executable_p="test -x"
12632else
12633 ac_executable_p="test -f"
12634fi
12635rm -f conf$$.file
12636
12637# Extract the first word of "msgmerge", so it can be a program name with args.
12638set dummy msgmerge; ac_word=$2
81ecdfbb
RW
12639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12640$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12641if ${ac_cv_path_MSGMERGE+:} false; then :
81ecdfbb 12642 $as_echo_n "(cached) " >&6
d7040cdb
SE
12643else
12644 case "$MSGMERGE" in
12645 [\\/]* | ?:[\\/]*)
12646 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
12647 ;;
12648 *)
12649 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12650 for ac_dir in $PATH; do
12651 IFS="$ac_save_IFS"
12652 test -z "$ac_dir" && ac_dir=.
12653 for ac_exec_ext in '' $ac_executable_extensions; do
12654 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12655 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
12656 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
12657 break 2
12658 fi
12659 fi
12660 done
12661 done
12662 IFS="$ac_save_IFS"
12663 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
12664 ;;
12665esac
12666fi
12667MSGMERGE="$ac_cv_path_MSGMERGE"
12668if test "$MSGMERGE" != ":"; then
81ecdfbb
RW
12669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
12670$as_echo "$MSGMERGE" >&6; }
d7040cdb 12671else
81ecdfbb
RW
12672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12673$as_echo "no" >&6; }
d7040cdb
SE
12674fi
12675
12676
12677 if test "$GMSGFMT" != ":"; then
12678 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
12679 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12680 : ;
12681 else
12682 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
81ecdfbb
RW
12683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
12684$as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
d7040cdb
SE
12685 GMSGFMT=":"
12686 fi
12687 fi
12688
12689 if test "$XGETTEXT" != ":"; then
12690 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
12691 (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12692 : ;
12693 else
81ecdfbb
RW
12694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
12695$as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
d7040cdb
SE
12696 XGETTEXT=":"
12697 fi
12698 rm -f messages.po
12699 fi
12700
81ecdfbb 12701 ac_config_commands="$ac_config_commands default-1"
d7040cdb
SE
12702
12703
12704
81ecdfbb
RW
12705
12706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
12707$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
12708 # Check whether --enable-maintainer-mode was given.
12709if test "${enable_maintainer_mode+set}" = set; then :
12710 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
42ecbf5e 12711else
d7040cdb 12712 USE_MAINTAINER_MODE=no
81ecdfbb 12713fi
d7040cdb 12714
81ecdfbb
RW
12715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
12716$as_echo "$USE_MAINTAINER_MODE" >&6; }
12717 if test $USE_MAINTAINER_MODE = yes; then
d7040cdb
SE
12718 MAINTAINER_MODE_TRUE=
12719 MAINTAINER_MODE_FALSE='#'
12720else
12721 MAINTAINER_MODE_TRUE='#'
12722 MAINTAINER_MODE_FALSE=
42ecbf5e 12723fi
d7040cdb
SE
12724
12725 MAINT=$MAINTAINER_MODE_TRUE
12726
12727
81ecdfbb 12728 if false; then
d7040cdb
SE
12729 GENINSRC_NEVER_TRUE=
12730 GENINSRC_NEVER_FALSE='#'
12731else
12732 GENINSRC_NEVER_TRUE='#'
12733 GENINSRC_NEVER_FALSE=
42ecbf5e 12734fi
d7040cdb
SE
12735
12736
12737if test -n "$EXEEXT"; then
20e95c23 12738
81ecdfbb 12739$as_echo "#define HAVE_EXECUTABLE_SUFFIX 1" >>confdefs.h
42ecbf5e 12740
252b5132
RH
12741fi
12742
d7040cdb
SE
12743cat >>confdefs.h <<_ACEOF
12744#define EXECUTABLE_SUFFIX "${EXEEXT}"
12745_ACEOF
42ecbf5e 12746
252b5132 12747
d7040cdb 12748# host-specific stuff:
252b5132 12749
d7040cdb 12750HDEFINES=
252b5132 12751
d7040cdb 12752. ${srcdir}/../bfd/configure.host
252b5132 12753
252b5132 12754
d7040cdb 12755AR=${AR-ar}
252b5132 12756
d7040cdb
SE
12757if test -n "$ac_tool_prefix"; then
12758 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12759set dummy ${ac_tool_prefix}ranlib; ac_word=$2
81ecdfbb
RW
12760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12761$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12762if ${ac_cv_prog_RANLIB+:} false; then :
81ecdfbb 12763 $as_echo_n "(cached) " >&6
d7040cdb
SE
12764else
12765 if test -n "$RANLIB"; then
12766 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12767else
12768as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12769for as_dir in $PATH
12770do
12771 IFS=$as_save_IFS
12772 test -z "$as_dir" && as_dir=.
81ecdfbb 12773 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12774 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d7040cdb 12775 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
81ecdfbb 12776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb
SE
12777 break 2
12778 fi
12779done
81ecdfbb
RW
12780 done
12781IFS=$as_save_IFS
252b5132 12782
d7040cdb
SE
12783fi
12784fi
12785RANLIB=$ac_cv_prog_RANLIB
12786if test -n "$RANLIB"; then
81ecdfbb
RW
12787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12788$as_echo "$RANLIB" >&6; }
d7040cdb 12789else
81ecdfbb
RW
12790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12791$as_echo "no" >&6; }
d7040cdb 12792fi
20e95c23 12793
81ecdfbb 12794
d7040cdb
SE
12795fi
12796if test -z "$ac_cv_prog_RANLIB"; then
12797 ac_ct_RANLIB=$RANLIB
12798 # Extract the first word of "ranlib", so it can be a program name with args.
12799set dummy ranlib; ac_word=$2
81ecdfbb
RW
12800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12801$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12802if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
81ecdfbb 12803 $as_echo_n "(cached) " >&6
252b5132 12804else
d7040cdb
SE
12805 if test -n "$ac_ct_RANLIB"; then
12806 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12807else
12808as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12809for as_dir in $PATH
12810do
12811 IFS=$as_save_IFS
12812 test -z "$as_dir" && as_dir=.
81ecdfbb 12813 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12814 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d7040cdb 12815 ac_cv_prog_ac_ct_RANLIB="ranlib"
81ecdfbb 12816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb
SE
12817 break 2
12818 fi
12819done
81ecdfbb
RW
12820 done
12821IFS=$as_save_IFS
20e95c23 12822
d7040cdb
SE
12823fi
12824fi
12825ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12826if test -n "$ac_ct_RANLIB"; then
81ecdfbb
RW
12827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12828$as_echo "$ac_ct_RANLIB" >&6; }
d7040cdb 12829else
81ecdfbb
RW
12830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12831$as_echo "no" >&6; }
d7040cdb
SE
12832fi
12833
81ecdfbb
RW
12834 if test "x$ac_ct_RANLIB" = x; then
12835 RANLIB=":"
d7040cdb 12836 else
81ecdfbb
RW
12837 case $cross_compiling:$ac_tool_warned in
12838yes:)
12839{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12840$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12841ac_tool_warned=yes ;;
12842esac
12843 RANLIB=$ac_ct_RANLIB
d7040cdb 12844 fi
81ecdfbb
RW
12845else
12846 RANLIB="$ac_cv_prog_RANLIB"
d7040cdb 12847fi
d7040cdb 12848
d7040cdb
SE
12849
12850
12851# Put a plausible default for CC_FOR_BUILD in Makefile.
12852if test -z "$CC_FOR_BUILD"; then
12853 if test "x$cross_compiling" = "xno"; then
12854 CC_FOR_BUILD='$(CC)'
12855 else
12856 CC_FOR_BUILD=gcc
12857 fi
12858fi
20e95c23 12859
d7040cdb
SE
12860# Also set EXEEXT_FOR_BUILD.
12861if test "x$cross_compiling" = "xno"; then
12862 EXEEXT_FOR_BUILD='$(EXEEXT)'
12863else
81ecdfbb
RW
12864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build system executable suffix" >&5
12865$as_echo_n "checking for build system executable suffix... " >&6; }
d0ac1c44 12866if ${bfd_cv_build_exeext+:} false; then :
81ecdfbb 12867 $as_echo_n "(cached) " >&6
d7040cdb
SE
12868else
12869 rm -f conftest*
12870 echo 'int main () { return 0; }' > conftest.c
12871 bfd_cv_build_exeext=
12872 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
12873 for file in conftest.*; do
12874 case $file in
12875 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
12876 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
12877 esac
12878 done
12879 rm -f conftest*
12880 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
252b5132 12881fi
81ecdfbb
RW
12882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_build_exeext" >&5
12883$as_echo "$bfd_cv_build_exeext" >&6; }
d7040cdb
SE
12884 EXEEXT_FOR_BUILD=""
12885 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
252b5132
RH
12886fi
12887
12888
d7040cdb
SE
12889DEMANGLER_NAME=c++filt
12890case "${host}" in
12891 *-*-go32* | *-*-msdos*)
12892 DEMANGLER_NAME=cxxfilt
12893esac
8a965946
ILT
12894
12895
4c219c2e
AM
12896# The cast to long int works around a bug in the HP C Compiler
12897# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12898# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12899# This bug is HP SR number 8606223364.
12900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
12901$as_echo_n "checking size of long... " >&6; }
d0ac1c44 12902if ${ac_cv_sizeof_long+:} false; then :
4c219c2e
AM
12903 $as_echo_n "(cached) " >&6
12904else
12905 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
12906
12907else
12908 if test "$ac_cv_type_long" = yes; then
12909 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12910$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
12911as_fn_error 77 "cannot compute sizeof (long)
12912See \`config.log' for more details" "$LINENO" 5; }
4c219c2e
AM
12913 else
12914 ac_cv_sizeof_long=0
12915 fi
12916fi
12917
12918fi
12919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
12920$as_echo "$ac_cv_sizeof_long" >&6; }
12921
12922
12923
12924cat >>confdefs.h <<_ACEOF
12925#define SIZEOF_LONG $ac_cv_sizeof_long
12926_ACEOF
12927
12928
4c219c2e
AM
12929# The cast to long int works around a bug in the HP C Compiler
12930# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12931# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12932# This bug is HP SR number 8606223364.
12933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
12934$as_echo_n "checking size of long long... " >&6; }
d0ac1c44 12935if ${ac_cv_sizeof_long_long+:} false; then :
4c219c2e
AM
12936 $as_echo_n "(cached) " >&6
12937else
12938 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
12939
12940else
12941 if test "$ac_cv_type_long_long" = yes; then
12942 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12943$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
12944as_fn_error 77 "cannot compute sizeof (long long)
12945See \`config.log' for more details" "$LINENO" 5; }
4c219c2e
AM
12946 else
12947 ac_cv_sizeof_long_long=0
12948 fi
12949fi
12950
12951fi
12952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
12953$as_echo "$ac_cv_sizeof_long_long" >&6; }
12954
12955
12956
12957cat >>confdefs.h <<_ACEOF
12958#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
12959_ACEOF
12960
12961
4c219c2e 12962
87b9f255
AM
12963# We use headers from include/ that check various HAVE_*_H macros, thus
12964# should ensure they are set by configure. This is true even when C99
12965# guarantees they are available.
12966# plugin-api.h tests HAVE_STDINT_H and HAVE_INTTYPES_H
12967# Besides those, we need to check anything used in binutils/ not in C99.
12968for ac_header in fcntl.h inttypes.h stdint.h sys/file.h sys/param.h \
12969 sys/stat.h sys/types.h unistd.h
81ecdfbb
RW
12970do :
12971 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12972ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
d0ac1c44 12973if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
81ecdfbb
RW
12974 cat >>confdefs.h <<_ACEOF
12975#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12976_ACEOF
42ecbf5e 12977
81ecdfbb 12978fi
42ecbf5e 12979
81ecdfbb 12980done
42ecbf5e 12981
81ecdfbb
RW
12982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
12983$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
d0ac1c44 12984if ${ac_cv_header_sys_wait_h+:} false; then :
81ecdfbb 12985 $as_echo_n "(cached) " >&6
42ecbf5e 12986else
81ecdfbb 12987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e 12988/* end confdefs.h. */
252b5132
RH
12989#include <sys/types.h>
12990#include <sys/wait.h>
12991#ifndef WEXITSTATUS
81ecdfbb 12992# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
252b5132
RH
12993#endif
12994#ifndef WIFEXITED
42ecbf5e 12995# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
252b5132 12996#endif
42ecbf5e
DJ
12997
12998int
12999main ()
13000{
13001 int s;
13002 wait (&s);
13003 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
13004 ;
13005 return 0;
13006}
13007_ACEOF
81ecdfbb 13008if ac_fn_c_try_compile "$LINENO"; then :
252b5132
RH
13009 ac_cv_header_sys_wait_h=yes
13010else
81ecdfbb 13011 ac_cv_header_sys_wait_h=no
252b5132 13012fi
81ecdfbb 13013rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 13014fi
81ecdfbb
RW
13015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
13016$as_echo "$ac_cv_header_sys_wait_h" >&6; }
d15b04bd 13017if test $ac_cv_header_sys_wait_h = yes; then
42ecbf5e 13018
81ecdfbb 13019$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
252b5132 13020
252b5132
RH
13021fi
13022
34156b23
L
13023
13024
13025
13026 for ac_header in $ac_header_list
13027do :
13028 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13029ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
13030"
13031if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13032 cat >>confdefs.h <<_ACEOF
13033#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13034_ACEOF
13035
13036fi
13037
13038done
13039
13040
13041
13042
13043
13044
13045
13046
13047for ac_func in getpagesize
13048do :
13049 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
13050if test "x$ac_cv_func_getpagesize" = xyes; then :
13051 cat >>confdefs.h <<_ACEOF
13052#define HAVE_GETPAGESIZE 1
13053_ACEOF
13054
13055fi
13056done
13057
13058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
13059$as_echo_n "checking for working mmap... " >&6; }
13060if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
13061 $as_echo_n "(cached) " >&6
13062else
13063 if test "$cross_compiling" = yes; then :
13064 ac_cv_func_mmap_fixed_mapped=no
13065else
13066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13067/* end confdefs.h. */
13068$ac_includes_default
13069/* malloc might have been renamed as rpl_malloc. */
13070#undef malloc
13071
13072/* Thanks to Mike Haertel and Jim Avera for this test.
13073 Here is a matrix of mmap possibilities:
13074 mmap private not fixed
13075 mmap private fixed at somewhere currently unmapped
13076 mmap private fixed at somewhere already mapped
13077 mmap shared not fixed
13078 mmap shared fixed at somewhere currently unmapped
13079 mmap shared fixed at somewhere already mapped
13080 For private mappings, we should verify that changes cannot be read()
13081 back from the file, nor mmap's back from the file at a different
13082 address. (There have been systems where private was not correctly
13083 implemented like the infamous i386 svr4.0, and systems where the
13084 VM page cache was not coherent with the file system buffer cache
13085 like early versions of FreeBSD and possibly contemporary NetBSD.)
13086 For shared mappings, we should conversely verify that changes get
13087 propagated back to all the places they're supposed to be.
13088
13089 Grep wants private fixed already mapped.
13090 The main things grep needs to know about mmap are:
13091 * does it exist and is it safe to write into the mmap'd area
13092 * how to use it (BSD variants) */
13093
13094#include <fcntl.h>
13095#include <sys/mman.h>
13096
13097#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
13098char *malloc ();
13099#endif
13100
13101/* This mess was copied from the GNU getpagesize.h. */
13102#ifndef HAVE_GETPAGESIZE
13103# ifdef _SC_PAGESIZE
13104# define getpagesize() sysconf(_SC_PAGESIZE)
13105# else /* no _SC_PAGESIZE */
13106# ifdef HAVE_SYS_PARAM_H
13107# include <sys/param.h>
13108# ifdef EXEC_PAGESIZE
13109# define getpagesize() EXEC_PAGESIZE
13110# else /* no EXEC_PAGESIZE */
13111# ifdef NBPG
13112# define getpagesize() NBPG * CLSIZE
13113# ifndef CLSIZE
13114# define CLSIZE 1
13115# endif /* no CLSIZE */
13116# else /* no NBPG */
13117# ifdef NBPC
13118# define getpagesize() NBPC
13119# else /* no NBPC */
13120# ifdef PAGESIZE
13121# define getpagesize() PAGESIZE
13122# endif /* PAGESIZE */
13123# endif /* no NBPC */
13124# endif /* no NBPG */
13125# endif /* no EXEC_PAGESIZE */
13126# else /* no HAVE_SYS_PARAM_H */
13127# define getpagesize() 8192 /* punt totally */
13128# endif /* no HAVE_SYS_PARAM_H */
13129# endif /* no _SC_PAGESIZE */
13130
13131#endif /* no HAVE_GETPAGESIZE */
13132
13133int
13134main ()
13135{
13136 char *data, *data2, *data3;
13137 const char *cdata2;
13138 int i, pagesize;
13139 int fd, fd2;
13140
13141 pagesize = getpagesize ();
13142
13143 /* First, make a file with some known garbage in it. */
13144 data = (char *) malloc (pagesize);
13145 if (!data)
13146 return 1;
13147 for (i = 0; i < pagesize; ++i)
13148 *(data + i) = rand ();
13149 umask (0);
13150 fd = creat ("conftest.mmap", 0600);
13151 if (fd < 0)
13152 return 2;
13153 if (write (fd, data, pagesize) != pagesize)
13154 return 3;
13155 close (fd);
13156
13157 /* Next, check that the tail of a page is zero-filled. File must have
13158 non-zero length, otherwise we risk SIGBUS for entire page. */
13159 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
13160 if (fd2 < 0)
13161 return 4;
13162 cdata2 = "";
13163 if (write (fd2, cdata2, 1) != 1)
13164 return 5;
13165 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
13166 if (data2 == MAP_FAILED)
13167 return 6;
13168 for (i = 0; i < pagesize; ++i)
13169 if (*(data2 + i))
13170 return 7;
13171 close (fd2);
13172 if (munmap (data2, pagesize))
13173 return 8;
13174
13175 /* Next, try to mmap the file at a fixed address which already has
13176 something else allocated at it. If we can, also make sure that
13177 we see the same garbage. */
13178 fd = open ("conftest.mmap", O_RDWR);
13179 if (fd < 0)
13180 return 9;
13181 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
13182 MAP_PRIVATE | MAP_FIXED, fd, 0L))
13183 return 10;
13184 for (i = 0; i < pagesize; ++i)
13185 if (*(data + i) != *(data2 + i))
13186 return 11;
13187
13188 /* Finally, make sure that changes to the mapped area do not
13189 percolate back to the file as seen by read(). (This is a bug on
13190 some variants of i386 svr4.0.) */
13191 for (i = 0; i < pagesize; ++i)
13192 *(data2 + i) = *(data2 + i) + 1;
13193 data3 = (char *) malloc (pagesize);
13194 if (!data3)
13195 return 12;
13196 if (read (fd, data3, pagesize) != pagesize)
13197 return 13;
13198 for (i = 0; i < pagesize; ++i)
13199 if (*(data + i) != *(data3 + i))
13200 return 14;
13201 close (fd);
13202 return 0;
13203}
13204_ACEOF
13205if ac_fn_c_try_run "$LINENO"; then :
13206 ac_cv_func_mmap_fixed_mapped=yes
13207else
13208 ac_cv_func_mmap_fixed_mapped=no
13209fi
13210rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13211 conftest.$ac_objext conftest.beam conftest.$ac_ext
13212fi
13213
13214fi
13215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
13216$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
13217if test $ac_cv_func_mmap_fixed_mapped = yes; then
13218
13219$as_echo "#define HAVE_MMAP 1" >>confdefs.h
13220
13221fi
13222rm -f conftest.mmap conftest.txt
13223
87b9f255 13224for ac_func in getc_unlocked sbrk utimes
81ecdfbb
RW
13225do :
13226 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13227ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
d0ac1c44 13228if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
81ecdfbb
RW
13229 cat >>confdefs.h <<_ACEOF
13230#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13231_ACEOF
42ecbf5e 13232
81ecdfbb
RW
13233fi
13234done
42ecbf5e 13235
81ecdfbb 13236ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"
d0ac1c44 13237if test "x$ac_cv_func_mkstemp" = xyes; then :
42ecbf5e 13238
81ecdfbb 13239$as_echo "#define HAVE_MKSTEMP 1" >>confdefs.h
42ecbf5e 13240
81ecdfbb 13241fi
42ecbf5e 13242
81ecdfbb 13243ac_fn_c_check_func "$LINENO" "mkdtemp" "ac_cv_func_mkdtemp"
d0ac1c44 13244if test "x$ac_cv_func_mkdtemp" = xyes; then :
42ecbf5e 13245
81ecdfbb 13246$as_echo "#define HAVE_MKDTEMP 1" >>confdefs.h
42ecbf5e 13247
81ecdfbb 13248fi
d15b04bd 13249
3bfcb652
NC
13250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
13251$as_echo_n "checking for mbstate_t... " >&6; }
13252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13253/* end confdefs.h. */
13254#include <wchar.h>
13255int
13256main ()
13257{
13258mbstate_t teststate;
13259 ;
13260 return 0;
13261}
13262_ACEOF
13263if ac_fn_c_try_compile "$LINENO"; then :
13264 have_mbstate_t=yes
13265else
13266 have_mbstate_t=no
13267fi
13268rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mbstate_t" >&5
13270$as_echo "$have_mbstate_t" >&6; }
13271 if test x"$have_mbstate_t" = xyes; then
13272
13273$as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
13274
13275 fi
d15b04bd 13276
81ecdfbb
RW
13277# Some systems have frexp only in -lm, not in -lc.
13278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing frexp" >&5
13279$as_echo_n "checking for library containing frexp... " >&6; }
d0ac1c44 13280if ${ac_cv_search_frexp+:} false; then :
81ecdfbb 13281 $as_echo_n "(cached) " >&6
f9c026a8 13282else
81ecdfbb
RW
13283 ac_func_search_save_LIBS=$LIBS
13284cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f9c026a8 13285/* end confdefs.h. */
f9c026a8 13286
81ecdfbb
RW
13287/* Override any GCC internal prototype to avoid an error.
13288 Use char because int might match the return type of a GCC
f9c026a8 13289 builtin and then its argument prototype would still apply. */
42ecbf5e
DJ
13290#ifdef __cplusplus
13291extern "C"
13292#endif
42ecbf5e
DJ
13293char frexp ();
13294int
13295main ()
13296{
81ecdfbb 13297return frexp ();
42ecbf5e
DJ
13298 ;
13299 return 0;
13300}
13301_ACEOF
81ecdfbb
RW
13302for ac_lib in '' m; do
13303 if test -z "$ac_lib"; then
13304 ac_res="none required"
13305 else
13306 ac_res=-l$ac_lib
42ecbf5e 13307 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
81ecdfbb
RW
13308 fi
13309 if ac_fn_c_try_link "$LINENO"; then :
13310 ac_cv_search_frexp=$ac_res
13311fi
13312rm -f core conftest.err conftest.$ac_objext \
13313 conftest$ac_exeext
d0ac1c44 13314 if ${ac_cv_search_frexp+:} false; then :
81ecdfbb
RW
13315 break
13316fi
13317done
d0ac1c44 13318if ${ac_cv_search_frexp+:} false; then :
42ecbf5e 13319
f353eb8a 13320else
81ecdfbb 13321 ac_cv_search_frexp=no
e5a52504 13322fi
81ecdfbb 13323rm conftest.$ac_ext
42ecbf5e
DJ
13324LIBS=$ac_func_search_save_LIBS
13325fi
81ecdfbb
RW
13326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_frexp" >&5
13327$as_echo "$ac_cv_search_frexp" >&6; }
13328ac_res=$ac_cv_search_frexp
13329if test "$ac_res" != no; then :
13330 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
42ecbf5e 13331
f353eb8a
ILT
13332fi
13333
42ecbf5e 13334
44350750
NC
13335
13336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
13337$as_echo_n "checking for LC_MESSAGES... " >&6; }
d0ac1c44 13338if ${am_cv_val_LC_MESSAGES+:} false; then :
44350750
NC
13339 $as_echo_n "(cached) " >&6
13340else
13341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13342/* end confdefs.h. */
13343#include <locale.h>
13344int
13345main ()
13346{
13347return LC_MESSAGES
13348 ;
13349 return 0;
13350}
13351_ACEOF
13352if ac_fn_c_try_link "$LINENO"; then :
13353 am_cv_val_LC_MESSAGES=yes
13354else
13355 am_cv_val_LC_MESSAGES=no
13356fi
13357rm -f core conftest.err conftest.$ac_objext \
13358 conftest$ac_exeext conftest.$ac_ext
13359fi
13360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
13361$as_echo "$am_cv_val_LC_MESSAGES" >&6; }
13362 if test $am_cv_val_LC_MESSAGES = yes; then
13363
13364$as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
13365
13366 fi
13367
13368
81ecdfbb
RW
13369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a known getopt prototype in unistd.h" >&5
13370$as_echo_n "checking for a known getopt prototype in unistd.h... " >&6; }
d0ac1c44 13371if ${bu_cv_decl_getopt_unistd_h+:} false; then :
81ecdfbb 13372 $as_echo_n "(cached) " >&6
e46eba98 13373else
81ecdfbb 13374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e 13375/* end confdefs.h. */
e46eba98 13376#include <unistd.h>
42ecbf5e
DJ
13377int
13378main ()
13379{
e46eba98 13380extern int getopt (int, char *const*, const char *);
42ecbf5e
DJ
13381 ;
13382 return 0;
13383}
13384_ACEOF
81ecdfbb 13385if ac_fn_c_try_compile "$LINENO"; then :
e46eba98
NC
13386 bu_cv_decl_getopt_unistd_h=yes
13387else
81ecdfbb 13388 bu_cv_decl_getopt_unistd_h=no
e46eba98 13389fi
81ecdfbb 13390rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e46eba98
NC
13391fi
13392
81ecdfbb
RW
13393{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bu_cv_decl_getopt_unistd_h" >&5
13394$as_echo "$bu_cv_decl_getopt_unistd_h" >&6; }
e46eba98 13395if test $bu_cv_decl_getopt_unistd_h = yes; then
42ecbf5e 13396
81ecdfbb 13397$as_echo "#define HAVE_DECL_GETOPT 1" >>confdefs.h
e46eba98
NC
13398
13399fi
13400
252b5132
RH
13401# Under Next 3.2 <utime.h> apparently does not define struct utimbuf
13402# by default.
81ecdfbb
RW
13403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for utime.h" >&5
13404$as_echo_n "checking for utime.h... " >&6; }
d0ac1c44 13405if ${bu_cv_header_utime_h+:} false; then :
81ecdfbb 13406 $as_echo_n "(cached) " >&6
42ecbf5e 13407else
81ecdfbb 13408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e 13409/* end confdefs.h. */
252b5132
RH
13410#include <sys/types.h>
13411#ifdef HAVE_TIME_H
13412#include <time.h>
13413#endif
13414#include <utime.h>
42ecbf5e
DJ
13415int
13416main ()
13417{
252b5132 13418struct utimbuf s;
42ecbf5e
DJ
13419 ;
13420 return 0;
13421}
13422_ACEOF
81ecdfbb 13423if ac_fn_c_try_compile "$LINENO"; then :
252b5132
RH
13424 bu_cv_header_utime_h=yes
13425else
81ecdfbb 13426 bu_cv_header_utime_h=no
252b5132 13427fi
81ecdfbb 13428rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
13429fi
13430
81ecdfbb
RW
13431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bu_cv_header_utime_h" >&5
13432$as_echo "$bu_cv_header_utime_h" >&6; }
252b5132 13433if test $bu_cv_header_utime_h = yes; then
42ecbf5e 13434
81ecdfbb 13435$as_echo "#define HAVE_GOOD_UTIME_H 1" >>confdefs.h
252b5132
RH
13436
13437fi
13438
1f5345a6 13439ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
d0ac1c44 13440if test "x$ac_cv_have_decl_asprintf" = xyes; then :
1f5345a6
ST
13441 ac_have_decl=1
13442else
13443 ac_have_decl=0
13444fi
13445
13446cat >>confdefs.h <<_ACEOF
13447#define HAVE_DECL_ASPRINTF $ac_have_decl
13448_ACEOF
952781e8 13449ac_fn_c_check_decl "$LINENO" "environ" "ac_cv_have_decl_environ" "$ac_includes_default"
d0ac1c44 13450if test "x$ac_cv_have_decl_environ" = xyes; then :
952781e8
AM
13451 ac_have_decl=1
13452else
13453 ac_have_decl=0
13454fi
13455
13456cat >>confdefs.h <<_ACEOF
13457#define HAVE_DECL_ENVIRON $ac_have_decl
13458_ACEOF
952781e8 13459ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
d0ac1c44 13460if test "x$ac_cv_have_decl_getc_unlocked" = xyes; then :
81ecdfbb 13461 ac_have_decl=1
252b5132 13462else
81ecdfbb 13463 ac_have_decl=0
252b5132 13464fi
252b5132 13465
398ee8f1 13466cat >>confdefs.h <<_ACEOF
952781e8 13467#define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
398ee8f1 13468_ACEOF
81ecdfbb 13469ac_fn_c_check_decl "$LINENO" "sbrk" "ac_cv_have_decl_sbrk" "$ac_includes_default"
d0ac1c44 13470if test "x$ac_cv_have_decl_sbrk" = xyes; then :
81ecdfbb 13471 ac_have_decl=1
252b5132 13472else
81ecdfbb 13473 ac_have_decl=0
252b5132 13474fi
252b5132 13475
398ee8f1 13476cat >>confdefs.h <<_ACEOF
81ecdfbb 13477#define HAVE_DECL_SBRK $ac_have_decl
398ee8f1 13478_ACEOF
952781e8 13479ac_fn_c_check_decl "$LINENO" "stpcpy" "ac_cv_have_decl_stpcpy" "$ac_includes_default"
d0ac1c44 13480if test "x$ac_cv_have_decl_stpcpy" = xyes; then :
81ecdfbb 13481 ac_have_decl=1
398ee8f1 13482else
81ecdfbb 13483 ac_have_decl=0
398ee8f1 13484fi
252b5132 13485
398ee8f1 13486cat >>confdefs.h <<_ACEOF
952781e8 13487#define HAVE_DECL_STPCPY $ac_have_decl
b7d4af3a 13488_ACEOF
db50c840
EB
13489
13490
ed2b5077
L
13491# Link in zlib if we can. This allows us to read compressed debug
13492# sections. This is used only by readelf.c (objdump uses bfd for
13493# reading compressed sections).
13494
13495 # Use the system's zlib library.
39f3de7c
L
13496 zlibdir="-L\$(top_builddir)/../zlib"
13497 zlibinc="-I\$(top_srcdir)/../zlib"
52546677 13498
0ee42ecd
L
13499# Check whether --with-system-zlib was given.
13500if test "${with_system_zlib+set}" = set; then :
afa59b79
L
13501 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
13502 zlibdir=
13503 zlibinc=
13504 fi
52546677 13505
52546677
RM
13506fi
13507
13508
52546677 13509
1b315056 13510
252b5132 13511
ed2b5077 13512
252b5132 13513case "${host}" in
8a965946 13514*-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
42ecbf5e 13515
81ecdfbb 13516$as_echo "#define USE_BINARY_FOPEN 1" >>confdefs.h
252b5132
RH
13517 ;;
13518esac
13519
13520# target-specific stuff:
13521
13522# Canonicalize the secondary target names.
13523if test -n "$enable_targets"; then
13524 for targ in `echo $enable_targets | sed 's/,/ /g'`
13525 do
6d83c84b 13526 result=`$ac_config_sub $targ 2>/dev/null`
252b5132
RH
13527 if test -n "$result"; then
13528 canon_targets="$canon_targets $result"
13529 else
13530 # Allow targets that config.sub doesn't recognize, like "all".
13531 canon_targets="$canon_targets $targ"
13532 fi
13533 done
13534fi
13535
81ecdfbb 13536ac_fn_c_check_header_mongrel "$LINENO" "iconv.h" "ac_cv_header_iconv_h" "$ac_includes_default"
d0ac1c44 13537if test "x$ac_cv_header_iconv_h" = xyes; then :
5ba684e2
NC
13538
13539fi
13540
13541
13542
13543 if test "X$prefix" = "XNONE"; then
13544 acl_final_prefix="$ac_default_prefix"
13545 else
13546 acl_final_prefix="$prefix"
13547 fi
13548 if test "X$exec_prefix" = "XNONE"; then
13549 acl_final_exec_prefix='${prefix}'
13550 else
13551 acl_final_exec_prefix="$exec_prefix"
13552 fi
13553 acl_save_prefix="$prefix"
13554 prefix="$acl_final_prefix"
13555 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
13556 prefix="$acl_save_prefix"
13557
13558
81ecdfbb
RW
13559# Check whether --with-gnu-ld was given.
13560if test "${with_gnu_ld+set}" = set; then :
13561 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5ba684e2
NC
13562else
13563 with_gnu_ld=no
81ecdfbb
RW
13564fi
13565
5ba684e2
NC
13566# Prepare PATH_SEPARATOR.
13567# The user is always right.
13568if test "${PATH_SEPARATOR+set}" != set; then
13569 echo "#! /bin/sh" >conf$$.sh
13570 echo "exit 0" >>conf$$.sh
13571 chmod +x conf$$.sh
13572 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13573 PATH_SEPARATOR=';'
13574 else
13575 PATH_SEPARATOR=:
13576 fi
13577 rm -f conf$$.sh
13578fi
13579ac_prog=ld
13580if test "$GCC" = yes; then
13581 # Check if gcc -print-prog-name=ld gives a path.
81ecdfbb
RW
13582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
13583$as_echo_n "checking for ld used by GCC... " >&6; }
5ba684e2
NC
13584 case $host in
13585 *-*-mingw*)
13586 # gcc leaves a trailing carriage return which upsets mingw
13587 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13588 *)
13589 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13590 esac
13591 case $ac_prog in
13592 # Accept absolute paths.
13593 [\\/]* | [A-Za-z]:[\\/]*)
13594 re_direlt='/[^/][^/]*/\.\./'
13595 # Canonicalize the path of ld
13596 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
13597 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
13598 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
13599 done
13600 test -z "$LD" && LD="$ac_prog"
13601 ;;
13602 "")
13603 # If it fails, then pretend we aren't using GCC.
13604 ac_prog=ld
13605 ;;
13606 *)
13607 # If it is relative, then search for the first ld in PATH.
13608 with_gnu_ld=unknown
13609 ;;
13610 esac
13611elif test "$with_gnu_ld" = yes; then
81ecdfbb
RW
13612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13613$as_echo_n "checking for GNU ld... " >&6; }
5ba684e2 13614else
81ecdfbb
RW
13615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13616$as_echo_n "checking for non-GNU ld... " >&6; }
5ba684e2 13617fi
d0ac1c44 13618if ${acl_cv_path_LD+:} false; then :
81ecdfbb 13619 $as_echo_n "(cached) " >&6
5ba684e2
NC
13620else
13621 if test -z "$LD"; then
13622 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
13623 for ac_dir in $PATH; do
13624 test -z "$ac_dir" && ac_dir=.
13625 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13626 acl_cv_path_LD="$ac_dir/$ac_prog"
13627 # Check to see if the program is GNU ld. I'd rather use --version,
13628 # but apparently some GNU ld's only accept -v.
13629 # Break only if it was the GNU/non-GNU ld that we prefer.
13630 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
13631 test "$with_gnu_ld" != no && break
13632 else
13633 test "$with_gnu_ld" != yes && break
13634 fi
13635 fi
13636 done
13637 IFS="$ac_save_ifs"
13638else
13639 acl_cv_path_LD="$LD" # Let the user override the test with a path.
13640fi
13641fi
13642
13643LD="$acl_cv_path_LD"
13644if test -n "$LD"; then
81ecdfbb
RW
13645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13646$as_echo "$LD" >&6; }
5ba684e2 13647else
81ecdfbb
RW
13648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13649$as_echo "no" >&6; }
5ba684e2 13650fi
d0ac1c44 13651test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
81ecdfbb
RW
13652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13653$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
d0ac1c44 13654if ${acl_cv_prog_gnu_ld+:} false; then :
81ecdfbb 13655 $as_echo_n "(cached) " >&6
5ba684e2
NC
13656else
13657 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
13658if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
13659 acl_cv_prog_gnu_ld=yes
13660else
13661 acl_cv_prog_gnu_ld=no
13662fi
13663fi
81ecdfbb
RW
13664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
13665$as_echo "$acl_cv_prog_gnu_ld" >&6; }
5ba684e2
NC
13666with_gnu_ld=$acl_cv_prog_gnu_ld
13667
13668
13669
81ecdfbb
RW
13670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
13671$as_echo_n "checking for shared library run path origin... " >&6; }
d0ac1c44 13672if ${acl_cv_rpath+:} false; then :
81ecdfbb 13673 $as_echo_n "(cached) " >&6
5ba684e2
NC
13674else
13675
13676 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
13677 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
13678 . ./conftest.sh
13679 rm -f ./conftest.sh
13680 acl_cv_rpath=done
13681
13682fi
81ecdfbb
RW
13683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
13684$as_echo "$acl_cv_rpath" >&6; }
5ba684e2
NC
13685 wl="$acl_cv_wl"
13686 libext="$acl_cv_libext"
13687 shlibext="$acl_cv_shlibext"
13688 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
13689 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
13690 hardcode_direct="$acl_cv_hardcode_direct"
13691 hardcode_minus_L="$acl_cv_hardcode_minus_L"
81ecdfbb
RW
13692 # Check whether --enable-rpath was given.
13693if test "${enable_rpath+set}" = set; then :
13694 enableval=$enable_rpath; :
5ba684e2
NC
13695else
13696 enable_rpath=yes
81ecdfbb
RW
13697fi
13698
5ba684e2
NC
13699
13700
13701
13702
13703
13704
13705
13706 use_additional=yes
13707
13708 acl_save_prefix="$prefix"
13709 prefix="$acl_final_prefix"
13710 acl_save_exec_prefix="$exec_prefix"
13711 exec_prefix="$acl_final_exec_prefix"
13712
13713 eval additional_includedir=\"$includedir\"
13714 eval additional_libdir=\"$libdir\"
13715
13716 exec_prefix="$acl_save_exec_prefix"
13717 prefix="$acl_save_prefix"
13718
13719
81ecdfbb
RW
13720# Check whether --with-libiconv-prefix was given.
13721if test "${with_libiconv_prefix+set}" = set; then :
13722 withval=$with_libiconv_prefix;
5ba684e2
NC
13723 if test "X$withval" = "Xno"; then
13724 use_additional=no
13725 else
13726 if test "X$withval" = "X"; then
13727
13728 acl_save_prefix="$prefix"
13729 prefix="$acl_final_prefix"
13730 acl_save_exec_prefix="$exec_prefix"
13731 exec_prefix="$acl_final_exec_prefix"
13732
13733 eval additional_includedir=\"$includedir\"
13734 eval additional_libdir=\"$libdir\"
13735
13736 exec_prefix="$acl_save_exec_prefix"
13737 prefix="$acl_save_prefix"
13738
13739 else
13740 additional_includedir="$withval/include"
13741 additional_libdir="$withval/lib"
13742 fi
13743 fi
13744
81ecdfbb
RW
13745fi
13746
9f1528a1
AB
13747
13748# Check whether --with-libiconv-type was given.
13749if test "${with_libiconv_type+set}" = set; then :
13750 withval=$with_libiconv_type; with_libiconv_type=$withval
13751else
13752 with_libiconv_type=auto
13753fi
13754
13755 lib_type=`eval echo \$with_libiconv_type`
13756
5ba684e2
NC
13757 LIBICONV=
13758 LTLIBICONV=
13759 INCICONV=
13760 rpathdirs=
13761 ltrpathdirs=
13762 names_already_handled=
13763 names_next_round='iconv '
13764 while test -n "$names_next_round"; do
13765 names_this_round="$names_next_round"
13766 names_next_round=
13767 for name in $names_this_round; do
13768 already_handled=
13769 for n in $names_already_handled; do
13770 if test "$n" = "$name"; then
13771 already_handled=yes
13772 break
13773 fi
13774 done
13775 if test -z "$already_handled"; then
13776 names_already_handled="$names_already_handled $name"
13777 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
13778 eval value=\"\$HAVE_LIB$uppername\"
13779 if test -n "$value"; then
13780 if test "$value" = yes; then
13781 eval value=\"\$LIB$uppername\"
13782 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
13783 eval value=\"\$LTLIB$uppername\"
13784 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
13785 else
13786 :
13787 fi
13788 else
13789 found_dir=
13790 found_la=
13791 found_so=
13792 found_a=
13793 if test $use_additional = yes; then
9f1528a1 13794 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
5ba684e2
NC
13795 found_dir="$additional_libdir"
13796 found_so="$additional_libdir/lib$name.$shlibext"
13797 if test -f "$additional_libdir/lib$name.la"; then
13798 found_la="$additional_libdir/lib$name.la"
13799 fi
9f1528a1 13800 elif test x$lib_type != xshared; then
5ba684e2
NC
13801 if test -f "$additional_libdir/lib$name.$libext"; then
13802 found_dir="$additional_libdir"
13803 found_a="$additional_libdir/lib$name.$libext"
13804 if test -f "$additional_libdir/lib$name.la"; then
13805 found_la="$additional_libdir/lib$name.la"
13806 fi
13807 fi
13808 fi
13809 fi
13810 if test "X$found_dir" = "X"; then
13811 for x in $LDFLAGS $LTLIBICONV; do
13812
13813 acl_save_prefix="$prefix"
13814 prefix="$acl_final_prefix"
13815 acl_save_exec_prefix="$exec_prefix"
13816 exec_prefix="$acl_final_exec_prefix"
13817 eval x=\"$x\"
13818 exec_prefix="$acl_save_exec_prefix"
13819 prefix="$acl_save_prefix"
13820
13821 case "$x" in
13822 -L*)
13823 dir=`echo "X$x" | sed -e 's/^X-L//'`
9f1528a1 13824 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
5ba684e2
NC
13825 found_dir="$dir"
13826 found_so="$dir/lib$name.$shlibext"
13827 if test -f "$dir/lib$name.la"; then
13828 found_la="$dir/lib$name.la"
13829 fi
9f1528a1 13830 elif test x$lib_type != xshared; then
5ba684e2
NC
13831 if test -f "$dir/lib$name.$libext"; then
13832 found_dir="$dir"
13833 found_a="$dir/lib$name.$libext"
13834 if test -f "$dir/lib$name.la"; then
13835 found_la="$dir/lib$name.la"
13836 fi
13837 fi
13838 fi
13839 ;;
13840 esac
13841 if test "X$found_dir" != "X"; then
13842 break
13843 fi
13844 done
13845 fi
13846 if test "X$found_dir" != "X"; then
13847 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
13848 if test "X$found_so" != "X"; then
13849 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
13850 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13851 else
13852 haveit=
13853 for x in $ltrpathdirs; do
13854 if test "X$x" = "X$found_dir"; then
13855 haveit=yes
13856 break
13857 fi
13858 done
13859 if test -z "$haveit"; then
13860 ltrpathdirs="$ltrpathdirs $found_dir"
13861 fi
13862 if test "$hardcode_direct" = yes; then
13863 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13864 else
13865 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
13866 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13867 haveit=
13868 for x in $rpathdirs; do
13869 if test "X$x" = "X$found_dir"; then
13870 haveit=yes
13871 break
13872 fi
13873 done
13874 if test -z "$haveit"; then
13875 rpathdirs="$rpathdirs $found_dir"
13876 fi
13877 else
13878 haveit=
13879 for x in $LDFLAGS $LIBICONV; do
13880
13881 acl_save_prefix="$prefix"
13882 prefix="$acl_final_prefix"
13883 acl_save_exec_prefix="$exec_prefix"
13884 exec_prefix="$acl_final_exec_prefix"
13885 eval x=\"$x\"
13886 exec_prefix="$acl_save_exec_prefix"
13887 prefix="$acl_save_prefix"
13888
13889 if test "X$x" = "X-L$found_dir"; then
13890 haveit=yes
13891 break
13892 fi
13893 done
13894 if test -z "$haveit"; then
13895 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
13896 fi
13897 if test "$hardcode_minus_L" != no; then
13898 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13899 else
13900 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
13901 fi
13902 fi
13903 fi
13904 fi
13905 else
13906 if test "X$found_a" != "X"; then
13907 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
13908 else
13909 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
13910 fi
13911 fi
13912 additional_includedir=
13913 case "$found_dir" in
13914 */lib | */lib/)
13915 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
13916 additional_includedir="$basedir/include"
13917 ;;
13918 esac
13919 if test "X$additional_includedir" != "X"; then
13920 if test "X$additional_includedir" != "X/usr/include"; then
13921 haveit=
13922 if test "X$additional_includedir" = "X/usr/local/include"; then
13923 if test -n "$GCC"; then
13924 case $host_os in
13925 linux*) haveit=yes;;
13926 esac
13927 fi
13928 fi
13929 if test -z "$haveit"; then
13930 for x in $CPPFLAGS $INCICONV; do
13931
13932 acl_save_prefix="$prefix"
13933 prefix="$acl_final_prefix"
13934 acl_save_exec_prefix="$exec_prefix"
13935 exec_prefix="$acl_final_exec_prefix"
13936 eval x=\"$x\"
13937 exec_prefix="$acl_save_exec_prefix"
13938 prefix="$acl_save_prefix"
13939
13940 if test "X$x" = "X-I$additional_includedir"; then
13941 haveit=yes
13942 break
13943 fi
13944 done
13945 if test -z "$haveit"; then
13946 if test -d "$additional_includedir"; then
13947 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
13948 fi
13949 fi
13950 fi
13951 fi
13952 fi
13953 if test -n "$found_la"; then
13954 save_libdir="$libdir"
13955 case "$found_la" in
13956 */* | *\\*) . "$found_la" ;;
13957 *) . "./$found_la" ;;
13958 esac
13959 libdir="$save_libdir"
13960 for dep in $dependency_libs; do
13961 case "$dep" in
13962 -L*)
13963 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
13964 if test "X$additional_libdir" != "X/usr/lib"; then
13965 haveit=
13966 if test "X$additional_libdir" = "X/usr/local/lib"; then
13967 if test -n "$GCC"; then
13968 case $host_os in
13969 linux*) haveit=yes;;
13970 esac
13971 fi
13972 fi
13973 if test -z "$haveit"; then
13974 haveit=
13975 for x in $LDFLAGS $LIBICONV; do
13976
13977 acl_save_prefix="$prefix"
13978 prefix="$acl_final_prefix"
13979 acl_save_exec_prefix="$exec_prefix"
13980 exec_prefix="$acl_final_exec_prefix"
13981 eval x=\"$x\"
13982 exec_prefix="$acl_save_exec_prefix"
13983 prefix="$acl_save_prefix"
13984
13985 if test "X$x" = "X-L$additional_libdir"; then
13986 haveit=yes
13987 break
13988 fi
13989 done
13990 if test -z "$haveit"; then
13991 if test -d "$additional_libdir"; then
13992 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
13993 fi
13994 fi
13995 haveit=
13996 for x in $LDFLAGS $LTLIBICONV; do
13997
13998 acl_save_prefix="$prefix"
13999 prefix="$acl_final_prefix"
14000 acl_save_exec_prefix="$exec_prefix"
14001 exec_prefix="$acl_final_exec_prefix"
14002 eval x=\"$x\"
14003 exec_prefix="$acl_save_exec_prefix"
14004 prefix="$acl_save_prefix"
14005
14006 if test "X$x" = "X-L$additional_libdir"; then
14007 haveit=yes
14008 break
14009 fi
14010 done
14011 if test -z "$haveit"; then
14012 if test -d "$additional_libdir"; then
14013 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
14014 fi
14015 fi
14016 fi
14017 fi
14018 ;;
14019 -R*)
14020 dir=`echo "X$dep" | sed -e 's/^X-R//'`
14021 if test "$enable_rpath" != no; then
14022 haveit=
14023 for x in $rpathdirs; do
14024 if test "X$x" = "X$dir"; then
14025 haveit=yes
14026 break
14027 fi
14028 done
14029 if test -z "$haveit"; then
14030 rpathdirs="$rpathdirs $dir"
14031 fi
14032 haveit=
14033 for x in $ltrpathdirs; do
14034 if test "X$x" = "X$dir"; then
14035 haveit=yes
14036 break
14037 fi
14038 done
14039 if test -z "$haveit"; then
14040 ltrpathdirs="$ltrpathdirs $dir"
14041 fi
14042 fi
14043 ;;
14044 -l*)
14045 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14046 ;;
14047 *.la)
14048 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14049 ;;
14050 *)
14051 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
14052 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
14053 ;;
14054 esac
14055 done
14056 fi
14057 else
9f1528a1
AB
14058 if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
14059 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
14060 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
14061 else
14062 LIBICONV="${LIBICONV}${LIBICONV:+ }-l:lib$name.$libext"
14063 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l:lib$name.$libext"
14064 fi
5ba684e2
NC
14065 fi
14066 fi
14067 fi
14068 done
14069 done
14070 if test "X$rpathdirs" != "X"; then
14071 if test -n "$hardcode_libdir_separator"; then
14072 alldirs=
14073 for found_dir in $rpathdirs; do
14074 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
14075 done
14076 acl_save_libdir="$libdir"
14077 libdir="$alldirs"
14078 eval flag=\"$hardcode_libdir_flag_spec\"
14079 libdir="$acl_save_libdir"
14080 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
14081 else
14082 for found_dir in $rpathdirs; do
14083 acl_save_libdir="$libdir"
14084 libdir="$found_dir"
14085 eval flag=\"$hardcode_libdir_flag_spec\"
14086 libdir="$acl_save_libdir"
14087 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
14088 done
14089 fi
14090 fi
14091 if test "X$ltrpathdirs" != "X"; then
14092 for found_dir in $ltrpathdirs; do
14093 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
14094 done
14095 fi
14096
14097
14098
14099
14100
14101
14102
81ecdfbb
RW
14103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
14104$as_echo_n "checking for iconv... " >&6; }
d0ac1c44 14105if ${am_cv_func_iconv+:} false; then :
81ecdfbb 14106 $as_echo_n "(cached) " >&6
5ba684e2
NC
14107else
14108
14109 am_cv_func_iconv="no, consider installing GNU libiconv"
14110 am_cv_lib_iconv=no
cfe101c6
YS
14111 am_save_CPPFLAGS="$CPPFLAGS"
14112 CPPFLAGS="$CPPFLAGS $INCICONV"
81ecdfbb 14113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5ba684e2
NC
14114/* end confdefs.h. */
14115#include <stdlib.h>
14116#include <iconv.h>
14117int
14118main ()
14119{
14120iconv_t cd = iconv_open("","");
14121 iconv(cd,NULL,NULL,NULL,NULL);
14122 iconv_close(cd);
14123 ;
14124 return 0;
14125}
14126_ACEOF
81ecdfbb 14127if ac_fn_c_try_link "$LINENO"; then :
5ba684e2 14128 am_cv_func_iconv=yes
5ba684e2 14129fi
81ecdfbb
RW
14130rm -f core conftest.err conftest.$ac_objext \
14131 conftest$ac_exeext conftest.$ac_ext
cfe101c6
YS
14132 CPPFLAGS="$am_save_CPPFLAGS"
14133
14134 if test "$am_cv_func_iconv" != yes && test -d ../libiconv; then
14135 for _libs in .libs _libs; do
14136 am_save_CPPFLAGS="$CPPFLAGS"
14137 am_save_LIBS="$LIBS"
14138 CPPFLAGS="$CPPFLAGS -I../libiconv/include"
14139 LIBS="$LIBS ../libiconv/lib/$_libs/libiconv.a"
14140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14141/* end confdefs.h. */
14142#include <stdlib.h>
14143#include <iconv.h>
14144int
14145main ()
14146{
14147iconv_t cd = iconv_open("","");
14148 iconv(cd,NULL,NULL,NULL,NULL);
14149 iconv_close(cd);
14150 ;
14151 return 0;
14152}
14153_ACEOF
14154if ac_fn_c_try_link "$LINENO"; then :
14155 INCICONV="-I../libiconv/include"
14156 LIBICONV='${top_builddir}'/../libiconv/lib/$_libs/libiconv.a
14157 LTLIBICONV='${top_builddir}'/../libiconv/lib/libiconv.la
14158 am_cv_lib_iconv=yes
14159 am_cv_func_iconv=yes
14160fi
14161rm -f core conftest.err conftest.$ac_objext \
14162 conftest$ac_exeext conftest.$ac_ext
14163 CPPFLAGS="$am_save_CPPFLAGS"
14164 LIBS="$am_save_LIBS"
14165 if test "$am_cv_func_iconv" = "yes"; then
14166 break
14167 fi
14168 done
14169 fi
14170
5ba684e2 14171 if test "$am_cv_func_iconv" != yes; then
cfe101c6 14172 am_save_CPPFLAGS="$CPPFLAGS"
5ba684e2 14173 am_save_LIBS="$LIBS"
5d762de0 14174 CPPFLAGS="$CPPFLAGS $INCICONV"
5ba684e2 14175 LIBS="$LIBS $LIBICONV"
81ecdfbb 14176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5ba684e2
NC
14177/* end confdefs.h. */
14178#include <stdlib.h>
14179#include <iconv.h>
14180int
14181main ()
14182{
14183iconv_t cd = iconv_open("","");
14184 iconv(cd,NULL,NULL,NULL,NULL);
14185 iconv_close(cd);
14186 ;
14187 return 0;
14188}
14189_ACEOF
81ecdfbb 14190if ac_fn_c_try_link "$LINENO"; then :
5ba684e2
NC
14191 am_cv_lib_iconv=yes
14192 am_cv_func_iconv=yes
5ba684e2 14193fi
81ecdfbb
RW
14194rm -f core conftest.err conftest.$ac_objext \
14195 conftest$ac_exeext conftest.$ac_ext
cfe101c6 14196 CPPFLAGS="$am_save_CPPFLAGS"
5ba684e2
NC
14197 LIBS="$am_save_LIBS"
14198 fi
14199
14200fi
81ecdfbb
RW
14201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
14202$as_echo "$am_cv_func_iconv" >&6; }
5ba684e2
NC
14203 if test "$am_cv_func_iconv" = yes; then
14204
81ecdfbb 14205$as_echo "#define HAVE_ICONV 1" >>confdefs.h
5ba684e2
NC
14206
14207 fi
14208 if test "$am_cv_lib_iconv" = yes; then
cfe101c6
YS
14209
14210 for element in $INCICONV; do
14211 haveit=
14212 for x in $CPPFLAGS; do
14213
14214 acl_save_prefix="$prefix"
14215 prefix="$acl_final_prefix"
14216 acl_save_exec_prefix="$exec_prefix"
14217 exec_prefix="$acl_final_exec_prefix"
14218 eval x=\"$x\"
14219 exec_prefix="$acl_save_exec_prefix"
14220 prefix="$acl_save_prefix"
14221
14222 if test "X$x" = "X$element"; then
14223 haveit=yes
14224 break
14225 fi
14226 done
14227 if test -z "$haveit"; then
14228 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
14229 fi
14230 done
14231
81ecdfbb
RW
14232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
14233$as_echo_n "checking how to link with libiconv... " >&6; }
14234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
14235$as_echo "$LIBICONV" >&6; }
5ba684e2 14236 else
5ba684e2
NC
14237 LIBICONV=
14238 LTLIBICONV=
14239 fi
14240
14241
14242
14243 if test "$am_cv_func_iconv" = yes; then
81ecdfbb
RW
14244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
14245$as_echo_n "checking for iconv declaration... " >&6; }
d0ac1c44 14246 if ${am_cv_proto_iconv+:} false; then :
81ecdfbb 14247 $as_echo_n "(cached) " >&6
5ba684e2
NC
14248else
14249
81ecdfbb 14250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5ba684e2
NC
14251/* end confdefs.h. */
14252
14253#include <stdlib.h>
14254#include <iconv.h>
14255extern
14256#ifdef __cplusplus
14257"C"
14258#endif
14259#if defined(__STDC__) || defined(__cplusplus)
14260size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
14261#else
14262size_t iconv();
14263#endif
14264
14265int
14266main ()
14267{
14268
14269 ;
14270 return 0;
14271}
14272_ACEOF
81ecdfbb 14273if ac_fn_c_try_compile "$LINENO"; then :
5ba684e2
NC
14274 am_cv_proto_iconv_arg1=""
14275else
81ecdfbb 14276 am_cv_proto_iconv_arg1="const"
5ba684e2 14277fi
81ecdfbb 14278rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5ba684e2
NC
14279 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
14280fi
14281
14282 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
81ecdfbb 14283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
5ba684e2 14284 }$am_cv_proto_iconv" >&5
81ecdfbb
RW
14285$as_echo "${ac_t:-
14286 }$am_cv_proto_iconv" >&6; }
5ba684e2
NC
14287
14288cat >>confdefs.h <<_ACEOF
14289#define ICONV_CONST $am_cv_proto_iconv_arg1
14290_ACEOF
14291
14292 fi
14293
14294
252b5132 14295all_targets=false
252b5132
RH
14296BUILD_SRCONV=
14297BUILD_DLLTOOL=
14298DLLTOOL_DEFS=
7aad4c3d 14299DLLTOOL_DEFAULT=
252b5132 14300BUILD_WINDRES=
692ed3e7 14301BUILD_WINDMC=
252b5132
RH
14302BUILD_DLLWRAP=
14303BUILD_MISC=
1d97d67f 14304BUILD_INSTALL_MISC=
8b1e6df3 14305OBJDUMP_DEFS=
6abcee90
TG
14306OBJDUMP_PRIVATE_VECTORS=
14307OBJDUMP_PRIVATE_OFILES=
14308od_vectors=
252b5132
RH
14309
14310for targ in $target $canon_targets
14311do
14312 if test "x$targ" = "xall"; then
14313 all_targets=true
252b5132 14314 BUILD_SRCONV='$(SRCONV_PROG)'
1d97d67f 14315 BUILD_MISC="${BUILD_MISC} "'bin2c$(EXEEXT_FOR_BUILD)'
003bc0ba
NC
14316 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
14317 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
14318 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
14319 if test -z "$DLLTOOL_DEFAULT"; then
14320 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_I386"
14321 fi
14322 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
14323 BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
1ab52cbe 14324 od_vectors="$od_vectors objdump_private_desc_xcoff"
252b5132 14325 else
252b5132
RH
14326 case $targ in
14327 *-*-hms*) BUILD_SRCONV='$(SRCONV_PROG)' ;;
14328 esac
6abcee90 14329
252b5132 14330 case $targ in
361dff73 14331 arm-wince-pe* | arm-*-wince | arm*-*-cegcc* | arm*-*-mingw32ce*)
7148cc28 14332 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
14333 if test -z "$DLLTOOL_DEFAULT"; then
14334 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM_WINCE"
14335 fi
7148cc28
NC
14336 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM_WINCE -DDLLTOOL_ARM"
14337 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
692ed3e7 14338 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
7148cc28
NC
14339 ;;
14340 arm-*-pe*)
252b5132 14341 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
14342 if test -z "$DLLTOOL_DEFAULT"; then
14343 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM"
14344 fi
252b5132
RH
14345 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM"
14346 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
692ed3e7 14347 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
7a7b06ef 14348 ;;
ee36d918 14349 x86_64-*-mingw* | x86_64-*-cygwin*)
99ad8390 14350 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
14351 if test -z "$DLLTOOL_DEFAULT"; then
14352 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MX86_64"
14353 fi
99ad8390
NC
14354 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MX86_64"
14355 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
692ed3e7 14356 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
99ad8390
NC
14357 BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
14358 ;;
80c7c40a 14359 i[3-7]86-*-pe* | i[3-7]86-*-cygwin* | i[3-7]86-*-mingw32** | i[3-7]86-*-netbsdpe*)
252b5132 14360 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
14361 if test -z "$DLLTOOL_DEFAULT"; then
14362 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_I386"
14363 fi
252b5132
RH
14364 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
14365 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
692ed3e7 14366 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
252b5132 14367 BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
7a7b06ef 14368 ;;
80c7c40a 14369 i[3-7]86-*-interix)
7a7b06ef 14370 BUILD_DLLTOOL='$(DLLTOOL_PROG)'
7aad4c3d
L
14371 if test -z "$DLLTOOL_DEFAULT"; then
14372 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_I386"
14373 fi
7a7b06ef
ILT
14374 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
14375 ;;
f0660b73
NC
14376 powerpc*-aix5.[01])
14377 ;;
e5231592 14378 powerpc*-aix[5-9].*)
f0660b73
NC
14379 OBJDUMP_DEFS="-DAIX_WEAK_SUPPORT"
14380 ;;
59678365 14381 powerpc*-*-linux* | powerpc*-*-elf* | powerpc*-*-eabi*)
1ab52cbe
AM
14382 case "$BUILD_INSTALL_MISC" in
14383 *embedspu*) ;;
14384 *) BUILD_INSTALL_MISC="${BUILD_INSTALL_MISC} embedspu"
14385 esac
669a9a2a 14386 ;;
e1d5b1e7 14387 sh*-*-pe)
8a0e0f38 14388 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
14389 if test -z "$DLLTOOL_DEFAULT"; then
14390 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_SH"
14391 fi
8a0e0f38
NC
14392 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_SH"
14393 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
692ed3e7 14394 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
8a0e0f38 14395 ;;
cd14b966 14396 spu-*-*)
1d97d67f 14397 BUILD_MISC="${BUILD_MISC} "'bin2c$(EXEEXT_FOR_BUILD)'
cd14b966 14398 ;;
e1d5b1e7 14399 mips*-*-pe)
8a0e0f38 14400 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
14401 if test -z "$DLLTOOL_DEFAULT"; then
14402 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MIPS"
14403 fi
8a0e0f38
NC
14404 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MIPS"
14405 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
692ed3e7 14406 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
7a7b06ef 14407 ;;
27a710e5 14408 mcore-*-pe)
661016bb 14409 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
14410 if test -z "$DLLTOOL_DEFAULT"; then
14411 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MCORE"
14412 fi
661016bb
NC
14413 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MCORE"
14414 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
692ed3e7 14415 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
7a7b06ef 14416 ;;
27a710e5 14417 mcore-*-elf)
661016bb 14418 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
14419 if test -z "$DLLTOOL_DEFAULT"; then
14420 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MCORE_ELF"
14421 fi
661016bb 14422 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MCORE_ELF"
7a7b06ef 14423 ;;
15ab5209
DB
14424 mep-*)
14425 OBJDUMP_DEFS="-DSKIP_ZEROES=256 -DSKIP_ZEROES_AT_END=0"
14426 ;;
252b5132 14427 esac
6abcee90
TG
14428
14429 # Add objdump private vectors.
14430 case $targ in
6d0cfb9c
DC
14431 avr-*-*)
14432 od_vectors="$od_vectors objdump_private_desc_elf32_avr"
14433 ;;
52fe4420 14434 powerpc*-*-aix* | rs6000-*-aix*)
c5012cd8
TG
14435 od_vectors="$od_vectors objdump_private_desc_xcoff"
14436 ;;
14437 *-*-darwin*)
14438 od_vectors="$od_vectors objdump_private_desc_mach_o"
6abcee90
TG
14439 ;;
14440 esac
252b5132
RH
14441 fi
14442done
14443
6abcee90
TG
14444# Uniq objdump private vector, build objdump target ofiles.
14445od_files=
14446f=""
14447for i in $od_vectors ; do
14448 case " $f " in
14449 *" $i "*) ;;
14450 *)
14451 f="$f $i"
14452 OBJDUMP_PRIVATE_VECTORS="$OBJDUMP_PRIVATE_VECTORS &$i,"
14453 case $i in
6d0cfb9c
DC
14454 objdump_private_desc_elf32_avr)
14455 od_files="$od_files od-elf32_avr" ;;
6abcee90
TG
14456 objdump_private_desc_xcoff)
14457 od_files="$od_files od-xcoff" ;;
c5012cd8
TG
14458 objdump_private_desc_mach_o)
14459 od_files="$od_files od-macho" ;;
d0ac1c44 14460 *) as_fn_error $? "*** unknown private vector $i" "$LINENO" 5 ;;
6abcee90
TG
14461 esac
14462 ;;
14463 esac
14464done
14465
14466# Uniq objdump target ofiles
14467f=""
14468for i in $od_files ; do
14469 case " $f " in
14470 *" $i "*) ;;
14471 *)
14472 f="$f $i"
14473 OBJDUMP_PRIVATE_OFILES="$OBJDUMP_PRIVATE_OFILES $i.$objext"
14474 ;;
14475 esac
14476done
14477
7aad4c3d
L
14478DLLTOOL_DEFS="$DLLTOOL_DEFS $DLLTOOL_DEFAULT"
14479
42ecbf5e
DJ
14480if test "${with_windres+set}" = set; then
14481 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
14482fi
14483
692ed3e7
NC
14484if test "${with_windmc+set}" = set; then
14485 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
14486fi
14487
6abcee90
TG
14488OBJDUMP_DEFS="${OBJDUMP_DEFS} -DOBJDUMP_PRIVATE_VECTORS=\"${OBJDUMP_PRIVATE_VECTORS}\""
14489
14490
692ed3e7 14491
42ecbf5e
DJ
14492
14493
14494
14495
14496
14497
14498
14499
14500
14501
42ecbf5e
DJ
14502cat >>confdefs.h <<_ACEOF
14503#define TARGET "${target}"
14504_ACEOF
14505
14506
14507targ=$target
14508. $srcdir/../bfd/config.bfd
14509if test "x$targ_underscore" = "xyes"; then
14510 UNDERSCORE=1
14511else
14512 UNDERSCORE=0
14513fi
14514
14515cat >>confdefs.h <<_ACEOF
14516#define TARGET_PREPENDS_UNDERSCORE $UNDERSCORE
14517_ACEOF
14518
14519
14520# Emulation
52fbfb5d
AM
14521targ=$target
14522. ${srcdir}/configure.tgt
14523EMULATION=$targ_emul
14524EMULATION_VECTOR=$targ_emul_vector
42ecbf5e
DJ
14525
14526
14527
14528
108a6f8e
CD
14529# Required for html and install-html
14530
14531
14532
14533
31dd3154 14534
81ecdfbb 14535ac_config_files="$ac_config_files Makefile doc/Makefile po/Makefile.in:po/Make-in"
da594c4a 14536
42ecbf5e
DJ
14537cat >confcache <<\_ACEOF
14538# This file is a shell script that caches the results of configure
14539# tests run on this system so they can be shared between configure
14540# scripts and configure runs, see configure's option --config-cache.
14541# It is not useful on other systems. If it contains results you don't
14542# want to keep, you may remove or edit it.
14543#
14544# config.status only pays attention to the cache file if you give it
14545# the --recheck option to rerun configure.
14546#
14547# `ac_cv_env_foo' variables (set or unset) will be overridden when
14548# loading this file, other *unset* `ac_cv_foo' will be assigned the
14549# following values.
14550
14551_ACEOF
14552
14553# The following way of writing the cache mishandles newlines in values,
14554# but we know of no workaround that is simple, portable, and efficient.
81ecdfbb 14555# So, we kill variables containing newlines.
42ecbf5e
DJ
14556# Ultrix sh set writes to stderr and can't be redirected directly,
14557# and sets the high bit in the cache file unless we assign to the vars.
81ecdfbb
RW
14558(
14559 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14560 eval ac_val=\$$ac_var
14561 case $ac_val in #(
14562 *${as_nl}*)
14563 case $ac_var in #(
14564 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14565$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14566 esac
14567 case $ac_var in #(
14568 _ | IFS | as_nl) ;; #(
14569 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14570 *) { eval $ac_var=; unset $ac_var;} ;;
14571 esac ;;
14572 esac
14573 done
14574
42ecbf5e 14575 (set) 2>&1 |
81ecdfbb
RW
14576 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14577 *${as_nl}ac_space=\ *)
14578 # `set' does not quote correctly, so add quotes: double-quote
14579 # substitution turns \\\\ into \\, and sed turns \\ into \.
42ecbf5e
DJ
14580 sed -n \
14581 "s/'/'\\\\''/g;
14582 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
81ecdfbb 14583 ;; #(
42ecbf5e
DJ
14584 *)
14585 # `set' quotes correctly as required by POSIX, so do not add quotes.
81ecdfbb 14586 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
42ecbf5e 14587 ;;
81ecdfbb
RW
14588 esac |
14589 sort
14590) |
42ecbf5e 14591 sed '
81ecdfbb 14592 /^ac_cv_env_/b end
42ecbf5e 14593 t clear
81ecdfbb 14594 :clear
42ecbf5e
DJ
14595 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14596 t end
81ecdfbb
RW
14597 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14598 :end' >>confcache
14599if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14600 if test -w "$cache_file"; then
d0ac1c44 14601 if test "x$cache_file" != "x/dev/null"; then
81ecdfbb
RW
14602 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14603$as_echo "$as_me: updating cache $cache_file" >&6;}
d0ac1c44
SM
14604 if test ! -f "$cache_file" || test -h "$cache_file"; then
14605 cat confcache >"$cache_file"
14606 else
14607 case $cache_file in #(
14608 */* | ?:*)
14609 mv -f confcache "$cache_file"$$ &&
14610 mv -f "$cache_file"$$ "$cache_file" ;; #(
14611 *)
14612 mv -f confcache "$cache_file" ;;
14613 esac
14614 fi
14615 fi
42ecbf5e 14616 else
81ecdfbb
RW
14617 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14618$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
42ecbf5e
DJ
14619 fi
14620fi
14621rm -f confcache
14622
14623test "x$prefix" = xNONE && prefix=$ac_default_prefix
14624# Let make expand exec_prefix.
14625test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14626
42ecbf5e
DJ
14627DEFS=-DHAVE_CONFIG_H
14628
14629ac_libobjs=
14630ac_ltlibobjs=
d0ac1c44 14631U=
42ecbf5e
DJ
14632for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14633 # 1. Remove the extension, and $U if already installed.
81ecdfbb
RW
14634 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14635 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14636 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14637 # will be set to the directory where LIBOBJS objects are built.
14638 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14639 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
42ecbf5e
DJ
14640done
14641LIBOBJS=$ac_libobjs
14642
14643LTLIBOBJS=$ac_ltlibobjs
14644
14645
d0ac1c44
SM
14646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
14647$as_echo_n "checking that generated files are newer than configure... " >&6; }
14648 if test -n "$am_sleep_pid"; then
14649 # Hide warnings about reused PIDs.
14650 wait $am_sleep_pid 2>/dev/null
14651 fi
14652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
14653$as_echo "done" >&6; }
81ecdfbb
RW
14654 if test -n "$EXEEXT"; then
14655 am__EXEEXT_TRUE=
14656 am__EXEEXT_FALSE='#'
14657else
14658 am__EXEEXT_TRUE='#'
14659 am__EXEEXT_FALSE=
42ecbf5e 14660fi
81ecdfbb 14661
87b9f255
AM
14662if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14663 as_fn_error $? "conditional \"AMDEP\" was never defined.
14664Usually this means the macro was only invoked conditionally." "$LINENO" 5
14665fi
14666if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14667 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14668Usually this means the macro was only invoked conditionally." "$LINENO" 5
14669fi
094e34f2
NA
14670if test -z "${ENABLE_LIBCTF_TRUE}" && test -z "${ENABLE_LIBCTF_FALSE}"; then
14671 as_fn_error $? "conditional \"ENABLE_LIBCTF\" was never defined.
14672Usually this means the macro was only invoked conditionally." "$LINENO" 5
14673fi
42ecbf5e 14674if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
d0ac1c44 14675 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
81ecdfbb 14676Usually this means the macro was only invoked conditionally." "$LINENO" 5
42ecbf5e 14677fi
d5fbea21 14678if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
d0ac1c44 14679 as_fn_error $? "conditional \"GENINSRC_NEVER\" was never defined.
81ecdfbb 14680Usually this means the macro was only invoked conditionally." "$LINENO" 5
d5fbea21 14681fi
42ecbf5e 14682
d0ac1c44 14683: "${CONFIG_STATUS=./config.status}"
81ecdfbb 14684ac_write_fail=0
42ecbf5e
DJ
14685ac_clean_files_save=$ac_clean_files
14686ac_clean_files="$ac_clean_files $CONFIG_STATUS"
81ecdfbb
RW
14687{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14688$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14689as_write_fail=0
14690cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
42ecbf5e
DJ
14691#! $SHELL
14692# Generated by $as_me.
14693# Run this file to recreate the current configuration.
14694# Compiler output produced by configure, useful for debugging
14695# configure, is in config.log if it exists.
14696
14697debug=false
14698ac_cs_recheck=false
14699ac_cs_silent=false
252b5132 14700
81ecdfbb
RW
14701SHELL=\${CONFIG_SHELL-$SHELL}
14702export SHELL
14703_ASEOF
14704cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14705## -------------------- ##
14706## M4sh Initialization. ##
14707## -------------------- ##
252b5132 14708
81ecdfbb
RW
14709# Be more Bourne compatible
14710DUALCASE=1; export DUALCASE # for MKS sh
14711if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
42ecbf5e
DJ
14712 emulate sh
14713 NULLCMD=:
81ecdfbb 14714 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
42ecbf5e
DJ
14715 # is contrary to our usage. Disable this feature.
14716 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
14717 setopt NO_GLOB_SUBST
14718else
14719 case `(set -o) 2>/dev/null` in #(
14720 *posix*) :
14721 set -o posix ;; #(
14722 *) :
14723 ;;
14724esac
42ecbf5e 14725fi
252b5132 14726
81ecdfbb
RW
14727
14728as_nl='
14729'
14730export as_nl
14731# Printing a long string crashes Solaris 7 /usr/bin/printf.
14732as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14733as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14734as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14735# Prefer a ksh shell builtin over an external printf program on Solaris,
14736# but without wasting forks for bash or zsh.
14737if test -z "$BASH_VERSION$ZSH_VERSION" \
14738 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14739 as_echo='print -r --'
14740 as_echo_n='print -rn --'
14741elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14742 as_echo='printf %s\n'
14743 as_echo_n='printf %s'
14744else
14745 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14746 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14747 as_echo_n='/usr/ucb/echo -n'
14748 else
14749 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14750 as_echo_n_body='eval
14751 arg=$1;
14752 case $arg in #(
14753 *"$as_nl"*)
14754 expr "X$arg" : "X\\(.*\\)$as_nl";
14755 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14756 esac;
14757 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14758 '
14759 export as_echo_n_body
14760 as_echo_n='sh -c $as_echo_n_body as_echo'
14761 fi
14762 export as_echo_body
14763 as_echo='sh -c $as_echo_body as_echo'
14764fi
14765
14766# The user is always right.
14767if test "${PATH_SEPARATOR+set}" != set; then
14768 PATH_SEPARATOR=:
14769 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14770 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14771 PATH_SEPARATOR=';'
14772 }
42ecbf5e 14773fi
252b5132
RH
14774
14775
81ecdfbb
RW
14776# IFS
14777# We need space, tab and new line, in precisely that order. Quoting is
14778# there to prevent editors from complaining about space-tab.
14779# (If _AS_PATH_WALK were called with IFS unset, it would disable word
14780# splitting by setting IFS to empty value.)
14781IFS=" "" $as_nl"
14782
14783# Find who we are. Look in the path if we contain no directory separator.
d0ac1c44 14784as_myself=
81ecdfbb
RW
14785case $0 in #((
14786 *[\\/]* ) as_myself=$0 ;;
14787 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14788for as_dir in $PATH
14789do
14790 IFS=$as_save_IFS
14791 test -z "$as_dir" && as_dir=.
14792 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14793 done
14794IFS=$as_save_IFS
14795
14796 ;;
14797esac
14798# We did not find ourselves, most probably we were run as `sh COMMAND'
14799# in which case we are not to be found in the path.
14800if test "x$as_myself" = x; then
14801 as_myself=$0
14802fi
14803if test ! -f "$as_myself"; then
14804 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14805 exit 1
14806fi
14807
14808# Unset variables that we do not need and which cause bugs (e.g. in
14809# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14810# suppresses any "Segmentation fault" message there. '((' could
14811# trigger a bug in pdksh 5.2.14.
14812for as_var in BASH_ENV ENV MAIL MAILPATH
14813do eval test x\${$as_var+set} = xset \
14814 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14815done
42ecbf5e
DJ
14816PS1='$ '
14817PS2='> '
14818PS4='+ '
252b5132 14819
42ecbf5e 14820# NLS nuisances.
81ecdfbb
RW
14821LC_ALL=C
14822export LC_ALL
14823LANGUAGE=C
14824export LANGUAGE
14825
14826# CDPATH.
14827(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14828
14829
d0ac1c44
SM
14830# as_fn_error STATUS ERROR [LINENO LOG_FD]
14831# ----------------------------------------
81ecdfbb
RW
14832# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14833# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
d0ac1c44 14834# script with STATUS, using 1 if that was 0.
81ecdfbb
RW
14835as_fn_error ()
14836{
d0ac1c44
SM
14837 as_status=$1; test $as_status -eq 0 && as_status=1
14838 if test "$4"; then
14839 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14840 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
42ecbf5e 14841 fi
d0ac1c44 14842 $as_echo "$as_me: error: $2" >&2
81ecdfbb
RW
14843 as_fn_exit $as_status
14844} # as_fn_error
14845
14846
14847# as_fn_set_status STATUS
14848# -----------------------
14849# Set $? to STATUS, without forking.
14850as_fn_set_status ()
14851{
14852 return $1
14853} # as_fn_set_status
14854
14855# as_fn_exit STATUS
14856# -----------------
14857# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14858as_fn_exit ()
14859{
14860 set +e
14861 as_fn_set_status $1
14862 exit $1
14863} # as_fn_exit
14864
14865# as_fn_unset VAR
14866# ---------------
14867# Portably unset VAR.
14868as_fn_unset ()
14869{
14870 { eval $1=; unset $1;}
14871}
14872as_unset=as_fn_unset
14873# as_fn_append VAR VALUE
14874# ----------------------
14875# Append the text in VALUE to the end of the definition contained in VAR. Take
14876# advantage of any shell optimizations that allow amortized linear growth over
14877# repeated appends, instead of the typical quadratic growth present in naive
14878# implementations.
14879if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14880 eval 'as_fn_append ()
14881 {
14882 eval $1+=\$2
14883 }'
14884else
14885 as_fn_append ()
14886 {
14887 eval $1=\$$1\$2
14888 }
14889fi # as_fn_append
14890
14891# as_fn_arith ARG...
14892# ------------------
14893# Perform arithmetic evaluation on the ARGs, and store the result in the
14894# global $as_val. Take advantage of shells that can avoid forks. The arguments
14895# must be portable across $(()) and expr.
14896if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14897 eval 'as_fn_arith ()
14898 {
14899 as_val=$(( $* ))
14900 }'
14901else
14902 as_fn_arith ()
14903 {
14904 as_val=`expr "$@" || test $? -eq 1`
14905 }
14906fi # as_fn_arith
14907
252b5132 14908
81ecdfbb
RW
14909if expr a : '\(a\)' >/dev/null 2>&1 &&
14910 test "X`expr 00001 : '.*\(...\)'`" = X001; then
42ecbf5e
DJ
14911 as_expr=expr
14912else
14913 as_expr=false
14914fi
252b5132 14915
81ecdfbb 14916if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
42ecbf5e
DJ
14917 as_basename=basename
14918else
14919 as_basename=false
14920fi
252b5132 14921
81ecdfbb
RW
14922if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14923 as_dirname=dirname
14924else
14925 as_dirname=false
14926fi
8b1e6df3 14927
81ecdfbb 14928as_me=`$as_basename -- "$0" ||
42ecbf5e
DJ
14929$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14930 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
14931 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14932$as_echo X/"$0" |
14933 sed '/^.*\/\([^/][^/]*\)\/*$/{
14934 s//\1/
14935 q
14936 }
14937 /^X\/\(\/\/\)$/{
14938 s//\1/
14939 q
14940 }
14941 /^X\/\(\/\).*/{
14942 s//\1/
14943 q
14944 }
14945 s/.*/./; q'`
0218d1e4 14946
42ecbf5e
DJ
14947# Avoid depending upon Character Ranges.
14948as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14949as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14950as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14951as_cr_digits='0123456789'
14952as_cr_alnum=$as_cr_Letters$as_cr_digits
252b5132 14953
81ecdfbb
RW
14954ECHO_C= ECHO_N= ECHO_T=
14955case `echo -n x` in #(((((
14956-n*)
14957 case `echo 'xy\c'` in
14958 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14959 xy) ECHO_C='\c';;
14960 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14961 ECHO_T=' ';;
14962 esac;;
14963*)
14964 ECHO_N='-n';;
42ecbf5e 14965esac
eb1e0e80 14966
81ecdfbb
RW
14967rm -f conf$$ conf$$.exe conf$$.file
14968if test -d conf$$.dir; then
14969 rm -f conf$$.dir/conf$$.file
d15b04bd 14970else
81ecdfbb
RW
14971 rm -f conf$$.dir
14972 mkdir conf$$.dir 2>/dev/null
42ecbf5e 14973fi
81ecdfbb
RW
14974if (echo >conf$$.file) 2>/dev/null; then
14975 if ln -s conf$$.file conf$$ 2>/dev/null; then
42ecbf5e 14976 as_ln_s='ln -s'
81ecdfbb
RW
14977 # ... but there are two gotchas:
14978 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14979 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
d0ac1c44 14980 # In both cases, we have to default to `cp -pR'.
81ecdfbb 14981 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
d0ac1c44 14982 as_ln_s='cp -pR'
81ecdfbb
RW
14983 elif ln conf$$.file conf$$ 2>/dev/null; then
14984 as_ln_s=ln
14985 else
d0ac1c44 14986 as_ln_s='cp -pR'
252b5132 14987 fi
42ecbf5e 14988else
d0ac1c44 14989 as_ln_s='cp -pR'
252b5132 14990fi
81ecdfbb
RW
14991rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14992rmdir conf$$.dir 2>/dev/null
14993
14994
14995# as_fn_mkdir_p
14996# -------------
14997# Create "$as_dir" as a directory, including parents if necessary.
14998as_fn_mkdir_p ()
14999{
15000
15001 case $as_dir in #(
15002 -*) as_dir=./$as_dir;;
15003 esac
15004 test -d "$as_dir" || eval $as_mkdir_p || {
15005 as_dirs=
15006 while :; do
15007 case $as_dir in #(
15008 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15009 *) as_qdir=$as_dir;;
15010 esac
15011 as_dirs="'$as_qdir' $as_dirs"
15012 as_dir=`$as_dirname -- "$as_dir" ||
15013$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15014 X"$as_dir" : 'X\(//\)[^/]' \| \
15015 X"$as_dir" : 'X\(//\)$' \| \
15016 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15017$as_echo X"$as_dir" |
15018 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15019 s//\1/
15020 q
15021 }
15022 /^X\(\/\/\)[^/].*/{
15023 s//\1/
15024 q
15025 }
15026 /^X\(\/\/\)$/{
15027 s//\1/
15028 q
15029 }
15030 /^X\(\/\).*/{
15031 s//\1/
15032 q
15033 }
15034 s/.*/./; q'`
15035 test -d "$as_dir" && break
15036 done
15037 test -z "$as_dirs" || eval "mkdir $as_dirs"
d0ac1c44 15038 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
81ecdfbb 15039
252b5132 15040
81ecdfbb 15041} # as_fn_mkdir_p
42ecbf5e 15042if mkdir -p . 2>/dev/null; then
81ecdfbb 15043 as_mkdir_p='mkdir -p "$as_dir"'
42ecbf5e
DJ
15044else
15045 test -d ./-p && rmdir ./-p
15046 as_mkdir_p=false
15047fi
81ecdfbb 15048
d0ac1c44
SM
15049
15050# as_fn_executable_p FILE
15051# -----------------------
15052# Test if FILE is an executable regular file.
15053as_fn_executable_p ()
15054{
15055 test -f "$1" && test -x "$1"
15056} # as_fn_executable_p
15057as_test_x='test -x'
15058as_executable_p=as_fn_executable_p
252b5132 15059
42ecbf5e
DJ
15060# Sed expression to map a string onto a valid CPP name.
15061as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15062
15063# Sed expression to map a string onto a valid variable name.
15064as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15065
15066
42ecbf5e 15067exec 6>&1
81ecdfbb
RW
15068## ----------------------------------- ##
15069## Main body of $CONFIG_STATUS script. ##
15070## ----------------------------------- ##
15071_ASEOF
15072test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
42ecbf5e 15073
81ecdfbb
RW
15074cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15075# Save the log message, to keep $0 and so on meaningful, and to
42ecbf5e 15076# report actual input values of CONFIG_FILES etc. instead of their
81ecdfbb
RW
15077# values after options handling.
15078ac_log="
573fe3fb 15079This file was extended by binutils $as_me 2.36.50, which was
d0ac1c44 15080generated by GNU Autoconf 2.69. Invocation command line was
42ecbf5e
DJ
15081
15082 CONFIG_FILES = $CONFIG_FILES
15083 CONFIG_HEADERS = $CONFIG_HEADERS
15084 CONFIG_LINKS = $CONFIG_LINKS
15085 CONFIG_COMMANDS = $CONFIG_COMMANDS
15086 $ $0 $@
15087
81ecdfbb
RW
15088on `(hostname || uname -n) 2>/dev/null | sed 1q`
15089"
15090
42ecbf5e
DJ
15091_ACEOF
15092
81ecdfbb
RW
15093case $ac_config_files in *"
15094"*) set x $ac_config_files; shift; ac_config_files=$*;;
15095esac
252b5132 15096
81ecdfbb
RW
15097case $ac_config_headers in *"
15098"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15099esac
e5a52504
MM
15100
15101
81ecdfbb
RW
15102cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15103# Files that config.status was made for.
15104config_files="$ac_config_files"
15105config_headers="$ac_config_headers"
15106config_commands="$ac_config_commands"
d15b04bd 15107
81ecdfbb 15108_ACEOF
42ecbf5e 15109
81ecdfbb 15110cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42ecbf5e 15111ac_cs_usage="\
81ecdfbb
RW
15112\`$as_me' instantiates files and other configuration actions
15113from templates according to the current configuration. Unless the files
15114and actions are specified as TAGs, all are instantiated by default.
42ecbf5e 15115
81ecdfbb 15116Usage: $0 [OPTION]... [TAG]...
42ecbf5e
DJ
15117
15118 -h, --help print this help, then exit
81ecdfbb 15119 -V, --version print version number and configuration settings, then exit
d0ac1c44 15120 --config print configuration, then exit
81ecdfbb
RW
15121 -q, --quiet, --silent
15122 do not print progress messages
42ecbf5e
DJ
15123 -d, --debug don't remove temporary files
15124 --recheck update $as_me by reconfiguring in the same conditions
81ecdfbb
RW
15125 --file=FILE[:TEMPLATE]
15126 instantiate the configuration file FILE
15127 --header=FILE[:TEMPLATE]
15128 instantiate the configuration header FILE
42ecbf5e
DJ
15129
15130Configuration files:
15131$config_files
15132
15133Configuration headers:
15134$config_headers
15135
15136Configuration commands:
15137$config_commands
15138
81ecdfbb 15139Report bugs to the package provider."
42ecbf5e 15140
81ecdfbb
RW
15141_ACEOF
15142cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
d0ac1c44 15143ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
42ecbf5e 15144ac_cs_version="\\
573fe3fb 15145binutils config.status 2.36.50
d0ac1c44
SM
15146configured by $0, generated by GNU Autoconf 2.69,
15147 with options \\"\$ac_cs_config\\"
42ecbf5e 15148
d0ac1c44 15149Copyright (C) 2012 Free Software Foundation, Inc.
42ecbf5e
DJ
15150This config.status script is free software; the Free Software Foundation
15151gives unlimited permission to copy, distribute and modify it."
81ecdfbb
RW
15152
15153ac_pwd='$ac_pwd'
15154srcdir='$srcdir'
15155INSTALL='$INSTALL'
15156MKDIR_P='$MKDIR_P'
15157AWK='$AWK'
15158test -n "\$AWK" || AWK=awk
42ecbf5e
DJ
15159_ACEOF
15160
81ecdfbb
RW
15161cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15162# The default lists apply if the user does not specify any file.
42ecbf5e
DJ
15163ac_need_defaults=:
15164while test $# != 0
15165do
15166 case $1 in
d0ac1c44 15167 --*=?*)
81ecdfbb
RW
15168 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15169 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
42ecbf5e
DJ
15170 ac_shift=:
15171 ;;
d0ac1c44
SM
15172 --*=)
15173 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15174 ac_optarg=
15175 ac_shift=:
15176 ;;
81ecdfbb 15177 *)
42ecbf5e
DJ
15178 ac_option=$1
15179 ac_optarg=$2
15180 ac_shift=shift
15181 ;;
42ecbf5e
DJ
15182 esac
15183
15184 case $ac_option in
15185 # Handling of the options.
42ecbf5e
DJ
15186 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15187 ac_cs_recheck=: ;;
81ecdfbb
RW
15188 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15189 $as_echo "$ac_cs_version"; exit ;;
d0ac1c44
SM
15190 --config | --confi | --conf | --con | --co | --c )
15191 $as_echo "$ac_cs_config"; exit ;;
81ecdfbb 15192 --debug | --debu | --deb | --de | --d | -d )
42ecbf5e
DJ
15193 debug=: ;;
15194 --file | --fil | --fi | --f )
15195 $ac_shift
81ecdfbb
RW
15196 case $ac_optarg in
15197 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
d0ac1c44 15198 '') as_fn_error $? "missing file argument" ;;
81ecdfbb
RW
15199 esac
15200 as_fn_append CONFIG_FILES " '$ac_optarg'"
42ecbf5e
DJ
15201 ac_need_defaults=false;;
15202 --header | --heade | --head | --hea )
15203 $ac_shift
81ecdfbb
RW
15204 case $ac_optarg in
15205 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15206 esac
15207 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
42ecbf5e 15208 ac_need_defaults=false;;
81ecdfbb
RW
15209 --he | --h)
15210 # Conflict between --help and --header
d0ac1c44 15211 as_fn_error $? "ambiguous option: \`$1'
81ecdfbb
RW
15212Try \`$0 --help' for more information.";;
15213 --help | --hel | -h )
15214 $as_echo "$ac_cs_usage"; exit ;;
42ecbf5e
DJ
15215 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15216 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15217 ac_cs_silent=: ;;
15218
15219 # This is an error.
d0ac1c44 15220 -*) as_fn_error $? "unrecognized option: \`$1'
81ecdfbb 15221Try \`$0 --help' for more information." ;;
42ecbf5e 15222
81ecdfbb
RW
15223 *) as_fn_append ac_config_targets " $1"
15224 ac_need_defaults=false ;;
42ecbf5e
DJ
15225
15226 esac
15227 shift
15228done
15229
15230ac_configure_extra_args=
15231
15232if $ac_cs_silent; then
15233 exec 6>/dev/null
15234 ac_configure_extra_args="$ac_configure_extra_args --silent"
15235fi
15236
15237_ACEOF
81ecdfbb 15238cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42ecbf5e 15239if \$ac_cs_recheck; then
d0ac1c44 15240 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
81ecdfbb
RW
15241 shift
15242 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15243 CONFIG_SHELL='$SHELL'
15244 export CONFIG_SHELL
15245 exec "\$@"
42ecbf5e
DJ
15246fi
15247
15248_ACEOF
81ecdfbb
RW
15249cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15250exec 5>>config.log
15251{
15252 echo
15253 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15254## Running $as_me. ##
15255_ASBOX
15256 $as_echo "$ac_log"
15257} >&5
42ecbf5e 15258
81ecdfbb
RW
15259_ACEOF
15260cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
d15b04bd 15261#
81ecdfbb 15262# INIT-COMMANDS
d15b04bd 15263#
42ecbf5e 15264AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
d7040cdb
SE
15265
15266
15267# The HP-UX ksh and POSIX shell print the target directory to stdout
15268# if CDPATH is set.
15269(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15270
15271sed_quote_subst='$sed_quote_subst'
15272double_quote_subst='$double_quote_subst'
15273delay_variable_subst='$delay_variable_subst'
3725885a
RW
15274macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15275macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15276enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15277enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15278pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15279enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15280SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15281ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15282host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15283host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15284host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15285build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15286build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15287build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15288SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15289Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15290GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15291EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15292FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15293LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15294NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15295LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15296max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15297ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15298exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15299lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15300lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15301lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15302reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15303reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15304OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15305deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15306file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15307AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15308AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15309STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15310RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15311old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15312old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15313old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15314lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15315CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15316CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15317compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15318GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15319lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15320lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15321lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15322lt_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"`'
15323objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15324MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15325lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
df7b86aa 15326lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
f2c621e4 15327lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
3725885a
RW
15328lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15329lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15330need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15331DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15332NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15333LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15334OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15335OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15336libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15337shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15338extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15339archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15340enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15341export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15342whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15343compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15344old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15345old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15346archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15347archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15348module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15349module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15350with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15351allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15352no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15353hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15354hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
15355hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15356hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15357hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15358hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15359hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15360hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15361inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15362link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
f2c621e4 15363fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
3725885a
RW
15364always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15365export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15366exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15367include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15368prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15369file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15370variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15371need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15372need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15373version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15374runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15375shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15376shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15377libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15378library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15379soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15380install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15381postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15382postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15383finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15384finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15385hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15386sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15387sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15388hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15389enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15390enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15391enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15392old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15393striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
d7040cdb
SE
15394
15395LTCC='$LTCC'
15396LTCFLAGS='$LTCFLAGS'
15397compiler='$compiler_DEFAULT'
15398
3725885a
RW
15399# A function that is used when there is no print builtin or printf.
15400func_fallback_echo ()
15401{
15402 eval 'cat <<_LTECHO_EOF
15403\$1
15404_LTECHO_EOF'
15405}
15406
d7040cdb 15407# Quote evaled strings.
3725885a
RW
15408for var in SHELL \
15409ECHO \
15410SED \
d7040cdb
SE
15411GREP \
15412EGREP \
15413FGREP \
15414LD \
15415NM \
15416LN_S \
15417lt_SP2NL \
15418lt_NL2SP \
15419reload_flag \
718a6fd8 15420OBJDUMP \
d7040cdb
SE
15421deplibs_check_method \
15422file_magic_cmd \
15423AR \
15424AR_FLAGS \
15425STRIP \
15426RANLIB \
15427CC \
15428CFLAGS \
15429compiler \
15430lt_cv_sys_global_symbol_pipe \
15431lt_cv_sys_global_symbol_to_cdecl \
15432lt_cv_sys_global_symbol_to_c_name_address \
718a6fd8 15433lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
d7040cdb 15434lt_prog_compiler_no_builtin_flag \
df7b86aa 15435lt_prog_compiler_wl \
f2c621e4 15436lt_prog_compiler_pic \
d7040cdb
SE
15437lt_prog_compiler_static \
15438lt_cv_prog_compiler_c_o \
15439need_locks \
718a6fd8
SE
15440DSYMUTIL \
15441NMEDIT \
15442LIPO \
15443OTOOL \
15444OTOOL64 \
d7040cdb
SE
15445shrext_cmds \
15446export_dynamic_flag_spec \
15447whole_archive_flag_spec \
15448compiler_needs_object \
15449with_gnu_ld \
15450allow_undefined_flag \
15451no_undefined_flag \
15452hardcode_libdir_flag_spec \
15453hardcode_libdir_flag_spec_ld \
15454hardcode_libdir_separator \
f2c621e4 15455fix_srcfile_path \
d7040cdb
SE
15456exclude_expsyms \
15457include_expsyms \
15458file_list_spec \
15459variables_saved_for_relink \
15460libname_spec \
15461library_names_spec \
15462soname_spec \
3725885a 15463install_override_mode \
d7040cdb
SE
15464finish_eval \
15465old_striplib \
15466striplib; do
3725885a 15467 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
d7040cdb 15468 *[\\\\\\\`\\"\\\$]*)
3725885a 15469 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
d7040cdb
SE
15470 ;;
15471 *)
15472 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15473 ;;
15474 esac
15475done
15476
15477# Double-quote double-evaled strings.
15478for var in reload_cmds \
15479old_postinstall_cmds \
15480old_postuninstall_cmds \
15481old_archive_cmds \
15482extract_expsyms_cmds \
15483old_archive_from_new_cmds \
15484old_archive_from_expsyms_cmds \
15485archive_cmds \
15486archive_expsym_cmds \
15487module_cmds \
15488module_expsym_cmds \
15489export_symbols_cmds \
15490prelink_cmds \
15491postinstall_cmds \
15492postuninstall_cmds \
15493finish_cmds \
15494sys_lib_search_path_spec \
15495sys_lib_dlsearch_path_spec; do
3725885a 15496 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
d7040cdb 15497 *[\\\\\\\`\\"\\\$]*)
3725885a 15498 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
d7040cdb
SE
15499 ;;
15500 *)
15501 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15502 ;;
15503 esac
15504done
15505
d7040cdb
SE
15506ac_aux_dir='$ac_aux_dir'
15507xsi_shell='$xsi_shell'
15508lt_shell_append='$lt_shell_append'
15509
15510# See if we are running on zsh, and set the options which allow our
15511# commands through without removal of \ escapes INIT.
15512if test -n "\${ZSH_VERSION+set}" ; then
15513 setopt NO_GLOB_SUBST
15514fi
15515
15516
15517 PACKAGE='$PACKAGE'
15518 VERSION='$VERSION'
15519 TIMESTAMP='$TIMESTAMP'
15520 RM='$RM'
15521 ofile='$ofile'
15522
15523
15524
20e95c23
DJ
15525# Capture the value of obsolete ALL_LINGUAS because we need it to compute
15526 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
15527 # from automake.
15528 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
15529 # Capture the value of LINGUAS because we need it to compute CATALOGS.
15530 LINGUAS="${LINGUAS-%UNSET%}"
15531
42ecbf5e
DJ
15532
15533_ACEOF
15534
81ecdfbb 15535cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42ecbf5e 15536
81ecdfbb 15537# Handling of arguments.
42ecbf5e 15538for ac_config_target in $ac_config_targets
252b5132 15539do
81ecdfbb
RW
15540 case $ac_config_target in
15541 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15542 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15543 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
15544 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
15545 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15546 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
15547 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
15548
d0ac1c44 15549 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
d15b04bd 15550 esac
252b5132
RH
15551done
15552
81ecdfbb 15553
42ecbf5e
DJ
15554# If the user did not use the arguments to specify the items to instantiate,
15555# then the envvar interface is used. Set only those that are not.
15556# We use the long form for the default assignment because of an extremely
15557# bizarre bug on SunOS 4.1.3.
15558if $ac_need_defaults; then
15559 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15560 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15561 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15562fi
15563
15564# Have a temporary directory for convenience. Make it in the build tree
81ecdfbb 15565# simply because there is no reason against having it here, and in addition,
42ecbf5e 15566# creating and moving files from /tmp can sometimes cause problems.
81ecdfbb
RW
15567# Hook for its removal unless debugging.
15568# Note that there is a small window in which the directory will not be cleaned:
15569# after its creation but before its name has been assigned to `$tmp'.
42ecbf5e
DJ
15570$debug ||
15571{
d0ac1c44 15572 tmp= ac_tmp=
81ecdfbb 15573 trap 'exit_status=$?
d0ac1c44
SM
15574 : "${ac_tmp:=$tmp}"
15575 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
81ecdfbb
RW
15576' 0
15577 trap 'as_fn_exit 1' 1 2 13 15
42ecbf5e 15578}
42ecbf5e 15579# Create a (secure) tmp directory for tmp files.
e5a52504 15580
42ecbf5e 15581{
81ecdfbb 15582 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
d0ac1c44 15583 test -d "$tmp"
42ecbf5e
DJ
15584} ||
15585{
81ecdfbb
RW
15586 tmp=./conf$$-$RANDOM
15587 (umask 077 && mkdir "$tmp")
d0ac1c44
SM
15588} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15589ac_tmp=$tmp
81ecdfbb
RW
15590
15591# Set up the scripts for CONFIG_FILES section.
15592# No need to generate them if there are no CONFIG_FILES.
15593# This happens for instance with `./config.status config.h'.
15594if test -n "$CONFIG_FILES"; then
15595
15596
15597ac_cr=`echo X | tr X '\015'`
15598# On cygwin, bash can eat \r inside `` if the user requested igncr.
15599# But we know of no other shell where ac_cr would be empty at this
15600# point, so we can use a bashism as a fallback.
15601if test "x$ac_cr" = x; then
15602 eval ac_cr=\$\'\\r\'
15603fi
15604ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15605if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
d0ac1c44 15606 ac_cs_awk_cr='\\r'
81ecdfbb
RW
15607else
15608 ac_cs_awk_cr=$ac_cr
15609fi
15610
d0ac1c44 15611echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
81ecdfbb
RW
15612_ACEOF
15613
15614
15615{
15616 echo "cat >conf$$subs.awk <<_ACEOF" &&
15617 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15618 echo "_ACEOF"
15619} >conf$$subs.sh ||
d0ac1c44
SM
15620 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15621ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
81ecdfbb
RW
15622ac_delim='%!_!# '
15623for ac_last_try in false false false false false :; do
15624 . ./conf$$subs.sh ||
d0ac1c44 15625 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
81ecdfbb
RW
15626
15627 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15628 if test $ac_delim_n = $ac_delim_num; then
15629 break
15630 elif $ac_last_try; then
d0ac1c44 15631 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
81ecdfbb
RW
15632 else
15633 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15634 fi
15635done
15636rm -f conf$$subs.sh
15637
15638cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
d0ac1c44 15639cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
81ecdfbb
RW
15640_ACEOF
15641sed -n '
15642h
15643s/^/S["/; s/!.*/"]=/
15644p
15645g
15646s/^[^!]*!//
15647:repl
15648t repl
15649s/'"$ac_delim"'$//
15650t delim
15651:nl
15652h
d0ac1c44 15653s/\(.\{148\}\)..*/\1/
81ecdfbb
RW
15654t more1
15655s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15656p
15657n
15658b repl
15659:more1
15660s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15661p
15662g
15663s/.\{148\}//
15664t nl
15665:delim
15666h
d0ac1c44 15667s/\(.\{148\}\)..*/\1/
81ecdfbb
RW
15668t more2
15669s/["\\]/\\&/g; s/^/"/; s/$/"/
15670p
15671b
15672:more2
15673s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15674p
15675g
15676s/.\{148\}//
15677t delim
15678' <conf$$subs.awk | sed '
15679/^[^""]/{
15680 N
15681 s/\n//
15682}
15683' >>$CONFIG_STATUS || ac_write_fail=1
15684rm -f conf$$subs.awk
15685cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15686_ACAWK
d0ac1c44 15687cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
81ecdfbb
RW
15688 for (key in S) S_is_set[key] = 1
15689 FS = "\a"
15690
15691}
42ecbf5e 15692{
81ecdfbb
RW
15693 line = $ 0
15694 nfields = split(line, field, "@")
15695 substed = 0
15696 len = length(field[1])
15697 for (i = 2; i < nfields; i++) {
15698 key = field[i]
15699 keylen = length(key)
15700 if (S_is_set[key]) {
15701 value = S[key]
15702 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15703 len += length(value) + length(field[++i])
15704 substed = 1
15705 } else
15706 len += 1 + keylen
15707 }
15708
15709 print line
42ecbf5e
DJ
15710}
15711
81ecdfbb
RW
15712_ACAWK
15713_ACEOF
15714cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15715if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15716 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15717else
15718 cat
d0ac1c44
SM
15719fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15720 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
42ecbf5e
DJ
15721_ACEOF
15722
d0ac1c44
SM
15723# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15724# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
81ecdfbb
RW
15725# trailing colons and then remove the whole line if VPATH becomes empty
15726# (actually we leave an empty line to preserve line numbers).
15727if test "x$srcdir" = x.; then
d0ac1c44
SM
15728 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15729h
15730s///
15731s/^/:/
15732s/[ ]*$/:/
15733s/:\$(srcdir):/:/g
15734s/:\${srcdir}:/:/g
15735s/:@srcdir@:/:/g
15736s/^:*//
81ecdfbb 15737s/:*$//
d0ac1c44
SM
15738x
15739s/\(=[ ]*\).*/\1/
15740G
15741s/\n//
81ecdfbb
RW
15742s/^[^=]*=[ ]*$//
15743}'
15744fi
e5a52504 15745
81ecdfbb
RW
15746cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15747fi # test -n "$CONFIG_FILES"
252b5132 15748
81ecdfbb
RW
15749# Set up the scripts for CONFIG_HEADERS section.
15750# No need to generate them if there are no CONFIG_HEADERS.
15751# This happens for instance with `./config.status Makefile'.
15752if test -n "$CONFIG_HEADERS"; then
d0ac1c44 15753cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
81ecdfbb 15754BEGIN {
42ecbf5e
DJ
15755_ACEOF
15756
81ecdfbb
RW
15757# Transform confdefs.h into an awk script `defines.awk', embedded as
15758# here-document in config.status, that substitutes the proper values into
15759# config.h.in to produce config.h.
15760
15761# Create a delimiter string that does not exist in confdefs.h, to ease
15762# handling of long lines.
15763ac_delim='%!_!# '
15764for ac_last_try in false false :; do
d0ac1c44
SM
15765 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15766 if test -z "$ac_tt"; then
81ecdfbb
RW
15767 break
15768 elif $ac_last_try; then
d0ac1c44 15769 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
81ecdfbb
RW
15770 else
15771 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
252b5132 15772 fi
81ecdfbb 15773done
252b5132 15774
81ecdfbb
RW
15775# For the awk script, D is an array of macro values keyed by name,
15776# likewise P contains macro parameters if any. Preserve backslash
15777# newline sequences.
15778
15779ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15780sed -n '
15781s/.\{148\}/&'"$ac_delim"'/g
15782t rset
15783:rset
15784s/^[ ]*#[ ]*define[ ][ ]*/ /
15785t def
15786d
15787:def
15788s/\\$//
15789t bsnl
15790s/["\\]/\\&/g
15791s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15792D["\1"]=" \3"/p
15793s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15794d
15795:bsnl
15796s/["\\]/\\&/g
15797s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15798D["\1"]=" \3\\\\\\n"\\/p
15799t cont
15800s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15801t cont
15802d
15803:cont
15804n
15805s/.\{148\}/&'"$ac_delim"'/g
15806t clear
15807:clear
15808s/\\$//
15809t bsnlc
15810s/["\\]/\\&/g; s/^/"/; s/$/"/p
15811d
15812:bsnlc
15813s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15814b cont
15815' <confdefs.h | sed '
15816s/'"$ac_delim"'/"\\\
15817"/g' >>$CONFIG_STATUS || ac_write_fail=1
15818
15819cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15820 for (key in D) D_is_set[key] = 1
15821 FS = "\a"
15822}
15823/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15824 line = \$ 0
15825 split(line, arg, " ")
15826 if (arg[1] == "#") {
15827 defundef = arg[2]
15828 mac1 = arg[3]
15829 } else {
15830 defundef = substr(arg[1], 2)
15831 mac1 = arg[2]
15832 }
15833 split(mac1, mac2, "(") #)
15834 macro = mac2[1]
15835 prefix = substr(line, 1, index(line, defundef) - 1)
15836 if (D_is_set[macro]) {
15837 # Preserve the white space surrounding the "#".
15838 print prefix "define", macro P[macro] D[macro]
15839 next
15840 } else {
15841 # Replace #undef with comments. This is necessary, for example,
15842 # in the case of _POSIX_SOURCE, which is predefined and required
15843 # on some systems where configure will not decide to define it.
15844 if (defundef == "undef") {
15845 print "/*", prefix defundef, macro, "*/"
15846 next
15847 }
15848 }
15849}
15850{ print }
15851_ACAWK
42ecbf5e 15852_ACEOF
81ecdfbb 15853cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
d0ac1c44 15854 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
81ecdfbb
RW
15855fi # test -n "$CONFIG_HEADERS"
15856
15857
15858eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15859shift
15860for ac_tag
15861do
15862 case $ac_tag in
15863 :[FHLC]) ac_mode=$ac_tag; continue;;
15864 esac
15865 case $ac_mode$ac_tag in
15866 :[FHL]*:*);;
d0ac1c44 15867 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
81ecdfbb
RW
15868 :[FH]-) ac_tag=-:-;;
15869 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15870 esac
15871 ac_save_IFS=$IFS
15872 IFS=:
15873 set x $ac_tag
15874 IFS=$ac_save_IFS
15875 shift
15876 ac_file=$1
15877 shift
15878
15879 case $ac_mode in
15880 :L) ac_source=$1;;
15881 :[FH])
15882 ac_file_inputs=
15883 for ac_f
15884 do
15885 case $ac_f in
d0ac1c44 15886 -) ac_f="$ac_tmp/stdin";;
81ecdfbb
RW
15887 *) # Look for the file first in the build tree, then in the source tree
15888 # (if the path is not absolute). The absolute path cannot be DOS-style,
15889 # because $ac_f cannot contain `:'.
15890 test -f "$ac_f" ||
15891 case $ac_f in
15892 [\\/$]*) false;;
15893 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15894 esac ||
d0ac1c44 15895 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
81ecdfbb
RW
15896 esac
15897 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15898 as_fn_append ac_file_inputs " '$ac_f'"
15899 done
15900
15901 # Let's still pretend it is `configure' which instantiates (i.e., don't
15902 # use $as_me), people would be surprised to read:
15903 # /* config.h. Generated by config.status. */
15904 configure_input='Generated from '`
15905 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15906 `' by configure.'
15907 if test x"$ac_file" != x-; then
15908 configure_input="$ac_file. $configure_input"
15909 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15910$as_echo "$as_me: creating $ac_file" >&6;}
15911 fi
15912 # Neutralize special characters interpreted by sed in replacement strings.
15913 case $configure_input in #(
15914 *\&* | *\|* | *\\* )
15915 ac_sed_conf_input=`$as_echo "$configure_input" |
15916 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15917 *) ac_sed_conf_input=$configure_input;;
15918 esac
15919
15920 case $ac_tag in
d0ac1c44
SM
15921 *:-:* | *:-) cat >"$ac_tmp/stdin" \
15922 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
81ecdfbb
RW
15923 esac
15924 ;;
252b5132
RH
15925 esac
15926
81ecdfbb 15927 ac_dir=`$as_dirname -- "$ac_file" ||
42ecbf5e
DJ
15928$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15929 X"$ac_file" : 'X\(//\)[^/]' \| \
15930 X"$ac_file" : 'X\(//\)$' \| \
81ecdfbb
RW
15931 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15932$as_echo X"$ac_file" |
15933 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15934 s//\1/
15935 q
15936 }
15937 /^X\(\/\/\)[^/].*/{
15938 s//\1/
15939 q
15940 }
15941 /^X\(\/\/\)$/{
15942 s//\1/
15943 q
15944 }
15945 /^X\(\/\).*/{
15946 s//\1/
15947 q
15948 }
15949 s/.*/./; q'`
15950 as_dir="$ac_dir"; as_fn_mkdir_p
42ecbf5e 15951 ac_builddir=.
e5a52504 15952
81ecdfbb
RW
15953case "$ac_dir" in
15954.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15955*)
15956 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15957 # A ".." for each directory in $ac_dir_suffix.
15958 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15959 case $ac_top_builddir_sub in
15960 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15961 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15962 esac ;;
15963esac
15964ac_abs_top_builddir=$ac_pwd
15965ac_abs_builddir=$ac_pwd$ac_dir_suffix
15966# for backward compatibility:
15967ac_top_builddir=$ac_top_build_prefix
42ecbf5e
DJ
15968
15969case $srcdir in
81ecdfbb 15970 .) # We are building in place.
42ecbf5e 15971 ac_srcdir=.
81ecdfbb
RW
15972 ac_top_srcdir=$ac_top_builddir_sub
15973 ac_abs_top_srcdir=$ac_pwd ;;
15974 [\\/]* | ?:[\\/]* ) # Absolute name.
42ecbf5e 15975 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
15976 ac_top_srcdir=$srcdir
15977 ac_abs_top_srcdir=$srcdir ;;
15978 *) # Relative name.
15979 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15980 ac_top_srcdir=$ac_top_build_prefix$srcdir
15981 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
42ecbf5e 15982esac
81ecdfbb 15983ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
252b5132 15984
e5a52504 15985
81ecdfbb
RW
15986 case $ac_mode in
15987 :F)
15988 #
15989 # CONFIG_FILE
15990 #
42ecbf5e
DJ
15991
15992 case $INSTALL in
15993 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
81ecdfbb
RW
15994 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15995 esac
15996 ac_MKDIR_P=$MKDIR_P
15997 case $MKDIR_P in
15998 [\\/$]* | ?:[\\/]* ) ;;
15999 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
d15b04bd 16000 esac
81ecdfbb 16001_ACEOF
e5a52504 16002
81ecdfbb
RW
16003cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16004# If the template does not know about datarootdir, expand it.
16005# FIXME: This hack should be removed a few years after 2.60.
16006ac_datarootdir_hack=; ac_datarootdir_seen=
16007ac_sed_dataroot='
16008/datarootdir/ {
16009 p
16010 q
16011}
16012/@datadir@/p
16013/@docdir@/p
16014/@infodir@/p
16015/@localedir@/p
16016/@mandir@/p'
16017case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16018*datarootdir*) ac_datarootdir_seen=yes;;
16019*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16020 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16021$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16022_ACEOF
16023cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16024 ac_datarootdir_hack='
16025 s&@datadir@&$datadir&g
16026 s&@docdir@&$docdir&g
16027 s&@infodir@&$infodir&g
16028 s&@localedir@&$localedir&g
16029 s&@mandir@&$mandir&g
16030 s&\\\${datarootdir}&$datarootdir&g' ;;
16031esac
42ecbf5e 16032_ACEOF
81ecdfbb
RW
16033
16034# Neutralize VPATH when `$srcdir' = `.'.
16035# Shell code in configure.ac might set extrasub.
16036# FIXME: do we really want to maintain this feature?
16037cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16038ac_sed_extra="$ac_vpsub
42ecbf5e
DJ
16039$extrasub
16040_ACEOF
81ecdfbb 16041cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42ecbf5e
DJ
16042:t
16043/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
81ecdfbb
RW
16044s|@configure_input@|$ac_sed_conf_input|;t t
16045s&@top_builddir@&$ac_top_builddir_sub&;t t
16046s&@top_build_prefix@&$ac_top_build_prefix&;t t
16047s&@srcdir@&$ac_srcdir&;t t
16048s&@abs_srcdir@&$ac_abs_srcdir&;t t
16049s&@top_srcdir@&$ac_top_srcdir&;t t
16050s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16051s&@builddir@&$ac_builddir&;t t
16052s&@abs_builddir@&$ac_abs_builddir&;t t
16053s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16054s&@INSTALL@&$ac_INSTALL&;t t
16055s&@MKDIR_P@&$ac_MKDIR_P&;t t
16056$ac_datarootdir_hack
16057"
d0ac1c44
SM
16058eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16059 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
81ecdfbb
RW
16060
16061test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
d0ac1c44
SM
16062 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16063 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16064 "$ac_tmp/out"`; test -z "$ac_out"; } &&
81ecdfbb 16065 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
d0ac1c44 16066which seems to be undefined. Please make sure it is defined" >&5
81ecdfbb 16067$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
d0ac1c44 16068which seems to be undefined. Please make sure it is defined" >&2;}
81ecdfbb 16069
d0ac1c44 16070 rm -f "$ac_tmp/stdin"
42ecbf5e 16071 case $ac_file in
d0ac1c44
SM
16072 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16073 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
81ecdfbb 16074 esac \
d0ac1c44 16075 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
81ecdfbb
RW
16076 ;;
16077 :H)
16078 #
16079 # CONFIG_HEADER
16080 #
42ecbf5e 16081 if test x"$ac_file" != x-; then
81ecdfbb
RW
16082 {
16083 $as_echo "/* $configure_input */" \
d0ac1c44
SM
16084 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16085 } >"$ac_tmp/config.h" \
16086 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16087 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
81ecdfbb
RW
16088 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16089$as_echo "$as_me: $ac_file is unchanged" >&6;}
42ecbf5e 16090 else
81ecdfbb 16091 rm -f "$ac_file"
d0ac1c44
SM
16092 mv "$ac_tmp/config.h" "$ac_file" \
16093 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
252b5132 16094 fi
42ecbf5e 16095 else
81ecdfbb 16096 $as_echo "/* $configure_input */" \
d0ac1c44
SM
16097 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16098 || as_fn_error $? "could not create -" "$LINENO" 5
252b5132 16099 fi
81ecdfbb
RW
16100# Compute "$ac_file"'s index in $config_headers.
16101_am_arg="$ac_file"
42ecbf5e
DJ
16102_am_stamp_count=1
16103for _am_header in $config_headers :; do
16104 case $_am_header in
81ecdfbb 16105 $_am_arg | $_am_arg:* )
42ecbf5e
DJ
16106 break ;;
16107 * )
16108 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16109 esac
16110done
81ecdfbb
RW
16111echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16112$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16113 X"$_am_arg" : 'X\(//\)[^/]' \| \
16114 X"$_am_arg" : 'X\(//\)$' \| \
16115 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16116$as_echo X"$_am_arg" |
16117 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16118 s//\1/
16119 q
16120 }
16121 /^X\(\/\/\)[^/].*/{
16122 s//\1/
16123 q
16124 }
16125 /^X\(\/\/\)$/{
16126 s//\1/
16127 q
16128 }
16129 /^X\(\/\).*/{
16130 s//\1/
16131 q
16132 }
16133 s/.*/./; q'`/stamp-h$_am_stamp_count
16134 ;;
42ecbf5e 16135
81ecdfbb
RW
16136 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16137$as_echo "$as_me: executing $ac_file commands" >&6;}
16138 ;;
16139 esac
e5a52504 16140
42ecbf5e 16141
81ecdfbb
RW
16142 case $ac_file$ac_mode in
16143 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
d0ac1c44 16144 # Older Autoconf quotes --file arguments for eval, but not when files
81ecdfbb
RW
16145 # are listed without --file. Let's play safe and only enable the eval
16146 # if we detect the quoting.
16147 case $CONFIG_FILES in
16148 *\'*) eval set x "$CONFIG_FILES" ;;
16149 *) set x $CONFIG_FILES ;;
16150 esac
16151 shift
16152 for mf
16153 do
16154 # Strip MF so we end up with the name of the file.
16155 mf=`echo "$mf" | sed -e 's/:.*$//'`
16156 # Check whether this is an Automake generated Makefile or not.
d0ac1c44 16157 # We used to match only the files named 'Makefile.in', but
81ecdfbb
RW
16158 # some people rename them; so instead we look at the file content.
16159 # Grep'ing the first line is not enough: some people post-process
16160 # each Makefile.in and add a new line on top of each file to say so.
16161 # Grep'ing the whole file is not good either: AIX grep has a line
16162 # limit of 2048, but all sed's we know have understand at least 4000.
16163 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16164 dirpart=`$as_dirname -- "$mf" ||
42ecbf5e
DJ
16165$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16166 X"$mf" : 'X\(//\)[^/]' \| \
16167 X"$mf" : 'X\(//\)$' \| \
81ecdfbb
RW
16168 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16169$as_echo X"$mf" |
16170 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16171 s//\1/
16172 q
16173 }
16174 /^X\(\/\/\)[^/].*/{
16175 s//\1/
16176 q
16177 }
16178 /^X\(\/\/\)$/{
16179 s//\1/
16180 q
16181 }
16182 /^X\(\/\).*/{
16183 s//\1/
16184 q
16185 }
16186 s/.*/./; q'`
16187 else
16188 continue
16189 fi
16190 # Extract the definition of DEPDIR, am__include, and am__quote
d0ac1c44 16191 # from the Makefile without running 'make'.
81ecdfbb
RW
16192 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16193 test -z "$DEPDIR" && continue
16194 am__include=`sed -n 's/^am__include = //p' < "$mf"`
d0ac1c44 16195 test -z "$am__include" && continue
81ecdfbb 16196 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
81ecdfbb
RW
16197 # Find all dependency output files, they are included files with
16198 # $(DEPDIR) in their names. We invoke sed twice because it is the
16199 # simplest approach to changing $(DEPDIR) to its actual value in the
16200 # expansion.
16201 for file in `sed -n "
16202 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
d0ac1c44 16203 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
81ecdfbb
RW
16204 # Make sure the directory exists.
16205 test -f "$dirpart/$file" && continue
16206 fdir=`$as_dirname -- "$file" ||
42ecbf5e
DJ
16207$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16208 X"$file" : 'X\(//\)[^/]' \| \
16209 X"$file" : 'X\(//\)$' \| \
81ecdfbb
RW
16210 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16211$as_echo X"$file" |
16212 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16213 s//\1/
16214 q
16215 }
16216 /^X\(\/\/\)[^/].*/{
16217 s//\1/
16218 q
16219 }
16220 /^X\(\/\/\)$/{
16221 s//\1/
16222 q
16223 }
16224 /^X\(\/\).*/{
16225 s//\1/
16226 q
16227 }
16228 s/.*/./; q'`
16229 as_dir=$dirpart/$fdir; as_fn_mkdir_p
16230 # echo "creating $dirpart/$file"
16231 echo '# dummy' > "$dirpart/$file"
42ecbf5e 16232 done
42ecbf5e 16233 done
81ecdfbb 16234}
d7040cdb 16235 ;;
81ecdfbb 16236 "libtool":C)
d7040cdb
SE
16237
16238 # See if we are running on zsh, and set the options which allow our
16239 # commands through without removal of \ escapes.
16240 if test -n "${ZSH_VERSION+set}" ; then
16241 setopt NO_GLOB_SUBST
16242 fi
16243
16244 cfgfile="${ofile}T"
16245 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16246 $RM "$cfgfile"
16247
16248 cat <<_LT_EOF >> "$cfgfile"
16249#! $SHELL
16250
16251# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
718a6fd8 16252# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
d7040cdb
SE
16253# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16254# NOTE: Changes made to this file will be lost: look at ltmain.sh.
16255#
718a6fd8 16256# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
f2c621e4 16257# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
718a6fd8 16258# Written by Gordon Matzigkeit, 1996
d7040cdb 16259#
718a6fd8 16260# This file is part of GNU Libtool.
d7040cdb 16261#
718a6fd8
SE
16262# GNU Libtool is free software; you can redistribute it and/or
16263# modify it under the terms of the GNU General Public License as
16264# published by the Free Software Foundation; either version 2 of
16265# the License, or (at your option) any later version.
d7040cdb 16266#
718a6fd8
SE
16267# As a special exception to the GNU General Public License,
16268# if you distribute this file as part of a program or library that
16269# is built using GNU Libtool, you may include this file under the
16270# same distribution terms that you use for the rest of that program.
d7040cdb 16271#
718a6fd8
SE
16272# GNU Libtool is distributed in the hope that it will be useful,
16273# but WITHOUT ANY WARRANTY; without even the implied warranty of
16274# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16275# GNU General Public License for more details.
d7040cdb 16276#
718a6fd8
SE
16277# You should have received a copy of the GNU General Public License
16278# along with GNU Libtool; see the file COPYING. If not, a copy
16279# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16280# obtained by writing to the Free Software Foundation, Inc.,
16281# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
d7040cdb
SE
16282
16283
16284# The names of the tagged configurations supported by this script.
16285available_tags=""
16286
16287# ### BEGIN LIBTOOL CONFIG
16288
16289# Which release of libtool.m4 was used?
16290macro_version=$macro_version
16291macro_revision=$macro_revision
16292
16293# Whether or not to build shared libraries.
16294build_libtool_libs=$enable_shared
16295
16296# Whether or not to build static libraries.
16297build_old_libs=$enable_static
16298
16299# What type of objects to build.
16300pic_mode=$pic_mode
16301
16302# Whether or not to optimize for fast installation.
16303fast_install=$enable_fast_install
16304
3725885a
RW
16305# Shell to use when invoking shell scripts.
16306SHELL=$lt_SHELL
16307
16308# An echo program that protects backslashes.
16309ECHO=$lt_ECHO
16310
d7040cdb
SE
16311# The host system.
16312host_alias=$host_alias
16313host=$host
16314host_os=$host_os
16315
16316# The build system.
16317build_alias=$build_alias
16318build=$build
16319build_os=$build_os
16320
16321# A sed program that does not truncate output.
16322SED=$lt_SED
16323
16324# Sed that helps us avoid accidentally triggering echo(1) options like -n.
16325Xsed="\$SED -e 1s/^X//"
16326
16327# A grep program that handles long lines.
16328GREP=$lt_GREP
16329
16330# An ERE matcher.
16331EGREP=$lt_EGREP
16332
16333# A literal string matcher.
16334FGREP=$lt_FGREP
16335
16336# A BSD- or MS-compatible name lister.
16337NM=$lt_NM
16338
16339# Whether we need soft or hard links.
16340LN_S=$lt_LN_S
16341
16342# What is the maximum length of a command?
16343max_cmd_len=$max_cmd_len
16344
16345# Object file suffix (normally "o").
16346objext=$ac_objext
16347
16348# Executable file suffix (normally "").
16349exeext=$exeext
16350
16351# whether the shell understands "unset".
16352lt_unset=$lt_unset
16353
16354# turn spaces into newlines.
16355SP2NL=$lt_lt_SP2NL
16356
16357# turn newlines into spaces.
16358NL2SP=$lt_lt_NL2SP
16359
718a6fd8
SE
16360# An object symbol dumper.
16361OBJDUMP=$lt_OBJDUMP
16362
d7040cdb
SE
16363# Method to check whether dependent libraries are shared objects.
16364deplibs_check_method=$lt_deplibs_check_method
16365
f2c621e4 16366# Command to use when deplibs_check_method == "file_magic".
d7040cdb
SE
16367file_magic_cmd=$lt_file_magic_cmd
16368
16369# The archiver.
16370AR=$lt_AR
16371AR_FLAGS=$lt_AR_FLAGS
16372
16373# A symbol stripping program.
16374STRIP=$lt_STRIP
16375
16376# Commands used to install an old-style archive.
16377RANLIB=$lt_RANLIB
16378old_postinstall_cmds=$lt_old_postinstall_cmds
16379old_postuninstall_cmds=$lt_old_postuninstall_cmds
16380
3725885a
RW
16381# Whether to use a lock for old archive extraction.
16382lock_old_archive_extraction=$lock_old_archive_extraction
16383
d7040cdb
SE
16384# A C compiler.
16385LTCC=$lt_CC
16386
16387# LTCC compiler flags.
16388LTCFLAGS=$lt_CFLAGS
16389
16390# Take the output of nm and produce a listing of raw symbols and C names.
16391global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16392
16393# Transform the output of nm in a proper C declaration.
16394global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16395
16396# Transform the output of nm in a C name address pair.
16397global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16398
718a6fd8
SE
16399# Transform the output of nm in a C name address pair when lib prefix is needed.
16400global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16401
d7040cdb
SE
16402# The name of the directory that contains temporary libtool files.
16403objdir=$objdir
16404
d7040cdb
SE
16405# Used to examine libraries when file_magic_cmd begins with "file".
16406MAGIC_CMD=$MAGIC_CMD
16407
16408# Must we lock files when doing compilation?
16409need_locks=$lt_need_locks
16410
718a6fd8
SE
16411# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16412DSYMUTIL=$lt_DSYMUTIL
16413
16414# Tool to change global to local symbols on Mac OS X.
16415NMEDIT=$lt_NMEDIT
16416
16417# Tool to manipulate fat objects and archives on Mac OS X.
16418LIPO=$lt_LIPO
16419
16420# ldd/readelf like tool for Mach-O binaries on Mac OS X.
16421OTOOL=$lt_OTOOL
16422
16423# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16424OTOOL64=$lt_OTOOL64
16425
d7040cdb
SE
16426# Old archive suffix (normally "a").
16427libext=$libext
16428
16429# Shared library suffix (normally ".so").
16430shrext_cmds=$lt_shrext_cmds
16431
16432# The commands to extract the exported symbol list from a shared archive.
16433extract_expsyms_cmds=$lt_extract_expsyms_cmds
16434
16435# Variables whose values should be saved in libtool wrapper scripts and
16436# restored at link time.
16437variables_saved_for_relink=$lt_variables_saved_for_relink
16438
16439# Do we need the "lib" prefix for modules?
16440need_lib_prefix=$need_lib_prefix
16441
16442# Do we need a version for libraries?
16443need_version=$need_version
16444
16445# Library versioning type.
16446version_type=$version_type
16447
16448# Shared library runtime path variable.
16449runpath_var=$runpath_var
16450
16451# Shared library path variable.
16452shlibpath_var=$shlibpath_var
16453
16454# Is shlibpath searched before the hard-coded library search path?
16455shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16456
16457# Format of library name prefix.
16458libname_spec=$lt_libname_spec
16459
16460# List of archive names. First name is the real one, the rest are links.
16461# The last name is the one that the linker finds with -lNAME
16462library_names_spec=$lt_library_names_spec
16463
16464# The coded name of the library, if different from the real name.
16465soname_spec=$lt_soname_spec
16466
3725885a
RW
16467# Permission mode override for installation of shared libraries.
16468install_override_mode=$lt_install_override_mode
16469
d7040cdb
SE
16470# Command to use after installation of a shared archive.
16471postinstall_cmds=$lt_postinstall_cmds
16472
16473# Command to use after uninstallation of a shared archive.
16474postuninstall_cmds=$lt_postuninstall_cmds
16475
16476# Commands used to finish a libtool library installation in a directory.
16477finish_cmds=$lt_finish_cmds
16478
16479# As "finish_cmds", except a single script fragment to be evaled but
16480# not shown.
16481finish_eval=$lt_finish_eval
16482
16483# Whether we should hardcode library paths into libraries.
16484hardcode_into_libs=$hardcode_into_libs
16485
16486# Compile-time system search path for libraries.
16487sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16488
16489# Run-time system search path for libraries.
16490sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16491
16492# Whether dlopen is supported.
16493dlopen_support=$enable_dlopen
16494
16495# Whether dlopen of programs is supported.
16496dlopen_self=$enable_dlopen_self
16497
16498# Whether dlopen of statically linked programs is supported.
16499dlopen_self_static=$enable_dlopen_self_static
16500
16501# Commands to strip libraries.
16502old_striplib=$lt_old_striplib
16503striplib=$lt_striplib
16504
16505
16506# The linker used to build libraries.
16507LD=$lt_LD
16508
3725885a
RW
16509# How to create reloadable object files.
16510reload_flag=$lt_reload_flag
16511reload_cmds=$lt_reload_cmds
16512
d7040cdb
SE
16513# Commands used to build an old-style archive.
16514old_archive_cmds=$lt_old_archive_cmds
16515
16516# A language specific compiler.
16517CC=$lt_compiler
16518
16519# Is the compiler the GNU compiler?
16520with_gcc=$GCC
16521
16522# Compiler flag to turn off builtin functions.
16523no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16524
df7b86aa
NC
16525# How to pass a linker flag through the compiler.
16526wl=$lt_lt_prog_compiler_wl
16527
f2c621e4
AS
16528# Additional compiler flags for building library objects.
16529pic_flag=$lt_lt_prog_compiler_pic
16530
d7040cdb
SE
16531# Compiler flag to prevent dynamic linking.
16532link_static_flag=$lt_lt_prog_compiler_static
16533
16534# Does compiler simultaneously support -c and -o options?
16535compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16536
16537# Whether or not to add -lc for building shared libraries.
16538build_libtool_need_lc=$archive_cmds_need_lc
16539
16540# Whether or not to disallow shared libs when runtime libs are static.
16541allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16542
16543# Compiler flag to allow reflexive dlopens.
16544export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16545
16546# Compiler flag to generate shared objects directly from archives.
16547whole_archive_flag_spec=$lt_whole_archive_flag_spec
16548
16549# Whether the compiler copes with passing no objects directly.
16550compiler_needs_object=$lt_compiler_needs_object
16551
16552# Create an old-style archive from a shared archive.
16553old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16554
16555# Create a temporary old-style archive to link instead of a shared archive.
16556old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16557
16558# Commands used to build a shared archive.
16559archive_cmds=$lt_archive_cmds
16560archive_expsym_cmds=$lt_archive_expsym_cmds
16561
16562# Commands used to build a loadable module if different from building
16563# a shared archive.
16564module_cmds=$lt_module_cmds
16565module_expsym_cmds=$lt_module_expsym_cmds
16566
16567# Whether we are building with GNU ld or not.
16568with_gnu_ld=$lt_with_gnu_ld
16569
16570# Flag that allows shared libraries with undefined symbols to be built.
16571allow_undefined_flag=$lt_allow_undefined_flag
16572
16573# Flag that enforces no undefined symbols.
16574no_undefined_flag=$lt_no_undefined_flag
16575
16576# Flag to hardcode \$libdir into a binary during linking.
16577# This must work even if \$libdir does not exist
16578hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16579
16580# If ld is used when linking, flag to hardcode \$libdir into a binary
16581# during linking. This must work even if \$libdir does not exist.
16582hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16583
16584# Whether we need a single "-rpath" flag with a separated argument.
16585hardcode_libdir_separator=$lt_hardcode_libdir_separator
16586
16587# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16588# DIR into the resulting binary.
16589hardcode_direct=$hardcode_direct
16590
16591# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16592# DIR into the resulting binary and the resulting library dependency is
16593# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16594# library is relocated.
16595hardcode_direct_absolute=$hardcode_direct_absolute
16596
16597# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16598# into the resulting binary.
16599hardcode_minus_L=$hardcode_minus_L
16600
16601# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16602# into the resulting binary.
16603hardcode_shlibpath_var=$hardcode_shlibpath_var
16604
16605# Set to "yes" if building a shared library automatically hardcodes DIR
16606# into the library and all subsequent libraries and executables linked
16607# against it.
16608hardcode_automatic=$hardcode_automatic
16609
16610# Set to yes if linker adds runtime paths of dependent libraries
16611# to runtime path list.
16612inherit_rpath=$inherit_rpath
16613
16614# Whether libtool must link a program against all its dependency libraries.
16615link_all_deplibs=$link_all_deplibs
16616
f2c621e4
AS
16617# Fix the shell variable \$srcfile for the compiler.
16618fix_srcfile_path=$lt_fix_srcfile_path
16619
d7040cdb
SE
16620# Set to "yes" if exported symbols are required.
16621always_export_symbols=$always_export_symbols
16622
16623# The commands to list exported symbols.
16624export_symbols_cmds=$lt_export_symbols_cmds
16625
16626# Symbols that should not be listed in the preloaded symbols.
16627exclude_expsyms=$lt_exclude_expsyms
16628
16629# Symbols that must always be exported.
16630include_expsyms=$lt_include_expsyms
16631
16632# Commands necessary for linking programs (against libraries) with templates.
16633prelink_cmds=$lt_prelink_cmds
16634
16635# Specify filename containing input files.
16636file_list_spec=$lt_file_list_spec
16637
16638# How to hardcode a shared library path into an executable.
16639hardcode_action=$hardcode_action
16640
16641# ### END LIBTOOL CONFIG
16642
16643_LT_EOF
16644
16645 case $host_os in
16646 aix3*)
16647 cat <<\_LT_EOF >> "$cfgfile"
16648# AIX sometimes has problems with the GCC collect2 program. For some
16649# reason, if we set the COLLECT_NAMES environment variable, the problems
16650# vanish in a puff of smoke.
16651if test "X${COLLECT_NAMES+set}" != Xset; then
16652 COLLECT_NAMES=
16653 export COLLECT_NAMES
16654fi
16655_LT_EOF
16656 ;;
16657 esac
16658
16659
16660ltmain="$ac_aux_dir/ltmain.sh"
16661
16662
16663 # We use sed instead of cat because bash on DJGPP gets confused if
16664 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16665 # text mode, it properly converts lines to CR/LF. This bash problem
16666 # is reportedly fixed, but why not run on old versions too?
f2c621e4
AS
16667 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
16668 || (rm -f "$cfgfile"; exit 1)
16669
16670 case $xsi_shell in
16671 yes)
16672 cat << \_LT_EOF >> "$cfgfile"
16673
16674# func_dirname file append nondir_replacement
16675# Compute the dirname of FILE. If nonempty, add APPEND to the result,
16676# otherwise set result to NONDIR_REPLACEMENT.
16677func_dirname ()
16678{
16679 case ${1} in
16680 */*) func_dirname_result="${1%/*}${2}" ;;
16681 * ) func_dirname_result="${3}" ;;
16682 esac
16683}
16684
16685# func_basename file
16686func_basename ()
16687{
16688 func_basename_result="${1##*/}"
16689}
16690
16691# func_dirname_and_basename file append nondir_replacement
16692# perform func_basename and func_dirname in a single function
16693# call:
16694# dirname: Compute the dirname of FILE. If nonempty,
16695# add APPEND to the result, otherwise set result
16696# to NONDIR_REPLACEMENT.
16697# value returned in "$func_dirname_result"
16698# basename: Compute filename of FILE.
16699# value retuned in "$func_basename_result"
16700# Implementation must be kept synchronized with func_dirname
16701# and func_basename. For efficiency, we do not delegate to
16702# those functions but instead duplicate the functionality here.
16703func_dirname_and_basename ()
16704{
16705 case ${1} in
16706 */*) func_dirname_result="${1%/*}${2}" ;;
16707 * ) func_dirname_result="${3}" ;;
16708 esac
16709 func_basename_result="${1##*/}"
16710}
16711
16712# func_stripname prefix suffix name
16713# strip PREFIX and SUFFIX off of NAME.
16714# PREFIX and SUFFIX must not contain globbing or regex special
16715# characters, hashes, percent signs, but SUFFIX may contain a leading
16716# dot (in which case that matches only a dot).
16717func_stripname ()
16718{
16719 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16720 # positional parameters, so assign one to ordinary parameter first.
16721 func_stripname_result=${3}
16722 func_stripname_result=${func_stripname_result#"${1}"}
16723 func_stripname_result=${func_stripname_result%"${2}"}
16724}
16725
16726# func_opt_split
16727func_opt_split ()
16728{
16729 func_opt_split_opt=${1%%=*}
16730 func_opt_split_arg=${1#*=}
16731}
16732
16733# func_lo2o object
16734func_lo2o ()
16735{
16736 case ${1} in
16737 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
16738 *) func_lo2o_result=${1} ;;
16739 esac
16740}
16741
16742# func_xform libobj-or-source
16743func_xform ()
16744{
16745 func_xform_result=${1%.*}.lo
16746}
16747
16748# func_arith arithmetic-term...
16749func_arith ()
16750{
16751 func_arith_result=$(( $* ))
16752}
16753
16754# func_len string
16755# STRING may not start with a hyphen.
16756func_len ()
16757{
16758 func_len_result=${#1}
16759}
16760
16761_LT_EOF
16762 ;;
16763 *) # Bourne compatible functions.
16764 cat << \_LT_EOF >> "$cfgfile"
16765
16766# func_dirname file append nondir_replacement
16767# Compute the dirname of FILE. If nonempty, add APPEND to the result,
16768# otherwise set result to NONDIR_REPLACEMENT.
16769func_dirname ()
16770{
16771 # Extract subdirectory from the argument.
16772 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
16773 if test "X$func_dirname_result" = "X${1}"; then
16774 func_dirname_result="${3}"
16775 else
16776 func_dirname_result="$func_dirname_result${2}"
16777 fi
16778}
16779
16780# func_basename file
16781func_basename ()
16782{
16783 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
16784}
16785
16786
16787# func_stripname prefix suffix name
16788# strip PREFIX and SUFFIX off of NAME.
16789# PREFIX and SUFFIX must not contain globbing or regex special
16790# characters, hashes, percent signs, but SUFFIX may contain a leading
16791# dot (in which case that matches only a dot).
16792# func_strip_suffix prefix name
16793func_stripname ()
16794{
16795 case ${2} in
16796 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
16797 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
16798 esac
16799}
16800
16801# sed scripts:
16802my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16803my_sed_long_arg='1s/^-[^=]*=//'
16804
16805# func_opt_split
16806func_opt_split ()
16807{
16808 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
16809 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
16810}
16811
16812# func_lo2o object
16813func_lo2o ()
16814{
16815 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
16816}
16817
16818# func_xform libobj-or-source
16819func_xform ()
16820{
16821 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
16822}
16823
16824# func_arith arithmetic-term...
16825func_arith ()
16826{
16827 func_arith_result=`expr "$@"`
16828}
16829
16830# func_len string
16831# STRING may not start with a hyphen.
16832func_len ()
16833{
16834 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
16835}
16836
16837_LT_EOF
16838esac
16839
16840case $lt_shell_append in
16841 yes)
16842 cat << \_LT_EOF >> "$cfgfile"
16843
16844# func_append var value
16845# Append VALUE to the end of shell variable VAR.
16846func_append ()
16847{
16848 eval "$1+=\$2"
16849}
16850_LT_EOF
16851 ;;
16852 *)
16853 cat << \_LT_EOF >> "$cfgfile"
16854
16855# func_append var value
16856# Append VALUE to the end of shell variable VAR.
16857func_append ()
16858{
16859 eval "$1=\$$1\$2"
16860}
16861
16862_LT_EOF
16863 ;;
16864 esac
16865
16866
16867 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16868 || (rm -f "$cfgfile"; exit 1)
16869
16870 mv -f "$cfgfile" "$ofile" ||
d7040cdb
SE
16871 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16872 chmod +x "$ofile"
16873
42ecbf5e 16874 ;;
81ecdfbb 16875 "default-1":C)
20e95c23
DJ
16876 for ac_file in $CONFIG_FILES; do
16877 # Support "outfile[:infile[:infile...]]"
16878 case "$ac_file" in
16879 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16880 esac
16881 # PO directories have a Makefile.in generated from Makefile.in.in.
16882 case "$ac_file" in */Makefile.in)
16883 # Adjust a relative srcdir.
16884 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
3cac54d2 16885 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
20e95c23
DJ
16886 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
16887 # In autoconf-2.13 it is called $ac_given_srcdir.
16888 # In autoconf-2.50 it is called $srcdir.
16889 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
16890 case "$ac_given_srcdir" in
16891 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
16892 /*) top_srcdir="$ac_given_srcdir" ;;
16893 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
16894 esac
16895 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
16896 rm -f "$ac_dir/POTFILES"
16897 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
16898 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
16899 POMAKEFILEDEPS="POTFILES.in"
16900 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
16901 # on $ac_dir but don't depend on user-specified configuration
16902 # parameters.
16903 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
16904 # The LINGUAS file contains the set of available languages.
16905 if test -n "$OBSOLETE_ALL_LINGUAS"; then
37a42ee9 16906 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.ac is obsolete" || echo "setting ALL_LINGUAS in configure.ac is obsolete"
20e95c23
DJ
16907 fi
16908 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
16909 # Hide the ALL_LINGUAS assigment from automake.
16910 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
16911 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
16912 else
37a42ee9 16913 # The set of available languages was given in configure.ac.
20e95c23
DJ
16914 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
16915 fi
16916 case "$ac_given_srcdir" in
16917 .) srcdirpre= ;;
16918 *) srcdirpre='$(srcdir)/' ;;
16919 esac
16920 POFILES=
16921 GMOFILES=
16922 UPDATEPOFILES=
16923 DUMMYPOFILES=
16924 for lang in $ALL_LINGUAS; do
16925 POFILES="$POFILES $srcdirpre$lang.po"
16926 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
16927 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
16928 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
16929 done
16930 # CATALOGS depends on both $ac_dir and the user's LINGUAS
16931 # environment variable.
16932 INST_LINGUAS=
16933 if test -n "$ALL_LINGUAS"; then
16934 for presentlang in $ALL_LINGUAS; do
16935 useit=no
16936 if test "%UNSET%" != "$LINGUAS"; then
16937 desiredlanguages="$LINGUAS"
16938 else
16939 desiredlanguages="$ALL_LINGUAS"
16940 fi
16941 for desiredlang in $desiredlanguages; do
16942 # Use the presentlang catalog if desiredlang is
16943 # a. equal to presentlang, or
16944 # b. a variant of presentlang (because in this case,
16945 # presentlang can be used as a fallback for messages
16946 # which are not translated in the desiredlang catalog).
16947 case "$desiredlang" in
16948 "$presentlang"*) useit=yes;;
16949 esac
16950 done
16951 if test $useit = yes; then
16952 INST_LINGUAS="$INST_LINGUAS $presentlang"
16953 fi
16954 done
16955 fi
16956 CATALOGS=
16957 if test -n "$INST_LINGUAS"; then
16958 for lang in $INST_LINGUAS; do
16959 CATALOGS="$CATALOGS $lang.gmo"
16960 done
16961 fi
16962 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
16963 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
16964 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
16965 if test -f "$f"; then
16966 case "$f" in
16967 *.orig | *.bak | *~) ;;
16968 *) cat "$f" >> "$ac_dir/Makefile" ;;
16969 esac
16970 fi
16971 done
16972 fi
16973 ;;
16974 esac
16975 done ;;
81ecdfbb 16976
42ecbf5e 16977 esac
81ecdfbb 16978done # for ac_tag
e5a52504 16979
42ecbf5e 16980
81ecdfbb 16981as_fn_exit 0
42ecbf5e 16982_ACEOF
42ecbf5e
DJ
16983ac_clean_files=$ac_clean_files_save
16984
81ecdfbb 16985test $ac_write_fail = 0 ||
d0ac1c44 16986 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
81ecdfbb 16987
42ecbf5e
DJ
16988
16989# configure is writing to config.log, and then calls config.status.
16990# config.status does its own redirection, appending to config.log.
16991# Unfortunately, on DOS this fails, as config.log is still kept open
16992# by configure, so config.status won't be able to write to it; its
16993# output is simply discarded. So we exec the FD to /dev/null,
16994# effectively closing config.log, so it can be properly (re)opened and
16995# appended to by config.status. When coming back to configure, we
16996# need to make the FD available again.
16997if test "$no_create" != yes; then
16998 ac_cs_success=:
16999 ac_config_status_args=
17000 test "$silent" = yes &&
17001 ac_config_status_args="$ac_config_status_args --quiet"
17002 exec 5>/dev/null
17003 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17004 exec 5>>config.log
17005 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17006 # would make configure fail if this is the last instruction.
d0ac1c44 17007 $ac_cs_success || as_fn_exit 1
81ecdfbb
RW
17008fi
17009if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17010 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17011$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
42ecbf5e 17012fi
252b5132 17013
d546b610
L
17014
17015
17016touch config.status.tmp
17017if touch --reference=config.status config.status.tmp > /dev/null 2>&1; then
17018 sed '/as_fn_exit 0/i \
17019sed -e \"s/^\t\\\(\\\$(AM_V_CCLD)\\\)/\t+ \\\1/\" Makefile > Makefile.tmp \
17020touch --reference=Makefile Makefile.tmp \
17021mv Makefile.tmp Makefile \
17022' config.status > config.status.tmp
17023 touch --reference=config.status config.status.tmp
17024 mv config.status.tmp config.status
17025 chmod +x config.status
17026 sed -e "s/^\t\(\$(AM_V_CCLD)\)/\t+ \1/" Makefile > Makefile.tmp
17027 touch --reference=Makefile Makefile.tmp
17028 mv Makefile.tmp Makefile
17029else
17030 rm -f config.status.tmp
17031fi
This page took 2.051867 seconds and 4 git commands to generate.