]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - binutils/configure
x86: Add NT_X86_SHSTK note
[thirdparty/binutils-gdb.git] / binutils / configure
CommitLineData
252b5132 1#! /bin/sh
252b5132 2# Guess values for system-dependent variables and create Makefiles.
b5c37946 3# Generated by GNU Autoconf 2.69 for binutils 2.41.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'
b5c37946
SJ
590PACKAGE_VERSION='2.41.50'
591PACKAGE_STRING='binutils 2.41.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
862776f2 632gt_needs=
34156b23 633ac_header_list=
81ecdfbb
RW
634ac_subst_vars='am__EXEEXT_FALSE
635am__EXEEXT_TRUE
636LTLIBOBJS
637LIBOBJS
638EMULATION_VECTOR
639EMULATION
6abcee90 640OBJDUMP_PRIVATE_OFILES
81ecdfbb
RW
641OBJDUMP_DEFS
642BUILD_INSTALL_MISC
643BUILD_MISC
644BUILD_DLLWRAP
645BUILD_WINDMC
646BUILD_WINDRES
647DLLTOOL_DEFS
648BUILD_DLLTOOL
649BUILD_SRCONV
2952f10c
SM
650MSGPACK_LIBS
651MSGPACK_CFLAGS
2cac01e3
FS
652ZSTD_LIBS
653ZSTD_CFLAGS
0ee42ecd
L
654zlibinc
655zlibdir
81ecdfbb
RW
656DEMANGLER_NAME
657EXEEXT_FOR_BUILD
658CC_FOR_BUILD
659HDEFINES
660GENINSRC_NEVER_FALSE
661GENINSRC_NEVER_TRUE
662MAINT
663MAINTAINER_MODE_FALSE
664MAINTAINER_MODE_TRUE
81ecdfbb
RW
665CATOBJEXT
666GENCAT
667INSTOBJEXT
668DATADIRNAME
669CATALOGS
81ecdfbb
RW
670INCINTL
671LIBINTL_DEP
862776f2
AA
672POSUB
673LTLIBINTL
81ecdfbb 674LIBINTL
862776f2
AA
675INTLLIBS
676LTLIBICONV
677LIBICONV
678INTL_MACOSX_LIBS
679MSGMERGE
680XGETTEXT
681GMSGFMT
682MSGFMT
81ecdfbb 683USE_NLS
862776f2 684MKINSTALLDIRS
81ecdfbb
RW
685LEXLIB
686LEX_OUTPUT_ROOT
687LEX
688YFLAGS
689YACC
6757cf57 690WARN_WRITE_STRINGS
81ecdfbb 691NO_WERROR
c5da1932 692WARN_CFLAGS_FOR_BUILD
81ecdfbb 693WARN_CFLAGS
094e34f2
NA
694ENABLE_LIBCTF_FALSE
695ENABLE_LIBCTF_TRUE
f6720b1c
AM
696DEBUGINFOD_LIBS
697DEBUGINFOD_CFLAGS
698PKG_CONFIG_LIBDIR
699PKG_CONFIG_PATH
700PKG_CONFIG
c8693053 701LARGEFILE_CPPFLAGS
81ecdfbb
RW
702OTOOL64
703OTOOL
704LIPO
705NMEDIT
706DSYMUTIL
81ecdfbb
RW
707RANLIB
708AR
709OBJDUMP
710LN_S
711NM
712ac_ct_DUMPBIN
713DUMPBIN
714LD
715FGREP
716SED
717LIBTOOL
718EGREP
719GREP
720CPP
721am__fastdepCC_FALSE
722am__fastdepCC_TRUE
723CCDEPMODE
6eb7d830 724am__nodep
81ecdfbb
RW
725AMDEPBACKSLASH
726AMDEP_FALSE
727AMDEP_TRUE
b9583093 728am__quote
81ecdfbb
RW
729am__include
730DEPDIR
87b9f255
AM
731OBJEXT
732EXEEXT
733ac_ct_CC
734CPPFLAGS
735LDFLAGS
736CFLAGS
737CC
738AM_BACKSLASH
739AM_DEFAULT_VERBOSITY
740AM_DEFAULT_V
741AM_V
81ecdfbb
RW
742am__untar
743am__tar
744AMTAR
745am__leading_dot
746SET_MAKE
747AWK
748mkdir_p
749MKDIR_P
750INSTALL_STRIP_PROGRAM
751STRIP
752install_sh
753MAKEINFO
754AUTOHEADER
755AUTOMAKE
756AUTOCONF
757ACLOCAL
758VERSION
759PACKAGE
760CYGPATH_W
761am__isrc
762INSTALL_DATA
763INSTALL_SCRIPT
764INSTALL_PROGRAM
81ecdfbb
RW
765target_os
766target_vendor
767target_cpu
768target
769host_os
770host_vendor
771host_cpu
772host
773build_os
774build_vendor
775build_cpu
776build
777target_alias
778host_alias
779build_alias
780LIBS
781ECHO_T
782ECHO_N
783ECHO_C
784DEFS
785mandir
786localedir
787libdir
788psdir
789pdfdir
790dvidir
791htmldir
792infodir
793docdir
794oldincludedir
795includedir
796localstatedir
797sharedstatedir
798sysconfdir
799datadir
800datarootdir
801libexecdir
802sbindir
803bindir
804program_transform_name
805prefix
806exec_prefix
807PACKAGE_URL
808PACKAGE_BUGREPORT
809PACKAGE_STRING
810PACKAGE_VERSION
811PACKAGE_TARNAME
812PACKAGE_NAME
813PATH_SEPARATOR
b9583093 814SHELL'
42ecbf5e 815ac_subst_files=''
81ecdfbb
RW
816ac_user_opts='
817enable_option_checking
d0ac1c44 818enable_silent_rules
87b9f255 819enable_dependency_tracking
81ecdfbb
RW
820enable_shared
821enable_static
822with_pic
823enable_fast_install
824with_gnu_ld
825enable_libtool_lock
b879806f
AM
826enable_plugins
827enable_largefile
43e05cd4 828enable_checking
81ecdfbb 829enable_targets
9cb80f72 830enable_deterministic_archives
7fac9594 831enable_default_strings_all
e6f6aa8d 832enable_f_for_ifunc_symbols
c46b7066 833enable_follow_debug_links
18bf5643 834enable_colored_disassembly
301a9420 835with_debuginfod
094e34f2 836enable_libctf
81ecdfbb
RW
837enable_werror
838enable_build_warnings
839enable_nls
862776f2
AA
840enable_rpath
841with_libiconv_prefix
842with_libiconv_type
843with_libintl_prefix
844with_libintl_type
81ecdfbb 845enable_maintainer_mode
0ee42ecd 846with_system_zlib
2cac01e3 847with_zstd
2952f10c 848with_msgpack
81ecdfbb
RW
849'
850 ac_precious_vars='build_alias
851host_alias
852target_alias
853CC
854CFLAGS
855LDFLAGS
856LIBS
857CPPFLAGS
858CPP
f6720b1c
AM
859PKG_CONFIG
860PKG_CONFIG_PATH
861PKG_CONFIG_LIBDIR
862DEBUGINFOD_CFLAGS
863DEBUGINFOD_LIBS
81ecdfbb 864YACC
2952f10c 865YFLAGS
2cac01e3
FS
866ZSTD_CFLAGS
867ZSTD_LIBS
2952f10c
SM
868MSGPACK_CFLAGS
869MSGPACK_LIBS'
81ecdfbb 870
252b5132
RH
871
872# Initialize some variables set by options.
42ecbf5e
DJ
873ac_init_help=
874ac_init_version=false
81ecdfbb
RW
875ac_unrecognized_opts=
876ac_unrecognized_sep=
252b5132
RH
877# The variables have the same names as the options, with
878# dashes changed to underlines.
42ecbf5e 879cache_file=/dev/null
252b5132 880exec_prefix=NONE
252b5132 881no_create=
252b5132
RH
882no_recursion=
883prefix=NONE
884program_prefix=NONE
885program_suffix=NONE
886program_transform_name=s,x,x,
887silent=
888site=
889srcdir=
252b5132
RH
890verbose=
891x_includes=NONE
892x_libraries=NONE
42ecbf5e
DJ
893
894# Installation directory options.
895# These are left unexpanded so users can "make install exec_prefix=/foo"
896# and all the variables that are supposed to be based on exec_prefix
897# by default will actually change.
898# Use braces instead of parens because sh, perl, etc. also accept them.
81ecdfbb 899# (The list follows the same order as the GNU Coding Standards.)
252b5132
RH
900bindir='${exec_prefix}/bin'
901sbindir='${exec_prefix}/sbin'
902libexecdir='${exec_prefix}/libexec'
81ecdfbb
RW
903datarootdir='${prefix}/share'
904datadir='${datarootdir}'
252b5132
RH
905sysconfdir='${prefix}/etc'
906sharedstatedir='${prefix}/com'
907localstatedir='${prefix}/var'
252b5132
RH
908includedir='${prefix}/include'
909oldincludedir='/usr/include'
2e98a7bd 910docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
81ecdfbb
RW
911infodir='${datarootdir}/info'
912htmldir='${docdir}'
913dvidir='${docdir}'
914pdfdir='${docdir}'
915psdir='${docdir}'
916libdir='${exec_prefix}/lib'
917localedir='${datarootdir}/locale'
918mandir='${datarootdir}/man'
252b5132 919
252b5132 920ac_prev=
81ecdfbb 921ac_dashdash=
252b5132
RH
922for ac_option
923do
252b5132
RH
924 # If the previous option needs an argument, assign it.
925 if test -n "$ac_prev"; then
81ecdfbb 926 eval $ac_prev=\$ac_option
252b5132
RH
927 ac_prev=
928 continue
929 fi
930
81ecdfbb 931 case $ac_option in
d0ac1c44
SM
932 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
933 *=) ac_optarg= ;;
934 *) ac_optarg=yes ;;
81ecdfbb 935 esac
252b5132
RH
936
937 # Accept the important Cygnus configure options, so we can diagnose typos.
938
81ecdfbb
RW
939 case $ac_dashdash$ac_option in
940 --)
941 ac_dashdash=yes ;;
252b5132
RH
942
943 -bindir | --bindir | --bindi | --bind | --bin | --bi)
944 ac_prev=bindir ;;
945 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
42ecbf5e 946 bindir=$ac_optarg ;;
252b5132
RH
947
948 -build | --build | --buil | --bui | --bu)
42ecbf5e 949 ac_prev=build_alias ;;
252b5132 950 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
42ecbf5e 951 build_alias=$ac_optarg ;;
252b5132
RH
952
953 -cache-file | --cache-file | --cache-fil | --cache-fi \
954 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
955 ac_prev=cache_file ;;
956 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
957 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
42ecbf5e
DJ
958 cache_file=$ac_optarg ;;
959
960 --config-cache | -C)
961 cache_file=config.cache ;;
252b5132 962
81ecdfbb 963 -datadir | --datadir | --datadi | --datad)
252b5132 964 ac_prev=datadir ;;
81ecdfbb 965 -datadir=* | --datadir=* | --datadi=* | --datad=*)
42ecbf5e 966 datadir=$ac_optarg ;;
252b5132 967
81ecdfbb
RW
968 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
969 | --dataroo | --dataro | --datar)
970 ac_prev=datarootdir ;;
971 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
972 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
973 datarootdir=$ac_optarg ;;
974
252b5132 975 -disable-* | --disable-*)
81ecdfbb 976 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
252b5132 977 # Reject names that are not valid shell variable names.
81ecdfbb 978 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 979 as_fn_error $? "invalid feature name: $ac_useropt"
81ecdfbb
RW
980 ac_useropt_orig=$ac_useropt
981 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
982 case $ac_user_opts in
983 *"
984"enable_$ac_useropt"
985"*) ;;
986 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
987 ac_unrecognized_sep=', ';;
988 esac
989 eval enable_$ac_useropt=no ;;
990
991 -docdir | --docdir | --docdi | --doc | --do)
992 ac_prev=docdir ;;
993 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
994 docdir=$ac_optarg ;;
995
996 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
997 ac_prev=dvidir ;;
998 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
999 dvidir=$ac_optarg ;;
252b5132
RH
1000
1001 -enable-* | --enable-*)
81ecdfbb 1002 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
252b5132 1003 # Reject names that are not valid shell variable names.
81ecdfbb 1004 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 1005 as_fn_error $? "invalid feature name: $ac_useropt"
81ecdfbb
RW
1006 ac_useropt_orig=$ac_useropt
1007 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1008 case $ac_user_opts in
1009 *"
1010"enable_$ac_useropt"
1011"*) ;;
1012 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1013 ac_unrecognized_sep=', ';;
252b5132 1014 esac
81ecdfbb 1015 eval enable_$ac_useropt=\$ac_optarg ;;
252b5132
RH
1016
1017 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1018 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1019 | --exec | --exe | --ex)
1020 ac_prev=exec_prefix ;;
1021 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1022 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1023 | --exec=* | --exe=* | --ex=*)
42ecbf5e 1024 exec_prefix=$ac_optarg ;;
252b5132
RH
1025
1026 -gas | --gas | --ga | --g)
1027 # Obsolete; use --with-gas.
1028 with_gas=yes ;;
1029
42ecbf5e
DJ
1030 -help | --help | --hel | --he | -h)
1031 ac_init_help=long ;;
1032 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1033 ac_init_help=recursive ;;
1034 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1035 ac_init_help=short ;;
252b5132
RH
1036
1037 -host | --host | --hos | --ho)
42ecbf5e 1038 ac_prev=host_alias ;;
252b5132 1039 -host=* | --host=* | --hos=* | --ho=*)
42ecbf5e 1040 host_alias=$ac_optarg ;;
252b5132 1041
81ecdfbb
RW
1042 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1043 ac_prev=htmldir ;;
1044 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1045 | --ht=*)
1046 htmldir=$ac_optarg ;;
1047
252b5132
RH
1048 -includedir | --includedir | --includedi | --included | --include \
1049 | --includ | --inclu | --incl | --inc)
1050 ac_prev=includedir ;;
1051 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1052 | --includ=* | --inclu=* | --incl=* | --inc=*)
42ecbf5e 1053 includedir=$ac_optarg ;;
252b5132
RH
1054
1055 -infodir | --infodir | --infodi | --infod | --info | --inf)
1056 ac_prev=infodir ;;
1057 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
42ecbf5e 1058 infodir=$ac_optarg ;;
252b5132
RH
1059
1060 -libdir | --libdir | --libdi | --libd)
1061 ac_prev=libdir ;;
1062 -libdir=* | --libdir=* | --libdi=* | --libd=*)
42ecbf5e 1063 libdir=$ac_optarg ;;
252b5132
RH
1064
1065 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1066 | --libexe | --libex | --libe)
1067 ac_prev=libexecdir ;;
1068 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1069 | --libexe=* | --libex=* | --libe=*)
42ecbf5e 1070 libexecdir=$ac_optarg ;;
252b5132 1071
81ecdfbb
RW
1072 -localedir | --localedir | --localedi | --localed | --locale)
1073 ac_prev=localedir ;;
1074 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1075 localedir=$ac_optarg ;;
1076
252b5132 1077 -localstatedir | --localstatedir | --localstatedi | --localstated \
81ecdfbb 1078 | --localstate | --localstat | --localsta | --localst | --locals)
252b5132
RH
1079 ac_prev=localstatedir ;;
1080 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
81ecdfbb 1081 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
42ecbf5e 1082 localstatedir=$ac_optarg ;;
252b5132
RH
1083
1084 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1085 ac_prev=mandir ;;
1086 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
42ecbf5e 1087 mandir=$ac_optarg ;;
252b5132
RH
1088
1089 -nfp | --nfp | --nf)
1090 # Obsolete; use --without-fp.
1091 with_fp=no ;;
1092
1093 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
42ecbf5e 1094 | --no-cr | --no-c | -n)
252b5132
RH
1095 no_create=yes ;;
1096
1097 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1098 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1099 no_recursion=yes ;;
1100
1101 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1102 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1103 | --oldin | --oldi | --old | --ol | --o)
1104 ac_prev=oldincludedir ;;
1105 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1106 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1107 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
42ecbf5e 1108 oldincludedir=$ac_optarg ;;
252b5132
RH
1109
1110 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1111 ac_prev=prefix ;;
1112 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
42ecbf5e 1113 prefix=$ac_optarg ;;
252b5132
RH
1114
1115 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1116 | --program-pre | --program-pr | --program-p)
1117 ac_prev=program_prefix ;;
1118 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1119 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
42ecbf5e 1120 program_prefix=$ac_optarg ;;
252b5132
RH
1121
1122 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1123 | --program-suf | --program-su | --program-s)
1124 ac_prev=program_suffix ;;
1125 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1126 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
42ecbf5e 1127 program_suffix=$ac_optarg ;;
252b5132
RH
1128
1129 -program-transform-name | --program-transform-name \
1130 | --program-transform-nam | --program-transform-na \
1131 | --program-transform-n | --program-transform- \
1132 | --program-transform | --program-transfor \
1133 | --program-transfo | --program-transf \
1134 | --program-trans | --program-tran \
1135 | --progr-tra | --program-tr | --program-t)
1136 ac_prev=program_transform_name ;;
1137 -program-transform-name=* | --program-transform-name=* \
1138 | --program-transform-nam=* | --program-transform-na=* \
1139 | --program-transform-n=* | --program-transform-=* \
1140 | --program-transform=* | --program-transfor=* \
1141 | --program-transfo=* | --program-transf=* \
1142 | --program-trans=* | --program-tran=* \
1143 | --progr-tra=* | --program-tr=* | --program-t=*)
42ecbf5e 1144 program_transform_name=$ac_optarg ;;
252b5132 1145
81ecdfbb
RW
1146 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1147 ac_prev=pdfdir ;;
1148 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1149 pdfdir=$ac_optarg ;;
1150
1151 -psdir | --psdir | --psdi | --psd | --ps)
1152 ac_prev=psdir ;;
1153 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1154 psdir=$ac_optarg ;;
1155
252b5132
RH
1156 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1157 | -silent | --silent | --silen | --sile | --sil)
1158 silent=yes ;;
1159
1160 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1161 ac_prev=sbindir ;;
1162 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1163 | --sbi=* | --sb=*)
42ecbf5e 1164 sbindir=$ac_optarg ;;
252b5132
RH
1165
1166 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1167 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1168 | --sharedst | --shareds | --shared | --share | --shar \
1169 | --sha | --sh)
1170 ac_prev=sharedstatedir ;;
1171 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1172 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1173 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1174 | --sha=* | --sh=*)
42ecbf5e 1175 sharedstatedir=$ac_optarg ;;
252b5132
RH
1176
1177 -site | --site | --sit)
1178 ac_prev=site ;;
1179 -site=* | --site=* | --sit=*)
42ecbf5e 1180 site=$ac_optarg ;;
252b5132
RH
1181
1182 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1183 ac_prev=srcdir ;;
1184 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
42ecbf5e 1185 srcdir=$ac_optarg ;;
252b5132
RH
1186
1187 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1188 | --syscon | --sysco | --sysc | --sys | --sy)
1189 ac_prev=sysconfdir ;;
1190 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1191 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
42ecbf5e 1192 sysconfdir=$ac_optarg ;;
252b5132
RH
1193
1194 -target | --target | --targe | --targ | --tar | --ta | --t)
42ecbf5e 1195 ac_prev=target_alias ;;
252b5132 1196 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
42ecbf5e 1197 target_alias=$ac_optarg ;;
252b5132
RH
1198
1199 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1200 verbose=yes ;;
1201
42ecbf5e
DJ
1202 -version | --version | --versio | --versi | --vers | -V)
1203 ac_init_version=: ;;
252b5132
RH
1204
1205 -with-* | --with-*)
81ecdfbb 1206 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
252b5132 1207 # Reject names that are not valid shell variable names.
81ecdfbb 1208 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 1209 as_fn_error $? "invalid package name: $ac_useropt"
81ecdfbb
RW
1210 ac_useropt_orig=$ac_useropt
1211 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1212 case $ac_user_opts in
1213 *"
1214"with_$ac_useropt"
1215"*) ;;
1216 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1217 ac_unrecognized_sep=', ';;
252b5132 1218 esac
81ecdfbb 1219 eval with_$ac_useropt=\$ac_optarg ;;
252b5132
RH
1220
1221 -without-* | --without-*)
81ecdfbb 1222 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
252b5132 1223 # Reject names that are not valid shell variable names.
81ecdfbb 1224 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 1225 as_fn_error $? "invalid package name: $ac_useropt"
81ecdfbb
RW
1226 ac_useropt_orig=$ac_useropt
1227 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1228 case $ac_user_opts in
1229 *"
1230"with_$ac_useropt"
1231"*) ;;
1232 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1233 ac_unrecognized_sep=', ';;
1234 esac
1235 eval with_$ac_useropt=no ;;
252b5132
RH
1236
1237 --x)
1238 # Obsolete; use --with-x.
1239 with_x=yes ;;
1240
1241 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1242 | --x-incl | --x-inc | --x-in | --x-i)
1243 ac_prev=x_includes ;;
1244 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1245 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
42ecbf5e 1246 x_includes=$ac_optarg ;;
252b5132
RH
1247
1248 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1249 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1250 ac_prev=x_libraries ;;
1251 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1252 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
42ecbf5e 1253 x_libraries=$ac_optarg ;;
252b5132 1254
d0ac1c44
SM
1255 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1256Try \`$0 --help' for more information"
252b5132
RH
1257 ;;
1258
42ecbf5e
DJ
1259 *=*)
1260 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1261 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1262 case $ac_envvar in #(
1263 '' | [0-9]* | *[!_$as_cr_alnum]* )
d0ac1c44 1264 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
81ecdfbb
RW
1265 esac
1266 eval $ac_envvar=\$ac_optarg
42ecbf5e
DJ
1267 export $ac_envvar ;;
1268
252b5132 1269 *)
42ecbf5e 1270 # FIXME: should be removed in autoconf 3.0.
81ecdfbb 1271 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
42ecbf5e 1272 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
81ecdfbb 1273 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
d0ac1c44 1274 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
252b5132
RH
1275 ;;
1276
1277 esac
1278done
1279
1280if test -n "$ac_prev"; then
42ecbf5e 1281 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
d0ac1c44 1282 as_fn_error $? "missing argument to $ac_option"
252b5132
RH
1283fi
1284
81ecdfbb
RW
1285if test -n "$ac_unrecognized_opts"; then
1286 case $enable_option_checking in
1287 no) ;;
d0ac1c44 1288 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
81ecdfbb 1289 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
42ecbf5e 1290 esac
81ecdfbb 1291fi
252b5132 1292
81ecdfbb
RW
1293# Check all directory arguments for consistency.
1294for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1295 datadir sysconfdir sharedstatedir localstatedir includedir \
1296 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
31b0378d 1297 libdir localedir mandir
252b5132 1298do
81ecdfbb
RW
1299 eval ac_val=\$$ac_var
1300 # Remove trailing slashes.
42ecbf5e 1301 case $ac_val in
81ecdfbb
RW
1302 */ )
1303 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1304 eval $ac_var=\$ac_val;;
252b5132 1305 esac
81ecdfbb
RW
1306 # Be sure to have absolute directory names.
1307 case $ac_val in
1308 [\\/$]* | ?:[\\/]* ) continue;;
1309 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1310 esac
d0ac1c44 1311 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
252b5132
RH
1312done
1313
42ecbf5e
DJ
1314# There might be people who depend on the old broken behavior: `$host'
1315# used to hold the argument of --host etc.
1316# FIXME: To remove some day.
1317build=$build_alias
1318host=$host_alias
1319target=$target_alias
1320
1321# FIXME: To remove some day.
1322if test "x$host_alias" != x; then
1323 if test "x$build_alias" = x; then
1324 cross_compiling=maybe
42ecbf5e
DJ
1325 elif test "x$build_alias" != "x$host_alias"; then
1326 cross_compiling=yes
1327 fi
1328fi
e5a52504 1329
42ecbf5e
DJ
1330ac_tool_prefix=
1331test -n "$host_alias" && ac_tool_prefix=$host_alias-
1332
1333test "$silent" = yes && exec 6>/dev/null
252b5132 1334
252b5132 1335
81ecdfbb
RW
1336ac_pwd=`pwd` && test -n "$ac_pwd" &&
1337ac_ls_di=`ls -di .` &&
1338ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
d0ac1c44 1339 as_fn_error $? "working directory cannot be determined"
81ecdfbb 1340test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
d0ac1c44 1341 as_fn_error $? "pwd does not report name of working directory"
81ecdfbb
RW
1342
1343
252b5132
RH
1344# Find the source files, if location was not specified.
1345if test -z "$srcdir"; then
1346 ac_srcdir_defaulted=yes
81ecdfbb
RW
1347 # Try the directory containing this script, then the parent directory.
1348 ac_confdir=`$as_dirname -- "$as_myself" ||
1349$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1350 X"$as_myself" : 'X\(//\)[^/]' \| \
1351 X"$as_myself" : 'X\(//\)$' \| \
1352 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1353$as_echo X"$as_myself" |
1354 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1355 s//\1/
1356 q
1357 }
1358 /^X\(\/\/\)[^/].*/{
1359 s//\1/
1360 q
1361 }
1362 /^X\(\/\/\)$/{
1363 s//\1/
1364 q
1365 }
1366 /^X\(\/\).*/{
1367 s//\1/
1368 q
1369 }
1370 s/.*/./; q'`
252b5132 1371 srcdir=$ac_confdir
81ecdfbb 1372 if test ! -r "$srcdir/$ac_unique_file"; then
252b5132
RH
1373 srcdir=..
1374 fi
1375else
1376 ac_srcdir_defaulted=no
1377fi
81ecdfbb
RW
1378if test ! -r "$srcdir/$ac_unique_file"; then
1379 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
d0ac1c44 1380 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
81ecdfbb
RW
1381fi
1382ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1383ac_abs_confdir=`(
d0ac1c44 1384 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
81ecdfbb
RW
1385 pwd)`
1386# When building in place, set srcdir=.
1387if test "$ac_abs_confdir" = "$ac_pwd"; then
1388 srcdir=.
1389fi
1390# Remove unnecessary trailing slashes from srcdir.
1391# Double slashes in file names in object file debugging info
1392# mess up M-x gdb in Emacs.
1393case $srcdir in
1394*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1395esac
1396for ac_var in $ac_precious_vars; do
1397 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1398 eval ac_env_${ac_var}_value=\$${ac_var}
1399 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1400 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1401done
252b5132 1402
42ecbf5e
DJ
1403#
1404# Report the --help message.
1405#
1406if test "$ac_init_help" = "long"; then
1407 # Omit some internal or obsolete options to make the list less imposing.
1408 # This message is too long to be a string in the A/UX 3.1 sh.
1409 cat <<_ACEOF
b5c37946 1410\`configure' configures binutils 2.41.50 to adapt to many kinds of systems.
252b5132 1411
42ecbf5e 1412Usage: $0 [OPTION]... [VAR=VALUE]...
252b5132 1413
42ecbf5e
DJ
1414To assign environment variables (e.g., CC, CFLAGS...), specify them as
1415VAR=VALUE. See below for descriptions of some of the useful variables.
252b5132 1416
42ecbf5e 1417Defaults for the options are specified in brackets.
ac48eca1 1418
42ecbf5e
DJ
1419Configuration:
1420 -h, --help display this help and exit
1421 --help=short display options specific to this package
1422 --help=recursive display the short help of all the included packages
1423 -V, --version display version information and exit
d0ac1c44 1424 -q, --quiet, --silent do not print \`checking ...' messages
42ecbf5e
DJ
1425 --cache-file=FILE cache test results in FILE [disabled]
1426 -C, --config-cache alias for \`--cache-file=config.cache'
1427 -n, --no-create do not create output files
1428 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1429
42ecbf5e
DJ
1430Installation directories:
1431 --prefix=PREFIX install architecture-independent files in PREFIX
81ecdfbb 1432 [$ac_default_prefix]
42ecbf5e 1433 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
81ecdfbb 1434 [PREFIX]
ac48eca1 1435
42ecbf5e
DJ
1436By default, \`make install' will install all the files in
1437\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1438an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1439for instance \`--prefix=\$HOME'.
ac48eca1 1440
42ecbf5e 1441For better control, use the options below.
ac48eca1 1442
42ecbf5e 1443Fine tuning of the installation directories:
81ecdfbb
RW
1444 --bindir=DIR user executables [EPREFIX/bin]
1445 --sbindir=DIR system admin executables [EPREFIX/sbin]
1446 --libexecdir=DIR program executables [EPREFIX/libexec]
1447 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1448 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1449 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1450 --libdir=DIR object code libraries [EPREFIX/lib]
1451 --includedir=DIR C header files [PREFIX/include]
1452 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1453 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1454 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1455 --infodir=DIR info documentation [DATAROOTDIR/info]
1456 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1457 --mandir=DIR man documentation [DATAROOTDIR/man]
2e98a7bd 1458 --docdir=DIR documentation root [DATAROOTDIR/doc/binutils]
81ecdfbb
RW
1459 --htmldir=DIR html documentation [DOCDIR]
1460 --dvidir=DIR dvi documentation [DOCDIR]
1461 --pdfdir=DIR pdf documentation [DOCDIR]
1462 --psdir=DIR ps documentation [DOCDIR]
42ecbf5e 1463_ACEOF
ac48eca1 1464
42ecbf5e 1465 cat <<\_ACEOF
252b5132 1466
42ecbf5e
DJ
1467Program names:
1468 --program-prefix=PREFIX prepend PREFIX to installed program names
1469 --program-suffix=SUFFIX append SUFFIX to installed program names
1470 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
252b5132 1471
42ecbf5e
DJ
1472System types:
1473 --build=BUILD configure for building on BUILD [guessed]
1474 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1475 --target=TARGET configure for building compilers for TARGET [HOST]
1476_ACEOF
252b5132 1477fi
252b5132 1478
42ecbf5e 1479if test -n "$ac_init_help"; then
2e98a7bd 1480 case $ac_init_help in
b5c37946 1481 short | recursive ) echo "Configuration of binutils 2.41.50:";;
2e98a7bd 1482 esac
42ecbf5e 1483 cat <<\_ACEOF
252b5132 1484
42ecbf5e 1485Optional Features:
81ecdfbb 1486 --disable-option-checking ignore unrecognized --enable/--with options
42ecbf5e
DJ
1487 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1488 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
87b9f255
AM
1489 --enable-silent-rules less verbose build output (undo: "make V=1")
1490 --disable-silent-rules verbose build output (undo: "make V=0")
d0ac1c44
SM
1491 --enable-dependency-tracking
1492 do not reject slow dependency extractors
1493 --disable-dependency-tracking
1494 speeds up one-time build
81ecdfbb
RW
1495 --enable-shared[=PKGS] build shared libraries [default=yes]
1496 --enable-static[=PKGS] build static libraries [default=yes]
d7040cdb
SE
1497 --enable-fast-install[=PKGS]
1498 optimize for fast installation [default=yes]
42ecbf5e 1499 --disable-libtool-lock avoid locking (might break parallel builds)
b879806f
AM
1500 --enable-plugins Enable support for plugins
1501 --disable-largefile omit support for large files
43e05cd4 1502 --enable-checking enable run-time checks
42ecbf5e 1503 --enable-targets alternative target configurations
9cb80f72
RM
1504 --enable-deterministic-archives
1505 ar and ranlib default to -D behavior
7fac9594
NC
1506 --disable-default-strings-all
1507 strings defaults to --data behavior
e6f6aa8d
NC
1508 --enable-f-for-ifunc-symbols
1509 Have nm use F and f for global and local ifunc
1510 symbols
c46b7066
NC
1511 --enable-follow-debug-links
1512 Have readelf and objdump follow debug links by
1513 default
18bf5643
NC
1514 --enable-colored-disassembly
1515 Have objdump use colors in its disassembly by
1516 default
094e34f2 1517 --enable-libctf Handle .ctf type-info sections [default=yes]
241a6c40
AM
1518 --enable-werror treat compile warnings as errors
1519 --enable-build-warnings enable build-time compiler warnings
42ecbf5e 1520 --disable-nls do not use Native Language Support
862776f2 1521 --disable-rpath do not hardcode runtime library paths
d0ac1c44
SM
1522 --enable-maintainer-mode
1523 enable make rules and dependencies not useful (and
1524 sometimes confusing) to the casual installer
42ecbf5e
DJ
1525
1526Optional Packages:
1527 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1528 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
d7040cdb
SE
1529 --with-pic try to use only PIC/non-PIC objects [default=use
1530 both]
1531 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
301a9420
AM
1532 --with-debuginfod Enable debuginfo lookups with debuginfod
1533 (auto/yes/no)
5ba684e2
NC
1534 --with-gnu-ld assume the C compiler uses GNU ld default=no
1535 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1536 --without-libiconv-prefix don't search for libiconv in includedir and libdir
9f1528a1 1537 --with-libiconv-type=TYPE type of library to search for (auto/static/shared)
862776f2
AA
1538 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1539 --without-libintl-prefix don't search for libintl in includedir and libdir
1540 --with-libintl-type=TYPE type of library to search for (auto/static/shared)
1541 --with-system-zlib use installed libz
1542 --with-zstd support zstd compressed debug sections
1543 (default=auto)
1544 --with-msgpack Enable msgpack support (auto/yes/no)
252b5132 1545
42ecbf5e
DJ
1546Some influential environment variables:
1547 CC C compiler command
1548 CFLAGS C compiler flags
1549 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1550 nonstandard directory <lib dir>
81ecdfbb 1551 LIBS libraries to pass to the linker, e.g. -l<library>
d0ac1c44 1552 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
81ecdfbb 1553 you have headers in a nonstandard directory <include dir>
42ecbf5e 1554 CPP C preprocessor
f6720b1c
AM
1555 PKG_CONFIG path to pkg-config utility
1556 PKG_CONFIG_PATH
1557 directories to add to pkg-config's search path
1558 PKG_CONFIG_LIBDIR
1559 path overriding pkg-config's built-in search path
1560 DEBUGINFOD_CFLAGS
1561 C compiler flags for DEBUGINFOD, overriding pkg-config
1562 DEBUGINFOD_LIBS
1563 linker flags for DEBUGINFOD, overriding pkg-config
d0ac1c44
SM
1564 YACC The `Yet Another Compiler Compiler' implementation to use.
1565 Defaults to the first program found out of: `bison -y', `byacc',
1566 `yacc'.
81ecdfbb
RW
1567 YFLAGS The list of arguments that will be passed by default to $YACC.
1568 This script will default YFLAGS to the empty string to avoid a
1569 default value of `-d' given by some make applications.
2cac01e3
FS
1570 ZSTD_CFLAGS C compiler flags for ZSTD, overriding pkg-config
1571 ZSTD_LIBS linker flags for ZSTD, overriding pkg-config
2952f10c
SM
1572 MSGPACK_CFLAGS
1573 C compiler flags for MSGPACK, overriding pkg-config
1574 MSGPACK_LIBS
1575 linker flags for MSGPACK, overriding pkg-config
e5a52504 1576
42ecbf5e
DJ
1577Use these variables to override the choices made by `configure' or to help
1578it to find libraries and programs with nonstandard names/locations.
1579
81ecdfbb 1580Report bugs to the package provider.
42ecbf5e 1581_ACEOF
81ecdfbb 1582ac_status=$?
252b5132
RH
1583fi
1584
42ecbf5e
DJ
1585if test "$ac_init_help" = "recursive"; then
1586 # If there are subdirs, report their specific --help.
42ecbf5e 1587 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
81ecdfbb
RW
1588 test -d "$ac_dir" ||
1589 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1590 continue
42ecbf5e
DJ
1591 ac_builddir=.
1592
81ecdfbb
RW
1593case "$ac_dir" in
1594.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1595*)
1596 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1597 # A ".." for each directory in $ac_dir_suffix.
1598 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1599 case $ac_top_builddir_sub in
1600 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1601 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1602 esac ;;
1603esac
1604ac_abs_top_builddir=$ac_pwd
1605ac_abs_builddir=$ac_pwd$ac_dir_suffix
1606# for backward compatibility:
1607ac_top_builddir=$ac_top_build_prefix
252b5132 1608
42ecbf5e 1609case $srcdir in
81ecdfbb 1610 .) # We are building in place.
42ecbf5e 1611 ac_srcdir=.
81ecdfbb
RW
1612 ac_top_srcdir=$ac_top_builddir_sub
1613 ac_abs_top_srcdir=$ac_pwd ;;
1614 [\\/]* | ?:[\\/]* ) # Absolute name.
42ecbf5e 1615 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
1616 ac_top_srcdir=$srcdir
1617 ac_abs_top_srcdir=$srcdir ;;
1618 *) # Relative name.
1619 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1620 ac_top_srcdir=$ac_top_build_prefix$srcdir
1621 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
252b5132 1622esac
81ecdfbb
RW
1623ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1624
1625 cd "$ac_dir" || { ac_status=$?; continue; }
1626 # Check for guested configure.
1627 if test -f "$ac_srcdir/configure.gnu"; then
1628 echo &&
1629 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1630 elif test -f "$ac_srcdir/configure"; then
1631 echo &&
1632 $SHELL "$ac_srcdir/configure" --help=recursive
42ecbf5e 1633 else
81ecdfbb
RW
1634 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1635 fi || ac_status=$?
1636 cd "$ac_pwd" || { ac_status=$?; break; }
42ecbf5e
DJ
1637 done
1638fi
5d64ca4e 1639
81ecdfbb 1640test -n "$ac_init_help" && exit $ac_status
42ecbf5e
DJ
1641if $ac_init_version; then
1642 cat <<\_ACEOF
b5c37946 1643binutils configure 2.41.50
d0ac1c44 1644generated by GNU Autoconf 2.69
5d64ca4e 1645
d0ac1c44 1646Copyright (C) 2012 Free Software Foundation, Inc.
42ecbf5e
DJ
1647This configure script is free software; the Free Software Foundation
1648gives unlimited permission to copy, distribute and modify it.
1649_ACEOF
81ecdfbb 1650 exit
42ecbf5e 1651fi
252b5132 1652
81ecdfbb
RW
1653## ------------------------ ##
1654## Autoconf initialization. ##
1655## ------------------------ ##
e5a52504 1656
81ecdfbb
RW
1657# ac_fn_c_try_compile LINENO
1658# --------------------------
1659# Try to compile conftest.$ac_ext, and return whether this succeeded.
1660ac_fn_c_try_compile ()
42ecbf5e 1661{
81ecdfbb
RW
1662 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1663 rm -f conftest.$ac_objext
1664 if { { ac_try="$ac_compile"
1665case "(($ac_try" in
1666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1667 *) ac_try_echo=$ac_try;;
1668esac
1669eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1670$as_echo "$ac_try_echo"; } >&5
1671 (eval "$ac_compile") 2>conftest.err
1672 ac_status=$?
1673 if test -s conftest.err; then
1674 grep -v '^ *+' conftest.err >conftest.er1
1675 cat conftest.er1 >&5
1676 mv -f conftest.er1 conftest.err
1677 fi
1678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1679 test $ac_status = 0; } && {
1680 test -z "$ac_c_werror_flag" ||
1681 test ! -s conftest.err
1682 } && test -s conftest.$ac_objext; then :
1683 ac_retval=0
1684else
1685 $as_echo "$as_me: failed program was:" >&5
1686sed 's/^/| /' conftest.$ac_ext >&5
42ecbf5e 1687
81ecdfbb
RW
1688 ac_retval=1
1689fi
d0ac1c44
SM
1690 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1691 as_fn_set_status $ac_retval
42ecbf5e 1692
81ecdfbb
RW
1693} # ac_fn_c_try_compile
1694
81ecdfbb
RW
1695# ac_fn_c_try_cpp LINENO
1696# ----------------------
1697# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1698ac_fn_c_try_cpp ()
1699{
1700 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1701 if { { ac_try="$ac_cpp conftest.$ac_ext"
1702case "(($ac_try" in
1703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1704 *) ac_try_echo=$ac_try;;
1705esac
1706eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1707$as_echo "$ac_try_echo"; } >&5
1708 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1709 ac_status=$?
1710 if test -s conftest.err; then
1711 grep -v '^ *+' conftest.err >conftest.er1
1712 cat conftest.er1 >&5
1713 mv -f conftest.er1 conftest.err
1714 fi
1715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
d0ac1c44 1716 test $ac_status = 0; } > conftest.i && {
81ecdfbb
RW
1717 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1718 test ! -s conftest.err
1719 }; then :
1720 ac_retval=0
1721else
1722 $as_echo "$as_me: failed program was:" >&5
1723sed 's/^/| /' conftest.$ac_ext >&5
1724
1725 ac_retval=1
1726fi
d0ac1c44
SM
1727 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1728 as_fn_set_status $ac_retval
81ecdfbb
RW
1729
1730} # ac_fn_c_try_cpp
1731
1732# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1733# -------------------------------------------------------
1734# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1735# the include files in INCLUDES and setting the cache variable VAR
1736# accordingly.
1737ac_fn_c_check_header_mongrel ()
1738{
1739 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
d0ac1c44 1740 if eval \${$3+:} false; then :
81ecdfbb
RW
1741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1742$as_echo_n "checking for $2... " >&6; }
d0ac1c44 1743if eval \${$3+:} false; then :
81ecdfbb
RW
1744 $as_echo_n "(cached) " >&6
1745fi
1746eval ac_res=\$$3
1747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1748$as_echo "$ac_res" >&6; }
1749else
1750 # Is the header compilable?
1751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1752$as_echo_n "checking $2 usability... " >&6; }
1753cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1754/* end confdefs.h. */
1755$4
1756#include <$2>
1757_ACEOF
1758if ac_fn_c_try_compile "$LINENO"; then :
1759 ac_header_compiler=yes
1760else
1761 ac_header_compiler=no
1762fi
1763rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1765$as_echo "$ac_header_compiler" >&6; }
1766
1767# Is the header present?
1768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1769$as_echo_n "checking $2 presence... " >&6; }
1770cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1771/* end confdefs.h. */
1772#include <$2>
1773_ACEOF
1774if ac_fn_c_try_cpp "$LINENO"; then :
1775 ac_header_preproc=yes
1776else
1777 ac_header_preproc=no
1778fi
d0ac1c44 1779rm -f conftest.err conftest.i conftest.$ac_ext
81ecdfbb
RW
1780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1781$as_echo "$ac_header_preproc" >&6; }
1782
1783# So? What about this header?
1784case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1785 yes:no: )
1786 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1787$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1788 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1789$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1790 ;;
1791 no:yes:* )
1792 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1793$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1794 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1795$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1796 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1797$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1798 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1799$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1800 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1801$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1802 ;;
1803esac
1804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1805$as_echo_n "checking for $2... " >&6; }
d0ac1c44 1806if eval \${$3+:} false; then :
81ecdfbb
RW
1807 $as_echo_n "(cached) " >&6
1808else
1809 eval "$3=\$ac_header_compiler"
1810fi
1811eval ac_res=\$$3
1812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1813$as_echo "$ac_res" >&6; }
1814fi
d0ac1c44 1815 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
81ecdfbb
RW
1816
1817} # ac_fn_c_check_header_mongrel
1818
1819# ac_fn_c_try_run LINENO
1820# ----------------------
1821# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1822# that executables *can* be run.
1823ac_fn_c_try_run ()
1824{
1825 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1826 if { { ac_try="$ac_link"
1827case "(($ac_try" in
1828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1829 *) ac_try_echo=$ac_try;;
1830esac
1831eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1832$as_echo "$ac_try_echo"; } >&5
1833 (eval "$ac_link") 2>&5
1834 ac_status=$?
1835 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1836 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1837 { { case "(($ac_try" in
1838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1839 *) ac_try_echo=$ac_try;;
1840esac
1841eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1842$as_echo "$ac_try_echo"; } >&5
1843 (eval "$ac_try") 2>&5
1844 ac_status=$?
1845 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1846 test $ac_status = 0; }; }; then :
1847 ac_retval=0
1848else
1849 $as_echo "$as_me: program exited with status $ac_status" >&5
1850 $as_echo "$as_me: failed program was:" >&5
1851sed 's/^/| /' conftest.$ac_ext >&5
1852
1853 ac_retval=$ac_status
1854fi
1855 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
d0ac1c44
SM
1856 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1857 as_fn_set_status $ac_retval
81ecdfbb
RW
1858
1859} # ac_fn_c_try_run
1860
1861# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1862# -------------------------------------------------------
1863# Tests whether HEADER exists and can be compiled using the include files in
1864# INCLUDES, setting the cache variable VAR accordingly.
1865ac_fn_c_check_header_compile ()
1866{
1867 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1869$as_echo_n "checking for $2... " >&6; }
d0ac1c44 1870if eval \${$3+:} false; then :
81ecdfbb
RW
1871 $as_echo_n "(cached) " >&6
1872else
1873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1874/* end confdefs.h. */
1875$4
1876#include <$2>
1877_ACEOF
1878if ac_fn_c_try_compile "$LINENO"; then :
1879 eval "$3=yes"
1880else
1881 eval "$3=no"
1882fi
1883rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1884fi
1885eval ac_res=\$$3
1886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1887$as_echo "$ac_res" >&6; }
d0ac1c44 1888 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
81ecdfbb
RW
1889
1890} # ac_fn_c_check_header_compile
1891
87b9f255
AM
1892# ac_fn_c_try_link LINENO
1893# -----------------------
1894# Try to link conftest.$ac_ext, and return whether this succeeded.
1895ac_fn_c_try_link ()
1896{
1897 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1898 rm -f conftest.$ac_objext conftest$ac_exeext
1899 if { { ac_try="$ac_link"
1900case "(($ac_try" in
1901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1902 *) ac_try_echo=$ac_try;;
1903esac
1904eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1905$as_echo "$ac_try_echo"; } >&5
1906 (eval "$ac_link") 2>conftest.err
1907 ac_status=$?
1908 if test -s conftest.err; then
1909 grep -v '^ *+' conftest.err >conftest.er1
1910 cat conftest.er1 >&5
1911 mv -f conftest.er1 conftest.err
1912 fi
1913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1914 test $ac_status = 0; } && {
1915 test -z "$ac_c_werror_flag" ||
1916 test ! -s conftest.err
1917 } && test -s conftest$ac_exeext && {
1918 test "$cross_compiling" = yes ||
1919 test -x conftest$ac_exeext
1920 }; then :
1921 ac_retval=0
1922else
1923 $as_echo "$as_me: failed program was:" >&5
1924sed 's/^/| /' conftest.$ac_ext >&5
1925
1926 ac_retval=1
1927fi
1928 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1929 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1930 # interfere with the next link command; also delete a directory that is
1931 # left behind by Apple's compiler. We do this before executing the actions.
1932 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1933 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1934 as_fn_set_status $ac_retval
1935
1936} # ac_fn_c_try_link
1937
81ecdfbb
RW
1938# ac_fn_c_check_func LINENO FUNC VAR
1939# ----------------------------------
1940# Tests whether FUNC exists, setting the cache variable VAR accordingly
1941ac_fn_c_check_func ()
1942{
1943 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1945$as_echo_n "checking for $2... " >&6; }
d0ac1c44 1946if eval \${$3+:} false; then :
81ecdfbb
RW
1947 $as_echo_n "(cached) " >&6
1948else
1949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1950/* end confdefs.h. */
1951/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1952 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1953#define $2 innocuous_$2
1954
1955/* System header to define __stub macros and hopefully few prototypes,
1956 which can conflict with char $2 (); below.
1957 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1958 <limits.h> exists even on freestanding compilers. */
1959
1960#ifdef __STDC__
1961# include <limits.h>
1962#else
1963# include <assert.h>
1964#endif
1965
1966#undef $2
1967
1968/* Override any GCC internal prototype to avoid an error.
1969 Use char because int might match the return type of a GCC
1970 builtin and then its argument prototype would still apply. */
1971#ifdef __cplusplus
1972extern "C"
1973#endif
1974char $2 ();
1975/* The GNU C library defines this for functions which it implements
1976 to always fail with ENOSYS. Some functions are actually named
1977 something starting with __ and the normal name is an alias. */
1978#if defined __stub_$2 || defined __stub___$2
1979choke me
1980#endif
1981
1982int
1983main ()
1984{
1985return $2 ();
1986 ;
1987 return 0;
1988}
1989_ACEOF
1990if ac_fn_c_try_link "$LINENO"; then :
1991 eval "$3=yes"
1992else
1993 eval "$3=no"
1994fi
1995rm -f core conftest.err conftest.$ac_objext \
1996 conftest$ac_exeext conftest.$ac_ext
1997fi
1998eval ac_res=\$$3
1999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2000$as_echo "$ac_res" >&6; }
d0ac1c44 2001 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
81ecdfbb
RW
2002
2003} # ac_fn_c_check_func
2004
985e0264
AM
2005# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2006# ----------------------------------------------------
2007# Tries to find if the field MEMBER exists in type AGGR, after including
2008# INCLUDES, setting cache variable VAR accordingly.
2009ac_fn_c_check_member ()
2010{
2011 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2013$as_echo_n "checking for $2.$3... " >&6; }
2014if eval \${$4+:} false; then :
2015 $as_echo_n "(cached) " >&6
2016else
2017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2018/* end confdefs.h. */
2019$5
2020int
2021main ()
2022{
2023static $2 ac_aggr;
2024if (ac_aggr.$3)
2025return 0;
2026 ;
2027 return 0;
2028}
2029_ACEOF
2030if ac_fn_c_try_compile "$LINENO"; then :
2031 eval "$4=yes"
2032else
2033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2034/* end confdefs.h. */
2035$5
2036int
2037main ()
2038{
2039static $2 ac_aggr;
2040if (sizeof ac_aggr.$3)
2041return 0;
2042 ;
2043 return 0;
2044}
2045_ACEOF
2046if ac_fn_c_try_compile "$LINENO"; then :
2047 eval "$4=yes"
2048else
2049 eval "$4=no"
2050fi
2051rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2052fi
2053rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2054fi
2055eval ac_res=\$$4
2056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2057$as_echo "$ac_res" >&6; }
2058 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2059
2060} # ac_fn_c_check_member
2061
f6720b1c
AM
2062# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2063# ---------------------------------------------
2064# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2065# accordingly.
2066ac_fn_c_check_decl ()
2067{
2068 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2069 as_decl_name=`echo $2|sed 's/ *(.*//'`
2070 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2072$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2073if eval \${$3+:} false; then :
2074 $as_echo_n "(cached) " >&6
2075else
2076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2077/* end confdefs.h. */
2078$4
2079int
2080main ()
2081{
2082#ifndef $as_decl_name
2083#ifdef __cplusplus
2084 (void) $as_decl_use;
2085#else
2086 (void) $as_decl_name;
2087#endif
2088#endif
2089
2090 ;
2091 return 0;
2092}
2093_ACEOF
2094if ac_fn_c_try_compile "$LINENO"; then :
2095 eval "$3=yes"
2096else
2097 eval "$3=no"
2098fi
2099rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2100fi
2101eval ac_res=\$$3
2102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2103$as_echo "$ac_res" >&6; }
2104 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2105
2106} # ac_fn_c_check_decl
81ecdfbb
RW
2107cat >config.log <<_ACEOF
2108This file contains any messages produced by compilers while
2109running configure, to aid debugging if configure makes a mistake.
2110
b5c37946 2111It was created by binutils $as_me 2.41.50, which was
d0ac1c44 2112generated by GNU Autoconf 2.69. Invocation command line was
81ecdfbb
RW
2113
2114 $ $0 $@
2115
2116_ACEOF
2117exec 5>>config.log
2118{
2119cat <<_ASUNAME
2120## --------- ##
2121## Platform. ##
2122## --------- ##
2123
2124hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2125uname -m = `(uname -m) 2>/dev/null || echo unknown`
2126uname -r = `(uname -r) 2>/dev/null || echo unknown`
2127uname -s = `(uname -s) 2>/dev/null || echo unknown`
2128uname -v = `(uname -v) 2>/dev/null || echo unknown`
2129
2130/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2131/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2132
2133/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2134/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2135/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2136/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2137/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2138/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2139/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
42ecbf5e
DJ
2140
2141_ASUNAME
2142
2143as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2144for as_dir in $PATH
2145do
2146 IFS=$as_save_IFS
2147 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2148 $as_echo "PATH: $as_dir"
2149 done
2150IFS=$as_save_IFS
e5a52504 2151
42ecbf5e 2152} >&5
ceae3e33 2153
42ecbf5e 2154cat >&5 <<_ACEOF
e5a52504 2155
42ecbf5e
DJ
2156
2157## ----------- ##
2158## Core tests. ##
2159## ----------- ##
2160
2161_ACEOF
2162
2163
2164# Keep a trace of the command line.
2165# Strip out --no-create and --no-recursion so they do not pile up.
2166# Strip out --silent because we don't want to record it for future runs.
2167# Also quote any args containing shell meta-characters.
2168# Make two passes to allow for proper duplicate-argument suppression.
2169ac_configure_args=
2170ac_configure_args0=
2171ac_configure_args1=
42ecbf5e
DJ
2172ac_must_keep_next=false
2173for ac_pass in 1 2
2174do
2175 for ac_arg
2176 do
2177 case $ac_arg in
2178 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2179 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2180 | -silent | --silent | --silen | --sile | --sil)
2181 continue ;;
81ecdfbb
RW
2182 *\'*)
2183 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
42ecbf5e
DJ
2184 esac
2185 case $ac_pass in
81ecdfbb 2186 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
42ecbf5e 2187 2)
81ecdfbb 2188 as_fn_append ac_configure_args1 " '$ac_arg'"
42ecbf5e
DJ
2189 if test $ac_must_keep_next = true; then
2190 ac_must_keep_next=false # Got value, back to normal.
2191 else
2192 case $ac_arg in
2193 *=* | --config-cache | -C | -disable-* | --disable-* \
2194 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2195 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2196 | -with-* | --with-* | -without-* | --without-* | --x)
2197 case "$ac_configure_args0 " in
2198 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2199 esac
2200 ;;
2201 -* ) ac_must_keep_next=true ;;
2202 esac
2203 fi
81ecdfbb 2204 as_fn_append ac_configure_args " '$ac_arg'"
42ecbf5e
DJ
2205 ;;
2206 esac
2207 done
2208done
81ecdfbb
RW
2209{ ac_configure_args0=; unset ac_configure_args0;}
2210{ ac_configure_args1=; unset ac_configure_args1;}
42ecbf5e
DJ
2211
2212# When interrupted or exit'd, cleanup temporary files, and complete
2213# config.log. We remove comments because anyway the quotes in there
2214# would cause problems or look ugly.
81ecdfbb
RW
2215# WARNING: Use '\'' to represent an apostrophe within the trap.
2216# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
42ecbf5e
DJ
2217trap 'exit_status=$?
2218 # Save into config.log some information that might help in debugging.
2219 {
2220 echo
2221
d0ac1c44 2222 $as_echo "## ---------------- ##
42ecbf5e 2223## Cache variables. ##
d0ac1c44 2224## ---------------- ##"
42ecbf5e
DJ
2225 echo
2226 # The following way of writing the cache mishandles newlines in values,
81ecdfbb
RW
2227(
2228 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2229 eval ac_val=\$$ac_var
2230 case $ac_val in #(
2231 *${as_nl}*)
2232 case $ac_var in #(
2233 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2234$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2235 esac
2236 case $ac_var in #(
2237 _ | IFS | as_nl) ;; #(
2238 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2239 *) { eval $ac_var=; unset $ac_var;} ;;
2240 esac ;;
2241 esac
2242 done
42ecbf5e 2243 (set) 2>&1 |
81ecdfbb
RW
2244 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2245 *${as_nl}ac_space=\ *)
42ecbf5e 2246 sed -n \
81ecdfbb
RW
2247 "s/'\''/'\''\\\\'\'''\''/g;
2248 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2249 ;; #(
42ecbf5e 2250 *)
81ecdfbb 2251 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
42ecbf5e 2252 ;;
81ecdfbb
RW
2253 esac |
2254 sort
2255)
42ecbf5e
DJ
2256 echo
2257
d0ac1c44 2258 $as_echo "## ----------------- ##
42ecbf5e 2259## Output variables. ##
d0ac1c44 2260## ----------------- ##"
42ecbf5e
DJ
2261 echo
2262 for ac_var in $ac_subst_vars
2263 do
81ecdfbb
RW
2264 eval ac_val=\$$ac_var
2265 case $ac_val in
2266 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2267 esac
2268 $as_echo "$ac_var='\''$ac_val'\''"
42ecbf5e
DJ
2269 done | sort
2270 echo
2271
2272 if test -n "$ac_subst_files"; then
d0ac1c44 2273 $as_echo "## ------------------- ##
81ecdfbb 2274## File substitutions. ##
d0ac1c44 2275## ------------------- ##"
42ecbf5e
DJ
2276 echo
2277 for ac_var in $ac_subst_files
2278 do
81ecdfbb
RW
2279 eval ac_val=\$$ac_var
2280 case $ac_val in
2281 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2282 esac
2283 $as_echo "$ac_var='\''$ac_val'\''"
42ecbf5e
DJ
2284 done | sort
2285 echo
2286 fi
2287
2288 if test -s confdefs.h; then
d0ac1c44 2289 $as_echo "## ----------- ##
42ecbf5e 2290## confdefs.h. ##
d0ac1c44 2291## ----------- ##"
42ecbf5e 2292 echo
81ecdfbb 2293 cat confdefs.h
42ecbf5e
DJ
2294 echo
2295 fi
2296 test "$ac_signal" != 0 &&
81ecdfbb
RW
2297 $as_echo "$as_me: caught signal $ac_signal"
2298 $as_echo "$as_me: exit $exit_status"
42ecbf5e 2299 } >&5
81ecdfbb
RW
2300 rm -f core *.core core.conftest.* &&
2301 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
42ecbf5e 2302 exit $exit_status
81ecdfbb 2303' 0
42ecbf5e 2304for ac_signal in 1 2 13 15; do
81ecdfbb 2305 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
42ecbf5e
DJ
2306done
2307ac_signal=0
2308
2309# confdefs.h avoids OS command line length limits that DEFS can exceed.
81ecdfbb
RW
2310rm -f -r conftest* confdefs.h
2311
2312$as_echo "/* confdefs.h */" > confdefs.h
42ecbf5e
DJ
2313
2314# Predefined preprocessor variables.
2315
2316cat >>confdefs.h <<_ACEOF
2317#define PACKAGE_NAME "$PACKAGE_NAME"
2318_ACEOF
2319
42ecbf5e
DJ
2320cat >>confdefs.h <<_ACEOF
2321#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2322_ACEOF
2323
42ecbf5e
DJ
2324cat >>confdefs.h <<_ACEOF
2325#define PACKAGE_VERSION "$PACKAGE_VERSION"
2326_ACEOF
2327
42ecbf5e
DJ
2328cat >>confdefs.h <<_ACEOF
2329#define PACKAGE_STRING "$PACKAGE_STRING"
2330_ACEOF
2331
42ecbf5e
DJ
2332cat >>confdefs.h <<_ACEOF
2333#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2334_ACEOF
2335
81ecdfbb
RW
2336cat >>confdefs.h <<_ACEOF
2337#define PACKAGE_URL "$PACKAGE_URL"
2338_ACEOF
2339
42ecbf5e
DJ
2340
2341# Let the site file select an alternate cache file if it wants to.
81ecdfbb
RW
2342# Prefer an explicitly selected file to automatically selected ones.
2343ac_site_file1=NONE
2344ac_site_file2=NONE
2345if test -n "$CONFIG_SITE"; then
d0ac1c44
SM
2346 # We do not want a PATH search for config.site.
2347 case $CONFIG_SITE in #((
2348 -*) ac_site_file1=./$CONFIG_SITE;;
2349 */*) ac_site_file1=$CONFIG_SITE;;
2350 *) ac_site_file1=./$CONFIG_SITE;;
2351 esac
81ecdfbb
RW
2352elif test "x$prefix" != xNONE; then
2353 ac_site_file1=$prefix/share/config.site
2354 ac_site_file2=$prefix/etc/config.site
2355else
2356 ac_site_file1=$ac_default_prefix/share/config.site
2357 ac_site_file2=$ac_default_prefix/etc/config.site
2358fi
2359for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2360do
2361 test "x$ac_site_file" = xNONE && continue
d0ac1c44 2362 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
81ecdfbb
RW
2363 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2364$as_echo "$as_me: loading site script $ac_site_file" >&6;}
42ecbf5e 2365 sed 's/^/| /' "$ac_site_file" >&5
d0ac1c44
SM
2366 . "$ac_site_file" \
2367 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2368$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2369as_fn_error $? "failed to load site script $ac_site_file
2370See \`config.log' for more details" "$LINENO" 5; }
42ecbf5e
DJ
2371 fi
2372done
2373
2374if test -r "$cache_file"; then
d0ac1c44
SM
2375 # Some versions of bash will fail to source /dev/null (special files
2376 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2377 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
81ecdfbb
RW
2378 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2379$as_echo "$as_me: loading cache $cache_file" >&6;}
42ecbf5e 2380 case $cache_file in
81ecdfbb
RW
2381 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2382 *) . "./$cache_file";;
42ecbf5e
DJ
2383 esac
2384 fi
2385else
81ecdfbb
RW
2386 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2387$as_echo "$as_me: creating cache $cache_file" >&6;}
42ecbf5e
DJ
2388 >$cache_file
2389fi
2390
862776f2 2391gt_needs="$gt_needs "
34156b23
L
2392as_fn_append ac_header_list " stdlib.h"
2393as_fn_append ac_header_list " unistd.h"
2394as_fn_append ac_header_list " sys/param.h"
42ecbf5e
DJ
2395# Check that the precious variables saved in the cache have kept the same
2396# value.
2397ac_cache_corrupted=false
81ecdfbb 2398for ac_var in $ac_precious_vars; do
42ecbf5e
DJ
2399 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2400 eval ac_new_set=\$ac_env_${ac_var}_set
81ecdfbb
RW
2401 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2402 eval ac_new_val=\$ac_env_${ac_var}_value
42ecbf5e
DJ
2403 case $ac_old_set,$ac_new_set in
2404 set,)
81ecdfbb
RW
2405 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2406$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
42ecbf5e
DJ
2407 ac_cache_corrupted=: ;;
2408 ,set)
81ecdfbb
RW
2409 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2410$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
42ecbf5e
DJ
2411 ac_cache_corrupted=: ;;
2412 ,);;
2413 *)
2414 if test "x$ac_old_val" != "x$ac_new_val"; then
81ecdfbb
RW
2415 # differences in whitespace do not lead to failure.
2416 ac_old_val_w=`echo x $ac_old_val`
2417 ac_new_val_w=`echo x $ac_new_val`
2418 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2419 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2420$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2421 ac_cache_corrupted=:
2422 else
2423 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2424$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2425 eval $ac_var=\$ac_old_val
2426 fi
2427 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2428$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2429 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2430$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
42ecbf5e
DJ
2431 fi;;
2432 esac
2433 # Pass precious variables to config.status.
2434 if test "$ac_new_set" = set; then
2435 case $ac_new_val in
81ecdfbb 2436 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
42ecbf5e
DJ
2437 *) ac_arg=$ac_var=$ac_new_val ;;
2438 esac
2439 case " $ac_configure_args " in
2440 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
81ecdfbb 2441 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
42ecbf5e
DJ
2442 esac
2443 fi
2444done
2445if $ac_cache_corrupted; then
81ecdfbb
RW
2446 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2447$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2448 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2449$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
d0ac1c44 2450 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
42ecbf5e 2451fi
81ecdfbb
RW
2452## -------------------- ##
2453## Main body of script. ##
2454## -------------------- ##
42ecbf5e
DJ
2455
2456ac_ext=c
2457ac_cpp='$CPP $CPPFLAGS'
2458ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2459ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2460ac_compiler_gnu=$ac_cv_c_compiler_gnu
2461
2462
2463
42ecbf5e 2464
da594c4a 2465
42ecbf5e
DJ
2466
2467
2468ac_aux_dir=
81ecdfbb 2469for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
d0ac1c44
SM
2470 if test -f "$ac_dir/install-sh"; then
2471 ac_aux_dir=$ac_dir
2472 ac_install_sh="$ac_aux_dir/install-sh -c"
2473 break
2474 elif test -f "$ac_dir/install.sh"; then
2475 ac_aux_dir=$ac_dir
2476 ac_install_sh="$ac_aux_dir/install.sh -c"
2477 break
2478 elif test -f "$ac_dir/shtool"; then
2479 ac_aux_dir=$ac_dir
2480 ac_install_sh="$ac_aux_dir/shtool install -c"
2481 break
2482 fi
42ecbf5e
DJ
2483done
2484if test -z "$ac_aux_dir"; then
d0ac1c44 2485 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
42ecbf5e 2486fi
81ecdfbb
RW
2487
2488# These three variables are undocumented and unsupported,
2489# and are intended to be withdrawn in a future Autoconf release.
2490# They can cause serious problems if a builder's source tree is in a directory
2491# whose full name contains unusual characters.
2492ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2493ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2494ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2495
42ecbf5e
DJ
2496
2497# Make sure we can run config.sub.
81ecdfbb 2498$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
d0ac1c44 2499 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
81ecdfbb
RW
2500
2501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2502$as_echo_n "checking build system type... " >&6; }
d0ac1c44 2503if ${ac_cv_build+:} false; then :
81ecdfbb
RW
2504 $as_echo_n "(cached) " >&6
2505else
2506 ac_build_alias=$build_alias
2507test "x$ac_build_alias" = x &&
2508 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2509test "x$ac_build_alias" = x &&
d0ac1c44 2510 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
81ecdfbb 2511ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
d0ac1c44 2512 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
81ecdfbb
RW
2513
2514fi
2515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2516$as_echo "$ac_cv_build" >&6; }
2517case $ac_cv_build in
2518*-*-*) ;;
d0ac1c44 2519*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
81ecdfbb 2520esac
42ecbf5e 2521build=$ac_cv_build
81ecdfbb
RW
2522ac_save_IFS=$IFS; IFS='-'
2523set x $ac_cv_build
2524shift
2525build_cpu=$1
2526build_vendor=$2
2527shift; shift
2528# Remember, the first character of IFS is used to create $*,
2529# except with old shells:
2530build_os=$*
2531IFS=$ac_save_IFS
2532case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
42ecbf5e
DJ
2533
2534
81ecdfbb
RW
2535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2536$as_echo_n "checking host system type... " >&6; }
d0ac1c44 2537if ${ac_cv_host+:} false; then :
81ecdfbb 2538 $as_echo_n "(cached) " >&6
42ecbf5e 2539else
81ecdfbb
RW
2540 if test "x$host_alias" = x; then
2541 ac_cv_host=$ac_cv_build
2542else
2543 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
d0ac1c44 2544 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
81ecdfbb 2545fi
42ecbf5e
DJ
2546
2547fi
81ecdfbb
RW
2548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2549$as_echo "$ac_cv_host" >&6; }
2550case $ac_cv_host in
2551*-*-*) ;;
d0ac1c44 2552*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
81ecdfbb 2553esac
42ecbf5e 2554host=$ac_cv_host
81ecdfbb
RW
2555ac_save_IFS=$IFS; IFS='-'
2556set x $ac_cv_host
2557shift
2558host_cpu=$1
2559host_vendor=$2
2560shift; shift
2561# Remember, the first character of IFS is used to create $*,
2562# except with old shells:
2563host_os=$*
2564IFS=$ac_save_IFS
2565case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
42ecbf5e
DJ
2566
2567
81ecdfbb
RW
2568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2569$as_echo_n "checking target system type... " >&6; }
d0ac1c44 2570if ${ac_cv_target+:} false; then :
81ecdfbb
RW
2571 $as_echo_n "(cached) " >&6
2572else
2573 if test "x$target_alias" = x; then
2574 ac_cv_target=$ac_cv_host
42ecbf5e 2575else
81ecdfbb 2576 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
d0ac1c44 2577 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
81ecdfbb 2578fi
42ecbf5e
DJ
2579
2580fi
81ecdfbb
RW
2581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2582$as_echo "$ac_cv_target" >&6; }
2583case $ac_cv_target in
2584*-*-*) ;;
d0ac1c44 2585*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
81ecdfbb 2586esac
42ecbf5e 2587target=$ac_cv_target
81ecdfbb
RW
2588ac_save_IFS=$IFS; IFS='-'
2589set x $ac_cv_target
2590shift
2591target_cpu=$1
2592target_vendor=$2
2593shift; shift
2594# Remember, the first character of IFS is used to create $*,
2595# except with old shells:
2596target_os=$*
2597IFS=$ac_save_IFS
2598case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
42ecbf5e
DJ
2599
2600
2601# The aliases save the names the user supplied, while $host etc.
2602# will get canonicalized.
2603test -n "$target_alias" &&
2604 test "$program_prefix$program_suffix$program_transform_name" = \
2605 NONENONEs,x,x, &&
2606 program_prefix=${target_alias}-
d0ac1c44 2607
b9583093 2608am__api_version='1.15'
87b9f255
AM
2609
2610# Find a good install program. We prefer a C program (faster),
2611# so one script is as good as another. But avoid the broken or
2612# incompatible versions:
2613# SysV /etc/install, /usr/sbin/install
2614# SunOS /usr/etc/install
2615# IRIX /sbin/install
2616# AIX /bin/install
2617# AmigaOS /C/install, which installs bootblocks on floppy discs
2618# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2619# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2620# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2621# OS/2's system install, which has a completely different semantic
2622# ./install, which can be erroneously created by make from ./install.sh.
2623# Reject install programs that cannot install multiple files.
2624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2625$as_echo_n "checking for a BSD-compatible install... " >&6; }
2626if test -z "$INSTALL"; then
2627if ${ac_cv_path_install+:} false; then :
81ecdfbb 2628 $as_echo_n "(cached) " >&6
42ecbf5e 2629else
87b9f255 2630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42ecbf5e
DJ
2631for as_dir in $PATH
2632do
2633 IFS=$as_save_IFS
2634 test -z "$as_dir" && as_dir=.
87b9f255
AM
2635 # Account for people who put trailing slashes in PATH elements.
2636case $as_dir/ in #((
2637 ./ | .// | /[cC]/* | \
2638 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2639 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2640 /usr/ucb/* ) ;;
2641 *)
2642 # OSF1 and SCO ODT 3.0 have their own names for install.
2643 # Don't use installbsd from OSF since it installs stuff as root
2644 # by default.
2645 for ac_prog in ginstall scoinst install; do
2646 for ac_exec_ext in '' $ac_executable_extensions; do
2647 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2648 if test $ac_prog = install &&
2649 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2650 # AIX install. It has an incompatible calling convention.
2651 :
2652 elif test $ac_prog = install &&
2653 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2654 # program-specific install script used by HP pwplus--don't use.
2655 :
2656 else
2657 rm -rf conftest.one conftest.two conftest.dir
2658 echo one > conftest.one
2659 echo two > conftest.two
2660 mkdir conftest.dir
2661 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2662 test -s conftest.one && test -s conftest.two &&
2663 test -s conftest.dir/conftest.one &&
2664 test -s conftest.dir/conftest.two
2665 then
2666 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2667 break 3
2668 fi
2669 fi
2670 fi
2671 done
2672 done
2673 ;;
2674esac
2675
81ecdfbb
RW
2676 done
2677IFS=$as_save_IFS
42ecbf5e 2678
87b9f255
AM
2679rm -rf conftest.one conftest.two conftest.dir
2680
252b5132
RH
2681fi
2682 if test "${ac_cv_path_install+set}" = set; then
42ecbf5e 2683 INSTALL=$ac_cv_path_install
252b5132 2684 else
58c85be7
RW
2685 # As a last resort, use the slow shell script. Don't cache a
2686 # value for INSTALL within a source directory, because that will
252b5132 2687 # break other packages using the cache if that directory is
58c85be7 2688 # removed, or if the value is a relative name.
42ecbf5e 2689 INSTALL=$ac_install_sh
252b5132
RH
2690 fi
2691fi
81ecdfbb
RW
2692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2693$as_echo "$INSTALL" >&6; }
252b5132
RH
2694
2695# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2696# It thinks the first close brace ends the variable substitution.
2697test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2698
42ecbf5e 2699test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
252b5132
RH
2700
2701test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2702
81ecdfbb
RW
2703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2704$as_echo_n "checking whether build environment is sane... " >&6; }
81ecdfbb
RW
2705# Reject unsafe characters in $srcdir or the absolute working directory
2706# name. Accept space and tab only in the latter.
2707am_lf='
2708'
2709case `pwd` in
2710 *[\\\"\#\$\&\'\`$am_lf]*)
d0ac1c44 2711 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
81ecdfbb
RW
2712esac
2713case $srcdir in
2714 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
d0ac1c44 2715 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
81ecdfbb
RW
2716esac
2717
d0ac1c44 2718# Do 'set' in a subshell so we don't clobber the current shell's
252b5132
RH
2719# arguments. Must try -L first in case configure is actually a
2720# symlink; some systems play weird games with the mod time of symlinks
2721# (eg FreeBSD returns the mod time of the symlink's containing
2722# directory).
2723if (
d0ac1c44
SM
2724 am_has_slept=no
2725 for am_try in 1 2; do
2726 echo "timestamp, slept: $am_has_slept" > conftest.file
2727 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2728 if test "$*" = "X"; then
2729 # -L didn't work.
2730 set X `ls -t "$srcdir/configure" conftest.file`
2731 fi
2732 if test "$*" != "X $srcdir/configure conftest.file" \
2733 && test "$*" != "X conftest.file $srcdir/configure"; then
2734
2735 # If neither matched, then we have a broken ls. This can happen
2736 # if, for instance, CONFIG_SHELL is bash and it inherits a
2737 # broken ls alias from the environment. This has actually
2738 # happened. Such a system could not be considered "sane".
2739 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2740 alias in your environment" "$LINENO" 5
2741 fi
2742 if test "$2" = conftest.file || test $am_try -eq 2; then
2743 break
2744 fi
2745 # Just in case.
2746 sleep 1
2747 am_has_slept=yes
2748 done
42ecbf5e 2749 test "$2" = conftest.file
252b5132
RH
2750 )
2751then
2752 # Ok.
2753 :
2754else
d0ac1c44 2755 as_fn_error $? "newly created file is older than distributed files!
81ecdfbb 2756Check your system clock" "$LINENO" 5
42ecbf5e 2757fi
81ecdfbb
RW
2758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2759$as_echo "yes" >&6; }
d0ac1c44
SM
2760# If we didn't sleep, we still need to ensure time stamps of config.status and
2761# generated files are strictly newer.
2762am_sleep_pid=
2763if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2764 ( sleep 1 ) &
2765 am_sleep_pid=$!
2766fi
2767
2768rm -f conftest.file
2769
42ecbf5e 2770test "$program_prefix" != NONE &&
81ecdfbb 2771 program_transform_name="s&^&$program_prefix&;$program_transform_name"
42ecbf5e
DJ
2772# Use a double $ so make ignores it.
2773test "$program_suffix" != NONE &&
81ecdfbb
RW
2774 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2775# Double any \ or $.
42ecbf5e 2776# By default was `s,x,x', remove it if useless.
81ecdfbb
RW
2777ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2778program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
42ecbf5e 2779
87b9f255
AM
2780# Expand $ac_aux_dir to an absolute path.
2781am_aux_dir=`cd "$ac_aux_dir" && pwd`
2782
81ecdfbb 2783if test x"${MISSING+set}" != xset; then
b9583093
AM
2784 case $am_aux_dir in
2785 *\ * | *\ *)
2786 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2787 *)
2788 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2789 esac
81ecdfbb 2790fi
42ecbf5e 2791# Use eval to expand $SHELL
d0ac1c44
SM
2792if eval "$MISSING --is-lightweight"; then
2793 am_missing_run="$MISSING "
42ecbf5e
DJ
2794else
2795 am_missing_run=
d0ac1c44
SM
2796 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2797$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
42ecbf5e
DJ
2798fi
2799
d0ac1c44 2800if test x"${install_sh+set}" != xset; then
81ecdfbb
RW
2801 case $am_aux_dir in
2802 *\ * | *\ *)
2803 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2804 *)
2805 install_sh="\${SHELL} $am_aux_dir/install-sh"
2806 esac
2807fi
2808
d0ac1c44
SM
2809# Installed binaries are usually stripped using 'strip' when the user
2810# run "make install-strip". However 'strip' might not be the right
81ecdfbb 2811# tool to use in cross-compilation environments, therefore Automake
d0ac1c44 2812# will honor the 'STRIP' environment variable to overrule this program.
81ecdfbb
RW
2813if test "$cross_compiling" != no; then
2814 if test -n "$ac_tool_prefix"; then
2815 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2816set dummy ${ac_tool_prefix}strip; ac_word=$2
2817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2818$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 2819if ${ac_cv_prog_STRIP+:} false; then :
81ecdfbb 2820 $as_echo_n "(cached) " >&6
42ecbf5e 2821else
81ecdfbb
RW
2822 if test -n "$STRIP"; then
2823 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
42ecbf5e
DJ
2824else
2825as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2826for as_dir in $PATH
2827do
2828 IFS=$as_save_IFS
2829 test -z "$as_dir" && as_dir=.
81ecdfbb 2830 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 2831 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
81ecdfbb
RW
2832 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2834 break 2
2835 fi
2836done
2837 done
2838IFS=$as_save_IFS
2839
2840fi
2841fi
2842STRIP=$ac_cv_prog_STRIP
2843if test -n "$STRIP"; then
2844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2845$as_echo "$STRIP" >&6; }
2846else
2847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2848$as_echo "no" >&6; }
2849fi
2850
2851
2852fi
2853if test -z "$ac_cv_prog_STRIP"; then
2854 ac_ct_STRIP=$STRIP
2855 # Extract the first word of "strip", so it can be a program name with args.
2856set dummy strip; ac_word=$2
2857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2858$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 2859if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
81ecdfbb
RW
2860 $as_echo_n "(cached) " >&6
2861else
2862 if test -n "$ac_ct_STRIP"; then
2863 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2864else
2865as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2866for as_dir in $PATH
2867do
2868 IFS=$as_save_IFS
2869 test -z "$as_dir" && as_dir=.
2870 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 2871 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
81ecdfbb
RW
2872 ac_cv_prog_ac_ct_STRIP="strip"
2873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
42ecbf5e
DJ
2874 break 2
2875 fi
2876done
81ecdfbb
RW
2877 done
2878IFS=$as_save_IFS
2879
2880fi
2881fi
2882ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2883if test -n "$ac_ct_STRIP"; then
2884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2885$as_echo "$ac_ct_STRIP" >&6; }
2886else
2887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2888$as_echo "no" >&6; }
2889fi
2890
2891 if test "x$ac_ct_STRIP" = x; then
2892 STRIP=":"
2893 else
2894 case $cross_compiling:$ac_tool_warned in
2895yes:)
2896{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2897$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2898ac_tool_warned=yes ;;
2899esac
2900 STRIP=$ac_ct_STRIP
2901 fi
2902else
2903 STRIP="$ac_cv_prog_STRIP"
2904fi
2905
2906fi
2907INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2908
2909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2910$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2911if test -z "$MKDIR_P"; then
d0ac1c44 2912 if ${ac_cv_path_mkdir+:} false; then :
81ecdfbb
RW
2913 $as_echo_n "(cached) " >&6
2914else
2915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2916for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2917do
2918 IFS=$as_save_IFS
2919 test -z "$as_dir" && as_dir=.
2920 for ac_prog in mkdir gmkdir; do
2921 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 2922 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
81ecdfbb
RW
2923 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2924 'mkdir (GNU coreutils) '* | \
2925 'mkdir (coreutils) '* | \
2926 'mkdir (fileutils) '4.1*)
2927 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2928 break 3;;
2929 esac
2930 done
2931 done
2932 done
2933IFS=$as_save_IFS
2934
2935fi
2936
d0ac1c44 2937 test -d ./--version && rmdir ./--version
81ecdfbb
RW
2938 if test "${ac_cv_path_mkdir+set}" = set; then
2939 MKDIR_P="$ac_cv_path_mkdir -p"
2940 else
2941 # As a last resort, use the slow shell script. Don't cache a
2942 # value for MKDIR_P within a source directory, because that will
2943 # break other packages using the cache if that directory is
2944 # removed, or if the value is a relative name.
81ecdfbb
RW
2945 MKDIR_P="$ac_install_sh -d"
2946 fi
2947fi
2948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2949$as_echo "$MKDIR_P" >&6; }
2950
81ecdfbb
RW
2951for ac_prog in gawk mawk nawk awk
2952do
2953 # Extract the first word of "$ac_prog", so it can be a program name with args.
2954set dummy $ac_prog; ac_word=$2
2955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2956$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 2957if ${ac_cv_prog_AWK+:} false; then :
81ecdfbb
RW
2958 $as_echo_n "(cached) " >&6
2959else
2960 if test -n "$AWK"; then
2961 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2962else
2963as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2964for as_dir in $PATH
2965do
2966 IFS=$as_save_IFS
2967 test -z "$as_dir" && as_dir=.
2968 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 2969 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
81ecdfbb
RW
2970 ac_cv_prog_AWK="$ac_prog"
2971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2972 break 2
2973 fi
42ecbf5e 2974done
81ecdfbb
RW
2975 done
2976IFS=$as_save_IFS
42ecbf5e
DJ
2977
2978fi
2979fi
2980AWK=$ac_cv_prog_AWK
2981if test -n "$AWK"; then
81ecdfbb
RW
2982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2983$as_echo "$AWK" >&6; }
42ecbf5e 2984else
81ecdfbb
RW
2985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2986$as_echo "no" >&6; }
42ecbf5e
DJ
2987fi
2988
81ecdfbb 2989
42ecbf5e
DJ
2990 test -n "$AWK" && break
2991done
2992
81ecdfbb
RW
2993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2994$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2995set x ${MAKE-make}
2996ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
d0ac1c44 2997if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
81ecdfbb 2998 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
2999else
3000 cat >conftest.make <<\_ACEOF
81ecdfbb 3001SHELL = /bin/sh
42ecbf5e 3002all:
81ecdfbb 3003 @echo '@@@%%%=$(MAKE)=@@@%%%'
42ecbf5e 3004_ACEOF
d0ac1c44 3005# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
81ecdfbb
RW
3006case `${MAKE-make} -f conftest.make 2>/dev/null` in
3007 *@@@%%%=?*=@@@%%%*)
3008 eval ac_cv_prog_make_${ac_make}_set=yes;;
3009 *)
3010 eval ac_cv_prog_make_${ac_make}_set=no;;
3011esac
42ecbf5e
DJ
3012rm -f conftest.make
3013fi
81ecdfbb
RW
3014if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3016$as_echo "yes" >&6; }
42ecbf5e
DJ
3017 SET_MAKE=
3018else
81ecdfbb
RW
3019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3020$as_echo "no" >&6; }
42ecbf5e
DJ
3021 SET_MAKE="MAKE=${MAKE-make}"
3022fi
3023
3024rm -rf .tst 2>/dev/null
3025mkdir .tst 2>/dev/null
3026if test -d .tst; then
3027 am__leading_dot=.
3028else
3029 am__leading_dot=_
3030fi
3031rmdir .tst 2>/dev/null
3032
d0ac1c44
SM
3033# Check whether --enable-silent-rules was given.
3034if test "${enable_silent_rules+set}" = set; then :
3035 enableval=$enable_silent_rules;
3036fi
3037
3038case $enable_silent_rules in # (((
3039 yes) AM_DEFAULT_VERBOSITY=0;;
3040 no) AM_DEFAULT_VERBOSITY=1;;
3041 *) AM_DEFAULT_VERBOSITY=1;;
3042esac
3043am_make=${MAKE-make}
3044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3045$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3046if ${am_cv_make_support_nested_variables+:} false; then :
3047 $as_echo_n "(cached) " >&6
3048else
3049 if $as_echo 'TRUE=$(BAR$(V))
3050BAR0=false
3051BAR1=true
3052V=1
3053am__doit:
3054 @$(TRUE)
3055.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3056 am_cv_make_support_nested_variables=yes
3057else
3058 am_cv_make_support_nested_variables=no
3059fi
3060fi
3061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3062$as_echo "$am_cv_make_support_nested_variables" >&6; }
3063if test $am_cv_make_support_nested_variables = yes; then
3064 AM_V='$(V)'
3065 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3066else
3067 AM_V=$AM_DEFAULT_VERBOSITY
3068 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3069fi
3070AM_BACKSLASH='\'
3071
81ecdfbb
RW
3072if test "`cd $srcdir && pwd`" != "`pwd`"; then
3073 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3074 # is not polluted with repeated "-I."
3075 am__isrc=' -I$(srcdir)'
3076 # test to see if srcdir already configured
3077 if test -f $srcdir/config.status; then
d0ac1c44 3078 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
81ecdfbb 3079 fi
42ecbf5e
DJ
3080fi
3081
3082# test whether we have cygpath
3083if test -z "$CYGPATH_W"; then
3084 if (cygpath --version) >/dev/null 2>/dev/null; then
3085 CYGPATH_W='cygpath -w'
3086 else
3087 CYGPATH_W=echo
3088 fi
3089fi
3090
3091
3092# Define the identity of the package.
2e98a7bd 3093 PACKAGE='binutils'
b5c37946 3094 VERSION='2.41.50'
42ecbf5e
DJ
3095
3096
3097cat >>confdefs.h <<_ACEOF
3098#define PACKAGE "$PACKAGE"
3099_ACEOF
3100
3101
3102cat >>confdefs.h <<_ACEOF
3103#define VERSION "$VERSION"
3104_ACEOF
3105
3106# Some tools Automake needs.
3107
3108ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3109
3110
3111AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3112
3113
3114AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3115
3116
3117AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3118
3119
3120MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3121
d0ac1c44
SM
3122# For better backward compatibility. To be removed once Automake 1.9.x
3123# dies out for good. For more background, see:
b9583093
AM
3124# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3125# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
d0ac1c44
SM
3126mkdir_p='$(MKDIR_P)'
3127
3128# We need awk for the "check" target (and possibly the TAP driver). The
87b9f255
AM
3129# system "awk" is bad on some platforms.
3130# Always define AMTAR for backward compatibility. Yes, it's still used
3131# in the wild :-( We should find a proper way to deprecate it ...
3132AMTAR='$${TAR-tar}'
3133
3134
3135# We'll loop over all known methods to create a tar archive until one works.
3136_am_tools='gnutar pax cpio none'
3137
3138am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
42ecbf5e 3139
252b5132 3140
42ecbf5e 3141
252b5132
RH
3142
3143
3144
d0ac1c44
SM
3145# POSIX will say in a future version that running "rm -f" with no argument
3146# is OK; and we want to be able to make that assumption in our Makefile
3147# recipes. So use an aggressive probe to check that the usage we want is
3148# actually supported "in the wild" to an acceptable degree.
3149# See automake bug#10828.
3150# To make any issue more visible, cause the running configure to be aborted
3151# by default if the 'rm' program in use doesn't match our expectations; the
3152# user can still override this though.
3153if rm -f && rm -fr && rm -rf; then : OK; else
3154 cat >&2 <<'END'
3155Oops!
3156
3157Your 'rm' program seems unable to run without file operands specified
3158on the command line, even when the '-f' option is present. This is contrary
3159to the behaviour of most rm programs out there, and not conforming with
3160the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3161
3162Please tell bug-automake@gnu.org about your system, including the value
3163of your $PATH and any error possibly output before this message. This
3164can help us improve future automake versions.
3165
3166END
3167 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3168 echo 'Configuration will proceed anyway, since you have set the' >&2
3169 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3170 echo >&2
3171 else
3172 cat >&2 <<'END'
3173Aborting the configuration process, to ensure you take notice of the issue.
3174
3175You can download and install GNU coreutils to get an 'rm' implementation
b9583093 3176that behaves properly: <http://www.gnu.org/software/coreutils/>.
d0ac1c44
SM
3177
3178If you want to complete the configuration process using your problematic
3179'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3180to "yes", and re-run configure.
3181
3182END
3183 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3184 fi
3185fi
3186
d8bbdb9d
MF
3187# Check whether --enable-silent-rules was given.
3188if test "${enable_silent_rules+set}" = set; then :
3189 enableval=$enable_silent_rules;
3190fi
3191
3192case $enable_silent_rules in # (((
3193 yes) AM_DEFAULT_VERBOSITY=0;;
3194 no) AM_DEFAULT_VERBOSITY=1;;
3195 *) AM_DEFAULT_VERBOSITY=0;;
3196esac
3197am_make=${MAKE-make}
3198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3199$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3200if ${am_cv_make_support_nested_variables+:} false; then :
3201 $as_echo_n "(cached) " >&6
3202else
3203 if $as_echo 'TRUE=$(BAR$(V))
3204BAR0=false
3205BAR1=true
3206V=1
3207am__doit:
3208 @$(TRUE)
3209.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3210 am_cv_make_support_nested_variables=yes
3211else
3212 am_cv_make_support_nested_variables=no
3213fi
3214fi
3215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3216$as_echo "$am_cv_make_support_nested_variables" >&6; }
3217if test $am_cv_make_support_nested_variables = yes; then
3218 AM_V='$(V)'
3219 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3220else
3221 AM_V=$AM_DEFAULT_VERBOSITY
3222 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3223fi
3224AM_BACKSLASH='\'
3225
42ecbf5e 3226
d45dc31f
SE
3227ac_ext=c
3228ac_cpp='$CPP $CPPFLAGS'
3229ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3230ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3231ac_compiler_gnu=$ac_cv_c_compiler_gnu
3232if test -n "$ac_tool_prefix"; then
3233 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3234set dummy ${ac_tool_prefix}gcc; ac_word=$2
81ecdfbb
RW
3235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3236$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 3237if ${ac_cv_prog_CC+:} false; then :
81ecdfbb 3238 $as_echo_n "(cached) " >&6
252b5132 3239else
d45dc31f
SE
3240 if test -n "$CC"; then
3241 ac_cv_prog_CC="$CC" # Let the user override the test.
1a09a22c 3242else
d45dc31f
SE
3243as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3244for as_dir in $PATH
3245do
3246 IFS=$as_save_IFS
3247 test -z "$as_dir" && as_dir=.
81ecdfbb 3248 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 3249 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d45dc31f 3250 ac_cv_prog_CC="${ac_tool_prefix}gcc"
81ecdfbb 3251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d45dc31f
SE
3252 break 2
3253 fi
3254done
81ecdfbb
RW
3255 done
3256IFS=$as_save_IFS
ceae3e33 3257
d45dc31f
SE
3258fi
3259fi
3260CC=$ac_cv_prog_CC
3261if test -n "$CC"; then
81ecdfbb
RW
3262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3263$as_echo "$CC" >&6; }
252b5132 3264else
81ecdfbb
RW
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3266$as_echo "no" >&6; }
252b5132 3267fi
d45dc31f 3268
81ecdfbb 3269
d45dc31f
SE
3270fi
3271if test -z "$ac_cv_prog_CC"; then
3272 ac_ct_CC=$CC
3273 # Extract the first word of "gcc", so it can be a program name with args.
3274set dummy gcc; ac_word=$2
81ecdfbb
RW
3275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3276$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 3277if ${ac_cv_prog_ac_ct_CC+:} false; then :
81ecdfbb 3278 $as_echo_n "(cached) " >&6
252b5132 3279else
d45dc31f
SE
3280 if test -n "$ac_ct_CC"; then
3281 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
252b5132 3282else
d45dc31f
SE
3283as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3284for as_dir in $PATH
3285do
3286 IFS=$as_save_IFS
3287 test -z "$as_dir" && as_dir=.
81ecdfbb 3288 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 3289 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d45dc31f 3290 ac_cv_prog_ac_ct_CC="gcc"
81ecdfbb 3291 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d45dc31f
SE
3292 break 2
3293 fi
3294done
81ecdfbb
RW
3295 done
3296IFS=$as_save_IFS
d45dc31f 3297
252b5132
RH
3298fi
3299fi
d45dc31f
SE
3300ac_ct_CC=$ac_cv_prog_ac_ct_CC
3301if test -n "$ac_ct_CC"; then
81ecdfbb
RW
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3303$as_echo "$ac_ct_CC" >&6; }
252b5132 3304else
81ecdfbb
RW
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3306$as_echo "no" >&6; }
252b5132 3307fi
d45dc31f 3308
81ecdfbb
RW
3309 if test "x$ac_ct_CC" = x; then
3310 CC=""
3311 else
3312 case $cross_compiling:$ac_tool_warned in
3313yes:)
3314{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3315$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3316ac_tool_warned=yes ;;
3317esac
3318 CC=$ac_ct_CC
3319 fi
d45dc31f
SE
3320else
3321 CC="$ac_cv_prog_CC"
3322fi
3323
3324if test -z "$CC"; then
81ecdfbb
RW
3325 if test -n "$ac_tool_prefix"; then
3326 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
d45dc31f 3327set dummy ${ac_tool_prefix}cc; ac_word=$2
81ecdfbb
RW
3328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3329$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 3330if ${ac_cv_prog_CC+:} false; then :
81ecdfbb 3331 $as_echo_n "(cached) " >&6
252b5132 3332else
d45dc31f
SE
3333 if test -n "$CC"; then
3334 ac_cv_prog_CC="$CC" # Let the user override the test.
252b5132 3335else
d45dc31f
SE
3336as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3337for as_dir in $PATH
3338do
3339 IFS=$as_save_IFS
3340 test -z "$as_dir" && as_dir=.
81ecdfbb 3341 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 3342 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d45dc31f 3343 ac_cv_prog_CC="${ac_tool_prefix}cc"
81ecdfbb 3344 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d45dc31f
SE
3345 break 2
3346 fi
3347done
81ecdfbb
RW
3348 done
3349IFS=$as_save_IFS
d45dc31f 3350
252b5132
RH
3351fi
3352fi
d45dc31f
SE
3353CC=$ac_cv_prog_CC
3354if test -n "$CC"; then
81ecdfbb
RW
3355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3356$as_echo "$CC" >&6; }
d45dc31f 3357else
81ecdfbb
RW
3358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3359$as_echo "no" >&6; }
252b5132
RH
3360fi
3361
252b5132 3362
81ecdfbb 3363 fi
d45dc31f
SE
3364fi
3365if test -z "$CC"; then
3366 # Extract the first word of "cc", so it can be a program name with args.
3367set dummy cc; ac_word=$2
81ecdfbb
RW
3368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3369$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 3370if ${ac_cv_prog_CC+:} false; then :
81ecdfbb 3371 $as_echo_n "(cached) " >&6
252b5132 3372else
d45dc31f
SE
3373 if test -n "$CC"; then
3374 ac_cv_prog_CC="$CC" # Let the user override the test.
3375else
3376 ac_prog_rejected=no
3377as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3378for as_dir in $PATH
3379do
3380 IFS=$as_save_IFS
3381 test -z "$as_dir" && as_dir=.
81ecdfbb 3382 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 3383 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d45dc31f
SE
3384 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3385 ac_prog_rejected=yes
3386 continue
3387 fi
3388 ac_cv_prog_CC="cc"
81ecdfbb 3389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d45dc31f
SE
3390 break 2
3391 fi
3392done
81ecdfbb
RW
3393 done
3394IFS=$as_save_IFS
d45dc31f
SE
3395
3396if test $ac_prog_rejected = yes; then
3397 # We found a bogon in the path, so make sure we never use it.
3398 set dummy $ac_cv_prog_CC
3399 shift
3400 if test $# != 0; then
3401 # We chose a different compiler from the bogus one.
3402 # However, it has the same basename, so the bogon will be chosen
3403 # first if we set CC to just the basename; use the full file name.
3404 shift
3405 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3406 fi
3407fi
3408fi
3409fi
3410CC=$ac_cv_prog_CC
3411if test -n "$CC"; then
81ecdfbb
RW
3412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3413$as_echo "$CC" >&6; }
d45dc31f 3414else
81ecdfbb
RW
3415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3416$as_echo "no" >&6; }
252b5132
RH
3417fi
3418
81ecdfbb 3419
d45dc31f
SE
3420fi
3421if test -z "$CC"; then
3422 if test -n "$ac_tool_prefix"; then
81ecdfbb 3423 for ac_prog in cl.exe
d45dc31f
SE
3424 do
3425 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3426set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
3427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3428$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 3429if ${ac_cv_prog_CC+:} false; then :
81ecdfbb 3430 $as_echo_n "(cached) " >&6
ac48eca1 3431else
d45dc31f
SE
3432 if test -n "$CC"; then
3433 ac_cv_prog_CC="$CC" # Let the user override the test.
3434else
3435as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3436for as_dir in $PATH
3437do
3438 IFS=$as_save_IFS
3439 test -z "$as_dir" && as_dir=.
81ecdfbb 3440 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 3441 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d45dc31f 3442 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
81ecdfbb 3443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d45dc31f
SE
3444 break 2
3445 fi
3446done
81ecdfbb
RW
3447 done
3448IFS=$as_save_IFS
ac48eca1 3449
d45dc31f
SE
3450fi
3451fi
3452CC=$ac_cv_prog_CC
3453if test -n "$CC"; then
81ecdfbb
RW
3454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3455$as_echo "$CC" >&6; }
d45dc31f 3456else
81ecdfbb
RW
3457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3458$as_echo "no" >&6; }
d45dc31f 3459fi
ac48eca1 3460
81ecdfbb 3461
d45dc31f
SE
3462 test -n "$CC" && break
3463 done
3464fi
3465if test -z "$CC"; then
3466 ac_ct_CC=$CC
81ecdfbb 3467 for ac_prog in cl.exe
d45dc31f
SE
3468do
3469 # Extract the first word of "$ac_prog", so it can be a program name with args.
3470set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
3471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3472$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 3473if ${ac_cv_prog_ac_ct_CC+:} false; then :
81ecdfbb 3474 $as_echo_n "(cached) " >&6
d45dc31f
SE
3475else
3476 if test -n "$ac_ct_CC"; then
3477 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3478else
3479as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3480for as_dir in $PATH
3481do
3482 IFS=$as_save_IFS
3483 test -z "$as_dir" && as_dir=.
81ecdfbb 3484 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 3485 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d45dc31f 3486 ac_cv_prog_ac_ct_CC="$ac_prog"
81ecdfbb 3487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d45dc31f
SE
3488 break 2
3489 fi
3490done
81ecdfbb
RW
3491 done
3492IFS=$as_save_IFS
ac48eca1 3493
d45dc31f
SE
3494fi
3495fi
3496ac_ct_CC=$ac_cv_prog_ac_ct_CC
3497if test -n "$ac_ct_CC"; then
81ecdfbb
RW
3498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3499$as_echo "$ac_ct_CC" >&6; }
d45dc31f 3500else
81ecdfbb
RW
3501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3502$as_echo "no" >&6; }
d45dc31f 3503fi
ac48eca1 3504
81ecdfbb 3505
d45dc31f
SE
3506 test -n "$ac_ct_CC" && break
3507done
ac48eca1 3508
81ecdfbb
RW
3509 if test "x$ac_ct_CC" = x; then
3510 CC=""
3511 else
3512 case $cross_compiling:$ac_tool_warned in
3513yes:)
3514{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3515$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3516ac_tool_warned=yes ;;
3517esac
3518 CC=$ac_ct_CC
3519 fi
d45dc31f 3520fi
ac48eca1 3521
87b9f255
AM
3522fi
3523
3524
3525test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3526$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3527as_fn_error $? "no acceptable C compiler found in \$PATH
3528See \`config.log' for more details" "$LINENO" 5; }
3529
3530# Provide some information about the compiler.
3531$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3532set X $ac_compile
3533ac_compiler=$2
3534for ac_option in --version -v -V -qversion; do
3535 { { ac_try="$ac_compiler $ac_option >&5"
3536case "(($ac_try" in
3537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3538 *) ac_try_echo=$ac_try;;
3539esac
3540eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3541$as_echo "$ac_try_echo"; } >&5
3542 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3543 ac_status=$?
3544 if test -s conftest.err; then
3545 sed '10a\
3546... rest of stderr output deleted ...
3547 10q' conftest.err >conftest.er1
3548 cat conftest.er1 >&5
3549 fi
3550 rm -f conftest.er1 conftest.err
3551 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3552 test $ac_status = 0; }
3553done
3554
3555cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3556/* end confdefs.h. */
3557
3558int
3559main ()
3560{
3561
3562 ;
3563 return 0;
3564}
3565_ACEOF
3566ac_clean_files_save=$ac_clean_files
3567ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3568# Try to create an executable without -o first, disregard a.out.
3569# It will help us diagnose broken compilers, and finding out an intuition
3570# of exeext.
3571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3572$as_echo_n "checking whether the C compiler works... " >&6; }
3573ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3574
3575# The possible output files:
3576ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3577
3578ac_rmfiles=
3579for ac_file in $ac_files
3580do
3581 case $ac_file in
3582 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3583 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3584 esac
3585done
3586rm -f $ac_rmfiles
3587
3588if { { ac_try="$ac_link_default"
3589case "(($ac_try" in
3590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3591 *) ac_try_echo=$ac_try;;
3592esac
3593eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3594$as_echo "$ac_try_echo"; } >&5
3595 (eval "$ac_link_default") 2>&5
3596 ac_status=$?
3597 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3598 test $ac_status = 0; }; then :
3599 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3600# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3601# in a Makefile. We should not override ac_cv_exeext if it was cached,
3602# so that the user can short-circuit this test for compilers unknown to
3603# Autoconf.
3604for ac_file in $ac_files ''
3605do
3606 test -f "$ac_file" || continue
3607 case $ac_file in
3608 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3609 ;;
3610 [ab].out )
3611 # We found the default executable, but exeext='' is most
3612 # certainly right.
3613 break;;
3614 *.* )
3615 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3616 then :; else
3617 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3618 fi
3619 # We set ac_cv_exeext here because the later test for it is not
3620 # safe: cross compilers may not add the suffix if given an `-o'
3621 # argument, so we may need to know it at that point already.
3622 # Even if this section looks crufty: it has the advantage of
3623 # actually working.
3624 break;;
3625 * )
3626 break;;
3627 esac
3628done
3629test "$ac_cv_exeext" = no && ac_cv_exeext=
3630
3631else
3632 ac_file=''
3633fi
3634if test -z "$ac_file"; then :
3635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3636$as_echo "no" >&6; }
3637$as_echo "$as_me: failed program was:" >&5
3638sed 's/^/| /' conftest.$ac_ext >&5
3639
3640{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3641$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3642as_fn_error 77 "C compiler cannot create executables
3643See \`config.log' for more details" "$LINENO" 5; }
3644else
3645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3646$as_echo "yes" >&6; }
3647fi
3648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3649$as_echo_n "checking for C compiler default output file name... " >&6; }
3650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3651$as_echo "$ac_file" >&6; }
3652ac_exeext=$ac_cv_exeext
3653
3654rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3655ac_clean_files=$ac_clean_files_save
3656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3657$as_echo_n "checking for suffix of executables... " >&6; }
3658if { { ac_try="$ac_link"
3659case "(($ac_try" in
3660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3661 *) ac_try_echo=$ac_try;;
3662esac
3663eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3664$as_echo "$ac_try_echo"; } >&5
3665 (eval "$ac_link") 2>&5
3666 ac_status=$?
3667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3668 test $ac_status = 0; }; then :
3669 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3670# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3671# work properly (i.e., refer to `conftest.exe'), while it won't with
3672# `rm'.
3673for ac_file in conftest.exe conftest conftest.*; do
3674 test -f "$ac_file" || continue
3675 case $ac_file in
3676 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3677 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3678 break;;
3679 * ) break;;
3680 esac
3681done
3682else
3683 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3684$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3685as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3686See \`config.log' for more details" "$LINENO" 5; }
3687fi
3688rm -f conftest conftest$ac_cv_exeext
3689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3690$as_echo "$ac_cv_exeext" >&6; }
3691
3692rm -f conftest.$ac_ext
3693EXEEXT=$ac_cv_exeext
3694ac_exeext=$EXEEXT
3695cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3696/* end confdefs.h. */
3697#include <stdio.h>
3698int
3699main ()
3700{
3701FILE *f = fopen ("conftest.out", "w");
3702 return ferror (f) || fclose (f) != 0;
3703
3704 ;
3705 return 0;
3706}
3707_ACEOF
3708ac_clean_files="$ac_clean_files conftest.out"
3709# Check that the compiler produces executables we can run. If not, either
3710# the compiler is broken, or we cross compile.
3711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3712$as_echo_n "checking whether we are cross compiling... " >&6; }
3713if test "$cross_compiling" != yes; then
3714 { { ac_try="$ac_link"
3715case "(($ac_try" in
3716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3717 *) ac_try_echo=$ac_try;;
3718esac
3719eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3720$as_echo "$ac_try_echo"; } >&5
3721 (eval "$ac_link") 2>&5
3722 ac_status=$?
3723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3724 test $ac_status = 0; }
3725 if { ac_try='./conftest$ac_cv_exeext'
3726 { { case "(($ac_try" in
3727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3728 *) ac_try_echo=$ac_try;;
3729esac
3730eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3731$as_echo "$ac_try_echo"; } >&5
3732 (eval "$ac_try") 2>&5
3733 ac_status=$?
3734 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3735 test $ac_status = 0; }; }; then
3736 cross_compiling=no
3737 else
3738 if test "$cross_compiling" = maybe; then
3739 cross_compiling=yes
3740 else
3741 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3742$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3743as_fn_error $? "cannot run C compiled programs.
3744If you meant to cross compile, use \`--host'.
3745See \`config.log' for more details" "$LINENO" 5; }
3746 fi
3747 fi
3748fi
3749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3750$as_echo "$cross_compiling" >&6; }
3751
3752rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3753ac_clean_files=$ac_clean_files_save
3754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3755$as_echo_n "checking for suffix of object files... " >&6; }
3756if ${ac_cv_objext+:} false; then :
3757 $as_echo_n "(cached) " >&6
3758else
3759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3760/* end confdefs.h. */
ac48eca1 3761
87b9f255
AM
3762int
3763main ()
3764{
ac48eca1 3765
87b9f255
AM
3766 ;
3767 return 0;
3768}
3769_ACEOF
3770rm -f conftest.o conftest.obj
3771if { { ac_try="$ac_compile"
81ecdfbb
RW
3772case "(($ac_try" in
3773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3774 *) ac_try_echo=$ac_try;;
3775esac
3776eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3777$as_echo "$ac_try_echo"; } >&5
87b9f255 3778 (eval "$ac_compile") 2>&5
d45dc31f 3779 ac_status=$?
81ecdfbb 3780 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
87b9f255
AM
3781 test $ac_status = 0; }; then :
3782 for ac_file in conftest.o conftest.obj conftest.*; do
3783 test -f "$ac_file" || continue;
3784 case $ac_file in
3785 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3786 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3787 break;;
3788 esac
81ecdfbb 3789done
87b9f255
AM
3790else
3791 $as_echo "$as_me: failed program was:" >&5
3792sed 's/^/| /' conftest.$ac_ext >&5
ac48eca1 3793
87b9f255
AM
3794{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3795$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3796as_fn_error $? "cannot compute suffix of object files: cannot compile
3797See \`config.log' for more details" "$LINENO" 5; }
3798fi
3799rm -f conftest.$ac_cv_objext conftest.$ac_ext
3800fi
3801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3802$as_echo "$ac_cv_objext" >&6; }
3803OBJEXT=$ac_cv_objext
3804ac_objext=$OBJEXT
81ecdfbb
RW
3805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3806$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
d0ac1c44 3807if ${ac_cv_c_compiler_gnu+:} false; then :
81ecdfbb 3808 $as_echo_n "(cached) " >&6
bdcfeba5 3809else
81ecdfbb 3810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d45dc31f 3811/* end confdefs.h. */
bdcfeba5 3812
d45dc31f
SE
3813int
3814main ()
3815{
3816#ifndef __GNUC__
3817 choke me
3818#endif
bdcfeba5 3819
d45dc31f
SE
3820 ;
3821 return 0;
3822}
3823_ACEOF
81ecdfbb 3824if ac_fn_c_try_compile "$LINENO"; then :
d45dc31f
SE
3825 ac_compiler_gnu=yes
3826else
81ecdfbb 3827 ac_compiler_gnu=no
bdcfeba5 3828fi
81ecdfbb 3829rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d45dc31f 3830ac_cv_c_compiler_gnu=$ac_compiler_gnu
bdcfeba5 3831
bdcfeba5 3832fi
81ecdfbb
RW
3833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3834$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3835if test $ac_compiler_gnu = yes; then
3836 GCC=yes
3837else
3838 GCC=
3839fi
d45dc31f
SE
3840ac_test_CFLAGS=${CFLAGS+set}
3841ac_save_CFLAGS=$CFLAGS
81ecdfbb
RW
3842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3843$as_echo_n "checking whether $CC accepts -g... " >&6; }
d0ac1c44 3844if ${ac_cv_prog_cc_g+:} false; then :
81ecdfbb
RW
3845 $as_echo_n "(cached) " >&6
3846else
3847 ac_save_c_werror_flag=$ac_c_werror_flag
3848 ac_c_werror_flag=yes
3849 ac_cv_prog_cc_g=no
3850 CFLAGS="-g"
3851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d45dc31f 3852/* end confdefs.h. */
ac48eca1 3853
d45dc31f
SE
3854int
3855main ()
3856{
ac48eca1 3857
d45dc31f
SE
3858 ;
3859 return 0;
3860}
3861_ACEOF
81ecdfbb 3862if ac_fn_c_try_compile "$LINENO"; then :
d45dc31f 3863 ac_cv_prog_cc_g=yes
ac48eca1 3864else
81ecdfbb
RW
3865 CFLAGS=""
3866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3867/* end confdefs.h. */
3868
3869int
3870main ()
3871{
3872
3873 ;
3874 return 0;
3875}
3876_ACEOF
3877if ac_fn_c_try_compile "$LINENO"; then :
3878
3879else
3880 ac_c_werror_flag=$ac_save_c_werror_flag
3881 CFLAGS="-g"
3882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3883/* end confdefs.h. */
3884
3885int
3886main ()
3887{
ac48eca1 3888
81ecdfbb
RW
3889 ;
3890 return 0;
3891}
3892_ACEOF
3893if ac_fn_c_try_compile "$LINENO"; then :
3894 ac_cv_prog_cc_g=yes
3895fi
3896rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ac48eca1 3897fi
81ecdfbb 3898rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ac48eca1 3899fi
81ecdfbb
RW
3900rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3901 ac_c_werror_flag=$ac_save_c_werror_flag
3902fi
3903{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3904$as_echo "$ac_cv_prog_cc_g" >&6; }
d45dc31f
SE
3905if test "$ac_test_CFLAGS" = set; then
3906 CFLAGS=$ac_save_CFLAGS
3907elif test $ac_cv_prog_cc_g = yes; then
3908 if test "$GCC" = yes; then
3909 CFLAGS="-g -O2"
ac48eca1 3910 else
d45dc31f 3911 CFLAGS="-g"
42ecbf5e 3912 fi
ac48eca1 3913else
d45dc31f
SE
3914 if test "$GCC" = yes; then
3915 CFLAGS="-O2"
3916 else
3917 CFLAGS=
42ecbf5e 3918 fi
ac48eca1 3919fi
81ecdfbb
RW
3920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3921$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
d0ac1c44 3922if ${ac_cv_prog_cc_c89+:} false; then :
81ecdfbb 3923 $as_echo_n "(cached) " >&6
d45dc31f 3924else
81ecdfbb 3925 ac_cv_prog_cc_c89=no
d45dc31f 3926ac_save_CC=$CC
81ecdfbb 3927cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e 3928/* end confdefs.h. */
d45dc31f
SE
3929#include <stdarg.h>
3930#include <stdio.h>
d0ac1c44 3931struct stat;
d45dc31f
SE
3932/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3933struct buf { int x; };
3934FILE * (*rcsopen) (struct buf *, struct stat *, int);
3935static char *e (p, i)
3936 char **p;
3937 int i;
3938{
3939 return p[i];
3940}
3941static char *f (char * (*g) (char **, int), char **p, ...)
3942{
3943 char *s;
3944 va_list v;
3945 va_start (v,p);
3946 s = g (p, va_arg (v,int));
3947 va_end (v);
3948 return s;
3949}
3950
3951/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3952 function prototypes and stuff, but not '\xHH' hex character constants.
3953 These don't provoke an error unfortunately, instead are silently treated
81ecdfbb 3954 as 'x'. The following induces an error, until -std is added to get
d45dc31f
SE
3955 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3956 array size at least. It's necessary to write '\x00'==0 to get something
81ecdfbb 3957 that's true only with -std. */
d45dc31f 3958int osf4_cc_array ['\x00' == 0 ? 1 : -1];
252b5132 3959
81ecdfbb
RW
3960/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3961 inside strings and character constants. */
3962#define FOO(x) 'x'
3963int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3964
d45dc31f
SE
3965int test (int i, double x);
3966struct s1 {int (*f) (int a);};
3967struct s2 {int (*f) (double a);};
3968int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3969int argc;
3970char **argv;
42ecbf5e
DJ
3971int
3972main ()
3973{
d45dc31f 3974return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
42ecbf5e
DJ
3975 ;
3976 return 0;
3977}
3978_ACEOF
81ecdfbb
RW
3979for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3980 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
d45dc31f
SE
3981do
3982 CC="$ac_save_CC $ac_arg"
81ecdfbb
RW
3983 if ac_fn_c_try_compile "$LINENO"; then :
3984 ac_cv_prog_cc_c89=$ac_arg
252b5132 3985fi
81ecdfbb
RW
3986rm -f core conftest.err conftest.$ac_objext
3987 test "x$ac_cv_prog_cc_c89" != "xno" && break
d45dc31f 3988done
81ecdfbb 3989rm -f conftest.$ac_ext
d45dc31f 3990CC=$ac_save_CC
ac48eca1 3991
252b5132 3992fi
81ecdfbb
RW
3993# AC_CACHE_VAL
3994case "x$ac_cv_prog_cc_c89" in
3995 x)
3996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3997$as_echo "none needed" >&6; } ;;
3998 xno)
3999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4000$as_echo "unsupported" >&6; } ;;
d45dc31f 4001 *)
81ecdfbb
RW
4002 CC="$CC $ac_cv_prog_cc_c89"
4003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4004$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
252b5132 4005esac
81ecdfbb 4006if test "x$ac_cv_prog_cc_c89" != xno; then :
252b5132 4007
d45dc31f 4008fi
ac48eca1 4009
d45dc31f
SE
4010ac_ext=c
4011ac_cpp='$CPP $CPPFLAGS'
4012ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4013ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4014ac_compiler_gnu=$ac_cv_c_compiler_gnu
42ecbf5e 4015
d0ac1c44
SM
4016ac_ext=c
4017ac_cpp='$CPP $CPPFLAGS'
4018ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4019ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4020ac_compiler_gnu=$ac_cv_c_compiler_gnu
4021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4022$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4023if ${am_cv_prog_cc_c_o+:} false; then :
4024 $as_echo_n "(cached) " >&6
4025else
4026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4027/* end confdefs.h. */
4028
4029int
4030main ()
4031{
4032
4033 ;
4034 return 0;
4035}
4036_ACEOF
4037 # Make sure it works both with $CC and with simple cc.
4038 # Following AC_PROG_CC_C_O, we do the test twice because some
4039 # compilers refuse to overwrite an existing .o file with -o,
4040 # though they will create one.
4041 am_cv_prog_cc_c_o=yes
4042 for am_i in 1 2; do
4043 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4044 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4045 ac_status=$?
4046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4047 (exit $ac_status); } \
4048 && test -f conftest2.$ac_objext; then
4049 : OK
4050 else
4051 am_cv_prog_cc_c_o=no
4052 break
4053 fi
4054 done
4055 rm -f core conftest*
4056 unset am_i
4057fi
4058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4059$as_echo "$am_cv_prog_cc_c_o" >&6; }
4060if test "$am_cv_prog_cc_c_o" != yes; then
4061 # Losing compiler, so override with the script.
4062 # FIXME: It is wrong to rewrite CC.
4063 # But if we don't then we get into trouble of one sort or another.
4064 # A longer-term fix would be to have automake use am__CC in this case,
4065 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4066 CC="$am_aux_dir/compile $CC"
4067fi
87b9f255
AM
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
4074DEPDIR="${am__leading_dot}deps"
4075
4076ac_config_commands="$ac_config_commands depfiles"
4077
b9583093
AM
4078
4079am_make=${MAKE-make}
4080cat > confinc << 'END'
87b9f255 4081am__doit:
b9583093 4082 @echo this is the am__doit target
87b9f255
AM
4083.PHONY: am__doit
4084END
b9583093
AM
4085# If we don't find an include directive, just comment out the code.
4086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4087$as_echo_n "checking for style of include used by $am_make... " >&6; }
87b9f255
AM
4088am__include="#"
4089am__quote=
b9583093
AM
4090_am_result=none
4091# First try GNU make style include.
4092echo "include confinc" > confmf
4093# Ignore all kinds of additional output from 'make'.
4094case `$am_make -s -f confmf 2> /dev/null` in #(
4095*the\ am__doit\ target*)
4096 am__include=include
4097 am__quote=
4098 _am_result=GNU
4099 ;;
631ec08c 4100esac
b9583093
AM
4101# Now try BSD make style include.
4102if test "$am__include" = "#"; then
4103 echo '.include "confinc"' > confmf
4104 case `$am_make -s -f confmf 2> /dev/null` in #(
4105 *the\ am__doit\ target*)
4106 am__include=.include
4107 am__quote="\""
4108 _am_result=BSD
4109 ;;
4110 esac
4111fi
4112
4113
4114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4115$as_echo "$_am_result" >&6; }
4116rm -f confinc confmf
87b9f255
AM
4117
4118# Check whether --enable-dependency-tracking was given.
4119if test "${enable_dependency_tracking+set}" = set; then :
4120 enableval=$enable_dependency_tracking;
4121fi
4122
4123if test "x$enable_dependency_tracking" != xno; then
4124 am_depcomp="$ac_aux_dir/depcomp"
4125 AMDEPBACKSLASH='\'
4126 am__nodep='_no'
4127fi
4128 if test "x$enable_dependency_tracking" != xno; then
4129 AMDEP_TRUE=
4130 AMDEP_FALSE='#'
4131else
4132 AMDEP_TRUE='#'
4133 AMDEP_FALSE=
4134fi
4135
4136
4137
4138depcc="$CC" am_compiler_list=
4139
4140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4141$as_echo_n "checking dependency style of $depcc... " >&6; }
4142if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4143 $as_echo_n "(cached) " >&6
4144else
4145 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4146 # We make a subdir and do the tests there. Otherwise we can end up
4147 # making bogus files that we don't know about and never remove. For
4148 # instance it was reported that on HP-UX the gcc test will end up
4149 # making a dummy file named 'D' -- because '-MD' means "put the output
4150 # in D".
4151 rm -rf conftest.dir
4152 mkdir conftest.dir
4153 # Copy depcomp to subdir because otherwise we won't find it if we're
4154 # using a relative directory.
4155 cp "$am_depcomp" conftest.dir
4156 cd conftest.dir
4157 # We will build objects and dependencies in a subdirectory because
4158 # it helps to detect inapplicable dependency modes. For instance
4159 # both Tru64's cc and ICC support -MD to output dependencies as a
4160 # side effect of compilation, but ICC will put the dependencies in
4161 # the current directory while Tru64 will put them in the object
4162 # directory.
4163 mkdir sub
4164
4165 am_cv_CC_dependencies_compiler_type=none
4166 if test "$am_compiler_list" = ""; then
4167 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4168 fi
4169 am__universal=false
4170 case " $depcc " in #(
4171 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4172 esac
4173
4174 for depmode in $am_compiler_list; do
4175 # Setup a source with many dependencies, because some compilers
4176 # like to wrap large dependency lists on column 80 (with \), and
4177 # we should not choose a depcomp mode which is confused by this.
4178 #
4179 # We need to recreate these files for each test, as the compiler may
4180 # overwrite some of them when testing with obscure command lines.
4181 # This happens at least with the AIX C compiler.
4182 : > sub/conftest.c
4183 for i in 1 2 3 4 5 6; do
4184 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4185 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4186 # Solaris 10 /bin/sh.
4187 echo '/* dummy */' > sub/conftst$i.h
4188 done
4189 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4190
4191 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4192 # mode. It turns out that the SunPro C++ compiler does not properly
4193 # handle '-M -o', and we need to detect this. Also, some Intel
4194 # versions had trouble with output in subdirs.
4195 am__obj=sub/conftest.${OBJEXT-o}
4196 am__minus_obj="-o $am__obj"
4197 case $depmode in
4198 gcc)
4199 # This depmode causes a compiler race in universal mode.
4200 test "$am__universal" = false || continue
4201 ;;
4202 nosideeffect)
4203 # After this tag, mechanisms are not by side-effect, so they'll
4204 # only be used when explicitly requested.
4205 if test "x$enable_dependency_tracking" = xyes; then
4206 continue
4207 else
4208 break
4209 fi
4210 ;;
4211 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4212 # This compiler won't grok '-c -o', but also, the minuso test has
4213 # not run yet. These depmodes are late enough in the game, and
4214 # so weak that their functioning should not be impacted.
4215 am__obj=conftest.${OBJEXT-o}
4216 am__minus_obj=
4217 ;;
4218 none) break ;;
4219 esac
4220 if depmode=$depmode \
4221 source=sub/conftest.c object=$am__obj \
4222 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4223 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4224 >/dev/null 2>conftest.err &&
4225 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4226 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4227 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4228 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4229 # icc doesn't choke on unknown options, it will just issue warnings
4230 # or remarks (even with -Werror). So we grep stderr for any message
4231 # that says an option was ignored or not supported.
4232 # When given -MP, icc 7.0 and 7.1 complain thusly:
4233 # icc: Command line warning: ignoring option '-M'; no argument required
4234 # The diagnosis changed in icc 8.0:
4235 # icc: Command line remark: option '-MP' not supported
4236 if (grep 'ignoring option' conftest.err ||
4237 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4238 am_cv_CC_dependencies_compiler_type=$depmode
4239 break
4240 fi
4241 fi
4242 done
4243
4244 cd ..
4245 rm -rf conftest.dir
4246else
4247 am_cv_CC_dependencies_compiler_type=none
4248fi
4249
4250fi
4251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4252$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4253CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4254
4255 if
4256 test "x$enable_dependency_tracking" != xno \
4257 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4258 am__fastdepCC_TRUE=
4259 am__fastdepCC_FALSE='#'
4260else
4261 am__fastdepCC_TRUE='#'
4262 am__fastdepCC_FALSE=
4263fi
4264
d0ac1c44
SM
4265
4266
7357c5b6
AM
4267ac_ext=c
4268ac_cpp='$CPP $CPPFLAGS'
4269ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4270ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4271ac_compiler_gnu=$ac_cv_c_compiler_gnu
81ecdfbb
RW
4272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4273$as_echo_n "checking how to run the C preprocessor... " >&6; }
7357c5b6
AM
4274# On Suns, sometimes $CPP names a directory.
4275if test -n "$CPP" && test -d "$CPP"; then
4276 CPP=
4277fi
4278if test -z "$CPP"; then
d0ac1c44 4279 if ${ac_cv_prog_CPP+:} false; then :
81ecdfbb 4280 $as_echo_n "(cached) " >&6
7357c5b6
AM
4281else
4282 # Double quotes because CPP needs to be expanded
4283 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4284 do
4285 ac_preproc_ok=false
4286for ac_c_preproc_warn_flag in '' yes
4287do
4288 # Use a header file that comes with gcc, so configuring glibc
4289 # with a fresh cross-compiler works.
4290 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4291 # <limits.h> exists even on freestanding compilers.
4292 # On the NeXT, cc -E runs the code through the compiler's parser,
4293 # not just through cpp. "Syntax error" is here to catch this case.
81ecdfbb 4294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4295/* end confdefs.h. */
4296#ifdef __STDC__
4297# include <limits.h>
4298#else
4299# include <assert.h>
4300#endif
4301 Syntax error
4302_ACEOF
81ecdfbb 4303if ac_fn_c_try_cpp "$LINENO"; then :
d7040cdb 4304
81ecdfbb 4305else
7357c5b6
AM
4306 # Broken: fails on valid input.
4307continue
4308fi
d0ac1c44 4309rm -f conftest.err conftest.i conftest.$ac_ext
d7040cdb 4310
81ecdfbb 4311 # OK, works on sane cases. Now check whether nonexistent headers
7357c5b6 4312 # can be detected and how.
81ecdfbb 4313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4314/* end confdefs.h. */
4315#include <ac_nonexistent.h>
4316_ACEOF
81ecdfbb 4317if ac_fn_c_try_cpp "$LINENO"; then :
7357c5b6
AM
4318 # Broken: success on invalid input.
4319continue
4320else
7357c5b6
AM
4321 # Passes both tests.
4322ac_preproc_ok=:
4323break
4324fi
d0ac1c44 4325rm -f conftest.err conftest.i conftest.$ac_ext
d7040cdb 4326
7357c5b6
AM
4327done
4328# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
d0ac1c44 4329rm -f conftest.i conftest.err conftest.$ac_ext
81ecdfbb 4330if $ac_preproc_ok; then :
7357c5b6
AM
4331 break
4332fi
d7040cdb 4333
7357c5b6
AM
4334 done
4335 ac_cv_prog_CPP=$CPP
d7040cdb 4336
7357c5b6
AM
4337fi
4338 CPP=$ac_cv_prog_CPP
4339else
4340 ac_cv_prog_CPP=$CPP
4341fi
81ecdfbb
RW
4342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4343$as_echo "$CPP" >&6; }
7357c5b6
AM
4344ac_preproc_ok=false
4345for ac_c_preproc_warn_flag in '' yes
4346do
4347 # Use a header file that comes with gcc, so configuring glibc
4348 # with a fresh cross-compiler works.
4349 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4350 # <limits.h> exists even on freestanding compilers.
4351 # On the NeXT, cc -E runs the code through the compiler's parser,
4352 # not just through cpp. "Syntax error" is here to catch this case.
81ecdfbb 4353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4354/* end confdefs.h. */
4355#ifdef __STDC__
4356# include <limits.h>
4357#else
4358# include <assert.h>
4359#endif
4360 Syntax error
4361_ACEOF
81ecdfbb 4362if ac_fn_c_try_cpp "$LINENO"; then :
d7040cdb 4363
81ecdfbb 4364else
7357c5b6
AM
4365 # Broken: fails on valid input.
4366continue
4367fi
d0ac1c44 4368rm -f conftest.err conftest.i conftest.$ac_ext
d7040cdb 4369
81ecdfbb 4370 # OK, works on sane cases. Now check whether nonexistent headers
7357c5b6 4371 # can be detected and how.
81ecdfbb 4372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4373/* end confdefs.h. */
4374#include <ac_nonexistent.h>
4375_ACEOF
81ecdfbb 4376if ac_fn_c_try_cpp "$LINENO"; then :
7357c5b6
AM
4377 # Broken: success on invalid input.
4378continue
4379else
7357c5b6
AM
4380 # Passes both tests.
4381ac_preproc_ok=:
4382break
4383fi
d0ac1c44 4384rm -f conftest.err conftest.i conftest.$ac_ext
d7040cdb 4385
7357c5b6
AM
4386done
4387# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
d0ac1c44 4388rm -f conftest.i conftest.err conftest.$ac_ext
81ecdfbb
RW
4389if $ac_preproc_ok; then :
4390
7357c5b6 4391else
81ecdfbb
RW
4392 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4393$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
4394as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4395See \`config.log' for more details" "$LINENO" 5; }
7357c5b6 4396fi
d7040cdb 4397
7357c5b6
AM
4398ac_ext=c
4399ac_cpp='$CPP $CPPFLAGS'
4400ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4401ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4402ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb
SE
4403
4404
81ecdfbb
RW
4405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4406$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
d0ac1c44 4407if ${ac_cv_path_GREP+:} false; then :
81ecdfbb 4408 $as_echo_n "(cached) " >&6
7357c5b6 4409else
81ecdfbb
RW
4410 if test -z "$GREP"; then
4411 ac_path_GREP_found=false
4412 # Loop through the user's path and test for each of PROGNAME-LIST
4413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4414for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4415do
4416 IFS=$as_save_IFS
4417 test -z "$as_dir" && as_dir=.
4418 for ac_prog in grep ggrep; do
4419 for ac_exec_ext in '' $ac_executable_extensions; do
4420 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
d0ac1c44 4421 as_fn_executable_p "$ac_path_GREP" || continue
81ecdfbb
RW
4422# Check for GNU ac_path_GREP and select it if it is found.
4423 # Check for GNU $ac_path_GREP
4424case `"$ac_path_GREP" --version 2>&1` in
4425*GNU*)
4426 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4427*)
4428 ac_count=0
4429 $as_echo_n 0123456789 >"conftest.in"
4430 while :
4431 do
4432 cat "conftest.in" "conftest.in" >"conftest.tmp"
4433 mv "conftest.tmp" "conftest.in"
4434 cp "conftest.in" "conftest.nl"
4435 $as_echo 'GREP' >> "conftest.nl"
4436 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4437 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4438 as_fn_arith $ac_count + 1 && ac_count=$as_val
4439 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4440 # Best one so far, save it but keep looking for a better one
4441 ac_cv_path_GREP="$ac_path_GREP"
4442 ac_path_GREP_max=$ac_count
7357c5b6 4443 fi
81ecdfbb
RW
4444 # 10*(2^10) chars as input seems more than enough
4445 test $ac_count -gt 10 && break
4446 done
4447 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4448esac
4449
4450 $ac_path_GREP_found && break 3
4451 done
4452 done
4453 done
4454IFS=$as_save_IFS
4455 if test -z "$ac_cv_path_GREP"; then
d0ac1c44 4456 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
81ecdfbb
RW
4457 fi
4458else
4459 ac_cv_path_GREP=$GREP
4460fi
4461
7357c5b6 4462fi
81ecdfbb
RW
4463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4464$as_echo "$ac_cv_path_GREP" >&6; }
4465 GREP="$ac_cv_path_GREP"
d7040cdb 4466
d7040cdb 4467
81ecdfbb
RW
4468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4469$as_echo_n "checking for egrep... " >&6; }
d0ac1c44 4470if ${ac_cv_path_EGREP+:} false; then :
81ecdfbb 4471 $as_echo_n "(cached) " >&6
7357c5b6 4472else
81ecdfbb
RW
4473 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4474 then ac_cv_path_EGREP="$GREP -E"
4475 else
4476 if test -z "$EGREP"; then
4477 ac_path_EGREP_found=false
4478 # Loop through the user's path and test for each of PROGNAME-LIST
4479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4480for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4481do
4482 IFS=$as_save_IFS
4483 test -z "$as_dir" && as_dir=.
4484 for ac_prog in egrep; do
4485 for ac_exec_ext in '' $ac_executable_extensions; do
4486 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
d0ac1c44 4487 as_fn_executable_p "$ac_path_EGREP" || continue
81ecdfbb
RW
4488# Check for GNU ac_path_EGREP and select it if it is found.
4489 # Check for GNU $ac_path_EGREP
4490case `"$ac_path_EGREP" --version 2>&1` in
4491*GNU*)
4492 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4493*)
4494 ac_count=0
4495 $as_echo_n 0123456789 >"conftest.in"
4496 while :
4497 do
4498 cat "conftest.in" "conftest.in" >"conftest.tmp"
4499 mv "conftest.tmp" "conftest.in"
4500 cp "conftest.in" "conftest.nl"
4501 $as_echo 'EGREP' >> "conftest.nl"
4502 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4503 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4504 as_fn_arith $ac_count + 1 && ac_count=$as_val
4505 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4506 # Best one so far, save it but keep looking for a better one
4507 ac_cv_path_EGREP="$ac_path_EGREP"
4508 ac_path_EGREP_max=$ac_count
4509 fi
4510 # 10*(2^10) chars as input seems more than enough
4511 test $ac_count -gt 10 && break
4512 done
4513 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4514esac
4515
4516 $ac_path_EGREP_found && break 3
4517 done
4518 done
4519 done
4520IFS=$as_save_IFS
4521 if test -z "$ac_cv_path_EGREP"; then
d0ac1c44 4522 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
81ecdfbb
RW
4523 fi
4524else
4525 ac_cv_path_EGREP=$EGREP
4526fi
4527
4528 fi
4529fi
4530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4531$as_echo "$ac_cv_path_EGREP" >&6; }
4532 EGREP="$ac_cv_path_EGREP"
4533
4534
4535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4536$as_echo_n "checking for ANSI C header files... " >&6; }
d0ac1c44 4537if ${ac_cv_header_stdc+:} false; then :
81ecdfbb
RW
4538 $as_echo_n "(cached) " >&6
4539else
4540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4541/* end confdefs.h. */
4542#include <stdlib.h>
4543#include <stdarg.h>
4544#include <string.h>
4545#include <float.h>
d7040cdb 4546
7357c5b6
AM
4547int
4548main ()
4549{
d7040cdb 4550
7357c5b6
AM
4551 ;
4552 return 0;
4553}
4554_ACEOF
81ecdfbb 4555if ac_fn_c_try_compile "$LINENO"; then :
7357c5b6
AM
4556 ac_cv_header_stdc=yes
4557else
81ecdfbb 4558 ac_cv_header_stdc=no
7357c5b6 4559fi
81ecdfbb 4560rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d7040cdb 4561
7357c5b6
AM
4562if test $ac_cv_header_stdc = yes; then
4563 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
81ecdfbb 4564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4565/* end confdefs.h. */
4566#include <string.h>
d7040cdb 4567
7357c5b6
AM
4568_ACEOF
4569if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
81ecdfbb
RW
4570 $EGREP "memchr" >/dev/null 2>&1; then :
4571
d45dc31f 4572else
7357c5b6
AM
4573 ac_cv_header_stdc=no
4574fi
4575rm -f conftest*
d7040cdb 4576
7357c5b6 4577fi
d7040cdb 4578
7357c5b6
AM
4579if test $ac_cv_header_stdc = yes; then
4580 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
81ecdfbb 4581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4582/* end confdefs.h. */
4583#include <stdlib.h>
d7040cdb 4584
7357c5b6
AM
4585_ACEOF
4586if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
81ecdfbb
RW
4587 $EGREP "free" >/dev/null 2>&1; then :
4588
7357c5b6
AM
4589else
4590 ac_cv_header_stdc=no
4591fi
4592rm -f conftest*
d7040cdb 4593
7357c5b6 4594fi
d7040cdb 4595
7357c5b6
AM
4596if test $ac_cv_header_stdc = yes; then
4597 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
81ecdfbb 4598 if test "$cross_compiling" = yes; then :
7357c5b6
AM
4599 :
4600else
81ecdfbb 4601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4602/* end confdefs.h. */
4603#include <ctype.h>
81ecdfbb 4604#include <stdlib.h>
7357c5b6
AM
4605#if ((' ' & 0x0FF) == 0x020)
4606# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4607# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4608#else
4609# define ISLOWER(c) \
4610 (('a' <= (c) && (c) <= 'i') \
4611 || ('j' <= (c) && (c) <= 'r') \
4612 || ('s' <= (c) && (c) <= 'z'))
4613# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4614#endif
d7040cdb 4615
7357c5b6
AM
4616#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4617int
4618main ()
4619{
4620 int i;
4621 for (i = 0; i < 256; i++)
4622 if (XOR (islower (i), ISLOWER (i))
4623 || toupper (i) != TOUPPER (i))
81ecdfbb
RW
4624 return 2;
4625 return 0;
7357c5b6
AM
4626}
4627_ACEOF
81ecdfbb 4628if ac_fn_c_try_run "$LINENO"; then :
d7040cdb 4629
81ecdfbb
RW
4630else
4631 ac_cv_header_stdc=no
7357c5b6 4632fi
81ecdfbb
RW
4633rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4634 conftest.$ac_objext conftest.beam conftest.$ac_ext
7357c5b6 4635fi
81ecdfbb 4636
7357c5b6
AM
4637fi
4638fi
81ecdfbb
RW
4639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4640$as_echo "$ac_cv_header_stdc" >&6; }
7357c5b6 4641if test $ac_cv_header_stdc = yes; then
d7040cdb 4642
81ecdfbb 4643$as_echo "#define STDC_HEADERS 1" >>confdefs.h
d7040cdb 4644
7357c5b6 4645fi
d7040cdb 4646
7357c5b6 4647# On IRIX 5.3, sys/types and inttypes.h are conflicting.
81ecdfbb
RW
4648for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4649 inttypes.h stdint.h unistd.h
4650do :
4651 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4652ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4653"
d0ac1c44 4654if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
81ecdfbb
RW
4655 cat >>confdefs.h <<_ACEOF
4656#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4657_ACEOF
d7040cdb 4658
81ecdfbb 4659fi
d7040cdb 4660
81ecdfbb 4661done
d7040cdb
SE
4662
4663
4664
81ecdfbb 4665 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
d0ac1c44 4666if test "x$ac_cv_header_minix_config_h" = xyes; then :
81ecdfbb
RW
4667 MINIX=yes
4668else
4669 MINIX=
4670fi
d7040cdb
SE
4671
4672
81ecdfbb 4673 if test "$MINIX" = yes; then
d7040cdb 4674
81ecdfbb 4675$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
d7040cdb 4676
d7040cdb 4677
81ecdfbb 4678$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
d7040cdb
SE
4679
4680
81ecdfbb 4681$as_echo "#define _MINIX 1" >>confdefs.h
d7040cdb 4682
81ecdfbb 4683 fi
d7040cdb
SE
4684
4685
81ecdfbb
RW
4686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4687$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
d0ac1c44 4688if ${ac_cv_safe_to_define___extensions__+:} false; then :
81ecdfbb 4689 $as_echo_n "(cached) " >&6
7357c5b6 4690else
81ecdfbb 4691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6 4692/* end confdefs.h. */
d7040cdb 4693
d0ac1c44
SM
4694# define __EXTENSIONS__ 1
4695 $ac_includes_default
7357c5b6
AM
4696int
4697main ()
4698{
d7040cdb 4699
7357c5b6
AM
4700 ;
4701 return 0;
4702}
4703_ACEOF
81ecdfbb 4704if ac_fn_c_try_compile "$LINENO"; then :
7357c5b6 4705 ac_cv_safe_to_define___extensions__=yes
d7040cdb 4706else
81ecdfbb 4707 ac_cv_safe_to_define___extensions__=no
d7040cdb 4708fi
81ecdfbb 4709rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7357c5b6 4710fi
81ecdfbb
RW
4711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4712$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
7357c5b6 4713 test $ac_cv_safe_to_define___extensions__ = yes &&
81ecdfbb 4714 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
d7040cdb 4715
81ecdfbb 4716 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
d7040cdb 4717
81ecdfbb 4718 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
d7040cdb 4719
81ecdfbb 4720 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
d7040cdb 4721
81ecdfbb 4722 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
d7040cdb
SE
4723
4724
e3525117 4725
5691d22d 4726
81ecdfbb 4727
718a6fd8
SE
4728case `pwd` in
4729 *\ * | *\ *)
81ecdfbb
RW
4730 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4731$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
718a6fd8 4732esac
d7040cdb
SE
4733
4734
7357c5b6 4735
f2c621e4
AS
4736macro_version='2.2.7a'
4737macro_revision='1.3134'
7357c5b6
AM
4738
4739
4740
4741
4742
4743
7357c5b6
AM
4744
4745
4746
4747
4748
4749
4750
718a6fd8 4751ltmain="$ac_aux_dir/ltmain.sh"
7357c5b6 4752
3725885a
RW
4753# Backslashify metacharacters that are still active within
4754# double-quoted strings.
4755sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4756
4757# Same as above, but do not quote variable references.
4758double_quote_subst='s/\(["`\\]\)/\\\1/g'
4759
4760# Sed substitution to delay expansion of an escaped shell variable in a
4761# double_quote_subst'ed string.
4762delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4763
4764# Sed substitution to delay expansion of an escaped single quote.
4765delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4766
4767# Sed substitution to avoid accidental globbing in evaled expressions
4768no_glob_subst='s/\*/\\\*/g'
4769
4770ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4771ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4772ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4773
4774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4775$as_echo_n "checking how to print strings... " >&6; }
4776# Test print first, because it will be a builtin if present.
f2c621e4 4777if test "X`print -r -- -n 2>/dev/null`" = X-n && \
3725885a
RW
4778 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4779 ECHO='print -r --'
4780elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4781 ECHO='printf %s\n'
4782else
4783 # Use this function as a fallback that always works.
4784 func_fallback_echo ()
4785 {
4786 eval 'cat <<_LTECHO_EOF
4787$1
4788_LTECHO_EOF'
4789 }
4790 ECHO='func_fallback_echo'
4791fi
4792
4793# func_echo_all arg...
4794# Invoke $ECHO with all args, space-separated.
4795func_echo_all ()
4796{
4797 $ECHO ""
4798}
4799
4800case "$ECHO" in
4801 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4802$as_echo "printf" >&6; } ;;
4803 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4804$as_echo "print -r" >&6; } ;;
4805 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4806$as_echo "cat" >&6; } ;;
4807esac
4808
4809
4810
4811
4812
4813
4814
4815
4816
4817
4818
4819
4820
4821
81ecdfbb
RW
4822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4823$as_echo_n "checking for a sed that does not truncate output... " >&6; }
d0ac1c44 4824if ${ac_cv_path_SED+:} false; then :
81ecdfbb 4825 $as_echo_n "(cached) " >&6
7357c5b6 4826else
81ecdfbb
RW
4827 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4828 for ac_i in 1 2 3 4 5 6 7; do
4829 ac_script="$ac_script$as_nl$ac_script"
4830 done
4831 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4832 { ac_script=; unset ac_script;}
4833 if test -z "$SED"; then
4834 ac_path_SED_found=false
4835 # Loop through the user's path and test for each of PROGNAME-LIST
4836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7357c5b6
AM
4837for as_dir in $PATH
4838do
4839 IFS=$as_save_IFS
4840 test -z "$as_dir" && as_dir=.
81ecdfbb 4841 for ac_prog in sed gsed; do
7357c5b6 4842 for ac_exec_ext in '' $ac_executable_extensions; do
81ecdfbb 4843 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
d0ac1c44 4844 as_fn_executable_p "$ac_path_SED" || continue
81ecdfbb
RW
4845# Check for GNU ac_path_SED and select it if it is found.
4846 # Check for GNU $ac_path_SED
4847case `"$ac_path_SED" --version 2>&1` in
4848*GNU*)
4849 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4850*)
4851 ac_count=0
4852 $as_echo_n 0123456789 >"conftest.in"
4853 while :
4854 do
4855 cat "conftest.in" "conftest.in" >"conftest.tmp"
4856 mv "conftest.tmp" "conftest.in"
4857 cp "conftest.in" "conftest.nl"
4858 $as_echo '' >> "conftest.nl"
4859 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4860 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4861 as_fn_arith $ac_count + 1 && ac_count=$as_val
4862 if test $ac_count -gt ${ac_path_SED_max-0}; then
4863 # Best one so far, save it but keep looking for a better one
4864 ac_cv_path_SED="$ac_path_SED"
4865 ac_path_SED_max=$ac_count
4866 fi
4867 # 10*(2^10) chars as input seems more than enough
4868 test $ac_count -gt 10 && break
4869 done
4870 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4871esac
4872
4873 $ac_path_SED_found && break 3
7357c5b6
AM
4874 done
4875 done
81ecdfbb 4876 done
7357c5b6 4877IFS=$as_save_IFS
81ecdfbb 4878 if test -z "$ac_cv_path_SED"; then
d0ac1c44 4879 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
7357c5b6 4880 fi
81ecdfbb
RW
4881else
4882 ac_cv_path_SED=$SED
7357c5b6
AM
4883fi
4884
81ecdfbb
RW
4885fi
4886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4887$as_echo "$ac_cv_path_SED" >&6; }
4888 SED="$ac_cv_path_SED"
4889 rm -f conftest.sed
7357c5b6
AM
4890
4891test -z "$SED" && SED=sed
4892Xsed="$SED -e 1s/^X//"
4893
4894
4895
4896
4897
4898
4899
4900
4901
4902
4903
81ecdfbb
RW
4904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4905$as_echo_n "checking for fgrep... " >&6; }
d0ac1c44 4906if ${ac_cv_path_FGREP+:} false; then :
81ecdfbb 4907 $as_echo_n "(cached) " >&6
7357c5b6 4908else
81ecdfbb
RW
4909 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4910 then ac_cv_path_FGREP="$GREP -F"
4911 else
4912 if test -z "$FGREP"; then
4913 ac_path_FGREP_found=false
4914 # Loop through the user's path and test for each of PROGNAME-LIST
4915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4916for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4917do
4918 IFS=$as_save_IFS
4919 test -z "$as_dir" && as_dir=.
4920 for ac_prog in fgrep; do
4921 for ac_exec_ext in '' $ac_executable_extensions; do
4922 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
d0ac1c44 4923 as_fn_executable_p "$ac_path_FGREP" || continue
81ecdfbb
RW
4924# Check for GNU ac_path_FGREP and select it if it is found.
4925 # Check for GNU $ac_path_FGREP
4926case `"$ac_path_FGREP" --version 2>&1` in
4927*GNU*)
4928 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4929*)
4930 ac_count=0
4931 $as_echo_n 0123456789 >"conftest.in"
4932 while :
4933 do
4934 cat "conftest.in" "conftest.in" >"conftest.tmp"
4935 mv "conftest.tmp" "conftest.in"
4936 cp "conftest.in" "conftest.nl"
4937 $as_echo 'FGREP' >> "conftest.nl"
4938 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4939 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4940 as_fn_arith $ac_count + 1 && ac_count=$as_val
4941 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4942 # Best one so far, save it but keep looking for a better one
4943 ac_cv_path_FGREP="$ac_path_FGREP"
4944 ac_path_FGREP_max=$ac_count
7357c5b6 4945 fi
81ecdfbb
RW
4946 # 10*(2^10) chars as input seems more than enough
4947 test $ac_count -gt 10 && break
4948 done
4949 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4950esac
4951
4952 $ac_path_FGREP_found && break 3
4953 done
4954 done
4955 done
4956IFS=$as_save_IFS
4957 if test -z "$ac_cv_path_FGREP"; then
d0ac1c44 4958 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
81ecdfbb
RW
4959 fi
4960else
4961 ac_cv_path_FGREP=$FGREP
4962fi
4963
4964 fi
7357c5b6 4965fi
81ecdfbb
RW
4966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4967$as_echo "$ac_cv_path_FGREP" >&6; }
4968 FGREP="$ac_cv_path_FGREP"
7357c5b6
AM
4969
4970
4971test -z "$GREP" && GREP=grep
4972
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982
4983
4984
4985
4986
4987
4988
4989
4990
81ecdfbb
RW
4991# Check whether --with-gnu-ld was given.
4992if test "${with_gnu_ld+set}" = set; then :
4993 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7357c5b6
AM
4994else
4995 with_gnu_ld=no
81ecdfbb
RW
4996fi
4997
7357c5b6
AM
4998ac_prog=ld
4999if test "$GCC" = yes; then
5000 # Check if gcc -print-prog-name=ld gives a path.
81ecdfbb
RW
5001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5002$as_echo_n "checking for ld used by $CC... " >&6; }
7357c5b6
AM
5003 case $host in
5004 *-*-mingw*)
d45dc31f
SE
5005 # gcc leaves a trailing carriage return which upsets mingw
5006 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5007 *)
5008 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5009 esac
5010 case $ac_prog in
5011 # Accept absolute paths.
d7040cdb 5012 [\\/]* | ?:[\\/]*)
d45dc31f 5013 re_direlt='/[^/][^/]*/\.\./'
d7040cdb
SE
5014 # Canonicalize the pathname of ld
5015 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5016 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5017 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
d45dc31f
SE
5018 done
5019 test -z "$LD" && LD="$ac_prog"
5020 ;;
5021 "")
5022 # If it fails, then pretend we aren't using GCC.
5023 ac_prog=ld
5024 ;;
5025 *)
5026 # If it is relative, then search for the first ld in PATH.
5027 with_gnu_ld=unknown
5028 ;;
5029 esac
5030elif test "$with_gnu_ld" = yes; then
81ecdfbb
RW
5031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5032$as_echo_n "checking for GNU ld... " >&6; }
d45dc31f 5033else
81ecdfbb
RW
5034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5035$as_echo_n "checking for non-GNU ld... " >&6; }
d45dc31f 5036fi
d0ac1c44 5037if ${lt_cv_path_LD+:} false; then :
81ecdfbb 5038 $as_echo_n "(cached) " >&6
d45dc31f
SE
5039else
5040 if test -z "$LD"; then
d7040cdb 5041 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
d45dc31f 5042 for ac_dir in $PATH; do
d7040cdb 5043 IFS="$lt_save_ifs"
d45dc31f
SE
5044 test -z "$ac_dir" && ac_dir=.
5045 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5046 lt_cv_path_LD="$ac_dir/$ac_prog"
5047 # Check to see if the program is GNU ld. I'd rather use --version,
d7040cdb 5048 # but apparently some variants of GNU ld only accept -v.
d45dc31f 5049 # Break only if it was the GNU/non-GNU ld that we prefer.
d7040cdb
SE
5050 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5051 *GNU* | *'with BFD'*)
d45dc31f 5052 test "$with_gnu_ld" != no && break
d7040cdb
SE
5053 ;;
5054 *)
d45dc31f 5055 test "$with_gnu_ld" != yes && break
d7040cdb
SE
5056 ;;
5057 esac
d45dc31f
SE
5058 fi
5059 done
d7040cdb 5060 IFS="$lt_save_ifs"
d45dc31f
SE
5061else
5062 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5063fi
5064fi
1ad12f97 5065
d45dc31f
SE
5066LD="$lt_cv_path_LD"
5067if test -n "$LD"; then
81ecdfbb
RW
5068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5069$as_echo "$LD" >&6; }
d45dc31f 5070else
81ecdfbb
RW
5071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5072$as_echo "no" >&6; }
d45dc31f 5073fi
d0ac1c44 5074test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
81ecdfbb
RW
5075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5076$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
d0ac1c44 5077if ${lt_cv_prog_gnu_ld+:} false; then :
81ecdfbb 5078 $as_echo_n "(cached) " >&6
d45dc31f 5079else
d7040cdb
SE
5080 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5081case `$LD -v 2>&1 </dev/null` in
5082*GNU* | *'with BFD'*)
d45dc31f 5083 lt_cv_prog_gnu_ld=yes
d7040cdb
SE
5084 ;;
5085*)
d45dc31f 5086 lt_cv_prog_gnu_ld=no
d7040cdb
SE
5087 ;;
5088esac
d45dc31f 5089fi
81ecdfbb
RW
5090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5091$as_echo "$lt_cv_prog_gnu_ld" >&6; }
d45dc31f 5092with_gnu_ld=$lt_cv_prog_gnu_ld
569acd2c 5093
d45dc31f 5094
42ecbf5e 5095
d7040cdb
SE
5096
5097
5098
5099
5100
5101
81ecdfbb
RW
5102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5103$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
d0ac1c44 5104if ${lt_cv_path_NM+:} false; then :
81ecdfbb 5105 $as_echo_n "(cached) " >&6
d45dc31f
SE
5106else
5107 if test -n "$NM"; then
b9004024
NA
5108 # Let the user override the nm to test.
5109 lt_nm_to_check="$NM"
5110 else
5111 lt_nm_to_check="${ac_tool_prefix}nm"
5112 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5113 lt_nm_to_check="$lt_nm_to_check nm"
5114 fi
5115 fi
caf606c9 5116 for lt_tmp_nm in "$lt_nm_to_check"; do
b9004024
NA
5117 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5118 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5119 IFS="$lt_save_ifs"
5120 test -z "$ac_dir" && ac_dir=.
caf606c9
NA
5121 # Strip out any user-provided options from the nm to test twice,
5122 # the first time to test to see if nm (rather than its options) has
5123 # an explicit path, the second time to yield a file which can be
5124 # nm'ed itself.
5125 tmp_nm_path="`$ECHO "$lt_tmp_nm" | sed 's, -.*$,,'`"
5126 case "$tmp_nm_path" in
b9004024
NA
5127 */*|*\\*) tmp_nm="$lt_tmp_nm";;
5128 *) tmp_nm="$ac_dir/$lt_tmp_nm";;
5129 esac
caf606c9
NA
5130 tmp_nm_to_nm="`$ECHO "$tmp_nm" | sed 's, -.*$,,'`"
5131 if test -f "$tmp_nm_to_nm" || test -f "$tmp_nm_to_nm$ac_exeext" ; then
b9004024
NA
5132 # Check to see if the nm accepts a BSD-compat flag.
5133 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5134 # nm: unknown option "B" ignored
caf606c9 5135 case `"$tmp_nm" -B "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
b9004024
NA
5136 *$tmp_nm*) lt_cv_path_NM="$tmp_nm -B"
5137 break
5138 ;;
5139 *)
caf606c9 5140 case `"$tmp_nm" -p "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
b9004024
NA
5141 *$tmp_nm*)
5142 lt_cv_path_NM="$tmp_nm -p"
5143 break
5144 ;;
5145 *)
5146 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5147 continue # so that we can try to find one that supports BSD flags
5148 ;;
5149 esac
5150 ;;
5151 esac
5152 fi
5153 done
5154 IFS="$lt_save_ifs"
5155 done
5156 : ${lt_cv_path_NM=no}
a541e3ce 5157fi
81ecdfbb
RW
5158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5159$as_echo "$lt_cv_path_NM" >&6; }
d7040cdb
SE
5160if test "$lt_cv_path_NM" != "no"; then
5161 NM="$lt_cv_path_NM"
d45dc31f 5162else
d7040cdb 5163 # Didn't find any BSD compatible name lister, look for dumpbin.
3725885a
RW
5164 if test -n "$DUMPBIN"; then :
5165 # Let the user override the test.
5166 else
5167 if test -n "$ac_tool_prefix"; then
5168 for ac_prog in dumpbin "link -dump"
d7040cdb
SE
5169 do
5170 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5171set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
5172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5173$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5174if ${ac_cv_prog_DUMPBIN+:} false; then :
81ecdfbb 5175 $as_echo_n "(cached) " >&6
d45dc31f 5176else
d7040cdb
SE
5177 if test -n "$DUMPBIN"; then
5178 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5179else
5180as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5181for as_dir in $PATH
5182do
5183 IFS=$as_save_IFS
5184 test -z "$as_dir" && as_dir=.
81ecdfbb 5185 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5186 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d7040cdb 5187 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
81ecdfbb 5188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb
SE
5189 break 2
5190 fi
5191done
81ecdfbb
RW
5192 done
5193IFS=$as_save_IFS
398ee8f1 5194
d7040cdb
SE
5195fi
5196fi
5197DUMPBIN=$ac_cv_prog_DUMPBIN
5198if test -n "$DUMPBIN"; then
81ecdfbb
RW
5199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5200$as_echo "$DUMPBIN" >&6; }
d7040cdb 5201else
81ecdfbb
RW
5202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5203$as_echo "no" >&6; }
d7040cdb 5204fi
d15b04bd 5205
81ecdfbb 5206
d7040cdb
SE
5207 test -n "$DUMPBIN" && break
5208 done
5209fi
5210if test -z "$DUMPBIN"; then
5211 ac_ct_DUMPBIN=$DUMPBIN
3725885a 5212 for ac_prog in dumpbin "link -dump"
d7040cdb
SE
5213do
5214 # Extract the first word of "$ac_prog", so it can be a program name with args.
5215set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
5216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5217$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5218if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
81ecdfbb 5219 $as_echo_n "(cached) " >&6
d7040cdb
SE
5220else
5221 if test -n "$ac_ct_DUMPBIN"; then
5222 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5223else
5224as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5225for as_dir in $PATH
5226do
5227 IFS=$as_save_IFS
5228 test -z "$as_dir" && as_dir=.
81ecdfbb 5229 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5230 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d7040cdb 5231 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
81ecdfbb 5232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb 5233 break 2
d45dc31f 5234 fi
d7040cdb 5235done
81ecdfbb
RW
5236 done
5237IFS=$as_save_IFS
d15b04bd 5238
d7040cdb
SE
5239fi
5240fi
5241ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5242if test -n "$ac_ct_DUMPBIN"; then
81ecdfbb
RW
5243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5244$as_echo "$ac_ct_DUMPBIN" >&6; }
d7040cdb 5245else
81ecdfbb
RW
5246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5247$as_echo "no" >&6; }
d7040cdb 5248fi
42ecbf5e 5249
81ecdfbb 5250
d7040cdb
SE
5251 test -n "$ac_ct_DUMPBIN" && break
5252done
d45dc31f 5253
81ecdfbb
RW
5254 if test "x$ac_ct_DUMPBIN" = x; then
5255 DUMPBIN=":"
5256 else
5257 case $cross_compiling:$ac_tool_warned in
5258yes:)
5259{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5260$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5261ac_tool_warned=yes ;;
5262esac
5263 DUMPBIN=$ac_ct_DUMPBIN
5264 fi
d7040cdb 5265fi
d45dc31f 5266
3725885a
RW
5267 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5268 *COFF*)
5269 DUMPBIN="$DUMPBIN -symbols"
5270 ;;
5271 *)
5272 DUMPBIN=:
5273 ;;
5274 esac
5275 fi
d45dc31f 5276
d7040cdb
SE
5277 if test "$DUMPBIN" != ":"; then
5278 NM="$DUMPBIN"
42ecbf5e 5279 fi
d7040cdb
SE
5280fi
5281test -z "$NM" && NM=nm
d45dc31f 5282
42ecbf5e 5283
d15b04bd 5284
42ecbf5e 5285
d45dc31f 5286
42ecbf5e 5287
81ecdfbb
RW
5288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5289$as_echo_n "checking the name lister ($NM) interface... " >&6; }
d0ac1c44 5290if ${lt_cv_nm_interface+:} false; then :
81ecdfbb 5291 $as_echo_n "(cached) " >&6
d7040cdb
SE
5292else
5293 lt_cv_nm_interface="BSD nm"
5294 echo "int some_variable = 0;" > conftest.$ac_ext
3725885a 5295 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
d7040cdb
SE
5296 (eval "$ac_compile" 2>conftest.err)
5297 cat conftest.err >&5
3725885a 5298 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
d7040cdb
SE
5299 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5300 cat conftest.err >&5
3725885a 5301 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
d7040cdb
SE
5302 cat conftest.out >&5
5303 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5304 lt_cv_nm_interface="MS dumpbin"
5305 fi
5306 rm -f conftest*
42ecbf5e 5307fi
81ecdfbb
RW
5308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5309$as_echo "$lt_cv_nm_interface" >&6; }
42ecbf5e 5310
81ecdfbb
RW
5311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5312$as_echo_n "checking whether ln -s works... " >&6; }
d7040cdb
SE
5313LN_S=$as_ln_s
5314if test "$LN_S" = "ln -s"; then
81ecdfbb
RW
5315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5316$as_echo "yes" >&6; }
d7040cdb 5317else
81ecdfbb
RW
5318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5319$as_echo "no, using $LN_S" >&6; }
d7040cdb 5320fi
d45dc31f
SE
5321
5322# find the maximum length of command line arguments
81ecdfbb
RW
5323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5324$as_echo_n "checking the maximum length of command line arguments... " >&6; }
d0ac1c44 5325if ${lt_cv_sys_max_cmd_len+:} false; then :
81ecdfbb 5326 $as_echo_n "(cached) " >&6
42ecbf5e 5327else
d45dc31f
SE
5328 i=0
5329 teststring="ABCD"
5330
5331 case $build_os in
5332 msdosdjgpp*)
5333 # On DJGPP, this test can blow up pretty badly due to problems in libc
5334 # (any single argument exceeding 2000 bytes causes a buffer overrun
5335 # during glob expansion). Even if it were fixed, the result of this
5336 # check would be larger than it should be.
5337 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5338 ;;
5339
d7040cdb
SE
5340 gnu*)
5341 # Under GNU Hurd, this test is not required because there is
5342 # no limit to the length of command line arguments.
5343 # Libtool will interpret -1 as no limit whatsoever
5344 lt_cv_sys_max_cmd_len=-1;
5345 ;;
5346
718a6fd8 5347 cygwin* | mingw* | cegcc*)
d45dc31f
SE
5348 # On Win9x/ME, this test blows up -- it succeeds, but takes
5349 # about 5 minutes as the teststring grows exponentially.
5350 # Worse, since 9x/ME are not pre-emptively multitasking,
5351 # you end up with a "frozen" computer, even though with patience
5352 # the test eventually succeeds (with a max line length of 256k).
5353 # Instead, let's just punt: use the minimum linelength reported by
5354 # all of the supported platforms: 8192 (on NT/2K/XP).
5355 lt_cv_sys_max_cmd_len=8192;
5356 ;;
5357
3725885a
RW
5358 mint*)
5359 # On MiNT this can take a long time and run out of memory.
5360 lt_cv_sys_max_cmd_len=8192;
5361 ;;
5362
d45dc31f
SE
5363 amigaos*)
5364 # On AmigaOS with pdksh, this test takes hours, literally.
5365 # So we just punt and use a minimum line length of 8192.
5366 lt_cv_sys_max_cmd_len=8192;
5367 ;;
5368
5369 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5370 # This has been around since 386BSD, at least. Likely further.
5371 if test -x /sbin/sysctl; then
5372 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5373 elif test -x /usr/sbin/sysctl; then
5374 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5375 else
d7040cdb 5376 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
d45dc31f
SE
5377 fi
5378 # And add a safety zone
5379 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5380 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5381 ;;
d7040cdb
SE
5382
5383 interix*)
5384 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5385 lt_cv_sys_max_cmd_len=196608
5386 ;;
5387
5388 osf*)
5389 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5390 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5391 # nice to cause kernel panics so lets avoid the loop below.
5392 # First set a reasonable default.
5393 lt_cv_sys_max_cmd_len=16384
5394 #
5395 if test -x /sbin/sysconfig; then
5396 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5397 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5398 esac
5399 fi
5400 ;;
5401 sco3.2v5*)
5402 lt_cv_sys_max_cmd_len=102400
5403 ;;
5404 sysv5* | sco5v6* | sysv4.2uw2*)
5405 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5406 if test -n "$kargmax"; then
5407 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5408 else
5409 lt_cv_sys_max_cmd_len=32768
5410 fi
5411 ;;
5412 *)
718a6fd8
SE
5413 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5414 if test -n "$lt_cv_sys_max_cmd_len"; then
5ba684e2
NC
5415 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5416 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5417 else
5418 # Make teststring a little bigger before we do anything with it.
5419 # a 1K string should be a reasonable start.
5420 for i in 1 2 3 4 5 6 7 8 ; do
5421 teststring=$teststring$teststring
5422 done
5423 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5424 # If test is not a shell built-in, we'll probably end up computing a
5425 # maximum length that is only half of the actual maximum length, but
5426 # we can't tell.
3725885a
RW
5427 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5428 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5ba684e2
NC
5429 test $i != 17 # 1/2 MB should be enough
5430 do
5431 i=`expr $i + 1`
5432 teststring=$teststring$teststring
5433 done
5434 # Only check the string length outside the loop.
5435 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5436 teststring=
5437 # Add a significant safety factor because C++ compilers can tack on
5438 # massive amounts of additional arguments before passing them to the
5439 # linker. It appears as though 1/2 is a usable value.
5440 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5441 fi
d7040cdb 5442 ;;
d45dc31f 5443 esac
42ecbf5e 5444
42ecbf5e
DJ
5445fi
5446
d7040cdb 5447if test -n $lt_cv_sys_max_cmd_len ; then
81ecdfbb
RW
5448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5449$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
252b5132 5450else
81ecdfbb
RW
5451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5452$as_echo "none" >&6; }
252b5132 5453fi
d7040cdb 5454max_cmd_len=$lt_cv_sys_max_cmd_len
e5a52504 5455
d45dc31f 5456
42ecbf5e 5457
d45dc31f 5458
d45dc31f 5459
d7040cdb 5460
d7040cdb
SE
5461: ${CP="cp -f"}
5462: ${MV="mv -f"}
5463: ${RM="rm -f"}
5464
81ecdfbb
RW
5465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5466$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
d7040cdb
SE
5467# Try some XSI features
5468xsi_shell=no
5469( _lt_dummy="a/b/c"
f2c621e4
AS
5470 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5471 = c,a/b,, \
718a6fd8
SE
5472 && eval 'test $(( 1 + 1 )) -eq 2 \
5473 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
d7040cdb 5474 && xsi_shell=yes
81ecdfbb
RW
5475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5476$as_echo "$xsi_shell" >&6; }
d7040cdb
SE
5477
5478
81ecdfbb
RW
5479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5480$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
d7040cdb
SE
5481lt_shell_append=no
5482( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5483 >/dev/null 2>&1 \
5484 && lt_shell_append=yes
81ecdfbb
RW
5485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5486$as_echo "$lt_shell_append" >&6; }
d7040cdb
SE
5487
5488
5489if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5490 lt_unset=unset
252b5132 5491else
d7040cdb 5492 lt_unset=false
252b5132
RH
5493fi
5494
d7040cdb
SE
5495
5496
5497
5498
5499# test EBCDIC or ASCII
5500case `echo X|tr X '\101'` in
5501 A) # ASCII based system
5502 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5503 lt_SP2NL='tr \040 \012'
5504 lt_NL2SP='tr \015\012 \040\040'
5505 ;;
5506 *) # EBCDIC based system
5507 lt_SP2NL='tr \100 \n'
5508 lt_NL2SP='tr \r\n \100\100'
5509 ;;
5510esac
5511
5512
5513
5514
5515
5516
5517
5518
5519
81ecdfbb
RW
5520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5521$as_echo_n "checking for $LD option to reload object files... " >&6; }
d0ac1c44 5522if ${lt_cv_ld_reload_flag+:} false; then :
81ecdfbb 5523 $as_echo_n "(cached) " >&6
252b5132 5524else
d7040cdb
SE
5525 lt_cv_ld_reload_flag='-r'
5526fi
81ecdfbb
RW
5527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5528$as_echo "$lt_cv_ld_reload_flag" >&6; }
d7040cdb
SE
5529reload_flag=$lt_cv_ld_reload_flag
5530case $reload_flag in
5531"" | " "*) ;;
5532*) reload_flag=" $reload_flag" ;;
5533esac
5534reload_cmds='$LD$reload_flag -o $output$reload_objs'
5535case $host_os in
5536 darwin*)
5537 if test "$GCC" = yes; then
5538 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5539 else
5540 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5541 fi
5542 ;;
5543esac
5544
5545
5546
5547
5548
5549
5550
5551
5552
718a6fd8
SE
5553if test -n "$ac_tool_prefix"; then
5554 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5555set dummy ${ac_tool_prefix}objdump; ac_word=$2
81ecdfbb
RW
5556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5557$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5558if ${ac_cv_prog_OBJDUMP+:} false; then :
81ecdfbb 5559 $as_echo_n "(cached) " >&6
718a6fd8
SE
5560else
5561 if test -n "$OBJDUMP"; then
5562 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5563else
5564as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5565for as_dir in $PATH
5566do
5567 IFS=$as_save_IFS
5568 test -z "$as_dir" && as_dir=.
81ecdfbb 5569 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5570 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
718a6fd8 5571 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
81ecdfbb 5572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
5573 break 2
5574 fi
5575done
81ecdfbb
RW
5576 done
5577IFS=$as_save_IFS
718a6fd8
SE
5578
5579fi
5580fi
5581OBJDUMP=$ac_cv_prog_OBJDUMP
5582if test -n "$OBJDUMP"; then
81ecdfbb
RW
5583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5584$as_echo "$OBJDUMP" >&6; }
718a6fd8 5585else
81ecdfbb
RW
5586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5587$as_echo "no" >&6; }
718a6fd8
SE
5588fi
5589
81ecdfbb 5590
718a6fd8
SE
5591fi
5592if test -z "$ac_cv_prog_OBJDUMP"; then
5593 ac_ct_OBJDUMP=$OBJDUMP
5594 # Extract the first word of "objdump", so it can be a program name with args.
5595set dummy objdump; ac_word=$2
81ecdfbb
RW
5596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5597$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5598if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
81ecdfbb 5599 $as_echo_n "(cached) " >&6
718a6fd8
SE
5600else
5601 if test -n "$ac_ct_OBJDUMP"; then
5602 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5603else
5604as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5605for as_dir in $PATH
5606do
5607 IFS=$as_save_IFS
5608 test -z "$as_dir" && as_dir=.
81ecdfbb 5609 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5610 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
718a6fd8 5611 ac_cv_prog_ac_ct_OBJDUMP="objdump"
81ecdfbb 5612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
5613 break 2
5614 fi
5615done
81ecdfbb
RW
5616 done
5617IFS=$as_save_IFS
718a6fd8 5618
718a6fd8
SE
5619fi
5620fi
5621ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5622if test -n "$ac_ct_OBJDUMP"; then
81ecdfbb
RW
5623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5624$as_echo "$ac_ct_OBJDUMP" >&6; }
718a6fd8 5625else
81ecdfbb
RW
5626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5627$as_echo "no" >&6; }
718a6fd8
SE
5628fi
5629
81ecdfbb
RW
5630 if test "x$ac_ct_OBJDUMP" = x; then
5631 OBJDUMP="false"
5632 else
5633 case $cross_compiling:$ac_tool_warned in
5634yes:)
5635{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5636$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5637ac_tool_warned=yes ;;
5638esac
5639 OBJDUMP=$ac_ct_OBJDUMP
5640 fi
718a6fd8
SE
5641else
5642 OBJDUMP="$ac_cv_prog_OBJDUMP"
5643fi
5644
5645test -z "$OBJDUMP" && OBJDUMP=objdump
5646
5647
5648
5649
5650
5651
5652
5653
d7040cdb 5654
81ecdfbb
RW
5655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5656$as_echo_n "checking how to recognize dependent libraries... " >&6; }
d0ac1c44 5657if ${lt_cv_deplibs_check_method+:} false; then :
81ecdfbb 5658 $as_echo_n "(cached) " >&6
d7040cdb
SE
5659else
5660 lt_cv_file_magic_cmd='$MAGIC_CMD'
5661lt_cv_file_magic_test_file=
5662lt_cv_deplibs_check_method='unknown'
5663# Need to set the preceding variable on all platforms that support
5664# interlibrary dependencies.
5665# 'none' -- dependencies not supported.
5666# `unknown' -- same as none, but documents that we really don't know.
5667# 'pass_all' -- all dependencies passed with no checks.
5668# 'test_compile' -- check by making test program.
5669# 'file_magic [[regex]]' -- check by looking for files in library path
5670# which responds to the $file_magic_cmd with a given extended regex.
5671# If you have `file' or equivalent on your system and you're not sure
5672# whether `pass_all' will *always* work, you probably want this one.
5673
5674case $host_os in
50e7d84b 5675aix[4-9]*)
d7040cdb
SE
5676 lt_cv_deplibs_check_method=pass_all
5677 ;;
5678
5679beos*)
5680 lt_cv_deplibs_check_method=pass_all
5681 ;;
5682
5683bsdi[45]*)
5684 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5685 lt_cv_file_magic_cmd='/usr/bin/file -L'
5686 lt_cv_file_magic_test_file=/shlib/libc.so
5687 ;;
5688
5689cygwin*)
5690 # func_win32_libid is a shell function defined in ltmain.sh
5691 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5692 lt_cv_file_magic_cmd='func_win32_libid'
5693 ;;
5694
5695mingw* | pw32*)
5696 # Base MSYS/MinGW do not provide the 'file' command needed by
5697 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5698 # unless we find 'file', for example because we are cross-compiling.
3725885a
RW
5699 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5700 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
d7040cdb
SE
5701 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5702 lt_cv_file_magic_cmd='func_win32_libid'
5703 else
f2c621e4 5704 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
d7040cdb
SE
5705 lt_cv_file_magic_cmd='$OBJDUMP -f'
5706 fi
5707 ;;
5708
3725885a 5709cegcc*)
718a6fd8
SE
5710 # use the weaker test based on 'objdump'. See mingw*.
5711 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5712 lt_cv_file_magic_cmd='$OBJDUMP -f'
5713 ;;
5714
d7040cdb
SE
5715darwin* | rhapsody*)
5716 lt_cv_deplibs_check_method=pass_all
d45dc31f 5717 ;;
d7040cdb
SE
5718
5719freebsd* | dragonfly*)
5720 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5721 case $host_cpu in
5722 i*86 )
5723 # Not sure whether the presence of OpenBSD here was a mistake.
5724 # Let's accept both of them until this is cleared up.
5725 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5726 lt_cv_file_magic_cmd=/usr/bin/file
5727 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5728 ;;
5729 esac
5730 else
5731 lt_cv_deplibs_check_method=pass_all
5732 fi
5733 ;;
5734
5735gnu*)
5736 lt_cv_deplibs_check_method=pass_all
d45dc31f 5737 ;;
d7040cdb 5738
3725885a
RW
5739haiku*)
5740 lt_cv_deplibs_check_method=pass_all
5741 ;;
5742
d7040cdb
SE
5743hpux10.20* | hpux11*)
5744 lt_cv_file_magic_cmd=/usr/bin/file
5745 case $host_cpu in
5746 ia64*)
5747 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5748 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5749 ;;
5750 hppa*64*)
3725885a 5751 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
5752 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5753 ;;
d45dc31f 5754 *)
3725885a 5755 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
d7040cdb
SE
5756 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5757 ;;
5758 esac
5759 ;;
42ecbf5e 5760
d7040cdb
SE
5761interix[3-9]*)
5762 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5763 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5764 ;;
42ecbf5e 5765
d7040cdb
SE
5766irix5* | irix6* | nonstopux*)
5767 case $LD in
5768 *-32|*"-32 ") libmagic=32-bit;;
5769 *-n32|*"-n32 ") libmagic=N32;;
5770 *-64|*"-64 ") libmagic=64-bit;;
5771 *) libmagic=never-match;;
5772 esac
5773 lt_cv_deplibs_check_method=pass_all
d45dc31f 5774 ;;
42ecbf5e 5775
d7040cdb 5776# This must be Linux ELF.
6a6859cb 5777linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
d7040cdb
SE
5778 lt_cv_deplibs_check_method=pass_all
5779 ;;
252b5132 5780
d7040cdb
SE
5781netbsd*)
5782 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5783 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
d45dc31f 5784 else
d7040cdb 5785 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
d45dc31f 5786 fi
d7040cdb
SE
5787 ;;
5788
5789newos6*)
5790 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5791 lt_cv_file_magic_cmd=/usr/bin/file
5792 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5793 ;;
5794
5795*nto* | *qnx*)
5796 lt_cv_deplibs_check_method=pass_all
5797 ;;
42ecbf5e 5798
d7040cdb
SE
5799openbsd*)
5800 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5801 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5802 else
5803 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
d45dc31f
SE
5804 fi
5805 ;;
d7040cdb
SE
5806
5807osf3* | osf4* | osf5*)
5808 lt_cv_deplibs_check_method=pass_all
5809 ;;
5810
5811rdos*)
5812 lt_cv_deplibs_check_method=pass_all
5813 ;;
5814
5815solaris*)
5816 lt_cv_deplibs_check_method=pass_all
5817 ;;
5818
5819sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5820 lt_cv_deplibs_check_method=pass_all
5821 ;;
5822
5823sysv4 | sysv4.3*)
5824 case $host_vendor in
5825 motorola)
5826 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]'
5827 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5828 ;;
5829 ncr)
5830 lt_cv_deplibs_check_method=pass_all
5831 ;;
5832 sequent)
5833 lt_cv_file_magic_cmd='/bin/file'
5834 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5835 ;;
5836 sni)
5837 lt_cv_file_magic_cmd='/bin/file'
5838 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5839 lt_cv_file_magic_test_file=/lib/libc.so
5840 ;;
5841 siemens)
5842 lt_cv_deplibs_check_method=pass_all
5843 ;;
5844 pc)
5845 lt_cv_deplibs_check_method=pass_all
5846 ;;
5847 esac
5848 ;;
5849
5850tpf*)
5851 lt_cv_deplibs_check_method=pass_all
5852 ;;
6a6859cb
AM
5853vxworks*)
5854 # Assume VxWorks cross toolchains are built on Linux, possibly
5855 # as canadian for Windows hosts.
5856 lt_cv_deplibs_check_method=pass_all
5857 ;;
d45dc31f 5858esac
42ecbf5e 5859
d7040cdb 5860fi
81ecdfbb
RW
5861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5862$as_echo "$lt_cv_deplibs_check_method" >&6; }
d7040cdb
SE
5863file_magic_cmd=$lt_cv_file_magic_cmd
5864deplibs_check_method=$lt_cv_deplibs_check_method
5865test -z "$deplibs_check_method" && deplibs_check_method=unknown
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875
5876
5877
a4966cd9
L
5878plugin_option=
5879plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
5880for plugin in $plugin_names; do
5881 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
5882 if test x$plugin_so = x$plugin; then
5883 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
5884 fi
5885 if test x$plugin_so != x$plugin; then
5886 plugin_option="--plugin $plugin_so"
5887 break
5888 fi
5889done
5890
d45dc31f 5891if test -n "$ac_tool_prefix"; then
f2c621e4
AS
5892 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5893set dummy ${ac_tool_prefix}ar; ac_word=$2
81ecdfbb
RW
5894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5895$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5896if ${ac_cv_prog_AR+:} false; then :
81ecdfbb 5897 $as_echo_n "(cached) " >&6
42ecbf5e 5898else
d7040cdb
SE
5899 if test -n "$AR"; then
5900 ac_cv_prog_AR="$AR" # Let the user override the test.
d45dc31f
SE
5901else
5902as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5903for as_dir in $PATH
5904do
5905 IFS=$as_save_IFS
5906 test -z "$as_dir" && as_dir=.
81ecdfbb 5907 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5908 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
f2c621e4 5909 ac_cv_prog_AR="${ac_tool_prefix}ar"
81ecdfbb 5910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d45dc31f
SE
5911 break 2
5912 fi
5913done
81ecdfbb
RW
5914 done
5915IFS=$as_save_IFS
42ecbf5e 5916
42ecbf5e 5917fi
d45dc31f 5918fi
d7040cdb
SE
5919AR=$ac_cv_prog_AR
5920if test -n "$AR"; then
81ecdfbb
RW
5921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5922$as_echo "$AR" >&6; }
d45dc31f 5923else
81ecdfbb
RW
5924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5925$as_echo "no" >&6; }
d45dc31f 5926fi
42ecbf5e 5927
81ecdfbb 5928
42ecbf5e 5929fi
f2c621e4 5930if test -z "$ac_cv_prog_AR"; then
d7040cdb 5931 ac_ct_AR=$AR
f2c621e4
AS
5932 # Extract the first word of "ar", so it can be a program name with args.
5933set dummy 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_ac_ct_AR+:} false; then :
81ecdfbb 5937 $as_echo_n "(cached) " >&6
42ecbf5e 5938else
d7040cdb
SE
5939 if test -n "$ac_ct_AR"; then
5940 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
42ecbf5e 5941else
d45dc31f
SE
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_ac_ct_AR="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
42ecbf5e 5958fi
d7040cdb
SE
5959ac_ct_AR=$ac_cv_prog_ac_ct_AR
5960if test -n "$ac_ct_AR"; then
81ecdfbb
RW
5961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5962$as_echo "$ac_ct_AR" >&6; }
252b5132 5963else
81ecdfbb
RW
5964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5965$as_echo "no" >&6; }
252b5132 5966fi
252b5132 5967
81ecdfbb
RW
5968 if test "x$ac_ct_AR" = x; then
5969 AR="false"
5970 else
5971 case $cross_compiling:$ac_tool_warned in
5972yes:)
5973{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5974$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5975ac_tool_warned=yes ;;
5976esac
5977 AR=$ac_ct_AR
5978 fi
df7b86aa 5979else
f2c621e4
AS
5980 AR="$ac_cv_prog_AR"
5981fi
df7b86aa 5982
f2c621e4 5983test -z "$AR" && AR=ar
a4966cd9
L
5984if test -n "$plugin_option"; then
5985 if $AR --help 2>&1 | grep -q "\--plugin"; then
83b33c6c
L
5986 touch conftest.c
5987 $AR $plugin_option rc conftest.a conftest.c
5988 if test "$?" != 0; then
5989 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
5990$as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
5991 else
5992 AR="$AR $plugin_option"
5993 fi
5994 rm -f conftest.*
a4966cd9
L
5995 fi
5996fi
f2c621e4 5997test -z "$AR_FLAGS" && AR_FLAGS=cru
df7b86aa 5998
df7b86aa 5999
df7b86aa 6000
df7b86aa 6001
df7b86aa 6002
d7040cdb
SE
6003
6004
6005
6006
6007
6008
d45dc31f
SE
6009if test -n "$ac_tool_prefix"; then
6010 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6011set dummy ${ac_tool_prefix}strip; ac_word=$2
81ecdfbb
RW
6012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6013$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6014if ${ac_cv_prog_STRIP+:} false; then :
81ecdfbb 6015 $as_echo_n "(cached) " >&6
d45dc31f
SE
6016else
6017 if test -n "$STRIP"; then
6018 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6019else
6020as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6021for as_dir in $PATH
42ecbf5e 6022do
d45dc31f
SE
6023 IFS=$as_save_IFS
6024 test -z "$as_dir" && as_dir=.
81ecdfbb 6025 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6026 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d45dc31f 6027 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
81ecdfbb 6028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d45dc31f
SE
6029 break 2
6030 fi
6031done
81ecdfbb
RW
6032 done
6033IFS=$as_save_IFS
d45dc31f
SE
6034
6035fi
6036fi
6037STRIP=$ac_cv_prog_STRIP
6038if test -n "$STRIP"; then
81ecdfbb
RW
6039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6040$as_echo "$STRIP" >&6; }
252b5132 6041else
81ecdfbb
RW
6042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6043$as_echo "no" >&6; }
d45dc31f 6044fi
42ecbf5e 6045
81ecdfbb 6046
252b5132 6047fi
d45dc31f
SE
6048if test -z "$ac_cv_prog_STRIP"; then
6049 ac_ct_STRIP=$STRIP
6050 # Extract the first word of "strip", so it can be a program name with args.
6051set dummy 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_ac_ct_STRIP+:} false; then :
81ecdfbb 6055 $as_echo_n "(cached) " >&6
d45dc31f
SE
6056else
6057 if test -n "$ac_ct_STRIP"; then
6058 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6059else
6060as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6061for as_dir in $PATH
6062do
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_ac_ct_STRIP="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
42ecbf5e 6074
d45dc31f
SE
6075fi
6076fi
6077ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6078if test -n "$ac_ct_STRIP"; then
81ecdfbb
RW
6079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6080$as_echo "$ac_ct_STRIP" >&6; }
d45dc31f 6081else
81ecdfbb
RW
6082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6083$as_echo "no" >&6; }
252b5132 6084fi
e5a52504 6085
81ecdfbb
RW
6086 if test "x$ac_ct_STRIP" = x; then
6087 STRIP=":"
6088 else
6089 case $cross_compiling:$ac_tool_warned in
6090yes:)
6091{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6092$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6093ac_tool_warned=yes ;;
6094esac
6095 STRIP=$ac_ct_STRIP
6096 fi
d45dc31f
SE
6097else
6098 STRIP="$ac_cv_prog_STRIP"
6099fi
e5a52504 6100
d7040cdb 6101test -z "$STRIP" && STRIP=:
d45dc31f 6102
d45dc31f
SE
6103
6104
d45dc31f 6105
d45dc31f
SE
6106
6107
d7040cdb
SE
6108if test -n "$ac_tool_prefix"; then
6109 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6110set dummy ${ac_tool_prefix}ranlib; ac_word=$2
81ecdfbb
RW
6111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6112$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6113if ${ac_cv_prog_RANLIB+:} false; then :
81ecdfbb 6114 $as_echo_n "(cached) " >&6
d45dc31f 6115else
d7040cdb
SE
6116 if test -n "$RANLIB"; then
6117 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6118else
6119as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6120for as_dir in $PATH
6121do
6122 IFS=$as_save_IFS
6123 test -z "$as_dir" && as_dir=.
81ecdfbb 6124 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6125 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d7040cdb 6126 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
81ecdfbb 6127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb 6128 break 2
d45dc31f 6129 fi
d7040cdb 6130done
81ecdfbb
RW
6131 done
6132IFS=$as_save_IFS
d45dc31f 6133
d7040cdb
SE
6134fi
6135fi
6136RANLIB=$ac_cv_prog_RANLIB
6137if test -n "$RANLIB"; then
81ecdfbb
RW
6138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6139$as_echo "$RANLIB" >&6; }
d7040cdb 6140else
81ecdfbb
RW
6141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6142$as_echo "no" >&6; }
d7040cdb 6143fi
d45dc31f 6144
81ecdfbb 6145
d7040cdb
SE
6146fi
6147if test -z "$ac_cv_prog_RANLIB"; then
6148 ac_ct_RANLIB=$RANLIB
6149 # Extract the first word of "ranlib", so it can be a program name with args.
6150set dummy 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_ac_ct_RANLIB+:} false; then :
81ecdfbb 6154 $as_echo_n "(cached) " >&6
d7040cdb
SE
6155else
6156 if test -n "$ac_ct_RANLIB"; then
6157 ac_cv_prog_ac_ct_RANLIB="$ac_ct_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_ac_ct_RANLIB="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
6176ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6177if test -n "$ac_ct_RANLIB"; then
81ecdfbb
RW
6178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6179$as_echo "$ac_ct_RANLIB" >&6; }
d15b04bd 6180else
81ecdfbb
RW
6181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6182$as_echo "no" >&6; }
d7040cdb 6183fi
252b5132 6184
81ecdfbb
RW
6185 if test "x$ac_ct_RANLIB" = x; then
6186 RANLIB=":"
6187 else
6188 case $cross_compiling:$ac_tool_warned in
6189yes:)
6190{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6191$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6192ac_tool_warned=yes ;;
6193esac
6194 RANLIB=$ac_ct_RANLIB
6195 fi
d7040cdb
SE
6196else
6197 RANLIB="$ac_cv_prog_RANLIB"
6198fi
d45dc31f 6199
d7040cdb 6200test -z "$RANLIB" && RANLIB=:
a4966cd9
L
6201if test -n "$plugin_option" && test "$RANLIB" != ":"; then
6202 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
6203 RANLIB="$RANLIB $plugin_option"
6204 fi
6205fi
d45dc31f 6206
d45dc31f 6207
d45dc31f 6208
42ecbf5e 6209
e5a52504 6210
d7040cdb
SE
6211
6212# Determine commands to create old-style static archives.
718a6fd8 6213old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
d7040cdb
SE
6214old_postinstall_cmds='chmod 644 $oldlib'
6215old_postuninstall_cmds=
6216
6217if test -n "$RANLIB"; then
6218 case $host_os in
6219 openbsd*)
6220 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6221 ;;
6222 *)
6223 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6224 ;;
6225 esac
6226 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
d45dc31f 6227fi
d45dc31f 6228
3725885a
RW
6229case $host_os in
6230 darwin*)
6231 lock_old_archive_extraction=yes ;;
6232 *)
6233 lock_old_archive_extraction=no ;;
6234esac
6235
6236
6237
6238
6239
6240
d45dc31f 6241
d45dc31f
SE
6242
6243
d15b04bd 6244
3e321448 6245
d45dc31f 6246
d45dc31f 6247
d45dc31f
SE
6248
6249
d45dc31f 6250
d45dc31f 6251
d45dc31f
SE
6252
6253
6254
6255
6256
6257
6258
d45dc31f 6259
d45dc31f 6260
d45dc31f 6261
d45dc31f 6262
d45dc31f 6263
d45dc31f 6264
d45dc31f 6265
d45dc31f 6266
3e321448
L
6267
6268
d45dc31f
SE
6269
6270
d45dc31f
SE
6271
6272
d45dc31f 6273
d7040cdb
SE
6274# If no C compiler was specified, use CC.
6275LTCC=${LTCC-"$CC"}
42ecbf5e 6276
d7040cdb
SE
6277# If no C compiler flags were specified, use CFLAGS.
6278LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
e5a52504 6279
d7040cdb
SE
6280# Allow CC to be a program name with arguments.
6281compiler=$CC
d15b04bd 6282
d7040cdb
SE
6283
6284# Check for command to grab the raw symbol name followed by C symbol from nm.
81ecdfbb
RW
6285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6286$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
d0ac1c44 6287if ${lt_cv_sys_global_symbol_pipe+:} false; then :
81ecdfbb 6288 $as_echo_n "(cached) " >&6
d15b04bd 6289else
d7040cdb
SE
6290
6291# These are sane defaults that work on at least a few old systems.
6292# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6293
6294# Character class describing NM global symbol codes.
6295symcode='[BCDEGRST]'
6296
6297# Regexp to match symbols that can be accessed directly from C.
6298sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6299
6300# Define system-specific variables.
6301case $host_os in
6302aix*)
6303 symcode='[BCDT]'
6304 ;;
718a6fd8 6305cygwin* | mingw* | pw32* | cegcc*)
d7040cdb
SE
6306 symcode='[ABCDGISTW]'
6307 ;;
6308hpux*)
6309 if test "$host_cpu" = ia64; then
6310 symcode='[ABCDEGRST]'
42ecbf5e 6311 fi
d7040cdb
SE
6312 ;;
6313irix* | nonstopux*)
6314 symcode='[BCDEGRST]'
6315 ;;
6316osf*)
6317 symcode='[BCDEGQRST]'
6318 ;;
6319solaris*)
b9004024 6320 symcode='[BCDRT]'
d7040cdb
SE
6321 ;;
6322sco3.2v5*)
6323 symcode='[DT]'
6324 ;;
6325sysv4.2uw2*)
6326 symcode='[DT]'
6327 ;;
6328sysv5* | sco5v6* | unixware* | OpenUNIX*)
6329 symcode='[ABDT]'
6330 ;;
6331sysv4)
6332 symcode='[DFNSTU]'
6333 ;;
6334esac
d15b04bd 6335
d7040cdb
SE
6336# If we're using GNU nm, then use its standard symbol codes.
6337case `$NM -V 2>&1` in
6338*GNU* | *'with BFD'*)
6339 symcode='[ABCDGIRSTW]' ;;
6340esac
e5a52504 6341
d7040cdb
SE
6342# Transform an extracted symbol line into a proper C declaration.
6343# Some systems (esp. on ia64) link data and code symbols differently,
7357c5b6
AM
6344# so use this general approach.
6345lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
d7040cdb 6346
7357c5b6 6347# Transform an extracted symbol line into symbol name and symbol address
f2c621e4
AS
6348lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6349lt_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 6350
7357c5b6
AM
6351# Handle CRLF in mingw tool chain
6352opt_cr=
6353case $build_os in
6354mingw*)
6355 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6356 ;;
6357esac
d7040cdb 6358
7357c5b6
AM
6359# Try without a prefix underscore, then with it.
6360for ac_symprfx in "" "_"; do
d7040cdb 6361
7357c5b6
AM
6362 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6363 symxfrm="\\1 $ac_symprfx\\2 \\2"
d7040cdb 6364
7357c5b6
AM
6365 # Write the raw and C identifiers.
6366 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6367 # Fake it for dumpbin and say T for any non-static function
6368 # and D for any global variable.
6369 # Also find C++ and __fastcall symbols from MSVC++,
6370 # which start with @ or ?.
6371 lt_cv_sys_global_symbol_pipe="$AWK '"\
6372" {last_section=section; section=\$ 3};"\
6373" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6374" \$ 0!~/External *\|/{next};"\
6375" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6376" {if(hide[section]) next};"\
6377" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6378" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6379" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6380" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6381" ' prfx=^$ac_symprfx"
6382 else
6383 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6384 fi
6385
6386 # Check to see that the pipe works correctly.
6387 pipe_works=no
6388
6389 rm -f conftest*
6390 cat > conftest.$ac_ext <<_LT_EOF
6391#ifdef __cplusplus
6392extern "C" {
6393#endif
6394char nm_test_var;
6395void nm_test_func(void);
6396void nm_test_func(void){}
6397#ifdef __cplusplus
d7040cdb 6398}
7357c5b6
AM
6399#endif
6400int main(){nm_test_var='a';nm_test_func();return(0);}
6401_LT_EOF
6402
81ecdfbb 6403 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6 6404 (eval $ac_compile) 2>&5
42ecbf5e 6405 ac_status=$?
81ecdfbb
RW
6406 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6407 test $ac_status = 0; }; then
7357c5b6
AM
6408 # Now try to grab the symbols.
6409 nlist=conftest.nm
3725885a
RW
6410 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6411 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
42ecbf5e 6412 ac_status=$?
81ecdfbb
RW
6413 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6414 test $ac_status = 0; } && test -s "$nlist"; then
7357c5b6
AM
6415 # Try sorting and uniquifying the output.
6416 if sort "$nlist" | uniq > "$nlist"T; then
6417 mv -f "$nlist"T "$nlist"
6418 else
6419 rm -f "$nlist"T
6420 fi
d7040cdb 6421
7357c5b6
AM
6422 # Make sure that we snagged all the symbols we need.
6423 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6424 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6425 cat <<_LT_EOF > conftest.$ac_ext
6426#ifdef __cplusplus
6427extern "C" {
6428#endif
e5a52504 6429
7357c5b6
AM
6430_LT_EOF
6431 # Now generate the symbol file.
6432 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7148cc28 6433
7357c5b6 6434 cat <<_LT_EOF >> conftest.$ac_ext
d7040cdb 6435
7357c5b6 6436/* The mapping between symbol names and symbols. */
f2c621e4 6437const struct {
7357c5b6
AM
6438 const char *name;
6439 void *address;
6440}
6441lt__PROGRAM__LTX_preloaded_symbols[] =
6442{
6443 { "@PROGRAM@", (void *) 0 },
6444_LT_EOF
6445 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6446 cat <<\_LT_EOF >> conftest.$ac_ext
6447 {0, (void *) 0}
6448};
d7040cdb 6449
7357c5b6
AM
6450/* This works around a problem in FreeBSD linker */
6451#ifdef FREEBSD_WORKAROUND
6452static const void *lt_preloaded_setup() {
6453 return lt__PROGRAM__LTX_preloaded_symbols;
6454}
d7040cdb
SE
6455#endif
6456
7357c5b6 6457#ifdef __cplusplus
d7040cdb 6458}
7357c5b6
AM
6459#endif
6460_LT_EOF
6461 # Now try linking the two files.
6462 mv conftest.$ac_objext conftstm.$ac_objext
f2c621e4
AS
6463 lt_save_LIBS="$LIBS"
6464 lt_save_CFLAGS="$CFLAGS"
7357c5b6
AM
6465 LIBS="conftstm.$ac_objext"
6466 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
81ecdfbb 6467 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
d7040cdb
SE
6468 (eval $ac_link) 2>&5
6469 ac_status=$?
81ecdfbb
RW
6470 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6471 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7357c5b6
AM
6472 pipe_works=yes
6473 fi
f2c621e4
AS
6474 LIBS="$lt_save_LIBS"
6475 CFLAGS="$lt_save_CFLAGS"
7357c5b6
AM
6476 else
6477 echo "cannot find nm_test_func in $nlist" >&5
6478 fi
6479 else
6480 echo "cannot find nm_test_var in $nlist" >&5
6481 fi
6482 else
6483 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6484 fi
6485 else
6486 echo "$progname: failed program was:" >&5
6487 cat conftest.$ac_ext >&5
6488 fi
718a6fd8 6489 rm -rf conftest* conftst*
7357c5b6
AM
6490
6491 # Do not use the global_symbol_pipe unless it works.
6492 if test "$pipe_works" = yes; then
6493 break
6494 else
6495 lt_cv_sys_global_symbol_pipe=
6496 fi
6497done
d7040cdb 6498
d7040cdb 6499fi
7357c5b6
AM
6500
6501if test -z "$lt_cv_sys_global_symbol_pipe"; then
6502 lt_cv_sys_global_symbol_to_cdecl=
d7040cdb 6503fi
7357c5b6 6504if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
81ecdfbb
RW
6505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6506$as_echo "failed" >&6; }
7357c5b6 6507else
81ecdfbb
RW
6508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6509$as_echo "ok" >&6; }
d7040cdb 6510fi
20e95c23 6511
20e95c23 6512
20e95c23 6513
20e95c23 6514
20e95c23 6515
20e95c23 6516
20e95c23
DJ
6517
6518
7357c5b6
AM
6519
6520
6521
718a6fd8
SE
6522
6523
6524
6525
6526
7357c5b6 6527
df7b86aa
NC
6528
6529
6530
6531
7357c5b6 6532
81ecdfbb
RW
6533# Check whether --enable-libtool-lock was given.
6534if test "${enable_libtool_lock+set}" = set; then :
6535 enableval=$enable_libtool_lock;
6536fi
7357c5b6 6537
7357c5b6
AM
6538test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6539
6540# Some flags need to be propagated to the compiler or linker for good
6541# libtool support.
6542case $host in
6543ia64-*-hpux*)
6544 # Find out which ABI we are using.
6545 echo 'int i;' > conftest.$ac_ext
81ecdfbb 6546 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6
AM
6547 (eval $ac_compile) 2>&5
6548 ac_status=$?
81ecdfbb
RW
6549 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6550 test $ac_status = 0; }; then
7357c5b6
AM
6551 case `/usr/bin/file conftest.$ac_objext` in
6552 *ELF-32*)
6553 HPUX_IA64_MODE="32"
6554 ;;
6555 *ELF-64*)
6556 HPUX_IA64_MODE="64"
6557 ;;
6558 esac
6559 fi
6560 rm -rf conftest*
6561 ;;
6562*-*-irix6*)
6563 # Find out which ABI we are using.
3725885a 6564 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
81ecdfbb 6565 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6
AM
6566 (eval $ac_compile) 2>&5
6567 ac_status=$?
81ecdfbb
RW
6568 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6569 test $ac_status = 0; }; then
7357c5b6
AM
6570 if test "$lt_cv_prog_gnu_ld" = yes; then
6571 case `/usr/bin/file conftest.$ac_objext` in
6572 *32-bit*)
6573 LD="${LD-ld} -melf32bsmip"
6574 ;;
6575 *N32*)
6576 LD="${LD-ld} -melf32bmipn32"
6577 ;;
6578 *64-bit*)
6579 LD="${LD-ld} -melf64bmip"
6580 ;;
6581 esac
6582 else
6583 case `/usr/bin/file conftest.$ac_objext` in
6584 *32-bit*)
6585 LD="${LD-ld} -32"
6586 ;;
6587 *N32*)
6588 LD="${LD-ld} -n32"
6589 ;;
6590 *64-bit*)
6591 LD="${LD-ld} -64"
6592 ;;
6593 esac
6594 fi
6595 fi
6596 rm -rf conftest*
6597 ;;
6598
cc9afea3 6599x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7357c5b6
AM
6600s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6601 # Find out which ABI we are using.
6602 echo 'int i;' > conftest.$ac_ext
81ecdfbb 6603 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6
AM
6604 (eval $ac_compile) 2>&5
6605 ac_status=$?
81ecdfbb
RW
6606 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6607 test $ac_status = 0; }; then
7357c5b6
AM
6608 case `/usr/bin/file conftest.o` in
6609 *32-bit*)
6610 case $host in
6611 x86_64-*kfreebsd*-gnu)
6612 LD="${LD-ld} -m elf_i386_fbsd"
6613 ;;
6614 x86_64-*linux*)
6d2920c8
L
6615 case `/usr/bin/file conftest.o` in
6616 *x86-64*)
6617 LD="${LD-ld} -m elf32_x86_64"
6618 ;;
6619 *)
6620 LD="${LD-ld} -m elf_i386"
6621 ;;
6622 esac
7357c5b6 6623 ;;
cc9afea3
AM
6624 powerpc64le-*linux*)
6625 LD="${LD-ld} -m elf32lppclinux"
6626 ;;
6627 powerpc64-*linux*)
7357c5b6
AM
6628 LD="${LD-ld} -m elf32ppclinux"
6629 ;;
6630 s390x-*linux*)
6631 LD="${LD-ld} -m elf_s390"
6632 ;;
6633 sparc64-*linux*)
6634 LD="${LD-ld} -m elf32_sparc"
6635 ;;
6636 esac
6637 ;;
6638 *64-bit*)
6639 case $host in
6640 x86_64-*kfreebsd*-gnu)
6641 LD="${LD-ld} -m elf_x86_64_fbsd"
6642 ;;
6643 x86_64-*linux*)
6644 LD="${LD-ld} -m elf_x86_64"
6645 ;;
cc9afea3
AM
6646 powerpcle-*linux*)
6647 LD="${LD-ld} -m elf64lppc"
6648 ;;
6649 powerpc-*linux*)
7357c5b6
AM
6650 LD="${LD-ld} -m elf64ppc"
6651 ;;
6652 s390*-*linux*|s390*-*tpf*)
6653 LD="${LD-ld} -m elf64_s390"
6654 ;;
6655 sparc*-*linux*)
6656 LD="${LD-ld} -m elf64_sparc"
6657 ;;
6658 esac
6659 ;;
6660 esac
6661 fi
6662 rm -rf conftest*
6663 ;;
6664
6665*-*-sco3.2v5*)
6666 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6667 SAVE_CFLAGS="$CFLAGS"
6668 CFLAGS="$CFLAGS -belf"
81ecdfbb
RW
6669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6670$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
d0ac1c44 6671if ${lt_cv_cc_needs_belf+:} false; then :
81ecdfbb 6672 $as_echo_n "(cached) " >&6
d7040cdb 6673else
7357c5b6
AM
6674 ac_ext=c
6675ac_cpp='$CPP $CPPFLAGS'
6676ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6677ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6678ac_compiler_gnu=$ac_cv_c_compiler_gnu
6679
81ecdfbb 6680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb 6681/* end confdefs.h. */
20e95c23 6682
7357c5b6
AM
6683int
6684main ()
6685{
6686
6687 ;
6688 return 0;
6689}
d7040cdb 6690_ACEOF
81ecdfbb 6691if ac_fn_c_try_link "$LINENO"; then :
7357c5b6 6692 lt_cv_cc_needs_belf=yes
d15b04bd 6693else
81ecdfbb 6694 lt_cv_cc_needs_belf=no
d7040cdb 6695fi
81ecdfbb
RW
6696rm -f core conftest.err conftest.$ac_objext \
6697 conftest$ac_exeext conftest.$ac_ext
7357c5b6
AM
6698 ac_ext=c
6699ac_cpp='$CPP $CPPFLAGS'
6700ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6701ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6702ac_compiler_gnu=$ac_cv_c_compiler_gnu
20e95c23 6703
718a6fd8 6704fi
81ecdfbb
RW
6705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6706$as_echo "$lt_cv_cc_needs_belf" >&6; }
718a6fd8
SE
6707 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6708 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6709 CFLAGS="$SAVE_CFLAGS"
6710 fi
6711 ;;
6712sparc*-*solaris*)
6713 # Find out which ABI we are using.
6714 echo 'int i;' > conftest.$ac_ext
81ecdfbb 6715 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
718a6fd8
SE
6716 (eval $ac_compile) 2>&5
6717 ac_status=$?
81ecdfbb
RW
6718 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6719 test $ac_status = 0; }; then
718a6fd8
SE
6720 case `/usr/bin/file conftest.o` in
6721 *64-bit*)
6722 case $lt_cv_prog_gnu_ld in
6723 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6724 *)
6725 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6726 LD="${LD-ld} -64"
6727 fi
6728 ;;
6729 esac
6730 ;;
6731 esac
6732 fi
df7b86aa
NC
6733 rm -rf conftest*
6734 ;;
6735esac
6736
6737need_locks="$enable_libtool_lock"
6738
718a6fd8
SE
6739
6740 case $host_os in
6741 rhapsody* | darwin*)
6742 if test -n "$ac_tool_prefix"; then
6743 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6744set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
81ecdfbb
RW
6745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6746$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6747if ${ac_cv_prog_DSYMUTIL+:} false; then :
81ecdfbb 6748 $as_echo_n "(cached) " >&6
718a6fd8
SE
6749else
6750 if test -n "$DSYMUTIL"; then
6751 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6752else
6753as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6754for as_dir in $PATH
6755do
6756 IFS=$as_save_IFS
6757 test -z "$as_dir" && as_dir=.
81ecdfbb 6758 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6759 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
718a6fd8 6760 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
81ecdfbb 6761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
6762 break 2
6763 fi
6764done
81ecdfbb
RW
6765 done
6766IFS=$as_save_IFS
718a6fd8
SE
6767
6768fi
6769fi
6770DSYMUTIL=$ac_cv_prog_DSYMUTIL
6771if test -n "$DSYMUTIL"; then
81ecdfbb
RW
6772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6773$as_echo "$DSYMUTIL" >&6; }
718a6fd8 6774else
81ecdfbb
RW
6775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6776$as_echo "no" >&6; }
718a6fd8
SE
6777fi
6778
81ecdfbb 6779
718a6fd8
SE
6780fi
6781if test -z "$ac_cv_prog_DSYMUTIL"; then
6782 ac_ct_DSYMUTIL=$DSYMUTIL
6783 # Extract the first word of "dsymutil", so it can be a program name with args.
6784set dummy 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_ac_ct_DSYMUTIL+:} false; then :
81ecdfbb 6788 $as_echo_n "(cached) " >&6
718a6fd8
SE
6789else
6790 if test -n "$ac_ct_DSYMUTIL"; then
6791 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_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_ac_ct_DSYMUTIL="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 6807
718a6fd8
SE
6808fi
6809fi
6810ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6811if test -n "$ac_ct_DSYMUTIL"; then
81ecdfbb
RW
6812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6813$as_echo "$ac_ct_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
RW
6819 if test "x$ac_ct_DSYMUTIL" = x; then
6820 DSYMUTIL=":"
6821 else
6822 case $cross_compiling:$ac_tool_warned in
6823yes:)
6824{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6825$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6826ac_tool_warned=yes ;;
6827esac
6828 DSYMUTIL=$ac_ct_DSYMUTIL
6829 fi
718a6fd8
SE
6830else
6831 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6832fi
6833
6834 if test -n "$ac_tool_prefix"; then
6835 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6836set dummy ${ac_tool_prefix}nmedit; ac_word=$2
81ecdfbb
RW
6837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6838$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6839if ${ac_cv_prog_NMEDIT+:} false; then :
81ecdfbb 6840 $as_echo_n "(cached) " >&6
718a6fd8
SE
6841else
6842 if test -n "$NMEDIT"; then
6843 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6844else
6845as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6846for as_dir in $PATH
6847do
6848 IFS=$as_save_IFS
6849 test -z "$as_dir" && as_dir=.
81ecdfbb 6850 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6851 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
718a6fd8 6852 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
81ecdfbb 6853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
6854 break 2
6855 fi
6856done
81ecdfbb
RW
6857 done
6858IFS=$as_save_IFS
718a6fd8
SE
6859
6860fi
6861fi
6862NMEDIT=$ac_cv_prog_NMEDIT
6863if test -n "$NMEDIT"; then
81ecdfbb
RW
6864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6865$as_echo "$NMEDIT" >&6; }
718a6fd8 6866else
81ecdfbb
RW
6867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6868$as_echo "no" >&6; }
718a6fd8
SE
6869fi
6870
81ecdfbb 6871
718a6fd8
SE
6872fi
6873if test -z "$ac_cv_prog_NMEDIT"; then
6874 ac_ct_NMEDIT=$NMEDIT
6875 # Extract the first word of "nmedit", so it can be a program name with args.
6876set dummy 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_ac_ct_NMEDIT+:} false; then :
81ecdfbb 6880 $as_echo_n "(cached) " >&6
718a6fd8
SE
6881else
6882 if test -n "$ac_ct_NMEDIT"; then
6883 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_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_ac_ct_NMEDIT="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 6899
718a6fd8
SE
6900fi
6901fi
6902ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6903if test -n "$ac_ct_NMEDIT"; then
81ecdfbb
RW
6904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6905$as_echo "$ac_ct_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
RW
6911 if test "x$ac_ct_NMEDIT" = x; then
6912 NMEDIT=":"
6913 else
6914 case $cross_compiling:$ac_tool_warned in
6915yes:)
6916{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6917$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6918ac_tool_warned=yes ;;
6919esac
6920 NMEDIT=$ac_ct_NMEDIT
6921 fi
718a6fd8
SE
6922else
6923 NMEDIT="$ac_cv_prog_NMEDIT"
6924fi
6925
6926 if test -n "$ac_tool_prefix"; then
6927 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6928set dummy ${ac_tool_prefix}lipo; ac_word=$2
81ecdfbb
RW
6929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6930$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6931if ${ac_cv_prog_LIPO+:} false; then :
81ecdfbb 6932 $as_echo_n "(cached) " >&6
718a6fd8
SE
6933else
6934 if test -n "$LIPO"; then
6935 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6936else
6937as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6938for as_dir in $PATH
6939do
6940 IFS=$as_save_IFS
6941 test -z "$as_dir" && as_dir=.
81ecdfbb 6942 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6943 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
718a6fd8 6944 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
81ecdfbb 6945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
6946 break 2
6947 fi
6948done
81ecdfbb
RW
6949 done
6950IFS=$as_save_IFS
718a6fd8
SE
6951
6952fi
6953fi
6954LIPO=$ac_cv_prog_LIPO
6955if test -n "$LIPO"; then
81ecdfbb
RW
6956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6957$as_echo "$LIPO" >&6; }
718a6fd8 6958else
81ecdfbb
RW
6959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6960$as_echo "no" >&6; }
718a6fd8
SE
6961fi
6962
81ecdfbb 6963
718a6fd8
SE
6964fi
6965if test -z "$ac_cv_prog_LIPO"; then
6966 ac_ct_LIPO=$LIPO
6967 # Extract the first word of "lipo", so it can be a program name with args.
6968set dummy 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_ac_ct_LIPO+:} false; then :
81ecdfbb 6972 $as_echo_n "(cached) " >&6
718a6fd8
SE
6973else
6974 if test -n "$ac_ct_LIPO"; then
6975 ac_cv_prog_ac_ct_LIPO="$ac_ct_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_ac_ct_LIPO="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 6991
718a6fd8
SE
6992fi
6993fi
6994ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6995if test -n "$ac_ct_LIPO"; then
81ecdfbb
RW
6996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6997$as_echo "$ac_ct_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
RW
7003 if test "x$ac_ct_LIPO" = x; then
7004 LIPO=":"
7005 else
7006 case $cross_compiling:$ac_tool_warned in
7007yes:)
7008{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7009$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7010ac_tool_warned=yes ;;
7011esac
7012 LIPO=$ac_ct_LIPO
7013 fi
718a6fd8
SE
7014else
7015 LIPO="$ac_cv_prog_LIPO"
7016fi
7017
7018 if test -n "$ac_tool_prefix"; then
7019 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7020set dummy ${ac_tool_prefix}otool; ac_word=$2
81ecdfbb
RW
7021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7022$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 7023if ${ac_cv_prog_OTOOL+:} false; then :
81ecdfbb 7024 $as_echo_n "(cached) " >&6
718a6fd8
SE
7025else
7026 if test -n "$OTOOL"; then
7027 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7028else
7029as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7030for as_dir in $PATH
7031do
7032 IFS=$as_save_IFS
7033 test -z "$as_dir" && as_dir=.
81ecdfbb 7034 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 7035 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
718a6fd8 7036 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
81ecdfbb 7037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
7038 break 2
7039 fi
7040done
81ecdfbb
RW
7041 done
7042IFS=$as_save_IFS
718a6fd8
SE
7043
7044fi
7045fi
7046OTOOL=$ac_cv_prog_OTOOL
7047if test -n "$OTOOL"; then
81ecdfbb
RW
7048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7049$as_echo "$OTOOL" >&6; }
718a6fd8 7050else
81ecdfbb
RW
7051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7052$as_echo "no" >&6; }
718a6fd8
SE
7053fi
7054
81ecdfbb 7055
718a6fd8
SE
7056fi
7057if test -z "$ac_cv_prog_OTOOL"; then
7058 ac_ct_OTOOL=$OTOOL
7059 # Extract the first word of "otool", so it can be a program name with args.
7060set dummy 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_ac_ct_OTOOL+:} false; then :
81ecdfbb 7064 $as_echo_n "(cached) " >&6
718a6fd8
SE
7065else
7066 if test -n "$ac_ct_OTOOL"; then
7067 ac_cv_prog_ac_ct_OTOOL="$ac_ct_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_ac_ct_OTOOL="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 7083
718a6fd8
SE
7084fi
7085fi
7086ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7087if test -n "$ac_ct_OTOOL"; then
81ecdfbb
RW
7088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7089$as_echo "$ac_ct_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
RW
7095 if test "x$ac_ct_OTOOL" = x; then
7096 OTOOL=":"
7097 else
7098 case $cross_compiling:$ac_tool_warned in
7099yes:)
7100{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7101$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7102ac_tool_warned=yes ;;
7103esac
7104 OTOOL=$ac_ct_OTOOL
7105 fi
718a6fd8
SE
7106else
7107 OTOOL="$ac_cv_prog_OTOOL"
7108fi
7109
7110 if test -n "$ac_tool_prefix"; then
7111 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7112set dummy ${ac_tool_prefix}otool64; ac_word=$2
81ecdfbb
RW
7113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7114$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 7115if ${ac_cv_prog_OTOOL64+:} false; then :
81ecdfbb 7116 $as_echo_n "(cached) " >&6
718a6fd8
SE
7117else
7118 if test -n "$OTOOL64"; then
7119 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7120else
7121as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7122for as_dir in $PATH
7123do
7124 IFS=$as_save_IFS
7125 test -z "$as_dir" && as_dir=.
81ecdfbb 7126 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 7127 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
718a6fd8 7128 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
81ecdfbb 7129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
7130 break 2
7131 fi
7132done
81ecdfbb
RW
7133 done
7134IFS=$as_save_IFS
718a6fd8
SE
7135
7136fi
7137fi
7138OTOOL64=$ac_cv_prog_OTOOL64
7139if test -n "$OTOOL64"; then
81ecdfbb
RW
7140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7141$as_echo "$OTOOL64" >&6; }
718a6fd8 7142else
81ecdfbb
RW
7143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7144$as_echo "no" >&6; }
718a6fd8
SE
7145fi
7146
81ecdfbb 7147
718a6fd8
SE
7148fi
7149if test -z "$ac_cv_prog_OTOOL64"; then
7150 ac_ct_OTOOL64=$OTOOL64
7151 # Extract the first word of "otool64", so it can be a program name with args.
7152set dummy 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_ac_ct_OTOOL64+:} false; then :
81ecdfbb 7156 $as_echo_n "(cached) " >&6
718a6fd8
SE
7157else
7158 if test -n "$ac_ct_OTOOL64"; then
7159 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_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_ac_ct_OTOOL64="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 7175
718a6fd8
SE
7176fi
7177fi
7178ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7179if test -n "$ac_ct_OTOOL64"; then
81ecdfbb
RW
7180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7181$as_echo "$ac_ct_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
RW
7187 if test "x$ac_ct_OTOOL64" = x; then
7188 OTOOL64=":"
7189 else
7190 case $cross_compiling:$ac_tool_warned in
7191yes:)
7192{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7193$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7194ac_tool_warned=yes ;;
7195esac
7196 OTOOL64=$ac_ct_OTOOL64
7197 fi
718a6fd8
SE
7198else
7199 OTOOL64="$ac_cv_prog_OTOOL64"
7200fi
7201
7202
7203
7204
7205
7206
7207
7208
7209
7210
7211
7212
7213
7214
7215
7216
7217
7218
7219
7220
7221
7222
7223
7224
7225
7226
7227
81ecdfbb
RW
7228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7229$as_echo_n "checking for -single_module linker flag... " >&6; }
d0ac1c44 7230if ${lt_cv_apple_cc_single_mod+:} false; then :
81ecdfbb 7231 $as_echo_n "(cached) " >&6
718a6fd8
SE
7232else
7233 lt_cv_apple_cc_single_mod=no
7234 if test -z "${LT_MULTI_MODULE}"; then
7235 # By default we will add the -single_module flag. You can override
7236 # by either setting the environment variable LT_MULTI_MODULE
7237 # non-empty at configure time, or by adding -multi_module to the
7238 # link flags.
7239 rm -rf libconftest.dylib*
7240 echo "int foo(void){return 1;}" > conftest.c
7241 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7242-dynamiclib -Wl,-single_module conftest.c" >&5
7243 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7244 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7245 _lt_result=$?
7246 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7247 lt_cv_apple_cc_single_mod=yes
7248 else
7249 cat conftest.err >&5
7250 fi
7251 rm -rf libconftest.dylib*
7252 rm -f conftest.*
7253 fi
7254fi
81ecdfbb
RW
7255{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7256$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7258$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
d0ac1c44 7259if ${lt_cv_ld_exported_symbols_list+:} false; then :
81ecdfbb 7260 $as_echo_n "(cached) " >&6
718a6fd8
SE
7261else
7262 lt_cv_ld_exported_symbols_list=no
7263 save_LDFLAGS=$LDFLAGS
7264 echo "_main" > conftest.sym
7265 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
81ecdfbb 7266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
718a6fd8
SE
7267/* end confdefs.h. */
7268
7269int
7270main ()
7271{
7272
7273 ;
7274 return 0;
7275}
7276_ACEOF
81ecdfbb 7277if ac_fn_c_try_link "$LINENO"; then :
718a6fd8
SE
7278 lt_cv_ld_exported_symbols_list=yes
7279else
81ecdfbb 7280 lt_cv_ld_exported_symbols_list=no
718a6fd8 7281fi
81ecdfbb
RW
7282rm -f core conftest.err conftest.$ac_objext \
7283 conftest$ac_exeext conftest.$ac_ext
718a6fd8
SE
7284 LDFLAGS="$save_LDFLAGS"
7285
7286fi
81ecdfbb
RW
7287{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7288$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
3725885a
RW
7289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7290$as_echo_n "checking for -force_load linker flag... " >&6; }
d0ac1c44 7291if ${lt_cv_ld_force_load+:} false; then :
3725885a
RW
7292 $as_echo_n "(cached) " >&6
7293else
7294 lt_cv_ld_force_load=no
7295 cat > conftest.c << _LT_EOF
7296int forced_loaded() { return 2;}
7297_LT_EOF
7298 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7299 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7300 echo "$AR cru libconftest.a conftest.o" >&5
7301 $AR cru libconftest.a conftest.o 2>&5
7302 cat > conftest.c << _LT_EOF
7303int main() { return 0;}
7304_LT_EOF
7305 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7306 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7307 _lt_result=$?
7308 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7309 lt_cv_ld_force_load=yes
7310 else
7311 cat conftest.err >&5
7312 fi
7313 rm -f conftest.err libconftest.a conftest conftest.c
7314 rm -rf conftest.dSYM
7315
7316fi
7317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7318$as_echo "$lt_cv_ld_force_load" >&6; }
6a6859cb
AM
7319 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
7320 # build without first building modern cctools / linker.
7321 case $host_cpu-$host_os in
7322 *-rhapsody* | *-darwin1.[012])
718a6fd8 7323 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6a6859cb 7324 *-darwin1.*)
718a6fd8 7325 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6a6859cb
AM
7326 *-darwin*)
7327 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
7328 # deployment target is forced to an earlier version.
7329 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
7330 UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*)
7331 ;;
6e733cce 7332 10.[012][,.]*)
6a6859cb
AM
7333 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7334 ;;
7335 *)
7336 ;;
7337 esac
718a6fd8
SE
7338 ;;
7339 esac
7340 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7341 _lt_dar_single_mod='$single_module'
7342 fi
7343 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7344 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7345 else
7346 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7347 fi
3725885a 7348 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
718a6fd8
SE
7349 _lt_dsymutil='~$DSYMUTIL $lib || :'
7350 else
7351 _lt_dsymutil=
7352 fi
7353 ;;
7354 esac
7355
718a6fd8 7356for ac_header in dlfcn.h
81ecdfbb
RW
7357do :
7358 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7359"
d0ac1c44 7360if test "x$ac_cv_header_dlfcn_h" = xyes; then :
718a6fd8 7361 cat >>confdefs.h <<_ACEOF
81ecdfbb 7362#define HAVE_DLFCN_H 1
718a6fd8
SE
7363_ACEOF
7364
7365fi
7366
7367done
7368
7369
7370
3725885a
RW
7371
7372
718a6fd8
SE
7373# Set options
7374
7375
7376
7377 enable_dlopen=no
7378
7379
7380 enable_win32_dll=no
7381
7382
81ecdfbb
RW
7383 # Check whether --enable-shared was given.
7384if test "${enable_shared+set}" = set; then :
7385 enableval=$enable_shared; p=${PACKAGE-default}
718a6fd8
SE
7386 case $enableval in
7387 yes) enable_shared=yes ;;
7388 no) enable_shared=no ;;
7389 *)
7390 enable_shared=no
7391 # Look at the argument we got. We use all the common list separators.
7392 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7393 for pkg in $enableval; do
7394 IFS="$lt_save_ifs"
7395 if test "X$pkg" = "X$p"; then
7396 enable_shared=yes
7397 fi
7398 done
7399 IFS="$lt_save_ifs"
7400 ;;
7401 esac
7402else
7403 enable_shared=yes
81ecdfbb 7404fi
718a6fd8
SE
7405
7406
7407
7408
7409
7410
7411
7412
81ecdfbb
RW
7413
7414 # Check whether --enable-static was given.
7415if test "${enable_static+set}" = set; then :
7416 enableval=$enable_static; p=${PACKAGE-default}
718a6fd8
SE
7417 case $enableval in
7418 yes) enable_static=yes ;;
7419 no) enable_static=no ;;
7420 *)
7421 enable_static=no
7422 # Look at the argument we got. We use all the common list separators.
7423 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7424 for pkg in $enableval; do
7425 IFS="$lt_save_ifs"
7426 if test "X$pkg" = "X$p"; then
7427 enable_static=yes
7428 fi
7429 done
7430 IFS="$lt_save_ifs"
7431 ;;
7432 esac
7433else
7434 enable_static=yes
81ecdfbb 7435fi
718a6fd8
SE
7436
7437
7438
7439
7440
7441
7442
7443
7444
81ecdfbb
RW
7445
7446# Check whether --with-pic was given.
7447if test "${with_pic+set}" = set; then :
7448 withval=$with_pic; pic_mode="$withval"
718a6fd8
SE
7449else
7450 pic_mode=default
81ecdfbb
RW
7451fi
7452
718a6fd8
SE
7453
7454test -z "$pic_mode" && pic_mode=default
7455
7456
7457
7458
7459
7460
7461
81ecdfbb
RW
7462 # Check whether --enable-fast-install was given.
7463if test "${enable_fast_install+set}" = set; then :
7464 enableval=$enable_fast_install; p=${PACKAGE-default}
718a6fd8
SE
7465 case $enableval in
7466 yes) enable_fast_install=yes ;;
7467 no) enable_fast_install=no ;;
7468 *)
7469 enable_fast_install=no
7470 # Look at the argument we got. We use all the common list separators.
7471 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7472 for pkg in $enableval; do
7473 IFS="$lt_save_ifs"
7474 if test "X$pkg" = "X$p"; then
7475 enable_fast_install=yes
7476 fi
7477 done
7478 IFS="$lt_save_ifs"
7357c5b6
AM
7479 ;;
7480 esac
718a6fd8
SE
7481else
7482 enable_fast_install=yes
81ecdfbb
RW
7483fi
7484
20e95c23 7485
20e95c23
DJ
7486
7487
42ecbf5e 7488
d7040cdb 7489
20e95c23 7490
d7040cdb 7491
d7040cdb
SE
7492
7493
7494
7495# This can be used to rebuild libtool when needed
7496LIBTOOL_DEPS="$ltmain"
7497
7498# Always use our own libtool.
7499LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7500
7501
7502
7503
7504
7505
7506
7507
7508
7509
7510
7511
7512
7513
7514
7515
7516
7517
7518
7519
7520
7521
7522
3725885a 7523
d7040cdb
SE
7524
7525
7526test -z "$LN_S" && LN_S="ln -s"
7527
7528
7529
7530
7531
7532
7533
7534
7535
7536
7537
7538
7539
7540
7541if test -n "${ZSH_VERSION+set}" ; then
7542 setopt NO_GLOB_SUBST
7543fi
7544
81ecdfbb
RW
7545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7546$as_echo_n "checking for objdir... " >&6; }
d0ac1c44 7547if ${lt_cv_objdir+:} false; then :
81ecdfbb 7548 $as_echo_n "(cached) " >&6
20e95c23 7549else
d7040cdb
SE
7550 rm -f .libs 2>/dev/null
7551mkdir .libs 2>/dev/null
7552if test -d .libs; then
7553 lt_cv_objdir=.libs
42ecbf5e 7554else
d7040cdb
SE
7555 # MS-DOS does not allow filenames that begin with a dot.
7556 lt_cv_objdir=_libs
7557fi
7558rmdir .libs 2>/dev/null
42ecbf5e 7559fi
81ecdfbb
RW
7560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7561$as_echo "$lt_cv_objdir" >&6; }
d7040cdb 7562objdir=$lt_cv_objdir
42ecbf5e 7563
d7040cdb
SE
7564
7565
7566
7567
7568cat >>confdefs.h <<_ACEOF
7569#define LT_OBJDIR "$lt_cv_objdir/"
7570_ACEOF
7571
7572
7573
7574
d7040cdb
SE
7575case $host_os in
7576aix3*)
7577 # AIX sometimes has problems with the GCC collect2 program. For some
7578 # reason, if we set the COLLECT_NAMES environment variable, the problems
7579 # vanish in a puff of smoke.
7580 if test "X${COLLECT_NAMES+set}" != Xset; then
7581 COLLECT_NAMES=
7582 export COLLECT_NAMES
7583 fi
7584 ;;
7585esac
7586
d7040cdb
SE
7587# Global variables:
7588ofile=libtool
7589can_build_shared=yes
7590
7591# All known linkers require a `.a' archive for static linking (except MSVC,
7592# which needs '.lib').
7593libext=a
7594
7595with_gnu_ld="$lt_cv_prog_gnu_ld"
7596
7597old_CC="$CC"
7598old_CFLAGS="$CFLAGS"
7599
7600# Set sane defaults for various variables
7601test -z "$CC" && CC=cc
7602test -z "$LTCC" && LTCC=$CC
7603test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7604test -z "$LD" && LD=ld
7605test -z "$ac_objext" && ac_objext=o
7606
7607for cc_temp in $compiler""; do
7608 case $cc_temp in
7609 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7610 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7611 \-*) ;;
7612 *) break;;
7613 esac
7614done
3725885a 7615cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
d7040cdb
SE
7616
7617
7618# Only perform the check for file, if the check method requires it
7619test -z "$MAGIC_CMD" && MAGIC_CMD=file
7620case $deplibs_check_method in
7621file_magic*)
7622 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
81ecdfbb
RW
7623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7624$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
d0ac1c44 7625if ${lt_cv_path_MAGIC_CMD+:} false; then :
81ecdfbb 7626 $as_echo_n "(cached) " >&6
42ecbf5e 7627else
d7040cdb
SE
7628 case $MAGIC_CMD in
7629[\\/*] | ?:[\\/]*)
7630 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
20e95c23 7631 ;;
d7040cdb
SE
7632*)
7633 lt_save_MAGIC_CMD="$MAGIC_CMD"
7634 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7635 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7636 for ac_dir in $ac_dummy; do
7637 IFS="$lt_save_ifs"
7638 test -z "$ac_dir" && ac_dir=.
7639 if test -f $ac_dir/${ac_tool_prefix}file; then
7640 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7641 if test -n "$file_magic_test_file"; then
7642 case $deplibs_check_method in
7643 "file_magic "*)
7644 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7645 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7646 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7647 $EGREP "$file_magic_regex" > /dev/null; then
7648 :
7649 else
7650 cat <<_LT_EOF 1>&2
42ecbf5e 7651
d7040cdb
SE
7652*** Warning: the command libtool uses to detect shared libraries,
7653*** $file_magic_cmd, produces output that libtool cannot recognize.
7654*** The result is that libtool may fail to recognize shared libraries
7655*** as such. This will affect the creation of libtool libraries that
7656*** depend on shared libraries, but programs linked with such libtool
7657*** libraries will work regardless of this problem. Nevertheless, you
7658*** may want to report the problem to your system manager and/or to
7659*** bug-libtool@gnu.org
7660
7661_LT_EOF
7662 fi ;;
7663 esac
7664 fi
7665 break
7666 fi
7667 done
7668 IFS="$lt_save_ifs"
7669 MAGIC_CMD="$lt_save_MAGIC_CMD"
20e95c23
DJ
7670 ;;
7671esac
42ecbf5e 7672fi
20e95c23 7673
d7040cdb
SE
7674MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7675if test -n "$MAGIC_CMD"; then
81ecdfbb
RW
7676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7677$as_echo "$MAGIC_CMD" >&6; }
42ecbf5e 7678else
81ecdfbb
RW
7679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7680$as_echo "no" >&6; }
42ecbf5e
DJ
7681fi
7682
20e95c23
DJ
7683
7684
42ecbf5e 7685
20e95c23 7686
d7040cdb
SE
7687if test -z "$lt_cv_path_MAGIC_CMD"; then
7688 if test -n "$ac_tool_prefix"; then
81ecdfbb
RW
7689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7690$as_echo_n "checking for file... " >&6; }
d0ac1c44 7691if ${lt_cv_path_MAGIC_CMD+:} false; then :
81ecdfbb 7692 $as_echo_n "(cached) " >&6
42ecbf5e 7693else
d7040cdb
SE
7694 case $MAGIC_CMD in
7695[\\/*] | ?:[\\/]*)
7696 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7697 ;;
7698*)
7699 lt_save_MAGIC_CMD="$MAGIC_CMD"
7700 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7701 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7702 for ac_dir in $ac_dummy; do
7703 IFS="$lt_save_ifs"
7704 test -z "$ac_dir" && ac_dir=.
7705 if test -f $ac_dir/file; then
7706 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7707 if test -n "$file_magic_test_file"; then
7708 case $deplibs_check_method in
7709 "file_magic "*)
7710 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7711 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7712 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7713 $EGREP "$file_magic_regex" > /dev/null; then
7714 :
7715 else
7716 cat <<_LT_EOF 1>&2
7717
7718*** Warning: the command libtool uses to detect shared libraries,
7719*** $file_magic_cmd, produces output that libtool cannot recognize.
7720*** The result is that libtool may fail to recognize shared libraries
7721*** as such. This will affect the creation of libtool libraries that
7722*** depend on shared libraries, but programs linked with such libtool
7723*** libraries will work regardless of this problem. Nevertheless, you
7724*** may want to report the problem to your system manager and/or to
7725*** bug-libtool@gnu.org
7726
7727_LT_EOF
7728 fi ;;
7729 esac
7730 fi
7731 break
7732 fi
7733 done
7734 IFS="$lt_save_ifs"
7735 MAGIC_CMD="$lt_save_MAGIC_CMD"
7736 ;;
20e95c23
DJ
7737esac
7738fi
d7040cdb
SE
7739
7740MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7741if test -n "$MAGIC_CMD"; then
81ecdfbb
RW
7742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7743$as_echo "$MAGIC_CMD" >&6; }
20e95c23 7744else
81ecdfbb
RW
7745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7746$as_echo "no" >&6; }
20e95c23
DJ
7747fi
7748
20e95c23 7749
42ecbf5e 7750 else
d7040cdb 7751 MAGIC_CMD=:
42ecbf5e 7752 fi
42ecbf5e 7753fi
42ecbf5e 7754
20e95c23 7755 fi
d7040cdb
SE
7756 ;;
7757esac
42ecbf5e 7758
d7040cdb 7759# Use C for the default configuration in the libtool script
42ecbf5e 7760
d7040cdb
SE
7761lt_save_CC="$CC"
7762ac_ext=c
7763ac_cpp='$CPP $CPPFLAGS'
7764ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7765ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7766ac_compiler_gnu=$ac_cv_c_compiler_gnu
42ecbf5e 7767
42ecbf5e 7768
d7040cdb
SE
7769# Source file extension for C test sources.
7770ac_ext=c
42ecbf5e 7771
d7040cdb
SE
7772# Object file extension for compiled C test sources.
7773objext=o
7774objext=$objext
42ecbf5e 7775
d7040cdb
SE
7776# Code to be used in simple compile tests
7777lt_simple_compile_test_code="int some_variable = 0;"
42ecbf5e 7778
d7040cdb
SE
7779# Code to be used in simple link tests
7780lt_simple_link_test_code='int main(){return(0);}'
42ecbf5e 7781
ac48eca1 7782
42ecbf5e 7783
42ecbf5e 7784
d5fbea21 7785
d5fbea21
DJ
7786
7787
d7040cdb
SE
7788# If no C compiler was specified, use CC.
7789LTCC=${LTCC-"$CC"}
20e95c23 7790
d7040cdb
SE
7791# If no C compiler flags were specified, use CFLAGS.
7792LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
42ecbf5e 7793
d7040cdb
SE
7794# Allow CC to be a program name with arguments.
7795compiler=$CC
252b5132 7796
d7040cdb
SE
7797# Save the default compiler, since it gets overwritten when the other
7798# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7799compiler_DEFAULT=$CC
42ecbf5e 7800
d7040cdb
SE
7801# save warnings/boilerplate of simple test code
7802ac_outfile=conftest.$ac_objext
7803echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7804eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7805_lt_compiler_boilerplate=`cat conftest.err`
7806$RM conftest*
252b5132 7807
d7040cdb
SE
7808ac_outfile=conftest.$ac_objext
7809echo "$lt_simple_link_test_code" >conftest.$ac_ext
7810eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7811_lt_linker_boilerplate=`cat conftest.err`
718a6fd8 7812$RM -r conftest*
252b5132 7813
42ecbf5e 7814
f2c621e4
AS
7815## CAVEAT EMPTOR:
7816## There is no encapsulation within the following macros, do not change
7817## the running order or otherwise move them around unless you know exactly
7818## what you are doing...
d7040cdb 7819if test -n "$compiler"; then
252b5132 7820
d7040cdb 7821lt_prog_compiler_no_builtin_flag=
252b5132 7822
d7040cdb 7823if test "$GCC" = yes; then
3725885a
RW
7824 case $cc_basename in
7825 nvcc*)
7826 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7827 *)
7828 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7829 esac
d15b04bd 7830
81ecdfbb
RW
7831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7832$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
d0ac1c44 7833if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
81ecdfbb 7834 $as_echo_n "(cached) " >&6
252b5132 7835else
d7040cdb
SE
7836 lt_cv_prog_compiler_rtti_exceptions=no
7837 ac_outfile=conftest.$ac_objext
7838 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7839 lt_compiler_flag="-fno-rtti -fno-exceptions"
7840 # Insert the option either (1) after the last *FLAGS variable, or
7841 # (2) before a word containing "conftest.", or (3) at the end.
7842 # Note that $ac_compile itself does not contain backslashes and begins
7843 # with a dollar sign (not a hyphen), so the echo should work correctly.
7844 # The option is referenced via a variable to avoid confusing sed.
7845 lt_compile=`echo "$ac_compile" | $SED \
7846 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7847 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7848 -e 's:$: $lt_compiler_flag:'`
3725885a 7849 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
d7040cdb
SE
7850 (eval "$lt_compile" 2>conftest.err)
7851 ac_status=$?
7852 cat conftest.err >&5
3725885a 7853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7040cdb
SE
7854 if (exit $ac_status) && test -s "$ac_outfile"; then
7855 # The compiler can only warn and ignore the option if not recognized
7856 # So say no if there are warnings other than the usual output.
3725885a 7857 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
d7040cdb
SE
7858 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7859 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7860 lt_cv_prog_compiler_rtti_exceptions=yes
7861 fi
7862 fi
7863 $RM conftest*
42ecbf5e 7864
252b5132 7865fi
81ecdfbb
RW
7866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7867$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
d7040cdb
SE
7868
7869if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7870 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
20e95c23 7871else
d7040cdb 7872 :
252b5132 7873fi
252b5132
RH
7874
7875fi
d7040cdb
SE
7876
7877
7878
7879
7880
7881
7882 lt_prog_compiler_wl=
7883lt_prog_compiler_pic=
7884lt_prog_compiler_static=
7885
f2c621e4
AS
7886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7887$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
d7040cdb
SE
7888
7889 if test "$GCC" = yes; then
7890 lt_prog_compiler_wl='-Wl,'
7891 lt_prog_compiler_static='-static'
7892
7893 case $host_os in
7894 aix*)
7895 # All AIX code is PIC.
7896 if test "$host_cpu" = ia64; then
7897 # AIX 5 now supports IA64 processor
7898 lt_prog_compiler_static='-Bstatic'
7899 fi
6c9c0a50 7900 lt_prog_compiler_pic='-fPIC'
d7040cdb
SE
7901 ;;
7902
7903 amigaos*)
718a6fd8
SE
7904 case $host_cpu in
7905 powerpc)
7906 # see comment about AmigaOS4 .so support
7907 lt_prog_compiler_pic='-fPIC'
7908 ;;
7909 m68k)
7910 # FIXME: we need at least 68020 code to build shared libraries, but
7911 # adding the `-m68020' flag to GCC prevents building anything better,
7912 # like `-m68040'.
7913 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7914 ;;
7915 esac
d7040cdb
SE
7916 ;;
7917
7918 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7919 # PIC is the default for these OSes.
7920 ;;
7921
718a6fd8 7922 mingw* | cygwin* | pw32* | os2* | cegcc*)
d7040cdb
SE
7923 # This hack is so that the source file can tell whether it is being
7924 # built for inclusion in a dll (and should export symbols for example).
7925 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7926 # (--disable-auto-import) libraries
7927 lt_prog_compiler_pic='-DDLL_EXPORT'
7928 ;;
7929
7930 darwin* | rhapsody*)
7931 # PIC is the default on this platform
7932 # Common symbols not allowed in MH_DYLIB files
7933 lt_prog_compiler_pic='-fno-common'
7934 ;;
7935
3725885a
RW
7936 haiku*)
7937 # PIC is the default for Haiku.
7938 # The "-static" flag exists, but is broken.
7939 lt_prog_compiler_static=
7940 ;;
7941
d7040cdb 7942 hpux*)
718a6fd8
SE
7943 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7944 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7945 # sets the default TLS model and affects inlining.
d7040cdb 7946 case $host_cpu in
718a6fd8 7947 hppa*64*)
d7040cdb
SE
7948 # +Z the default
7949 ;;
7950 *)
7951 lt_prog_compiler_pic='-fPIC'
7952 ;;
7953 esac
7954 ;;
7955
7956 interix[3-9]*)
7957 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7958 # Instead, we relocate shared libraries at runtime.
7959 ;;
7960
7961 msdosdjgpp*)
7962 # Just because we use GCC doesn't mean we suddenly get shared libraries
7963 # on systems that don't support them.
7964 lt_prog_compiler_can_build_shared=no
7965 enable_shared=no
7966 ;;
7967
7968 *nto* | *qnx*)
7969 # QNX uses GNU C++, but need to define -shared option too, otherwise
7970 # it will coredump.
7971 lt_prog_compiler_pic='-fPIC -shared'
7972 ;;
7973
7974 sysv4*MP*)
7975 if test -d /usr/nec; then
7976 lt_prog_compiler_pic=-Kconform_pic
7977 fi
7978 ;;
7979
7980 *)
7981 lt_prog_compiler_pic='-fPIC'
7982 ;;
7983 esac
3725885a
RW
7984
7985 case $cc_basename in
7986 nvcc*) # Cuda Compiler Driver 2.2
7987 lt_prog_compiler_wl='-Xlinker '
7988 lt_prog_compiler_pic='-Xcompiler -fPIC'
7989 ;;
7990 esac
d7040cdb
SE
7991 else
7992 # PORTME Check for flag to pass linker flags through the system compiler.
7993 case $host_os in
7994 aix*)
7995 lt_prog_compiler_wl='-Wl,'
7996 if test "$host_cpu" = ia64; then
7997 # AIX 5 now supports IA64 processor
7998 lt_prog_compiler_static='-Bstatic'
7999 else
8000 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8001 fi
8002 ;;
d7040cdb 8003
718a6fd8 8004 mingw* | cygwin* | pw32* | os2* | cegcc*)
d7040cdb
SE
8005 # This hack is so that the source file can tell whether it is being
8006 # built for inclusion in a dll (and should export symbols for example).
8007 lt_prog_compiler_pic='-DDLL_EXPORT'
8008 ;;
8009
8010 hpux9* | hpux10* | hpux11*)
8011 lt_prog_compiler_wl='-Wl,'
8012 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8013 # not for PA HP-UX.
8014 case $host_cpu in
8015 hppa*64*|ia64*)
8016 # +Z the default
8017 ;;
8018 *)
8019 lt_prog_compiler_pic='+Z'
8020 ;;
8021 esac
8022 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8023 lt_prog_compiler_static='${wl}-a ${wl}archive'
8024 ;;
8025
8026 irix5* | irix6* | nonstopux*)
8027 lt_prog_compiler_wl='-Wl,'
8028 # PIC (with -KPIC) is the default.
8029 lt_prog_compiler_static='-non_shared'
8030 ;;
8031
58e24671 8032 linux* | k*bsd*-gnu | kopensolaris*-gnu)
d7040cdb 8033 case $cc_basename in
718a6fd8
SE
8034 # old Intel for x86_64 which still supported -KPIC.
8035 ecc*)
d7040cdb
SE
8036 lt_prog_compiler_wl='-Wl,'
8037 lt_prog_compiler_pic='-KPIC'
8038 lt_prog_compiler_static='-static'
8039 ;;
718a6fd8
SE
8040 # icc used to be incompatible with GCC.
8041 # ICC 10 doesn't accept -KPIC any more.
8042 icc* | ifort*)
8043 lt_prog_compiler_wl='-Wl,'
8044 lt_prog_compiler_pic='-fPIC'
8045 lt_prog_compiler_static='-static'
8046 ;;
8047 # Lahey Fortran 8.1.
8048 lf95*)
8049 lt_prog_compiler_wl='-Wl,'
8050 lt_prog_compiler_pic='--shared'
8051 lt_prog_compiler_static='--static'
8052 ;;
3725885a 8053 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
d7040cdb
SE
8054 # Portland Group compilers (*not* the Pentium gcc compiler,
8055 # which looks to be a dead project)
8056 lt_prog_compiler_wl='-Wl,'
8057 lt_prog_compiler_pic='-fpic'
8058 lt_prog_compiler_static='-Bstatic'
8059 ;;
8060 ccc*)
8061 lt_prog_compiler_wl='-Wl,'
8062 # All Alpha code is PIC.
8063 lt_prog_compiler_static='-non_shared'
8064 ;;
3725885a
RW
8065 xl* | bgxl* | bgf* | mpixl*)
8066 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
718a6fd8
SE
8067 lt_prog_compiler_wl='-Wl,'
8068 lt_prog_compiler_pic='-qpic'
8069 lt_prog_compiler_static='-qstaticlink'
8070 ;;
d7040cdb
SE
8071 *)
8072 case `$CC -V 2>&1 | sed 5q` in
3725885a
RW
8073 *Sun\ F* | *Sun*Fortran*)
8074 # Sun Fortran 8.3 passes all unrecognized flags to the linker
d7040cdb
SE
8075 lt_prog_compiler_pic='-KPIC'
8076 lt_prog_compiler_static='-Bstatic'
3725885a 8077 lt_prog_compiler_wl=''
d7040cdb 8078 ;;
3725885a
RW
8079 *Sun\ C*)
8080 # Sun C 5.9
d7040cdb
SE
8081 lt_prog_compiler_pic='-KPIC'
8082 lt_prog_compiler_static='-Bstatic'
3725885a 8083 lt_prog_compiler_wl='-Wl,'
d7040cdb
SE
8084 ;;
8085 esac
8086 ;;
8087 esac
8088 ;;
8089
8090 newsos6)
8091 lt_prog_compiler_pic='-KPIC'
8092 lt_prog_compiler_static='-Bstatic'
8093 ;;
8094
8095 *nto* | *qnx*)
8096 # QNX uses GNU C++, but need to define -shared option too, otherwise
8097 # it will coredump.
8098 lt_prog_compiler_pic='-fPIC -shared'
8099 ;;
8100
8101 osf3* | osf4* | osf5*)
8102 lt_prog_compiler_wl='-Wl,'
8103 # All OSF/1 code is PIC.
8104 lt_prog_compiler_static='-non_shared'
8105 ;;
8106
8107 rdos*)
8108 lt_prog_compiler_static='-non_shared'
8109 ;;
8110
8111 solaris*)
8112 lt_prog_compiler_pic='-KPIC'
8113 lt_prog_compiler_static='-Bstatic'
8114 case $cc_basename in
f2c621e4 8115 f77* | f90* | f95*)
d7040cdb
SE
8116 lt_prog_compiler_wl='-Qoption ld ';;
8117 *)
8118 lt_prog_compiler_wl='-Wl,';;
8119 esac
8120 ;;
8121
8122 sunos4*)
8123 lt_prog_compiler_wl='-Qoption ld '
8124 lt_prog_compiler_pic='-PIC'
8125 lt_prog_compiler_static='-Bstatic'
8126 ;;
8127
8128 sysv4 | sysv4.2uw2* | sysv4.3*)
8129 lt_prog_compiler_wl='-Wl,'
8130 lt_prog_compiler_pic='-KPIC'
8131 lt_prog_compiler_static='-Bstatic'
8132 ;;
8133
8134 sysv4*MP*)
8135 if test -d /usr/nec ;then
8136 lt_prog_compiler_pic='-Kconform_pic'
8137 lt_prog_compiler_static='-Bstatic'
8138 fi
8139 ;;
8140
8141 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8142 lt_prog_compiler_wl='-Wl,'
8143 lt_prog_compiler_pic='-KPIC'
8144 lt_prog_compiler_static='-Bstatic'
8145 ;;
8146
8147 unicos*)
8148 lt_prog_compiler_wl='-Wl,'
8149 lt_prog_compiler_can_build_shared=no
8150 ;;
8151
8152 uts4*)
8153 lt_prog_compiler_pic='-pic'
8154 lt_prog_compiler_static='-Bstatic'
8155 ;;
8156
8157 *)
8158 lt_prog_compiler_can_build_shared=no
8159 ;;
8160 esac
8161 fi
8162
8163case $host_os in
8164 # For platforms which do not support PIC, -DPIC is meaningless:
8165 *djgpp*)
8166 lt_prog_compiler_pic=
8167 ;;
8168 *)
8169 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8170 ;;
8171esac
f2c621e4
AS
8172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8173$as_echo "$lt_prog_compiler_pic" >&6; }
8174
8175
8176
8177
d7040cdb
SE
8178
8179
8180#
8181# Check to make sure the PIC flag actually works.
8182#
8183if test -n "$lt_prog_compiler_pic"; then
81ecdfbb
RW
8184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8185$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
d0ac1c44 8186if ${lt_cv_prog_compiler_pic_works+:} false; then :
81ecdfbb 8187 $as_echo_n "(cached) " >&6
42ecbf5e 8188else
718a6fd8 8189 lt_cv_prog_compiler_pic_works=no
d7040cdb
SE
8190 ac_outfile=conftest.$ac_objext
8191 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8192 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8193 # Insert the option either (1) after the last *FLAGS variable, or
8194 # (2) before a word containing "conftest.", or (3) at the end.
8195 # Note that $ac_compile itself does not contain backslashes and begins
8196 # with a dollar sign (not a hyphen), so the echo should work correctly.
8197 # The option is referenced via a variable to avoid confusing sed.
8198 lt_compile=`echo "$ac_compile" | $SED \
8199 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8200 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8201 -e 's:$: $lt_compiler_flag:'`
3725885a 8202 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
d7040cdb
SE
8203 (eval "$lt_compile" 2>conftest.err)
8204 ac_status=$?
8205 cat conftest.err >&5
3725885a 8206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7040cdb
SE
8207 if (exit $ac_status) && test -s "$ac_outfile"; then
8208 # The compiler can only warn and ignore the option if not recognized
8209 # So say no if there are warnings other than the usual output.
3725885a 8210 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
d7040cdb
SE
8211 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8212 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
718a6fd8 8213 lt_cv_prog_compiler_pic_works=yes
d7040cdb
SE
8214 fi
8215 fi
8216 $RM conftest*
42ecbf5e 8217
252b5132 8218fi
81ecdfbb
RW
8219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8220$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
d7040cdb 8221
718a6fd8 8222if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
d7040cdb
SE
8223 case $lt_prog_compiler_pic in
8224 "" | " "*) ;;
8225 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8226 esac
252b5132 8227else
d7040cdb
SE
8228 lt_prog_compiler_pic=
8229 lt_prog_compiler_can_build_shared=no
252b5132 8230fi
252b5132
RH
8231
8232fi
42ecbf5e 8233
d7040cdb
SE
8234
8235
8236
8237
8238
8239#
8240# Check to make sure the static flag actually works.
8241#
8242wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
81ecdfbb
RW
8243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8244$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
d0ac1c44 8245if ${lt_cv_prog_compiler_static_works+:} false; then :
81ecdfbb 8246 $as_echo_n "(cached) " >&6
42ecbf5e 8247else
718a6fd8 8248 lt_cv_prog_compiler_static_works=no
d7040cdb
SE
8249 save_LDFLAGS="$LDFLAGS"
8250 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8251 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8252 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8253 # The linker can only warn and ignore the option if not recognized
8254 # So say no if there are warnings
8255 if test -s conftest.err; then
8256 # Append any errors to the config.log.
8257 cat conftest.err 1>&5
3725885a 8258 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
d7040cdb
SE
8259 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8260 if diff conftest.exp conftest.er2 >/dev/null; then
718a6fd8 8261 lt_cv_prog_compiler_static_works=yes
d7040cdb
SE
8262 fi
8263 else
718a6fd8 8264 lt_cv_prog_compiler_static_works=yes
d7040cdb
SE
8265 fi
8266 fi
718a6fd8 8267 $RM -r conftest*
d7040cdb 8268 LDFLAGS="$save_LDFLAGS"
42ecbf5e 8269
42ecbf5e 8270fi
81ecdfbb
RW
8271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8272$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
d7040cdb 8273
718a6fd8 8274if test x"$lt_cv_prog_compiler_static_works" = xyes; then
d7040cdb
SE
8275 :
8276else
8277 lt_prog_compiler_static=
42ecbf5e 8278fi
42ecbf5e 8279
252b5132 8280
252b5132 8281
42ecbf5e 8282
252b5132 8283
20e95c23 8284
d7040cdb 8285
81ecdfbb
RW
8286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8287$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
d0ac1c44 8288if ${lt_cv_prog_compiler_c_o+:} false; then :
81ecdfbb 8289 $as_echo_n "(cached) " >&6
252b5132 8290else
d7040cdb
SE
8291 lt_cv_prog_compiler_c_o=no
8292 $RM -r conftest 2>/dev/null
8293 mkdir conftest
8294 cd conftest
8295 mkdir out
8296 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8297
8298 lt_compiler_flag="-o out/conftest2.$ac_objext"
8299 # Insert the option either (1) after the last *FLAGS variable, or
8300 # (2) before a word containing "conftest.", or (3) at the end.
8301 # Note that $ac_compile itself does not contain backslashes and begins
8302 # with a dollar sign (not a hyphen), so the echo should work correctly.
8303 lt_compile=`echo "$ac_compile" | $SED \
8304 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8305 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8306 -e 's:$: $lt_compiler_flag:'`
3725885a 8307 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
d7040cdb
SE
8308 (eval "$lt_compile" 2>out/conftest.err)
8309 ac_status=$?
8310 cat out/conftest.err >&5
3725885a 8311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7040cdb
SE
8312 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8313 then
8314 # The compiler can only warn and ignore the option if not recognized
8315 # So say no if there are warnings
3725885a 8316 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
d7040cdb
SE
8317 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8318 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8319 lt_cv_prog_compiler_c_o=yes
8320 fi
8321 fi
8322 chmod u+w . 2>&5
8323 $RM conftest*
8324 # SGI C++ compiler will create directory out/ii_files/ for
8325 # template instantiation
8326 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8327 $RM out/* && rmdir out
8328 cd ..
8329 $RM -r conftest
8330 $RM conftest*
8331
252b5132 8332fi
81ecdfbb
RW
8333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8334$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
42ecbf5e 8335
20e95c23 8336
20e95c23
DJ
8337
8338
d7040cdb
SE
8339
8340
81ecdfbb
RW
8341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8342$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
d0ac1c44 8343if ${lt_cv_prog_compiler_c_o+:} false; then :
81ecdfbb 8344 $as_echo_n "(cached) " >&6
42ecbf5e 8345else
d7040cdb
SE
8346 lt_cv_prog_compiler_c_o=no
8347 $RM -r conftest 2>/dev/null
8348 mkdir conftest
8349 cd conftest
8350 mkdir out
8351 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8352
8353 lt_compiler_flag="-o out/conftest2.$ac_objext"
8354 # Insert the option either (1) after the last *FLAGS variable, or
8355 # (2) before a word containing "conftest.", or (3) at the end.
8356 # Note that $ac_compile itself does not contain backslashes and begins
8357 # with a dollar sign (not a hyphen), so the echo should work correctly.
8358 lt_compile=`echo "$ac_compile" | $SED \
8359 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8360 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8361 -e 's:$: $lt_compiler_flag:'`
3725885a 8362 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
d7040cdb
SE
8363 (eval "$lt_compile" 2>out/conftest.err)
8364 ac_status=$?
8365 cat out/conftest.err >&5
3725885a 8366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7040cdb
SE
8367 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8368 then
8369 # The compiler can only warn and ignore the option if not recognized
8370 # So say no if there are warnings
3725885a 8371 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
d7040cdb
SE
8372 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8373 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8374 lt_cv_prog_compiler_c_o=yes
8375 fi
8376 fi
8377 chmod u+w . 2>&5
8378 $RM conftest*
8379 # SGI C++ compiler will create directory out/ii_files/ for
8380 # template instantiation
8381 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8382 $RM out/* && rmdir out
8383 cd ..
8384 $RM -r conftest
8385 $RM conftest*
8386
8387fi
81ecdfbb
RW
8388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8389$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
d7040cdb
SE
8390
8391
8392
8393
8394hard_links="nottested"
8395if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8396 # do not overwrite the value of need_locks provided by the user
81ecdfbb
RW
8397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8398$as_echo_n "checking if we can lock with hard links... " >&6; }
d7040cdb
SE
8399 hard_links=yes
8400 $RM conftest*
8401 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8402 touch conftest.a
8403 ln conftest.a conftest.b 2>&5 || hard_links=no
8404 ln conftest.a conftest.b 2>/dev/null && hard_links=no
81ecdfbb
RW
8405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8406$as_echo "$hard_links" >&6; }
d7040cdb 8407 if test "$hard_links" = no; then
81ecdfbb
RW
8408 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8409$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
d7040cdb
SE
8410 need_locks=warn
8411 fi
8412else
8413 need_locks=no
8414fi
8415
8416
8417
8418
8419
8420
81ecdfbb
RW
8421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8422$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
d7040cdb
SE
8423
8424 runpath_var=
8425 allow_undefined_flag=
8426 always_export_symbols=no
8427 archive_cmds=
8428 archive_expsym_cmds=
8429 compiler_needs_object=no
8430 enable_shared_with_static_runtimes=no
8431 export_dynamic_flag_spec=
8432 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8433 hardcode_automatic=no
8434 hardcode_direct=no
8435 hardcode_direct_absolute=no
8436 hardcode_libdir_flag_spec=
8437 hardcode_libdir_flag_spec_ld=
8438 hardcode_libdir_separator=
8439 hardcode_minus_L=no
8440 hardcode_shlibpath_var=unsupported
8441 inherit_rpath=no
8442 link_all_deplibs=unknown
8443 module_cmds=
8444 module_expsym_cmds=
8445 old_archive_from_new_cmds=
8446 old_archive_from_expsyms_cmds=
8447 thread_safe_flag_spec=
8448 whole_archive_flag_spec=
8449 # include_expsyms should be a list of space-separated symbols to be *always*
8450 # included in the symbol list
8451 include_expsyms=
8452 # exclude_expsyms can be an extended regexp of symbols to exclude
8453 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8454 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8455 # as well as any symbol that contains `d'.
718a6fd8 8456 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
d7040cdb
SE
8457 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8458 # platforms (ab)use it in PIC code, but their linkers get confused if
8459 # the symbol is explicitly referenced. Since portable code cannot
8460 # rely on this symbol name, it's probably fine to never include it in
8461 # preloaded symbol tables.
718a6fd8 8462 # Exclude shared library initialization/finalization symbols.
d7040cdb
SE
8463 extract_expsyms_cmds=
8464
8465 case $host_os in
718a6fd8 8466 cygwin* | mingw* | pw32* | cegcc*)
d7040cdb
SE
8467 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8468 # When not using gcc, we currently assume that we are using
8469 # Microsoft Visual C++.
8470 if test "$GCC" != yes; then
8471 with_gnu_ld=no
8472 fi
8473 ;;
8474 interix*)
8475 # we just hope/assume this is gcc and not c89 (= MSVC++)
8476 with_gnu_ld=yes
8477 ;;
8478 openbsd*)
8479 with_gnu_ld=no
8480 ;;
8481 esac
8482
8483 ld_shlibs=yes
3725885a
RW
8484
8485 # On some targets, GNU ld is compatible enough with the native linker
8486 # that we're better off using the native interface for both.
8487 lt_use_gnu_ld_interface=no
d7040cdb 8488 if test "$with_gnu_ld" = yes; then
3725885a
RW
8489 case $host_os in
8490 aix*)
8491 # The AIX port of GNU ld has always aspired to compatibility
8492 # with the native linker. However, as the warning in the GNU ld
8493 # block says, versions before 2.19.5* couldn't really create working
8494 # shared libraries, regardless of the interface used.
8495 case `$LD -v 2>&1` in
8496 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8497 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8498 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8499 *)
8500 lt_use_gnu_ld_interface=yes
8501 ;;
8502 esac
8503 ;;
8504 *)
8505 lt_use_gnu_ld_interface=yes
8506 ;;
8507 esac
8508 fi
8509
8510 if test "$lt_use_gnu_ld_interface" = yes; then
d7040cdb
SE
8511 # If archive_cmds runs LD, not CC, wlarc should be empty
8512 wlarc='${wl}'
8513
8514 # Set some defaults for GNU ld with shared library support. These
8515 # are reset later if shared libraries are not supported. Putting them
8516 # here allows them to be overridden if necessary.
8517 runpath_var=LD_RUN_PATH
8518 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8519 export_dynamic_flag_spec='${wl}--export-dynamic'
8520 # ancient GNU ld didn't support --whole-archive et. al.
8521 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8522 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8523 else
8524 whole_archive_flag_spec=
8525 fi
8526 supports_anon_versioning=no
8527 case `$LD -v 2>&1` in
3725885a 8528 *GNU\ gold*) supports_anon_versioning=yes ;;
d7040cdb
SE
8529 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8530 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8531 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8532 *\ 2.11.*) ;; # other 2.11 versions
8533 *) supports_anon_versioning=yes ;;
8534 esac
8535
8536 # See if GNU ld supports shared libraries.
8537 case $host_os in
50e7d84b 8538 aix[3-9]*)
d7040cdb
SE
8539 # On AIX/PPC, the GNU linker is very broken
8540 if test "$host_cpu" != ia64; then
8541 ld_shlibs=no
8542 cat <<_LT_EOF 1>&2
8543
3725885a 8544*** Warning: the GNU linker, at least up to release 2.19, is reported
d7040cdb
SE
8545*** to be unable to reliably create shared libraries on AIX.
8546*** Therefore, libtool is disabling shared libraries support. If you
3725885a
RW
8547*** really care for shared libraries, you may want to install binutils
8548*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8549*** You will then need to restart the configuration process.
d7040cdb
SE
8550
8551_LT_EOF
8552 fi
8553 ;;
8554
8555 amigaos*)
718a6fd8
SE
8556 case $host_cpu in
8557 powerpc)
8558 # see comment about AmigaOS4 .so support
8559 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8560 archive_expsym_cmds=''
8561 ;;
8562 m68k)
8563 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)'
8564 hardcode_libdir_flag_spec='-L$libdir'
8565 hardcode_minus_L=yes
8566 ;;
8567 esac
d7040cdb
SE
8568 ;;
8569
8570 beos*)
8571 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8572 allow_undefined_flag=unsupported
8573 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8574 # support --undefined. This deserves some investigation. FIXME
8575 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8576 else
8577 ld_shlibs=no
8578 fi
8579 ;;
8580
718a6fd8 8581 cygwin* | mingw* | pw32* | cegcc*)
d7040cdb
SE
8582 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8583 # as there is no search path for DLLs.
8584 hardcode_libdir_flag_spec='-L$libdir'
3725885a 8585 export_dynamic_flag_spec='${wl}--export-all-symbols'
d7040cdb
SE
8586 allow_undefined_flag=unsupported
8587 always_export_symbols=no
8588 enable_shared_with_static_runtimes=yes
f2c621e4 8589 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
8590
8591 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8592 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8593 # If the export-symbols file already is a .def file (1st line
8594 # is EXPORTS), use it as is; otherwise, prepend...
8595 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8596 cp $export_symbols $output_objdir/$soname.def;
8597 else
8598 echo EXPORTS > $output_objdir/$soname.def;
8599 cat $export_symbols >> $output_objdir/$soname.def;
8600 fi~
8601 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8602 else
8603 ld_shlibs=no
8604 fi
8605 ;;
8606
3725885a
RW
8607 haiku*)
8608 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8609 link_all_deplibs=yes
8610 ;;
8611
d7040cdb
SE
8612 interix[3-9]*)
8613 hardcode_direct=no
8614 hardcode_shlibpath_var=no
8615 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8616 export_dynamic_flag_spec='${wl}-E'
8617 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8618 # Instead, shared libraries are loaded at an image base (0x10000000 by
8619 # default) and relocated if they conflict, which is a slow very memory
8620 # consuming and fragmenting process. To avoid this, we pick a random,
8621 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8622 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8623 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8624 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'
8625 ;;
8626
6a6859cb 8627 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
d7040cdb
SE
8628 tmp_diet=no
8629 if test "$host_os" = linux-dietlibc; then
8630 case $cc_basename in
8631 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8632 esac
8633 fi
8634 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8635 && test "$tmp_diet" = no
8636 then
6e733cce 8637 tmp_addflag=' $pic_flag'
718a6fd8 8638 tmp_sharedflag='-shared'
d7040cdb
SE
8639 case $cc_basename,$host_cpu in
8640 pgcc*) # Portland Group C compiler
3725885a 8641 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
8642 tmp_addflag=' $pic_flag'
8643 ;;
3725885a
RW
8644 pgf77* | pgf90* | pgf95* | pgfortran*)
8645 # Portland Group f77 and f90 compilers
8646 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
8647 tmp_addflag=' $pic_flag -Mnomain' ;;
8648 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8649 tmp_addflag=' -i_dynamic' ;;
8650 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8651 tmp_addflag=' -i_dynamic -nofor_main' ;;
8652 ifc* | ifort*) # Intel Fortran compiler
8653 tmp_addflag=' -nofor_main' ;;
718a6fd8
SE
8654 lf95*) # Lahey Fortran 8.1
8655 whole_archive_flag_spec=
8656 tmp_sharedflag='--shared' ;;
3725885a 8657 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
718a6fd8
SE
8658 tmp_sharedflag='-qmkshrobj'
8659 tmp_addflag= ;;
3725885a
RW
8660 nvcc*) # Cuda Compiler Driver 2.2
8661 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'
8662 compiler_needs_object=yes
8663 ;;
d7040cdb
SE
8664 esac
8665 case `$CC -V 2>&1 | sed 5q` in
8666 *Sun\ C*) # Sun C 5.9
3725885a 8667 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
8668 compiler_needs_object=yes
8669 tmp_sharedflag='-G' ;;
8670 *Sun\ F*) # Sun Fortran 8.3
8671 tmp_sharedflag='-G' ;;
d7040cdb
SE
8672 esac
8673 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8674
8675 if test "x$supports_anon_versioning" = xyes; then
8676 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8677 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8678 echo "local: *; };" >> $output_objdir/$libname.ver~
8679 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8680 fi
718a6fd8
SE
8681
8682 case $cc_basename in
3725885a 8683 xlf* | bgf* | bgxlf* | mpixlf*)
718a6fd8
SE
8684 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8685 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8686 hardcode_libdir_flag_spec=
8687 hardcode_libdir_flag_spec_ld='-rpath $libdir'
f2c621e4 8688 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
718a6fd8
SE
8689 if test "x$supports_anon_versioning" = xyes; then
8690 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8691 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8692 echo "local: *; };" >> $output_objdir/$libname.ver~
f2c621e4 8693 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
718a6fd8
SE
8694 fi
8695 ;;
8696 esac
d7040cdb
SE
8697 else
8698 ld_shlibs=no
8699 fi
8700 ;;
8701
8702 netbsd*)
8703 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8704 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8705 wlarc=
8706 else
f2c621e4
AS
8707 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8708 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
d7040cdb
SE
8709 fi
8710 ;;
8711
8712 solaris*)
8713 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8714 ld_shlibs=no
8715 cat <<_LT_EOF 1>&2
8716
8717*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8718*** create shared libraries on Solaris systems. Therefore, libtool
8719*** is disabling shared libraries support. We urge you to upgrade GNU
8720*** binutils to release 2.9.1 or newer. Another option is to modify
8721*** your PATH or compiler configuration so that the native linker is
8722*** used, and then restart.
8723
8724_LT_EOF
8725 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
f2c621e4
AS
8726 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8727 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
d7040cdb
SE
8728 else
8729 ld_shlibs=no
8730 fi
8731 ;;
8732
8733 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8734 case `$LD -v 2>&1` in
8735 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8736 ld_shlibs=no
8737 cat <<_LT_EOF 1>&2
8738
8739*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8740*** reliably create shared libraries on SCO systems. Therefore, libtool
8741*** is disabling shared libraries support. We urge you to upgrade GNU
8742*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8743*** your PATH or compiler configuration so that the native linker is
8744*** used, and then restart.
8745
8746_LT_EOF
8747 ;;
8748 *)
8749 # For security reasons, it is highly recommended that you always
8750 # use absolute paths for naming shared libraries, and exclude the
8751 # DT_RUNPATH tag from executables and libraries. But doing so
8752 # requires that you compile everything twice, which is a pain.
8753 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8754 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8755 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8756 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8757 else
8758 ld_shlibs=no
8759 fi
8760 ;;
8761 esac
8762 ;;
8763
8764 sunos4*)
8765 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8766 wlarc=
8767 hardcode_direct=yes
8768 hardcode_shlibpath_var=no
8769 ;;
8770
8771 *)
8772 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
f2c621e4
AS
8773 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8774 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
d7040cdb
SE
8775 else
8776 ld_shlibs=no
8777 fi
8778 ;;
8779 esac
8780
8781 if test "$ld_shlibs" = no; then
8782 runpath_var=
8783 hardcode_libdir_flag_spec=
8784 export_dynamic_flag_spec=
8785 whole_archive_flag_spec=
8786 fi
8787 else
8788 # PORTME fill in a description of your system's linker (not GNU ld)
8789 case $host_os in
8790 aix3*)
8791 allow_undefined_flag=unsupported
8792 always_export_symbols=yes
8793 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'
8794 # Note: this linker hardcodes the directories in LIBPATH if there
8795 # are no directories specified by -L.
8796 hardcode_minus_L=yes
8797 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8798 # Neither direct hardcoding nor static linking is supported with a
8799 # broken collect2.
8800 hardcode_direct=unsupported
8801 fi
8802 ;;
8803
50e7d84b 8804 aix[4-9]*)
d7040cdb
SE
8805 if test "$host_cpu" = ia64; then
8806 # On IA64, the linker does run time linking by default, so we don't
8807 # have to do anything special.
8808 aix_use_runtimelinking=no
8809 exp_sym_flag='-Bexport'
8810 no_entry_flag=""
8811 else
8812 # If we're using GNU nm, then we don't want the "-C" option.
8813 # -C means demangle to AIX nm, but means don't demangle with GNU nm
3725885a
RW
8814 # Also, AIX nm treats weak defined symbols like other global
8815 # defined symbols, whereas GNU nm marks them as "W".
d7040cdb 8816 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
3725885a 8817 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 8818 else
5c14705f 8819 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
8820 fi
8821 aix_use_runtimelinking=no
8822
8823 # Test if we are trying to use run time linking or normal
8824 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8825 # need to do runtime linking.
50e7d84b 8826 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
d7040cdb
SE
8827 for ld_flag in $LDFLAGS; do
8828 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8829 aix_use_runtimelinking=yes
8830 break
8831 fi
8832 done
8833 ;;
8834 esac
8835
8836 exp_sym_flag='-bexport'
8837 no_entry_flag='-bnoentry'
8838 fi
8839
8840 # When large executables or shared objects are built, AIX ld can
8841 # have problems creating the table of contents. If linking a library
8842 # or program results in "error TOC overflow" add -mminimal-toc to
8843 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8844 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8845
8846 archive_cmds=''
8847 hardcode_direct=yes
8848 hardcode_direct_absolute=yes
8849 hardcode_libdir_separator=':'
8850 link_all_deplibs=yes
8851 file_list_spec='${wl}-f,'
8852
8853 if test "$GCC" = yes; then
8854 case $host_os in aix4.[012]|aix4.[012].*)
8855 # We only want to do this on AIX 4.2 and lower, the check
8856 # below for broken collect2 doesn't work under 4.3+
8857 collect2name=`${CC} -print-prog-name=collect2`
8858 if test -f "$collect2name" &&
8859 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8860 then
8861 # We have reworked collect2
8862 :
8863 else
8864 # We have old collect2
8865 hardcode_direct=unsupported
8866 # It fails to find uninstalled libraries when the uninstalled
8867 # path is not listed in the libpath. Setting hardcode_minus_L
8868 # to unsupported forces relinking
8869 hardcode_minus_L=yes
8870 hardcode_libdir_flag_spec='-L$libdir'
8871 hardcode_libdir_separator=
8872 fi
8873 ;;
8874 esac
8875 shared_flag='-shared'
8876 if test "$aix_use_runtimelinking" = yes; then
8877 shared_flag="$shared_flag "'${wl}-G'
8878 fi
8879 else
8880 # not using gcc
8881 if test "$host_cpu" = ia64; then
8882 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8883 # chokes on -Wl,-G. The following line is correct:
8884 shared_flag='-G'
8885 else
8886 if test "$aix_use_runtimelinking" = yes; then
8887 shared_flag='${wl}-G'
8888 else
8889 shared_flag='${wl}-bM:SRE'
8890 fi
8891 fi
8892 fi
8893
718a6fd8 8894 export_dynamic_flag_spec='${wl}-bexpall'
d7040cdb
SE
8895 # It seems that -bexpall does not export symbols beginning with
8896 # underscore (_), so it is better to generate a list of symbols to export.
8897 always_export_symbols=yes
8898 if test "$aix_use_runtimelinking" = yes; then
8899 # Warning - without using the other runtime loading flags (-brtl),
8900 # -berok will link without error, but may produce a broken library.
8901 allow_undefined_flag='-berok'
8902 # Determine the default libpath from the value encoded in an
8903 # empty executable.
f2c621e4 8904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e 8905/* end confdefs.h. */
d7040cdb
SE
8906
8907int
8908main ()
8909{
8910
8911 ;
8912 return 0;
8913}
42ecbf5e 8914_ACEOF
81ecdfbb 8915if ac_fn_c_try_link "$LINENO"; then :
d7040cdb 8916
f2c621e4
AS
8917lt_aix_libpath_sed='
8918 /Import File Strings/,/^$/ {
8919 /^0/ {
8920 s/^0 *\(.*\)$/\1/
8921 p
8922 }
8923 }'
8924aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8925# Check for a 64-bit object if we didn't find anything.
8926if test -z "$aix_libpath"; then
8927 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8928fi
252b5132 8929fi
81ecdfbb
RW
8930rm -f core conftest.err conftest.$ac_objext \
8931 conftest$ac_exeext conftest.$ac_ext
f2c621e4 8932if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
252b5132 8933
d7040cdb 8934 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
3725885a 8935 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
8936 else
8937 if test "$host_cpu" = ia64; then
8938 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8939 allow_undefined_flag="-z nodefs"
8940 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"
8941 else
8942 # Determine the default libpath from the value encoded in an
8943 # empty executable.
f2c621e4 8944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e 8945/* end confdefs.h. */
d7040cdb
SE
8946
8947int
8948main ()
8949{
8950
8951 ;
8952 return 0;
8953}
42ecbf5e 8954_ACEOF
81ecdfbb 8955if ac_fn_c_try_link "$LINENO"; then :
d7040cdb 8956
f2c621e4
AS
8957lt_aix_libpath_sed='
8958 /Import File Strings/,/^$/ {
8959 /^0/ {
8960 s/^0 *\(.*\)$/\1/
8961 p
8962 }
8963 }'
8964aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8965# Check for a 64-bit object if we didn't find anything.
8966if test -z "$aix_libpath"; then
8967 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8968fi
252b5132 8969fi
81ecdfbb
RW
8970rm -f core conftest.err conftest.$ac_objext \
8971 conftest$ac_exeext conftest.$ac_ext
f2c621e4 8972if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
d7040cdb
SE
8973
8974 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8975 # Warning - without using the other run time loading flags,
8976 # -berok will link without error, but may produce a broken library.
8977 no_undefined_flag=' ${wl}-bernotok'
8978 allow_undefined_flag=' ${wl}-berok'
3725885a
RW
8979 if test "$with_gnu_ld" = yes; then
8980 # We only use this code for GNU lds that support --whole-archive.
8981 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8982 else
8983 # Exported symbols can be pulled into shared objects from archives
8984 whole_archive_flag_spec='$convenience'
8985 fi
d7040cdb
SE
8986 archive_cmds_need_lc=yes
8987 # This is similar to how AIX traditionally builds its shared libraries.
8988 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'
8989 fi
8990 fi
8991 ;;
42ecbf5e 8992
d7040cdb 8993 amigaos*)
718a6fd8
SE
8994 case $host_cpu in
8995 powerpc)
8996 # see comment about AmigaOS4 .so support
8997 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8998 archive_expsym_cmds=''
8999 ;;
9000 m68k)
9001 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)'
9002 hardcode_libdir_flag_spec='-L$libdir'
9003 hardcode_minus_L=yes
9004 ;;
9005 esac
d7040cdb 9006 ;;
252b5132 9007
d7040cdb
SE
9008 bsdi[45]*)
9009 export_dynamic_flag_spec=-rdynamic
9010 ;;
252b5132 9011
718a6fd8 9012 cygwin* | mingw* | pw32* | cegcc*)
d7040cdb
SE
9013 # When not using gcc, we currently assume that we are using
9014 # Microsoft Visual C++.
9015 # hardcode_libdir_flag_spec is actually meaningless, as there is
9016 # no search path for DLLs.
f2c621e4
AS
9017 hardcode_libdir_flag_spec=' '
9018 allow_undefined_flag=unsupported
9019 # Tell ltmain to make .lib files, not .a files.
9020 libext=lib
9021 # Tell ltmain to make .dll files, not .so files.
9022 shrext_cmds=".dll"
9023 # FIXME: Setting linknames here is a bad hack.
9024 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9025 # The linker will automatically build a .lib file if we build a DLL.
9026 old_archive_from_new_cmds='true'
9027 # FIXME: Should let the user specify the lib program.
9028 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9029 fix_srcfile_path='`cygpath -w "$srcfile"`'
9030 enable_shared_with_static_runtimes=yes
d7040cdb 9031 ;;
252b5132 9032
d7040cdb 9033 darwin* | rhapsody*)
c46f8c51 9034
718a6fd8
SE
9035
9036 archive_cmds_need_lc=no
9037 hardcode_direct=no
9038 hardcode_automatic=yes
9039 hardcode_shlibpath_var=unsupported
3725885a
RW
9040 if test "$lt_cv_ld_force_load" = "yes"; then
9041 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\"`'
9042 else
9043 whole_archive_flag_spec=''
9044 fi
718a6fd8
SE
9045 link_all_deplibs=yes
9046 allow_undefined_flag="$_lt_dar_allow_undefined"
9047 case $cc_basename in
9048 ifort*) _lt_dar_can_shared=yes ;;
9049 *) _lt_dar_can_shared=$GCC ;;
9050 esac
9051 if test "$_lt_dar_can_shared" = "yes"; then
3725885a 9052 output_verbose_link_cmd=func_echo_all
718a6fd8
SE
9053 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9054 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9055 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}"
9056 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}"
9057
9058 else
9059 ld_shlibs=no
9060 fi
9061
d7040cdb 9062 ;;
42ecbf5e 9063
d7040cdb
SE
9064 dgux*)
9065 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9066 hardcode_libdir_flag_spec='-L$libdir'
9067 hardcode_shlibpath_var=no
9068 ;;
252b5132 9069
d7040cdb
SE
9070 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9071 # support. Future versions do this automatically, but an explicit c++rt0.o
9072 # does not break anything, and helps significantly (at the cost of a little
9073 # extra space).
9074 freebsd2.2*)
9075 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9076 hardcode_libdir_flag_spec='-R$libdir'
9077 hardcode_direct=yes
9078 hardcode_shlibpath_var=no
9079 ;;
252b5132 9080
d7040cdb 9081 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6d2920c8 9082 freebsd2.*)
d7040cdb
SE
9083 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9084 hardcode_direct=yes
9085 hardcode_minus_L=yes
9086 hardcode_shlibpath_var=no
9087 ;;
42ecbf5e 9088
d7040cdb
SE
9089 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9090 freebsd* | dragonfly*)
f2c621e4 9091 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
d7040cdb
SE
9092 hardcode_libdir_flag_spec='-R$libdir'
9093 hardcode_direct=yes
9094 hardcode_shlibpath_var=no
9095 ;;
252b5132 9096
d7040cdb
SE
9097 hpux9*)
9098 if test "$GCC" = yes; then
f2c621e4 9099 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
9100 else
9101 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'
9102 fi
9103 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9104 hardcode_libdir_separator=:
9105 hardcode_direct=yes
9106
9107 # hardcode_minus_L: Not really in the search PATH,
9108 # but as the default location of the library.
9109 hardcode_minus_L=yes
9110 export_dynamic_flag_spec='${wl}-E'
9111 ;;
20e95c23 9112
d7040cdb 9113 hpux10*)
3725885a 9114 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
f2c621e4 9115 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
d7040cdb
SE
9116 else
9117 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9118 fi
9119 if test "$with_gnu_ld" = no; then
9120 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9121 hardcode_libdir_flag_spec_ld='+b $libdir'
9122 hardcode_libdir_separator=:
9123 hardcode_direct=yes
9124 hardcode_direct_absolute=yes
9125 export_dynamic_flag_spec='${wl}-E'
9126 # hardcode_minus_L: Not really in the search PATH,
9127 # but as the default location of the library.
9128 hardcode_minus_L=yes
9129 fi
9130 ;;
20e95c23 9131
d7040cdb 9132 hpux11*)
3725885a 9133 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
d7040cdb
SE
9134 case $host_cpu in
9135 hppa*64*)
6a6859cb 9136 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
d7040cdb
SE
9137 ;;
9138 ia64*)
f2c621e4 9139 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
d7040cdb
SE
9140 ;;
9141 *)
f2c621e4 9142 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
d7040cdb
SE
9143 ;;
9144 esac
9145 else
9146 case $host_cpu in
9147 hppa*64*)
6a6859cb 9148 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
d7040cdb
SE
9149 ;;
9150 ia64*)
9151 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9152 ;;
9153 *)
3725885a
RW
9154
9155 # Older versions of the 11.00 compiler do not understand -b yet
9156 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9158$as_echo_n "checking if $CC understands -b... " >&6; }
d0ac1c44 9159if ${lt_cv_prog_compiler__b+:} false; then :
3725885a
RW
9160 $as_echo_n "(cached) " >&6
9161else
9162 lt_cv_prog_compiler__b=no
9163 save_LDFLAGS="$LDFLAGS"
9164 LDFLAGS="$LDFLAGS -b"
9165 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9166 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9167 # The linker can only warn and ignore the option if not recognized
9168 # So say no if there are warnings
9169 if test -s conftest.err; then
9170 # Append any errors to the config.log.
9171 cat conftest.err 1>&5
9172 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9173 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9174 if diff conftest.exp conftest.er2 >/dev/null; then
9175 lt_cv_prog_compiler__b=yes
9176 fi
9177 else
9178 lt_cv_prog_compiler__b=yes
9179 fi
9180 fi
9181 $RM -r conftest*
9182 LDFLAGS="$save_LDFLAGS"
9183
9184fi
9185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9186$as_echo "$lt_cv_prog_compiler__b" >&6; }
9187
9188if test x"$lt_cv_prog_compiler__b" = xyes; then
9189 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9190else
9191 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9192fi
9193
d7040cdb
SE
9194 ;;
9195 esac
9196 fi
9197 if test "$with_gnu_ld" = no; then
9198 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9199 hardcode_libdir_separator=:
9200
9201 case $host_cpu in
9202 hppa*64*|ia64*)
9203 hardcode_direct=no
9204 hardcode_shlibpath_var=no
9205 ;;
9206 *)
9207 hardcode_direct=yes
9208 hardcode_direct_absolute=yes
9209 export_dynamic_flag_spec='${wl}-E'
9210
9211 # hardcode_minus_L: Not really in the search PATH,
9212 # but as the default location of the library.
9213 hardcode_minus_L=yes
9214 ;;
9215 esac
9216 fi
9217 ;;
9218
9219 irix5* | irix6* | nonstopux*)
9220 if test "$GCC" = yes; then
f2c621e4 9221 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
9222 # Try to use the -exported_symbol ld option, if it does not
9223 # work, assume that -exports_file does not work either and
9224 # implicitly export all symbols.
f2c621e4
AS
9225 save_LDFLAGS="$LDFLAGS"
9226 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
81ecdfbb 9228/* end confdefs.h. */
f2c621e4 9229int foo(void) {}
42ecbf5e 9230_ACEOF
81ecdfbb 9231if ac_fn_c_try_link "$LINENO"; then :
f2c621e4
AS
9232 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'
9233
42ecbf5e 9234fi
81ecdfbb
RW
9235rm -f core conftest.err conftest.$ac_objext \
9236 conftest$ac_exeext conftest.$ac_ext
f2c621e4 9237 LDFLAGS="$save_LDFLAGS"
d7040cdb 9238 else
3725885a
RW
9239 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'
9240 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
9241 fi
9242 archive_cmds_need_lc='no'
9243 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9244 hardcode_libdir_separator=:
9245 inherit_rpath=yes
9246 link_all_deplibs=yes
9247 ;;
42ecbf5e 9248
d7040cdb
SE
9249 netbsd*)
9250 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9251 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9252 else
9253 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9254 fi
9255 hardcode_libdir_flag_spec='-R$libdir'
9256 hardcode_direct=yes
9257 hardcode_shlibpath_var=no
9258 ;;
42ecbf5e 9259
d7040cdb
SE
9260 newsos6)
9261 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9262 hardcode_direct=yes
9263 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9264 hardcode_libdir_separator=:
9265 hardcode_shlibpath_var=no
9266 ;;
42ecbf5e 9267
d7040cdb
SE
9268 *nto* | *qnx*)
9269 ;;
252b5132 9270
d7040cdb 9271 openbsd*)
718a6fd8
SE
9272 if test -f /usr/libexec/ld.so; then
9273 hardcode_direct=yes
9274 hardcode_shlibpath_var=no
9275 hardcode_direct_absolute=yes
9276 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
d7040cdb 9277 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
718a6fd8 9278 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
d7040cdb 9279 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
718a6fd8
SE
9280 export_dynamic_flag_spec='${wl}-E'
9281 else
9282 case $host_os in
9283 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9284 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9285 hardcode_libdir_flag_spec='-R$libdir'
9286 ;;
9287 *)
9288 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9289 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9290 ;;
9291 esac
9292 fi
9293 else
9294 ld_shlibs=no
d7040cdb
SE
9295 fi
9296 ;;
252b5132 9297
d7040cdb
SE
9298 os2*)
9299 hardcode_libdir_flag_spec='-L$libdir'
9300 hardcode_minus_L=yes
9301 allow_undefined_flag=unsupported
3725885a 9302 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
9303 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9304 ;;
2481e6a2 9305
d7040cdb
SE
9306 osf3*)
9307 if test "$GCC" = yes; then
9308 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
3725885a 9309 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
9310 else
9311 allow_undefined_flag=' -expect_unresolved \*'
3725885a 9312 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
9313 fi
9314 archive_cmds_need_lc='no'
9315 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9316 hardcode_libdir_separator=:
9317 ;;
42ecbf5e 9318
d7040cdb
SE
9319 osf4* | osf5*) # as osf3* with the addition of -msym flag
9320 if test "$GCC" = yes; then
9321 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
f2c621e4 9322 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
9323 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9324 else
9325 allow_undefined_flag=' -expect_unresolved \*'
3725885a 9326 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 9327 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 9328 $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 9329
d7040cdb
SE
9330 # Both c and cxx compiler support -rpath directly
9331 hardcode_libdir_flag_spec='-rpath $libdir'
9332 fi
9333 archive_cmds_need_lc='no'
9334 hardcode_libdir_separator=:
9335 ;;
9336
9337 solaris*)
9338 no_undefined_flag=' -z defs'
9339 if test "$GCC" = yes; then
9340 wlarc='${wl}'
f2c621e4 9341 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
d7040cdb 9342 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
f2c621e4 9343 $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
9344 else
9345 case `$CC -V 2>&1` in
9346 *"Compilers 5.0"*)
9347 wlarc=''
9348 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9349 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9350 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9351 ;;
9352 *)
9353 wlarc='${wl}'
9354 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9355 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9356 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9357 ;;
9358 esac
9359 fi
9360 hardcode_libdir_flag_spec='-R$libdir'
9361 hardcode_shlibpath_var=no
9362 case $host_os in
9363 solaris2.[0-5] | solaris2.[0-5].*) ;;
9364 *)
9365 # The compiler driver will combine and reorder linker options,
9366 # but understands `-z linker_flag'. GCC discards it without `$wl',
9367 # but is careful enough not to reorder.
9368 # Supported since Solaris 2.6 (maybe 2.5.1?)
9369 if test "$GCC" = yes; then
9370 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9371 else
9372 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9373 fi
9374 ;;
9375 esac
9376 link_all_deplibs=yes
9377 ;;
9378
9379 sunos4*)
9380 if test "x$host_vendor" = xsequent; then
9381 # Use $CC to link under sequent, because it throws in some extra .o
9382 # files that make .init and .fini sections work.
9383 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9384 else
9385 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9386 fi
9387 hardcode_libdir_flag_spec='-L$libdir'
9388 hardcode_direct=yes
9389 hardcode_minus_L=yes
9390 hardcode_shlibpath_var=no
9391 ;;
9392
9393 sysv4)
9394 case $host_vendor in
9395 sni)
9396 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9397 hardcode_direct=yes # is this really true???
9398 ;;
9399 siemens)
9400 ## LD is ld it makes a PLAMLIB
9401 ## CC just makes a GrossModule.
9402 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9403 reload_cmds='$CC -r -o $output$reload_objs'
9404 hardcode_direct=no
9405 ;;
9406 motorola)
9407 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9408 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9409 ;;
9410 esac
9411 runpath_var='LD_RUN_PATH'
9412 hardcode_shlibpath_var=no
9413 ;;
9414
9415 sysv4.3*)
9416 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9417 hardcode_shlibpath_var=no
9418 export_dynamic_flag_spec='-Bexport'
9419 ;;
9420
9421 sysv4*MP*)
9422 if test -d /usr/nec; then
9423 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9424 hardcode_shlibpath_var=no
9425 runpath_var=LD_RUN_PATH
9426 hardcode_runpath_var=yes
9427 ld_shlibs=yes
9428 fi
9429 ;;
9430
9431 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9432 no_undefined_flag='${wl}-z,text'
9433 archive_cmds_need_lc=no
9434 hardcode_shlibpath_var=no
9435 runpath_var='LD_RUN_PATH'
9436
9437 if test "$GCC" = yes; then
9438 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9439 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9440 else
9441 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9442 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9443 fi
9444 ;;
9445
9446 sysv5* | sco3.2v5* | sco5v6*)
9447 # Note: We can NOT use -z defs as we might desire, because we do not
9448 # link with -lc, and that would cause any symbols used from libc to
9449 # always be unresolved, which means just about no library would
9450 # ever link correctly. If we're not using GNU ld we use -z text
9451 # though, which does catch some bad symbols but isn't as heavy-handed
9452 # as -z defs.
9453 no_undefined_flag='${wl}-z,text'
9454 allow_undefined_flag='${wl}-z,nodefs'
9455 archive_cmds_need_lc=no
9456 hardcode_shlibpath_var=no
9457 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9458 hardcode_libdir_separator=':'
9459 link_all_deplibs=yes
9460 export_dynamic_flag_spec='${wl}-Bexport'
9461 runpath_var='LD_RUN_PATH'
9462
9463 if test "$GCC" = yes; then
9464 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9465 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9466 else
9467 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9468 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9469 fi
9470 ;;
9471
9472 uts4*)
9473 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9474 hardcode_libdir_flag_spec='-L$libdir'
9475 hardcode_shlibpath_var=no
9476 ;;
9477
9478 *)
9479 ld_shlibs=no
9480 ;;
9481 esac
9482
9483 if test x$host_vendor = xsni; then
9484 case $host in
9485 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9486 export_dynamic_flag_spec='${wl}-Blargedynsym'
9487 ;;
9488 esac
9489 fi
9490 fi
9491
81ecdfbb
RW
9492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9493$as_echo "$ld_shlibs" >&6; }
d7040cdb
SE
9494test "$ld_shlibs" = no && can_build_shared=no
9495
9496with_gnu_ld=$with_gnu_ld
9497
9498
9499
9500
9501
9502
9503
9504
9505
9506
9507
9508
9509
9510
9511
9512#
9513# Do we need to explicitly link libc?
9514#
9515case "x$archive_cmds_need_lc" in
9516x|xyes)
9517 # Assume -lc should be added
9518 archive_cmds_need_lc=yes
9519
9520 if test "$enable_shared" = yes && test "$GCC" = yes; then
9521 case $archive_cmds in
9522 *'~'*)
9523 # FIXME: we may have to deal with multi-command sequences.
9524 ;;
9525 '$CC '*)
9526 # Test whether the compiler implicitly links with -lc since on some
9527 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9528 # to ld, don't add -lc before -lgcc.
81ecdfbb
RW
9529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9530$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
d0ac1c44 9531if ${lt_cv_archive_cmds_need_lc+:} false; then :
81ecdfbb 9532 $as_echo_n "(cached) " >&6
39144654
RW
9533else
9534 $RM conftest*
9535 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d7040cdb 9536
81ecdfbb 9537 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
d7040cdb 9538 (eval $ac_compile) 2>&5
20e95c23 9539 ac_status=$?
81ecdfbb
RW
9540 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9541 test $ac_status = 0; } 2>conftest.err; then
39144654
RW
9542 soname=conftest
9543 lib=conftest
9544 libobjs=conftest.$ac_objext
9545 deplibs=
9546 wl=$lt_prog_compiler_wl
9547 pic_flag=$lt_prog_compiler_pic
9548 compiler_flags=-v
9549 linker_flags=-v
9550 verstring=
9551 output_objdir=.
9552 libname=conftest
9553 lt_save_allow_undefined_flag=$allow_undefined_flag
9554 allow_undefined_flag=
81ecdfbb 9555 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
d7040cdb 9556 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20e95c23 9557 ac_status=$?
81ecdfbb
RW
9558 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9559 test $ac_status = 0; }
39144654
RW
9560 then
9561 lt_cv_archive_cmds_need_lc=no
9562 else
9563 lt_cv_archive_cmds_need_lc=yes
9564 fi
9565 allow_undefined_flag=$lt_save_allow_undefined_flag
9566 else
9567 cat conftest.err 1>&5
9568 fi
9569 $RM conftest*
9570
9571fi
81ecdfbb
RW
9572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9573$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
39144654 9574 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
d7040cdb
SE
9575 ;;
9576 esac
9577 fi
9578 ;;
9579esac
9580
9581
9582
9583
9584
9585
9586
9587
9588
9589
9590
9591
9592
9593
9594
9595
9596
9597
9598
9599
9600
9601
9602
9603
9604
9605
9606
9607
9608
9609
9610
9611
9612
9613
9614
9615
9616
9617
9618
9619
9620
9621
9622
9623
9624
9625
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639
9640
9641
9642
9643
9644
9645
9646
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
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
81ecdfbb
RW
9737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9738$as_echo_n "checking dynamic linker characteristics... " >&6; }
718a6fd8
SE
9739
9740if test "$GCC" = yes; then
d7040cdb
SE
9741 case $host_os in
9742 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9743 *) lt_awk_arg="/^libraries:/" ;;
9744 esac
3725885a
RW
9745 case $host_os in
9746 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9747 *) lt_sed_strip_eq="s,=/,/,g" ;;
9748 esac
9749 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9750 case $lt_search_path_spec in
9751 *\;*)
d7040cdb
SE
9752 # if the path contains ";" then we assume it to be the separator
9753 # otherwise default to the standard path separator (i.e. ":") - it is
9754 # assumed that no part of a normal pathname contains ";" but that should
9755 # okay in the real world where ";" in dirpaths is itself problematic.
3725885a
RW
9756 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9757 ;;
9758 *)
9759 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9760 ;;
9761 esac
d7040cdb
SE
9762 # Ok, now we have the path, separated by spaces, we can step through it
9763 # and add multilib dir if necessary.
9764 lt_tmp_lt_search_path_spec=
9765 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9766 for lt_sys_path in $lt_search_path_spec; do
9767 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9768 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9769 else
9770 test -d "$lt_sys_path" && \
9771 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9772 fi
9773 done
3725885a 9774 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
d7040cdb
SE
9775BEGIN {RS=" "; FS="/|\n";} {
9776 lt_foo="";
9777 lt_count=0;
9778 for (lt_i = NF; lt_i > 0; lt_i--) {
9779 if ($lt_i != "" && $lt_i != ".") {
9780 if ($lt_i == "..") {
9781 lt_count++;
9782 } else {
9783 if (lt_count == 0) {
9784 lt_foo="/" $lt_i lt_foo;
9785 } else {
9786 lt_count--;
9787 }
9788 }
9789 }
9790 }
9791 if (lt_foo != "") { lt_freq[lt_foo]++; }
9792 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9793}'`
3725885a
RW
9794 # AWK program above erroneously prepends '/' to C:/dos/paths
9795 # for these hosts.
9796 case $host_os in
9797 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9798 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9799 esac
9800 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
d7040cdb
SE
9801else
9802 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9803fi
9804library_names_spec=
9805libname_spec='lib$name'
9806soname_spec=
9807shrext_cmds=".so"
9808postinstall_cmds=
9809postuninstall_cmds=
9810finish_cmds=
9811finish_eval=
9812shlibpath_var=
9813shlibpath_overrides_runpath=unknown
9814version_type=none
9815dynamic_linker="$host_os ld.so"
9816sys_lib_dlsearch_path_spec="/lib /usr/lib"
9817need_lib_prefix=unknown
9818hardcode_into_libs=no
9819
9820# when you set need_version to no, make sure it does not cause -set_version
9821# flags to be left without arguments
9822need_version=unknown
9823
9824case $host_os in
9825aix3*)
9826 version_type=linux
9827 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9828 shlibpath_var=LIBPATH
9829
9830 # AIX 3 has no versioning support, so we append a major version to the name.
9831 soname_spec='${libname}${release}${shared_ext}$major'
9832 ;;
9833
50e7d84b 9834aix[4-9]*)
d7040cdb
SE
9835 version_type=linux
9836 need_lib_prefix=no
9837 need_version=no
9838 hardcode_into_libs=yes
9839 if test "$host_cpu" = ia64; then
9840 # AIX 5 supports IA64
9841 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9842 shlibpath_var=LD_LIBRARY_PATH
9843 else
9844 # With GCC up to 2.95.x, collect2 would create an import file
9845 # for dependence libraries. The import file would start with
9846 # the line `#! .'. This would cause the generated library to
9847 # depend on `.', always an invalid library. This was fixed in
9848 # development snapshots of GCC prior to 3.0.
9849 case $host_os in
9850 aix4 | aix4.[01] | aix4.[01].*)
9851 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9852 echo ' yes '
9853 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9854 :
9855 else
9856 can_build_shared=no
9857 fi
9858 ;;
9859 esac
9860 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9861 # soname into executable. Probably we can add versioning support to
9862 # collect2, so additional links can be useful in future.
9863 if test "$aix_use_runtimelinking" = yes; then
9864 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9865 # instead of lib<name>.a to let people know that these are not
9866 # typical AIX shared libraries.
9867 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9868 else
9869 # We preserve .a as extension for shared libraries through AIX4.2
9870 # and later when we are not doing run time linking.
9871 library_names_spec='${libname}${release}.a $libname.a'
9872 soname_spec='${libname}${release}${shared_ext}$major'
9873 fi
9874 shlibpath_var=LIBPATH
9875 fi
9876 ;;
9877
9878amigaos*)
718a6fd8
SE
9879 case $host_cpu in
9880 powerpc)
9881 # Since July 2007 AmigaOS4 officially supports .so libraries.
9882 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9884 ;;
9885 m68k)
d7040cdb
SE
9886 library_names_spec='$libname.ixlibrary $libname.a'
9887 # Create ${libname}_ixlibrary.a entries in /sys/libs.
3725885a 9888 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
9889 ;;
9890 esac
d7040cdb
SE
9891 ;;
9892
9893beos*)
9894 library_names_spec='${libname}${shared_ext}'
9895 dynamic_linker="$host_os ld.so"
9896 shlibpath_var=LIBRARY_PATH
9897 ;;
9898
9899bsdi[45]*)
9900 version_type=linux
9901 need_version=no
9902 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9903 soname_spec='${libname}${release}${shared_ext}$major'
9904 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9905 shlibpath_var=LD_LIBRARY_PATH
9906 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9907 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9908 # the default ld.so.conf also contains /usr/contrib/lib and
9909 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9910 # libtool to hard-code these into programs
9911 ;;
9912
718a6fd8 9913cygwin* | mingw* | pw32* | cegcc*)
d7040cdb
SE
9914 version_type=windows
9915 shrext_cmds=".dll"
9916 need_version=no
9917 need_lib_prefix=no
9918
f2c621e4
AS
9919 case $GCC,$host_os in
9920 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
d7040cdb
SE
9921 library_names_spec='$libname.dll.a'
9922 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9923 postinstall_cmds='base_file=`basename \${file}`~
9924 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9925 dldir=$destdir/`dirname \$dlpath`~
9926 test -d \$dldir || mkdir -p \$dldir~
9927 $install_prog $dir/$dlname \$dldir/$dlname~
9928 chmod a+x \$dldir/$dlname~
9929 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9930 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9931 fi'
9932 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9933 dlpath=$dir/\$dldll~
9934 $RM \$dlpath'
9935 shlibpath_overrides_runpath=yes
9936
9937 case $host_os in
9938 cygwin*)
9939 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9940 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
3725885a
RW
9941
9942 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
d7040cdb 9943 ;;
718a6fd8 9944 mingw* | cegcc*)
d7040cdb
SE
9945 # MinGW DLLs use traditional 'lib' prefix
9946 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
d7040cdb
SE
9947 ;;
9948 pw32*)
9949 # pw32 DLLs use 'pw' prefix rather than 'lib'
9950 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9951 ;;
9952 esac
9953 ;;
9954
9955 *)
9956 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9957 ;;
9958 esac
f2c621e4 9959 dynamic_linker='Win32 ld.exe'
d7040cdb
SE
9960 # FIXME: first we should search . and the directory the executable is in
9961 shlibpath_var=PATH
9962 ;;
9963
9964darwin* | rhapsody*)
9965 dynamic_linker="$host_os dyld"
9966 version_type=darwin
9967 need_lib_prefix=no
9968 need_version=no
9969 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9970 soname_spec='${libname}${release}${major}$shared_ext'
9971 shlibpath_overrides_runpath=yes
9972 shlibpath_var=DYLD_LIBRARY_PATH
9973 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9974
9975 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9976 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9977 ;;
9978
9979dgux*)
9980 version_type=linux
9981 need_lib_prefix=no
9982 need_version=no
9983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9984 soname_spec='${libname}${release}${shared_ext}$major'
9985 shlibpath_var=LD_LIBRARY_PATH
9986 ;;
9987
d7040cdb
SE
9988freebsd* | dragonfly*)
9989 # DragonFly does not have aout. When/if they implement a new
9990 # versioning mechanism, adjust this.
9991 if test -x /usr/bin/objformat; then
9992 objformat=`/usr/bin/objformat`
9993 else
9994 case $host_os in
6d2920c8 9995 freebsd[23].*) objformat=aout ;;
d7040cdb
SE
9996 *) objformat=elf ;;
9997 esac
9998 fi
9999 version_type=freebsd-$objformat
10000 case $version_type in
10001 freebsd-elf*)
10002 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10003 need_version=no
10004 need_lib_prefix=no
10005 ;;
10006 freebsd-*)
10007 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10008 need_version=yes
10009 ;;
10010 esac
10011 shlibpath_var=LD_LIBRARY_PATH
10012 case $host_os in
6d2920c8 10013 freebsd2.*)
d7040cdb
SE
10014 shlibpath_overrides_runpath=yes
10015 ;;
10016 freebsd3.[01]* | freebsdelf3.[01]*)
10017 shlibpath_overrides_runpath=yes
10018 hardcode_into_libs=yes
10019 ;;
10020 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10021 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10022 shlibpath_overrides_runpath=no
10023 hardcode_into_libs=yes
10024 ;;
10025 *) # from 4.6 on, and DragonFly
10026 shlibpath_overrides_runpath=yes
10027 hardcode_into_libs=yes
10028 ;;
10029 esac
10030 ;;
10031
3725885a
RW
10032haiku*)
10033 version_type=linux
10034 need_lib_prefix=no
10035 need_version=no
10036 dynamic_linker="$host_os runtime_loader"
10037 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10038 soname_spec='${libname}${release}${shared_ext}$major'
10039 shlibpath_var=LIBRARY_PATH
10040 shlibpath_overrides_runpath=yes
d85e70a3 10041 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
3725885a
RW
10042 hardcode_into_libs=yes
10043 ;;
10044
d7040cdb
SE
10045hpux9* | hpux10* | hpux11*)
10046 # Give a soname corresponding to the major version so that dld.sl refuses to
10047 # link against other versions.
10048 version_type=sunos
10049 need_lib_prefix=no
10050 need_version=no
10051 case $host_cpu in
10052 ia64*)
10053 shrext_cmds='.so'
10054 hardcode_into_libs=yes
10055 dynamic_linker="$host_os dld.so"
10056 shlibpath_var=LD_LIBRARY_PATH
10057 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10059 soname_spec='${libname}${release}${shared_ext}$major'
10060 if test "X$HPUX_IA64_MODE" = X32; then
10061 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10062 else
10063 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10064 fi
10065 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10066 ;;
10067 hppa*64*)
10068 shrext_cmds='.sl'
10069 hardcode_into_libs=yes
10070 dynamic_linker="$host_os dld.sl"
10071 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10072 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10074 soname_spec='${libname}${release}${shared_ext}$major'
10075 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10076 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10077 ;;
10078 *)
10079 shrext_cmds='.sl'
10080 dynamic_linker="$host_os dld.sl"
10081 shlibpath_var=SHLIB_PATH
10082 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10084 soname_spec='${libname}${release}${shared_ext}$major'
10085 ;;
10086 esac
3725885a 10087 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
d7040cdb 10088 postinstall_cmds='chmod 555 $lib'
3725885a
RW
10089 # or fails outright, so override atomically:
10090 install_override_mode=555
d7040cdb
SE
10091 ;;
10092
10093interix[3-9]*)
10094 version_type=linux
10095 need_lib_prefix=no
10096 need_version=no
10097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10098 soname_spec='${libname}${release}${shared_ext}$major'
10099 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10100 shlibpath_var=LD_LIBRARY_PATH
10101 shlibpath_overrides_runpath=no
10102 hardcode_into_libs=yes
10103 ;;
10104
10105irix5* | irix6* | nonstopux*)
10106 case $host_os in
10107 nonstopux*) version_type=nonstopux ;;
10108 *)
10109 if test "$lt_cv_prog_gnu_ld" = yes; then
10110 version_type=linux
10111 else
10112 version_type=irix
10113 fi ;;
10114 esac
10115 need_lib_prefix=no
10116 need_version=no
10117 soname_spec='${libname}${release}${shared_ext}$major'
10118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10119 case $host_os in
10120 irix5* | nonstopux*)
10121 libsuff= shlibsuff=
10122 ;;
10123 *)
10124 case $LD in # libtool.m4 will add one of these switches to LD
10125 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10126 libsuff= shlibsuff= libmagic=32-bit;;
10127 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10128 libsuff=32 shlibsuff=N32 libmagic=N32;;
10129 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10130 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10131 *) libsuff= shlibsuff= libmagic=never-match;;
10132 esac
10133 ;;
10134 esac
10135 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10136 shlibpath_overrides_runpath=no
10137 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10138 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10139 hardcode_into_libs=yes
10140 ;;
10141
10142# No shared lib support for Linux oldld, aout, or coff.
10143linux*oldld* | linux*aout* | linux*coff*)
10144 dynamic_linker=no
10145 ;;
10146
10147# This must be Linux ELF.
6a6859cb
AM
10148
10149# uclinux* changes (here and below) have been submitted to the libtool
10150# project, but have not yet been accepted: they are GCC-local changes
10151# for the time being. (See
10152# https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
10153linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
d7040cdb
SE
10154 version_type=linux
10155 need_lib_prefix=no
10156 need_version=no
10157 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10158 soname_spec='${libname}${release}${shared_ext}$major'
10159 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10160 shlibpath_var=LD_LIBRARY_PATH
10161 shlibpath_overrides_runpath=no
39144654 10162
d7040cdb 10163 # Some binutils ld are patched to set DT_RUNPATH
d0ac1c44 10164 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
81ecdfbb 10165 $as_echo_n "(cached) " >&6
39144654
RW
10166else
10167 lt_cv_shlibpath_overrides_runpath=no
10168 save_LDFLAGS=$LDFLAGS
10169 save_libdir=$libdir
10170 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10171 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
81ecdfbb 10172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb
SE
10173/* end confdefs.h. */
10174
10175int
10176main ()
10177{
10178
10179 ;
10180 return 0;
10181}
10182_ACEOF
81ecdfbb
RW
10183if ac_fn_c_try_link "$LINENO"; then :
10184 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
39144654 10185 lt_cv_shlibpath_overrides_runpath=yes
d7040cdb 10186fi
d7040cdb 10187fi
81ecdfbb
RW
10188rm -f core conftest.err conftest.$ac_objext \
10189 conftest$ac_exeext conftest.$ac_ext
39144654
RW
10190 LDFLAGS=$save_LDFLAGS
10191 libdir=$save_libdir
10192
10193fi
10194
10195 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
d7040cdb
SE
10196
10197 # This implies no fast_install, which is unacceptable.
10198 # Some rework will be needed to allow for fast_install
10199 # before this can be enabled.
10200 hardcode_into_libs=yes
10201
10202 # Append ld.so.conf contents to the search path
10203 if test -f /etc/ld.so.conf; then
3725885a 10204 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 10205 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
d7040cdb
SE
10206 fi
10207
10208 # We used to test for /lib/ld.so.1 and disable shared libraries on
10209 # powerpc, because MkLinux only supported shared libraries with the
10210 # GNU dynamic linker. Since this was broken with cross compilers,
10211 # most powerpc-linux boxes support dynamic linking these days and
10212 # people can always --disable-shared, the test was removed, and we
10213 # assume the GNU/Linux dynamic linker is in use.
10214 dynamic_linker='GNU/Linux ld.so'
10215 ;;
10216
10217netbsd*)
10218 version_type=sunos
10219 need_lib_prefix=no
10220 need_version=no
10221 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10222 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10223 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10224 dynamic_linker='NetBSD (a.out) ld.so'
10225 else
10226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10227 soname_spec='${libname}${release}${shared_ext}$major'
10228 dynamic_linker='NetBSD ld.elf_so'
10229 fi
10230 shlibpath_var=LD_LIBRARY_PATH
10231 shlibpath_overrides_runpath=yes
10232 hardcode_into_libs=yes
10233 ;;
10234
10235newsos6)
10236 version_type=linux
10237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10238 shlibpath_var=LD_LIBRARY_PATH
10239 shlibpath_overrides_runpath=yes
10240 ;;
10241
10242*nto* | *qnx*)
10243 version_type=qnx
10244 need_lib_prefix=no
10245 need_version=no
10246 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10247 soname_spec='${libname}${release}${shared_ext}$major'
10248 shlibpath_var=LD_LIBRARY_PATH
10249 shlibpath_overrides_runpath=no
10250 hardcode_into_libs=yes
10251 dynamic_linker='ldqnx.so'
10252 ;;
10253
10254openbsd*)
10255 version_type=sunos
10256 sys_lib_dlsearch_path_spec="/usr/lib"
10257 need_lib_prefix=no
10258 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10259 case $host_os in
10260 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10261 *) need_version=no ;;
10262 esac
10263 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10264 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10265 shlibpath_var=LD_LIBRARY_PATH
10266 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10267 case $host_os in
10268 openbsd2.[89] | openbsd2.[89].*)
10269 shlibpath_overrides_runpath=no
10270 ;;
10271 *)
10272 shlibpath_overrides_runpath=yes
10273 ;;
10274 esac
10275 else
10276 shlibpath_overrides_runpath=yes
10277 fi
10278 ;;
10279
10280os2*)
10281 libname_spec='$name'
10282 shrext_cmds=".dll"
10283 need_lib_prefix=no
10284 library_names_spec='$libname${shared_ext} $libname.a'
10285 dynamic_linker='OS/2 ld.exe'
10286 shlibpath_var=LIBPATH
10287 ;;
10288
10289osf3* | osf4* | osf5*)
10290 version_type=osf
10291 need_lib_prefix=no
10292 need_version=no
10293 soname_spec='${libname}${release}${shared_ext}$major'
10294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10295 shlibpath_var=LD_LIBRARY_PATH
10296 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10297 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10298 ;;
10299
10300rdos*)
10301 dynamic_linker=no
10302 ;;
10303
10304solaris*)
10305 version_type=linux
10306 need_lib_prefix=no
10307 need_version=no
10308 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10309 soname_spec='${libname}${release}${shared_ext}$major'
10310 shlibpath_var=LD_LIBRARY_PATH
10311 shlibpath_overrides_runpath=yes
10312 hardcode_into_libs=yes
10313 # ldd complains unless libraries are executable
10314 postinstall_cmds='chmod +x $lib'
10315 ;;
10316
10317sunos4*)
10318 version_type=sunos
10319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10320 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10321 shlibpath_var=LD_LIBRARY_PATH
10322 shlibpath_overrides_runpath=yes
10323 if test "$with_gnu_ld" = yes; then
10324 need_lib_prefix=no
10325 fi
10326 need_version=yes
10327 ;;
10328
10329sysv4 | sysv4.3*)
10330 version_type=linux
10331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10332 soname_spec='${libname}${release}${shared_ext}$major'
10333 shlibpath_var=LD_LIBRARY_PATH
10334 case $host_vendor in
10335 sni)
10336 shlibpath_overrides_runpath=no
10337 need_lib_prefix=no
10338 runpath_var=LD_RUN_PATH
10339 ;;
10340 siemens)
10341 need_lib_prefix=no
10342 ;;
10343 motorola)
10344 need_lib_prefix=no
10345 need_version=no
10346 shlibpath_overrides_runpath=no
10347 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10348 ;;
10349 esac
10350 ;;
10351
10352sysv4*MP*)
10353 if test -d /usr/nec ;then
10354 version_type=linux
10355 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10356 soname_spec='$libname${shared_ext}.$major'
10357 shlibpath_var=LD_LIBRARY_PATH
10358 fi
10359 ;;
10360
10361sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10362 version_type=freebsd-elf
10363 need_lib_prefix=no
10364 need_version=no
10365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10366 soname_spec='${libname}${release}${shared_ext}$major'
10367 shlibpath_var=LD_LIBRARY_PATH
10368 shlibpath_overrides_runpath=yes
10369 hardcode_into_libs=yes
10370 if test "$with_gnu_ld" = yes; then
10371 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10372 else
10373 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10374 case $host_os in
10375 sco3.2v5*)
10376 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10377 ;;
10378 esac
10379 fi
10380 sys_lib_dlsearch_path_spec='/usr/lib'
10381 ;;
10382
10383tpf*)
10384 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10385 version_type=linux
10386 need_lib_prefix=no
10387 need_version=no
718a6fd8 10388 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
d7040cdb
SE
10389 shlibpath_var=LD_LIBRARY_PATH
10390 shlibpath_overrides_runpath=no
10391 hardcode_into_libs=yes
10392 ;;
10393
10394uts4*)
10395 version_type=linux
10396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10397 soname_spec='${libname}${release}${shared_ext}$major'
10398 shlibpath_var=LD_LIBRARY_PATH
10399 ;;
10400
6a6859cb
AM
10401# Shared libraries for VwWorks, >= 7 only at this stage
10402# and (fpic) still incompatible with "large" code models
10403# in a few configurations. Only for RTP mode in any case,
10404# and upon explicit request at configure time.
10405vxworks7*)
10406 dynamic_linker=no
10407 case ${with_multisubdir}-${enable_shared} in
10408 *large*)
10409 ;;
10410 *mrtp*-yes)
10411 version_type=linux
10412 need_lib_prefix=no
10413 need_version=no
10414 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10415 soname_spec='${libname}${release}${shared_ext}$major'
10416 dynamic_linker="$host_os module_loader"
10417 ;;
10418 esac
10419 ;;
d7040cdb
SE
10420*)
10421 dynamic_linker=no
10422 ;;
10423esac
81ecdfbb
RW
10424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10425$as_echo "$dynamic_linker" >&6; }
d7040cdb
SE
10426test "$dynamic_linker" = no && can_build_shared=no
10427
10428variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10429if test "$GCC" = yes; then
10430 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10431fi
10432
718a6fd8
SE
10433if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10434 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10435fi
10436if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10437 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10438fi
10439
d7040cdb
SE
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
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
3725885a
RW
10520
10521
10522
10523
10524
d7040cdb
SE
10525
10526
10527
10528
10529
10530
81ecdfbb
RW
10531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10532$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
d7040cdb
SE
10533hardcode_action=
10534if test -n "$hardcode_libdir_flag_spec" ||
10535 test -n "$runpath_var" ||
10536 test "X$hardcode_automatic" = "Xyes" ; then
10537
10538 # We can hardcode non-existent directories.
10539 if test "$hardcode_direct" != no &&
10540 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10541 # have to relink, otherwise we might link with an installed library
10542 # when we should be linking with a yet-to-be-installed one
10543 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10544 test "$hardcode_minus_L" != no; then
10545 # Linking always hardcodes the temporary library directory.
10546 hardcode_action=relink
10547 else
10548 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10549 hardcode_action=immediate
10550 fi
10551else
10552 # We cannot hardcode anything, or else we can only hardcode existing
10553 # directories.
10554 hardcode_action=unsupported
10555fi
81ecdfbb
RW
10556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10557$as_echo "$hardcode_action" >&6; }
d7040cdb
SE
10558
10559if test "$hardcode_action" = relink ||
10560 test "$inherit_rpath" = yes; then
10561 # Fast installation is not supported
10562 enable_fast_install=no
10563elif test "$shlibpath_overrides_runpath" = yes ||
10564 test "$enable_shared" = no; then
10565 # Fast installation is not necessary
10566 enable_fast_install=needless
10567fi
10568
10569
10570
10571
10572
10573
10574 if test "x$enable_dlopen" != xyes; then
10575 enable_dlopen=unknown
10576 enable_dlopen_self=unknown
10577 enable_dlopen_self_static=unknown
10578else
10579 lt_cv_dlopen=no
10580 lt_cv_dlopen_libs=
10581
10582 case $host_os in
10583 beos*)
10584 lt_cv_dlopen="load_add_on"
10585 lt_cv_dlopen_libs=
10586 lt_cv_dlopen_self=yes
10587 ;;
10588
718a6fd8 10589 mingw* | pw32* | cegcc*)
d7040cdb
SE
10590 lt_cv_dlopen="LoadLibrary"
10591 lt_cv_dlopen_libs=
10592 ;;
10593
10594 cygwin*)
10595 lt_cv_dlopen="dlopen"
10596 lt_cv_dlopen_libs=
10597 ;;
10598
10599 darwin*)
10600 # if libdl is installed we need to link against it
81ecdfbb
RW
10601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10602$as_echo_n "checking for dlopen in -ldl... " >&6; }
d0ac1c44 10603if ${ac_cv_lib_dl_dlopen+:} false; then :
81ecdfbb 10604 $as_echo_n "(cached) " >&6
d7040cdb
SE
10605else
10606 ac_check_lib_save_LIBS=$LIBS
10607LIBS="-ldl $LIBS"
81ecdfbb 10608cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb
SE
10609/* end confdefs.h. */
10610
81ecdfbb
RW
10611/* Override any GCC internal prototype to avoid an error.
10612 Use char because int might match the return type of a GCC
10613 builtin and then its argument prototype would still apply. */
d7040cdb
SE
10614#ifdef __cplusplus
10615extern "C"
10616#endif
d7040cdb
SE
10617char dlopen ();
10618int
10619main ()
10620{
81ecdfbb 10621return dlopen ();
d7040cdb
SE
10622 ;
10623 return 0;
10624}
10625_ACEOF
81ecdfbb 10626if ac_fn_c_try_link "$LINENO"; then :
d7040cdb
SE
10627 ac_cv_lib_dl_dlopen=yes
10628else
81ecdfbb 10629 ac_cv_lib_dl_dlopen=no
d7040cdb 10630fi
81ecdfbb
RW
10631rm -f core conftest.err conftest.$ac_objext \
10632 conftest$ac_exeext conftest.$ac_ext
d7040cdb
SE
10633LIBS=$ac_check_lib_save_LIBS
10634fi
81ecdfbb
RW
10635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10636$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
d0ac1c44 10637if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
d7040cdb
SE
10638 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10639else
10640
10641 lt_cv_dlopen="dyld"
10642 lt_cv_dlopen_libs=
10643 lt_cv_dlopen_self=yes
10644
10645fi
10646
10647 ;;
10648
10649 *)
81ecdfbb 10650 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
d0ac1c44 10651if test "x$ac_cv_func_shl_load" = xyes; then :
d7040cdb
SE
10652 lt_cv_dlopen="shl_load"
10653else
81ecdfbb
RW
10654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10655$as_echo_n "checking for shl_load in -ldld... " >&6; }
d0ac1c44 10656if ${ac_cv_lib_dld_shl_load+:} false; then :
81ecdfbb 10657 $as_echo_n "(cached) " >&6
d7040cdb
SE
10658else
10659 ac_check_lib_save_LIBS=$LIBS
10660LIBS="-ldld $LIBS"
81ecdfbb 10661cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb
SE
10662/* end confdefs.h. */
10663
81ecdfbb
RW
10664/* Override any GCC internal prototype to avoid an error.
10665 Use char because int might match the return type of a GCC
10666 builtin and then its argument prototype would still apply. */
d7040cdb
SE
10667#ifdef __cplusplus
10668extern "C"
10669#endif
d7040cdb
SE
10670char shl_load ();
10671int
10672main ()
10673{
81ecdfbb 10674return shl_load ();
d7040cdb
SE
10675 ;
10676 return 0;
10677}
10678_ACEOF
81ecdfbb 10679if ac_fn_c_try_link "$LINENO"; then :
d7040cdb
SE
10680 ac_cv_lib_dld_shl_load=yes
10681else
81ecdfbb 10682 ac_cv_lib_dld_shl_load=no
d7040cdb 10683fi
81ecdfbb
RW
10684rm -f core conftest.err conftest.$ac_objext \
10685 conftest$ac_exeext conftest.$ac_ext
d7040cdb
SE
10686LIBS=$ac_check_lib_save_LIBS
10687fi
81ecdfbb
RW
10688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10689$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
d0ac1c44 10690if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
718a6fd8 10691 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
d7040cdb 10692else
81ecdfbb 10693 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
d0ac1c44 10694if test "x$ac_cv_func_dlopen" = xyes; then :
81ecdfbb 10695 lt_cv_dlopen="dlopen"
d7040cdb 10696else
81ecdfbb
RW
10697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10698$as_echo_n "checking for dlopen in -ldl... " >&6; }
d0ac1c44 10699if ${ac_cv_lib_dl_dlopen+:} false; then :
81ecdfbb
RW
10700 $as_echo_n "(cached) " >&6
10701else
10702 ac_check_lib_save_LIBS=$LIBS
10703LIBS="-ldl $LIBS"
10704cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb 10705/* end confdefs.h. */
d7040cdb 10706
81ecdfbb
RW
10707/* Override any GCC internal prototype to avoid an error.
10708 Use char because int might match the return type of a GCC
10709 builtin and then its argument prototype would still apply. */
d7040cdb
SE
10710#ifdef __cplusplus
10711extern "C"
d7040cdb 10712#endif
d7040cdb 10713char dlopen ();
d7040cdb
SE
10714int
10715main ()
10716{
81ecdfbb 10717return dlopen ();
d7040cdb
SE
10718 ;
10719 return 0;
10720}
10721_ACEOF
81ecdfbb
RW
10722if ac_fn_c_try_link "$LINENO"; then :
10723 ac_cv_lib_dl_dlopen=yes
d7040cdb 10724else
81ecdfbb 10725 ac_cv_lib_dl_dlopen=no
d7040cdb 10726fi
81ecdfbb
RW
10727rm -f core conftest.err conftest.$ac_objext \
10728 conftest$ac_exeext conftest.$ac_ext
10729LIBS=$ac_check_lib_save_LIBS
d7040cdb 10730fi
81ecdfbb
RW
10731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10732$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
d0ac1c44 10733if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
81ecdfbb 10734 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
d7040cdb 10735else
81ecdfbb
RW
10736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10737$as_echo_n "checking for dlopen in -lsvld... " >&6; }
d0ac1c44 10738if ${ac_cv_lib_svld_dlopen+:} false; then :
81ecdfbb 10739 $as_echo_n "(cached) " >&6
d7040cdb
SE
10740else
10741 ac_check_lib_save_LIBS=$LIBS
81ecdfbb
RW
10742LIBS="-lsvld $LIBS"
10743cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb
SE
10744/* end confdefs.h. */
10745
81ecdfbb
RW
10746/* Override any GCC internal prototype to avoid an error.
10747 Use char because int might match the return type of a GCC
10748 builtin and then its argument prototype would still apply. */
d7040cdb
SE
10749#ifdef __cplusplus
10750extern "C"
10751#endif
d7040cdb
SE
10752char dlopen ();
10753int
10754main ()
10755{
81ecdfbb 10756return dlopen ();
d7040cdb
SE
10757 ;
10758 return 0;
10759}
10760_ACEOF
81ecdfbb
RW
10761if ac_fn_c_try_link "$LINENO"; then :
10762 ac_cv_lib_svld_dlopen=yes
d7040cdb 10763else
81ecdfbb 10764 ac_cv_lib_svld_dlopen=no
d7040cdb 10765fi
81ecdfbb
RW
10766rm -f core conftest.err conftest.$ac_objext \
10767 conftest$ac_exeext conftest.$ac_ext
d7040cdb
SE
10768LIBS=$ac_check_lib_save_LIBS
10769fi
81ecdfbb
RW
10770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10771$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
d0ac1c44 10772if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
81ecdfbb 10773 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
d7040cdb 10774else
81ecdfbb
RW
10775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10776$as_echo_n "checking for dld_link in -ldld... " >&6; }
d0ac1c44 10777if ${ac_cv_lib_dld_dld_link+:} false; then :
81ecdfbb 10778 $as_echo_n "(cached) " >&6
d7040cdb
SE
10779else
10780 ac_check_lib_save_LIBS=$LIBS
81ecdfbb
RW
10781LIBS="-ldld $LIBS"
10782cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb
SE
10783/* end confdefs.h. */
10784
81ecdfbb
RW
10785/* Override any GCC internal prototype to avoid an error.
10786 Use char because int might match the return type of a GCC
10787 builtin and then its argument prototype would still apply. */
d7040cdb
SE
10788#ifdef __cplusplus
10789extern "C"
10790#endif
81ecdfbb 10791char dld_link ();
d7040cdb
SE
10792int
10793main ()
10794{
81ecdfbb 10795return dld_link ();
d7040cdb
SE
10796 ;
10797 return 0;
10798}
10799_ACEOF
81ecdfbb 10800if ac_fn_c_try_link "$LINENO"; then :
d7040cdb
SE
10801 ac_cv_lib_dld_dld_link=yes
10802else
81ecdfbb 10803 ac_cv_lib_dld_dld_link=no
d7040cdb 10804fi
81ecdfbb
RW
10805rm -f core conftest.err conftest.$ac_objext \
10806 conftest$ac_exeext conftest.$ac_ext
d7040cdb
SE
10807LIBS=$ac_check_lib_save_LIBS
10808fi
81ecdfbb
RW
10809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10810$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
d0ac1c44 10811if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
718a6fd8 10812 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
d7040cdb
SE
10813fi
10814
10815
10816fi
10817
10818
10819fi
10820
10821
10822fi
10823
10824
10825fi
10826
10827
10828fi
10829
10830 ;;
10831 esac
10832
10833 if test "x$lt_cv_dlopen" != xno; then
10834 enable_dlopen=yes
10835 else
10836 enable_dlopen=no
10837 fi
10838
10839 case $lt_cv_dlopen in
10840 dlopen)
10841 save_CPPFLAGS="$CPPFLAGS"
10842 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10843
10844 save_LDFLAGS="$LDFLAGS"
10845 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10846
10847 save_LIBS="$LIBS"
10848 LIBS="$lt_cv_dlopen_libs $LIBS"
10849
81ecdfbb
RW
10850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10851$as_echo_n "checking whether a program can dlopen itself... " >&6; }
d0ac1c44 10852if ${lt_cv_dlopen_self+:} false; then :
81ecdfbb 10853 $as_echo_n "(cached) " >&6
d7040cdb
SE
10854else
10855 if test "$cross_compiling" = yes; then :
10856 lt_cv_dlopen_self=cross
10857else
10858 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10859 lt_status=$lt_dlunknown
10860 cat > conftest.$ac_ext <<_LT_EOF
862776f2 10861#line 10861 "configure"
d7040cdb
SE
10862#include "confdefs.h"
10863
10864#if HAVE_DLFCN_H
10865#include <dlfcn.h>
10866#endif
10867
10868#include <stdio.h>
10869
10870#ifdef RTLD_GLOBAL
10871# define LT_DLGLOBAL RTLD_GLOBAL
10872#else
10873# ifdef DL_GLOBAL
10874# define LT_DLGLOBAL DL_GLOBAL
10875# else
10876# define LT_DLGLOBAL 0
10877# endif
10878#endif
10879
10880/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10881 find out it does not work in some platform. */
10882#ifndef LT_DLLAZY_OR_NOW
10883# ifdef RTLD_LAZY
10884# define LT_DLLAZY_OR_NOW RTLD_LAZY
10885# else
10886# ifdef DL_LAZY
10887# define LT_DLLAZY_OR_NOW DL_LAZY
10888# else
10889# ifdef RTLD_NOW
10890# define LT_DLLAZY_OR_NOW RTLD_NOW
10891# else
10892# ifdef DL_NOW
10893# define LT_DLLAZY_OR_NOW DL_NOW
10894# else
10895# define LT_DLLAZY_OR_NOW 0
10896# endif
10897# endif
10898# endif
10899# endif
10900#endif
10901
3725885a
RW
10902/* When -fvisbility=hidden is used, assume the code has been annotated
10903 correspondingly for the symbols needed. */
10904#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
f2c621e4 10905void fnord () __attribute__((visibility("default")));
3725885a
RW
10906#endif
10907
f2c621e4 10908void fnord () { int i=42; }
d7040cdb
SE
10909int main ()
10910{
10911 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10912 int status = $lt_dlunknown;
10913
10914 if (self)
10915 {
10916 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
3725885a
RW
10917 else
10918 {
10919 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10920 else puts (dlerror ());
10921 }
d7040cdb
SE
10922 /* dlclose (self); */
10923 }
10924 else
10925 puts (dlerror ());
10926
718a6fd8 10927 return status;
d7040cdb
SE
10928}
10929_LT_EOF
81ecdfbb 10930 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
d7040cdb
SE
10931 (eval $ac_link) 2>&5
10932 ac_status=$?
81ecdfbb
RW
10933 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10934 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
d7040cdb
SE
10935 (./conftest; exit; ) >&5 2>/dev/null
10936 lt_status=$?
10937 case x$lt_status in
10938 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10939 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10940 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10941 esac
10942 else :
10943 # compilation failed
10944 lt_cv_dlopen_self=no
10945 fi
10946fi
10947rm -fr conftest*
10948
10949
10950fi
81ecdfbb
RW
10951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10952$as_echo "$lt_cv_dlopen_self" >&6; }
d7040cdb
SE
10953
10954 if test "x$lt_cv_dlopen_self" = xyes; then
10955 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
81ecdfbb
RW
10956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10957$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
d0ac1c44 10958if ${lt_cv_dlopen_self_static+:} false; then :
81ecdfbb 10959 $as_echo_n "(cached) " >&6
d7040cdb
SE
10960else
10961 if test "$cross_compiling" = yes; then :
10962 lt_cv_dlopen_self_static=cross
10963else
10964 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10965 lt_status=$lt_dlunknown
10966 cat > conftest.$ac_ext <<_LT_EOF
862776f2 10967#line 10967 "configure"
d7040cdb
SE
10968#include "confdefs.h"
10969
10970#if HAVE_DLFCN_H
10971#include <dlfcn.h>
10972#endif
10973
10974#include <stdio.h>
10975
10976#ifdef RTLD_GLOBAL
10977# define LT_DLGLOBAL RTLD_GLOBAL
10978#else
10979# ifdef DL_GLOBAL
10980# define LT_DLGLOBAL DL_GLOBAL
10981# else
10982# define LT_DLGLOBAL 0
10983# endif
10984#endif
10985
10986/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10987 find out it does not work in some platform. */
10988#ifndef LT_DLLAZY_OR_NOW
10989# ifdef RTLD_LAZY
10990# define LT_DLLAZY_OR_NOW RTLD_LAZY
10991# else
10992# ifdef DL_LAZY
10993# define LT_DLLAZY_OR_NOW DL_LAZY
10994# else
10995# ifdef RTLD_NOW
10996# define LT_DLLAZY_OR_NOW RTLD_NOW
10997# else
10998# ifdef DL_NOW
10999# define LT_DLLAZY_OR_NOW DL_NOW
11000# else
11001# define LT_DLLAZY_OR_NOW 0
11002# endif
11003# endif
11004# endif
11005# endif
11006#endif
11007
3725885a
RW
11008/* When -fvisbility=hidden is used, assume the code has been annotated
11009 correspondingly for the symbols needed. */
11010#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
f2c621e4 11011void fnord () __attribute__((visibility("default")));
3725885a
RW
11012#endif
11013
f2c621e4 11014void fnord () { int i=42; }
d7040cdb
SE
11015int main ()
11016{
11017 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11018 int status = $lt_dlunknown;
11019
11020 if (self)
11021 {
11022 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
3725885a
RW
11023 else
11024 {
11025 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11026 else puts (dlerror ());
11027 }
d7040cdb
SE
11028 /* dlclose (self); */
11029 }
11030 else
11031 puts (dlerror ());
11032
718a6fd8 11033 return status;
d7040cdb
SE
11034}
11035_LT_EOF
81ecdfbb 11036 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
d7040cdb
SE
11037 (eval $ac_link) 2>&5
11038 ac_status=$?
81ecdfbb
RW
11039 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11040 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
d7040cdb
SE
11041 (./conftest; exit; ) >&5 2>/dev/null
11042 lt_status=$?
11043 case x$lt_status in
11044 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11045 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11046 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11047 esac
11048 else :
11049 # compilation failed
11050 lt_cv_dlopen_self_static=no
11051 fi
11052fi
11053rm -fr conftest*
11054
11055
11056fi
81ecdfbb
RW
11057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11058$as_echo "$lt_cv_dlopen_self_static" >&6; }
d7040cdb
SE
11059 fi
11060
11061 CPPFLAGS="$save_CPPFLAGS"
11062 LDFLAGS="$save_LDFLAGS"
11063 LIBS="$save_LIBS"
11064 ;;
11065 esac
11066
11067 case $lt_cv_dlopen_self in
11068 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11069 *) enable_dlopen_self=unknown ;;
11070 esac
11071
11072 case $lt_cv_dlopen_self_static in
11073 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11074 *) enable_dlopen_self_static=unknown ;;
11075 esac
11076fi
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094striplib=
11095old_striplib=
81ecdfbb
RW
11096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11097$as_echo_n "checking whether stripping libraries is possible... " >&6; }
d7040cdb
SE
11098if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11099 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11100 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
81ecdfbb
RW
11101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11102$as_echo "yes" >&6; }
d7040cdb
SE
11103else
11104# FIXME - insert some real tests, host_os isn't really good enough
11105 case $host_os in
11106 darwin*)
11107 if test -n "$STRIP" ; then
11108 striplib="$STRIP -x"
11109 old_striplib="$STRIP -S"
81ecdfbb
RW
11110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11111$as_echo "yes" >&6; }
d7040cdb 11112 else
81ecdfbb
RW
11113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11114$as_echo "no" >&6; }
d7040cdb
SE
11115 fi
11116 ;;
11117 *)
81ecdfbb
RW
11118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11119$as_echo "no" >&6; }
d7040cdb
SE
11120 ;;
11121 esac
11122fi
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135 # Report which library types will actually be built
81ecdfbb
RW
11136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11137$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11139$as_echo "$can_build_shared" >&6; }
d7040cdb 11140
81ecdfbb
RW
11141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11142$as_echo_n "checking whether to build shared libraries... " >&6; }
d7040cdb
SE
11143 test "$can_build_shared" = "no" && enable_shared=no
11144
11145 # On AIX, shared libraries and static libraries use the same namespace, and
11146 # are all built from PIC.
11147 case $host_os in
11148 aix3*)
11149 test "$enable_shared" = yes && enable_static=no
11150 if test -n "$RANLIB"; then
11151 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11152 postinstall_cmds='$RANLIB $lib'
11153 fi
11154 ;;
11155
50e7d84b 11156 aix[4-9]*)
d7040cdb
SE
11157 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11158 test "$enable_shared" = yes && enable_static=no
11159 fi
11160 ;;
11161 esac
81ecdfbb
RW
11162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11163$as_echo "$enable_shared" >&6; }
d7040cdb 11164
81ecdfbb
RW
11165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11166$as_echo_n "checking whether to build static libraries... " >&6; }
d7040cdb
SE
11167 # Make sure either enable_shared or enable_static is yes.
11168 test "$enable_shared" = yes || enable_static=yes
81ecdfbb
RW
11169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11170$as_echo "$enable_static" >&6; }
d7040cdb
SE
11171
11172
11173
11174
11175fi
11176ac_ext=c
11177ac_cpp='$CPP $CPPFLAGS'
11178ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11179ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11180ac_compiler_gnu=$ac_cv_c_compiler_gnu
11181
11182CC="$lt_save_CC"
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
81ecdfbb 11196 ac_config_commands="$ac_config_commands libtool"
d7040cdb
SE
11197
11198
11199
11200
11201# Only expand once:
11202
11203
11204
b879806f
AM
11205# The tests for host and target for $enable_largefile require
11206# canonical names.
11207
11208
11209
11210# As the $enable_largefile decision depends on --enable-plugins we must set it
11211# even in directories otherwise not depending on the $plugins option.
11212
11213
11214 maybe_plugins=no
11215 for ac_header in dlfcn.h
11216do :
11217 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
11218"
d0ac1c44 11219if test "x$ac_cv_header_dlfcn_h" = xyes; then :
b879806f
AM
11220 cat >>confdefs.h <<_ACEOF
11221#define HAVE_DLFCN_H 1
11222_ACEOF
11223 maybe_plugins=yes
11224fi
11225
11226done
11227
11228 for ac_header in windows.h
11229do :
11230 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
11231"
d0ac1c44 11232if test "x$ac_cv_header_windows_h" = xyes; then :
b879806f
AM
11233 cat >>confdefs.h <<_ACEOF
11234#define HAVE_WINDOWS_H 1
11235_ACEOF
11236 maybe_plugins=yes
11237fi
11238
11239done
11240
11241
11242 # Check whether --enable-plugins was given.
11243if test "${enable_plugins+set}" = set; then :
11244 enableval=$enable_plugins; case "${enableval}" in
11245 no) plugins=no ;;
11246 *) plugins=yes
11247 if test "$maybe_plugins" != "yes" ; then
d0ac1c44 11248 as_fn_error $? "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
b879806f
AM
11249 fi ;;
11250 esac
11251else
11252 plugins=$maybe_plugins
11253
11254fi
11255
2974be62 11256 if test "$plugins" = "yes"; then
3cba8b6c
L
11257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
11258$as_echo_n "checking for library containing dlsym... " >&6; }
d0ac1c44 11259if ${ac_cv_search_dlsym+:} false; then :
2974be62
AM
11260 $as_echo_n "(cached) " >&6
11261else
11262 ac_func_search_save_LIBS=$LIBS
11263cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11264/* end confdefs.h. */
11265
11266/* Override any GCC internal prototype to avoid an error.
11267 Use char because int might match the return type of a GCC
11268 builtin and then its argument prototype would still apply. */
11269#ifdef __cplusplus
11270extern "C"
11271#endif
3cba8b6c 11272char dlsym ();
2974be62
AM
11273int
11274main ()
11275{
3cba8b6c 11276return dlsym ();
2974be62
AM
11277 ;
11278 return 0;
11279}
11280_ACEOF
11281for ac_lib in '' dl; do
11282 if test -z "$ac_lib"; then
11283 ac_res="none required"
11284 else
11285 ac_res=-l$ac_lib
11286 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11287 fi
11288 if ac_fn_c_try_link "$LINENO"; then :
3cba8b6c 11289 ac_cv_search_dlsym=$ac_res
2974be62
AM
11290fi
11291rm -f core conftest.err conftest.$ac_objext \
11292 conftest$ac_exeext
d0ac1c44 11293 if ${ac_cv_search_dlsym+:} false; then :
2974be62
AM
11294 break
11295fi
11296done
d0ac1c44 11297if ${ac_cv_search_dlsym+:} false; then :
2974be62
AM
11298
11299else
3cba8b6c 11300 ac_cv_search_dlsym=no
2974be62
AM
11301fi
11302rm conftest.$ac_ext
11303LIBS=$ac_func_search_save_LIBS
11304fi
3cba8b6c
L
11305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
11306$as_echo "$ac_cv_search_dlsym" >&6; }
11307ac_res=$ac_cv_search_dlsym
2974be62
AM
11308if test "$ac_res" != no; then :
11309 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11310
11311fi
11312
11313 fi
b879806f
AM
11314
11315
11316case "${host}" in
c8693053
RO
11317 sparc-*-solaris*|i?86-*-solaris*)
11318 # On native 32-bit Solaris/SPARC and x86, large-file and procfs support
11319 # were mutually exclusive until Solaris 11.3. Without procfs support,
11320 # the bfd/ elf module cannot provide certain routines such as
11321 # elfcore_write_prpsinfo or elfcore_write_prstatus. So unless the user
11322 # explicitly requested large-file support through the
11323 # --enable-largefile switch, disable large-file support in favor of
11324 # procfs support.
11325 #
11326 # Check if <sys/procfs.h> is incompatible with large-file support.
11327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11328/* end confdefs.h. */
11329#define _FILE_OFFSET_BITS 64
11330#define _STRUCTURED_PROC 1
11331#include <sys/procfs.h>
11332int
11333main ()
11334{
11335
11336 ;
11337 return 0;
11338}
11339_ACEOF
11340if ac_fn_c_try_compile "$LINENO"; then :
11341 acx_cv_procfs_lfs=yes
11342else
11343 acx_cv_procfs_lfs=no
11344fi
11345rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11346 #
11347 # Forcefully disable large-file support only if necessary, gdb is in
11348 # tree and enabled.
11349 if test "${target}" = "${host}" -a "$acx_cv_procfs_lfs" = no \
11350 -a -d $srcdir/../gdb -a "$enable_gdb" != no; then
11351 : ${enable_largefile="no"}
11352 if test "$plugins" = yes; then
11353 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
11354plugin support disabled; require large-file support which is incompatible with GDB." >&5
11355$as_echo "$as_me: WARNING:
11356plugin support disabled; require large-file support which is incompatible with GDB." >&2;}
11357 plugins=no
11358 fi
11359 fi
11360 #
11361 # Explicitly undef _FILE_OFFSET_BITS if enable_largefile=no for the
11362 # benefit of g++ 9+ which predefines it on Solaris.
11363 if test "$enable_largefile" = no; then
11364 LARGEFILE_CPPFLAGS="-U_FILE_OFFSET_BITS"
11365
11366 fi
b879806f
AM
11367 ;;
11368esac
11369
11370# Check whether --enable-largefile was given.
11371if test "${enable_largefile+set}" = set; then :
11372 enableval=$enable_largefile;
11373fi
11374
11375if test "$enable_largefile" != no; then
11376
11377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
11378$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
d0ac1c44 11379if ${ac_cv_sys_largefile_CC+:} false; then :
b879806f
AM
11380 $as_echo_n "(cached) " >&6
11381else
11382 ac_cv_sys_largefile_CC=no
11383 if test "$GCC" != yes; then
11384 ac_save_CC=$CC
11385 while :; do
11386 # IRIX 6.2 and later do not support large files by default,
11387 # so use the C compiler's -n32 option if that helps.
11388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11389/* end confdefs.h. */
11390#include <sys/types.h>
11391 /* Check that off_t can represent 2**63 - 1 correctly.
11392 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11393 since some C++ compilers masquerading as C compilers
11394 incorrectly reject 9223372036854775807. */
e0b2a78c 11395#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
b879806f
AM
11396 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11397 && LARGE_OFF_T % 2147483647 == 1)
11398 ? 1 : -1];
11399int
11400main ()
11401{
11402
11403 ;
11404 return 0;
11405}
11406_ACEOF
11407 if ac_fn_c_try_compile "$LINENO"; then :
11408 break
11409fi
11410rm -f core conftest.err conftest.$ac_objext
11411 CC="$CC -n32"
11412 if ac_fn_c_try_compile "$LINENO"; then :
11413 ac_cv_sys_largefile_CC=' -n32'; break
11414fi
11415rm -f core conftest.err conftest.$ac_objext
11416 break
11417 done
11418 CC=$ac_save_CC
11419 rm -f conftest.$ac_ext
11420 fi
11421fi
11422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
11423$as_echo "$ac_cv_sys_largefile_CC" >&6; }
11424 if test "$ac_cv_sys_largefile_CC" != no; then
11425 CC=$CC$ac_cv_sys_largefile_CC
11426 fi
11427
11428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
11429$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
d0ac1c44 11430if ${ac_cv_sys_file_offset_bits+:} false; then :
b879806f
AM
11431 $as_echo_n "(cached) " >&6
11432else
11433 while :; do
11434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11435/* end confdefs.h. */
11436#include <sys/types.h>
11437 /* Check that off_t can represent 2**63 - 1 correctly.
11438 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11439 since some C++ compilers masquerading as C compilers
11440 incorrectly reject 9223372036854775807. */
e0b2a78c 11441#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
b879806f
AM
11442 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11443 && LARGE_OFF_T % 2147483647 == 1)
11444 ? 1 : -1];
11445int
11446main ()
11447{
11448
11449 ;
11450 return 0;
11451}
11452_ACEOF
11453if ac_fn_c_try_compile "$LINENO"; then :
11454 ac_cv_sys_file_offset_bits=no; break
11455fi
11456rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11458/* end confdefs.h. */
11459#define _FILE_OFFSET_BITS 64
11460#include <sys/types.h>
11461 /* Check that off_t can represent 2**63 - 1 correctly.
11462 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11463 since some C++ compilers masquerading as C compilers
11464 incorrectly reject 9223372036854775807. */
e0b2a78c 11465#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
b879806f
AM
11466 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11467 && LARGE_OFF_T % 2147483647 == 1)
11468 ? 1 : -1];
11469int
11470main ()
11471{
11472
11473 ;
11474 return 0;
11475}
11476_ACEOF
11477if ac_fn_c_try_compile "$LINENO"; then :
11478 ac_cv_sys_file_offset_bits=64; break
11479fi
11480rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11481 ac_cv_sys_file_offset_bits=unknown
11482 break
11483done
11484fi
11485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
11486$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
11487case $ac_cv_sys_file_offset_bits in #(
11488 no | unknown) ;;
11489 *)
11490cat >>confdefs.h <<_ACEOF
11491#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
11492_ACEOF
11493;;
11494esac
11495rm -rf conftest*
11496 if test $ac_cv_sys_file_offset_bits = unknown; then
11497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
11498$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
d0ac1c44 11499if ${ac_cv_sys_large_files+:} false; then :
b879806f
AM
11500 $as_echo_n "(cached) " >&6
11501else
11502 while :; do
11503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11504/* end confdefs.h. */
11505#include <sys/types.h>
11506 /* Check that off_t can represent 2**63 - 1 correctly.
11507 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11508 since some C++ compilers masquerading as C compilers
11509 incorrectly reject 9223372036854775807. */
e0b2a78c 11510#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
b879806f
AM
11511 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11512 && LARGE_OFF_T % 2147483647 == 1)
11513 ? 1 : -1];
11514int
11515main ()
11516{
11517
11518 ;
11519 return 0;
11520}
11521_ACEOF
11522if ac_fn_c_try_compile "$LINENO"; then :
11523 ac_cv_sys_large_files=no; break
11524fi
11525rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11527/* end confdefs.h. */
11528#define _LARGE_FILES 1
11529#include <sys/types.h>
11530 /* Check that off_t can represent 2**63 - 1 correctly.
11531 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11532 since some C++ compilers masquerading as C compilers
11533 incorrectly reject 9223372036854775807. */
e0b2a78c 11534#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
b879806f
AM
11535 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11536 && LARGE_OFF_T % 2147483647 == 1)
11537 ? 1 : -1];
11538int
11539main ()
11540{
11541
11542 ;
11543 return 0;
11544}
11545_ACEOF
11546if ac_fn_c_try_compile "$LINENO"; then :
11547 ac_cv_sys_large_files=1; break
11548fi
11549rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11550 ac_cv_sys_large_files=unknown
11551 break
11552done
11553fi
11554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
11555$as_echo "$ac_cv_sys_large_files" >&6; }
11556case $ac_cv_sys_large_files in #(
11557 no | unknown) ;;
11558 *)
11559cat >>confdefs.h <<_ACEOF
11560#define _LARGE_FILES $ac_cv_sys_large_files
11561_ACEOF
11562;;
11563esac
11564rm -rf conftest*
11565 fi
d0ac1c44
SM
11566
11567
b879806f
AM
11568fi
11569
11570
11571
43e05cd4
AM
11572ac_checking=
11573. ${srcdir}/../bfd/development.sh
11574test "$development" = true && ac_checking=yes
11575# Check whether --enable-checking was given.
11576if test "${enable_checking+set}" = set; then :
11577 enableval=$enable_checking; case "${enableval}" in
11578 no|none) ac_checking= ;;
11579 *) ac_checking=yes ;;
11580esac
11581fi
11582if test x$ac_checking != x ; then
11583
11584$as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
11585
11586fi
11587
81ecdfbb
RW
11588# Check whether --enable-targets was given.
11589if test "${enable_targets+set}" = set; then :
11590 enableval=$enable_targets; case "${enableval}" in
d0ac1c44 11591 yes | "") as_fn_error $? "enable-targets option must specify target names or 'all'" "$LINENO" 5
d7040cdb
SE
11592 ;;
11593 no) enable_targets= ;;
11594 *) enable_targets=$enableval ;;
11595esac
81ecdfbb
RW
11596fi
11597
e6f6aa8d 11598
9cb80f72
RM
11599# Check whether --enable-deterministic-archives was given.
11600if test "${enable_deterministic_archives+set}" = set; then :
11601 enableval=$enable_deterministic_archives;
11602if test "${enableval}" = no; then
11603 default_ar_deterministic=0
11604else
11605 default_ar_deterministic=1
11606fi
11607else
11608 default_ar_deterministic=0
11609fi
11610
11611
11612
11613cat >>confdefs.h <<_ACEOF
11614#define DEFAULT_AR_DETERMINISTIC $default_ar_deterministic
11615_ACEOF
11616
11617
e6f6aa8d 11618
7fac9594
NC
11619# Check whether --enable-default-strings-all was given.
11620if test "${enable_default_strings_all+set}" = set; then :
11621 enableval=$enable_default_strings_all;
11622if test "${enableval}" = no; then
11623 default_strings_all=0
11624else
11625 default_strings_all=1
11626fi
11627else
11628 default_strings_all=1
11629fi
11630
11631
11632
e6f6aa8d
NC
11633cat >>confdefs.h <<_ACEOF
11634#define DEFAULT_STRINGS_ALL $default_strings_all
11635_ACEOF
11636
11637
11638
11639# Check whether --enable-f-for-ifunc-symbols was given.
11640if test "${enable_f_for_ifunc_symbols+set}" = set; then :
11641 enableval=$enable_f_for_ifunc_symbols;
11642if test "${enableval}" = no; then
11643 default_f_for_ifunc=0
11644else
11645 default_f_for_ifunc=1
11646fi
11647else
11648 default_f_for_ifunc=0
11649fi
11650
11651
11652
11653cat >>confdefs.h <<_ACEOF
11654#define DEFAULT_F_FOR_IFUNC_SYMBOLS $default_f_for_ifunc
11655_ACEOF
11656
11657
11658
c46b7066
NC
11659# Check whether --enable-follow-debug-links was given.
11660if test "${enable_follow_debug_links+set}" = set; then :
11661 enableval=$enable_follow_debug_links;
11662if test "${enableval}" = no; then
11663 default_for_follow_links=0
11664else
11665 default_for_follow_links=1
11666fi
11667else
11668 default_for_follow_links=1
11669fi
11670
11671
11672
11673cat >>confdefs.h <<_ACEOF
11674#define DEFAULT_FOR_FOLLOW_LINKS $default_for_follow_links
11675_ACEOF
11676
11677
11678
11679
f6720b1c 11680
18bf5643
NC
11681# Check whether --enable-colored-disassembly was given.
11682if test "${enable_colored_disassembly+set}" = set; then :
11683 enableval=$enable_colored_disassembly;
11684if test "${enableval}" = no; then
11685 default_for_colored_disassembly=0
11686else
11687 default_for_colored_disassembly=1
11688fi
11689else
11690 default_for_colored_disassembly=0
11691fi
11692
11693
11694
11695cat >>confdefs.h <<_ACEOF
11696#define DEFAULT_FOR_COLORED_DISASSEMBLY $default_for_colored_disassembly
11697_ACEOF
11698
11699
11700
11701
11702
f6720b1c
AM
11703
11704
11705
11706
11707
11708if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11709 if test -n "$ac_tool_prefix"; then
11710 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
11711set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
11712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11713$as_echo_n "checking for $ac_word... " >&6; }
11714if ${ac_cv_path_PKG_CONFIG+:} false; then :
11715 $as_echo_n "(cached) " >&6
11716else
11717 case $PKG_CONFIG in
11718 [\\/]* | ?:[\\/]*)
11719 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11720 ;;
11721 *)
11722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11723for as_dir in $PATH
11724do
11725 IFS=$as_save_IFS
11726 test -z "$as_dir" && as_dir=.
11727 for ac_exec_ext in '' $ac_executable_extensions; do
11728 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11729 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11731 break 2
11732 fi
11733done
11734 done
11735IFS=$as_save_IFS
11736
11737 ;;
11738esac
11739fi
11740PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11741if test -n "$PKG_CONFIG"; then
11742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11743$as_echo "$PKG_CONFIG" >&6; }
11744else
11745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11746$as_echo "no" >&6; }
11747fi
11748
11749
11750fi
11751if test -z "$ac_cv_path_PKG_CONFIG"; then
11752 ac_pt_PKG_CONFIG=$PKG_CONFIG
11753 # Extract the first word of "pkg-config", so it can be a program name with args.
11754set dummy pkg-config; ac_word=$2
11755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11756$as_echo_n "checking for $ac_word... " >&6; }
11757if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
11758 $as_echo_n "(cached) " >&6
11759else
11760 case $ac_pt_PKG_CONFIG in
11761 [\\/]* | ?:[\\/]*)
11762 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
11763 ;;
11764 *)
11765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11766for as_dir in $PATH
11767do
11768 IFS=$as_save_IFS
11769 test -z "$as_dir" && as_dir=.
11770 for ac_exec_ext in '' $ac_executable_extensions; do
11771 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11772 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11774 break 2
11775 fi
11776done
11777 done
11778IFS=$as_save_IFS
11779
11780 ;;
11781esac
11782fi
11783ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
11784if test -n "$ac_pt_PKG_CONFIG"; then
11785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
11786$as_echo "$ac_pt_PKG_CONFIG" >&6; }
11787else
11788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11789$as_echo "no" >&6; }
11790fi
11791
11792 if test "x$ac_pt_PKG_CONFIG" = x; then
11793 PKG_CONFIG=""
11794 else
11795 case $cross_compiling:$ac_tool_warned in
11796yes:)
11797{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11798$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11799ac_tool_warned=yes ;;
11800esac
11801 PKG_CONFIG=$ac_pt_PKG_CONFIG
11802 fi
11803else
11804 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11805fi
11806
11807fi
11808if test -n "$PKG_CONFIG"; then
11809 _pkg_min_version=0.9.0
11810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
11811$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
11812 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
11813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11814$as_echo "yes" >&6; }
11815 else
11816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11817$as_echo "no" >&6; }
11818 PKG_CONFIG=""
11819 fi
11820fi
11821
28bc4951
AM
11822# Handle optional debuginfod support as well as optional section
11823# downloading support.
11824#
11825# Define HAVE_LIBDEBUGINFOD if libdebuginfod is found with version >= 0.179.
11826#
11827# Define HAVE_LIBDEBUGINFOD_FIND_SECTION if libdebuginfod is found with
11828# version >= 0.188.
301a9420
AM
11829
11830# Check whether --with-debuginfod was given.
11831if test "${with_debuginfod+set}" = set; then :
11832 withval=$with_debuginfod;
11833else
11834 with_debuginfod=auto
11835fi
11836
11837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use debuginfod" >&5
11838$as_echo_n "checking whether to use debuginfod... " >&6; }
11839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_debuginfod" >&5
11840$as_echo "$with_debuginfod" >&6; }
11841
f6720b1c 11842if test "x$with_debuginfod" != xno; then
301a9420 11843
28bc4951
AM
11844pkg_failed=no
11845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libdebuginfod >= 0.188" >&5
11846$as_echo_n "checking for libdebuginfod >= 0.188... " >&6; }
11847
11848if test -n "$DEBUGINFOD_CFLAGS"; then
11849 pkg_cv_DEBUGINFOD_CFLAGS="$DEBUGINFOD_CFLAGS"
11850 elif test -n "$PKG_CONFIG"; then
11851 if test -n "$PKG_CONFIG" && \
11852 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdebuginfod >= 0.188\""; } >&5
11853 ($PKG_CONFIG --exists --print-errors "libdebuginfod >= 0.188") 2>&5
11854 ac_status=$?
11855 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11856 test $ac_status = 0; }; then
11857 pkg_cv_DEBUGINFOD_CFLAGS=`$PKG_CONFIG --cflags "libdebuginfod >= 0.188" 2>/dev/null`
11858 test "x$?" != "x0" && pkg_failed=yes
11859else
11860 pkg_failed=yes
11861fi
11862 else
11863 pkg_failed=untried
11864fi
11865if test -n "$DEBUGINFOD_LIBS"; then
11866 pkg_cv_DEBUGINFOD_LIBS="$DEBUGINFOD_LIBS"
11867 elif test -n "$PKG_CONFIG"; then
11868 if test -n "$PKG_CONFIG" && \
11869 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdebuginfod >= 0.188\""; } >&5
11870 ($PKG_CONFIG --exists --print-errors "libdebuginfod >= 0.188") 2>&5
11871 ac_status=$?
11872 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11873 test $ac_status = 0; }; then
11874 pkg_cv_DEBUGINFOD_LIBS=`$PKG_CONFIG --libs "libdebuginfod >= 0.188" 2>/dev/null`
11875 test "x$?" != "x0" && pkg_failed=yes
11876else
11877 pkg_failed=yes
11878fi
11879 else
11880 pkg_failed=untried
11881fi
11882
11883if test $pkg_failed = no; then
11884 pkg_save_LDFLAGS="$LDFLAGS"
11885 LDFLAGS="$LDFLAGS $pkg_cv_DEBUGINFOD_LIBS"
11886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11887/* end confdefs.h. */
11888
11889int
11890main ()
11891{
11892
11893 ;
11894 return 0;
11895}
11896_ACEOF
11897if ac_fn_c_try_link "$LINENO"; then :
11898
11899else
11900 pkg_failed=yes
11901fi
11902rm -f core conftest.err conftest.$ac_objext \
11903 conftest$ac_exeext conftest.$ac_ext
11904 LDFLAGS=$pkg_save_LDFLAGS
11905fi
11906
11907
11908
11909if test $pkg_failed = yes; then
11910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11911$as_echo "no" >&6; }
11912
11913if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11914 _pkg_short_errors_supported=yes
11915else
11916 _pkg_short_errors_supported=no
11917fi
11918 if test $_pkg_short_errors_supported = yes; then
11919 DEBUGINFOD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdebuginfod >= 0.188" 2>&1`
11920 else
11921 DEBUGINFOD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdebuginfod >= 0.188" 2>&1`
11922 fi
11923 # Put the nasty error message in config.log where it belongs
11924 echo "$DEBUGINFOD_PKG_ERRORS" >&5
11925
11926 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libdebuginfod is missing or some features may be unavailable." >&5
11927$as_echo "$as_me: WARNING: libdebuginfod is missing or some features may be unavailable." >&2;}
11928elif test $pkg_failed = untried; then
11929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11930$as_echo "no" >&6; }
11931 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libdebuginfod is missing or some features may be unavailable." >&5
11932$as_echo "$as_me: WARNING: libdebuginfod is missing or some features may be unavailable." >&2;}
11933else
11934 DEBUGINFOD_CFLAGS=$pkg_cv_DEBUGINFOD_CFLAGS
11935 DEBUGINFOD_LIBS=$pkg_cv_DEBUGINFOD_LIBS
11936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11937$as_echo "yes" >&6; }
11938
11939$as_echo "#define HAVE_LIBDEBUGINFOD_FIND_SECTION 1" >>confdefs.h
11940
11941fi
11942
11943
f6720b1c
AM
11944pkg_failed=no
11945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libdebuginfod >= 0.179" >&5
11946$as_echo_n "checking for libdebuginfod >= 0.179... " >&6; }
11947
11948if test -n "$DEBUGINFOD_CFLAGS"; then
11949 pkg_cv_DEBUGINFOD_CFLAGS="$DEBUGINFOD_CFLAGS"
11950 elif test -n "$PKG_CONFIG"; then
11951 if test -n "$PKG_CONFIG" && \
11952 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdebuginfod >= 0.179\""; } >&5
11953 ($PKG_CONFIG --exists --print-errors "libdebuginfod >= 0.179") 2>&5
11954 ac_status=$?
11955 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11956 test $ac_status = 0; }; then
11957 pkg_cv_DEBUGINFOD_CFLAGS=`$PKG_CONFIG --cflags "libdebuginfod >= 0.179" 2>/dev/null`
11958 test "x$?" != "x0" && pkg_failed=yes
301a9420 11959else
f6720b1c 11960 pkg_failed=yes
301a9420 11961fi
f6720b1c
AM
11962 else
11963 pkg_failed=untried
301a9420 11964fi
f6720b1c
AM
11965if test -n "$DEBUGINFOD_LIBS"; then
11966 pkg_cv_DEBUGINFOD_LIBS="$DEBUGINFOD_LIBS"
11967 elif test -n "$PKG_CONFIG"; then
11968 if test -n "$PKG_CONFIG" && \
11969 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdebuginfod >= 0.179\""; } >&5
11970 ($PKG_CONFIG --exists --print-errors "libdebuginfod >= 0.179") 2>&5
11971 ac_status=$?
11972 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11973 test $ac_status = 0; }; then
11974 pkg_cv_DEBUGINFOD_LIBS=`$PKG_CONFIG --libs "libdebuginfod >= 0.179" 2>/dev/null`
11975 test "x$?" != "x0" && pkg_failed=yes
11976else
11977 pkg_failed=yes
301a9420 11978fi
f6720b1c
AM
11979 else
11980 pkg_failed=untried
301a9420
AM
11981fi
11982
377170fa
L
11983if test $pkg_failed = no; then
11984 pkg_save_LDFLAGS="$LDFLAGS"
11985 LDFLAGS="$LDFLAGS $pkg_cv_DEBUGINFOD_LIBS"
11986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d70f978b
L
11987/* end confdefs.h. */
11988
11989int
11990main ()
11991{
377170fa 11992
d70f978b
L
11993 ;
11994 return 0;
11995}
11996_ACEOF
11997if ac_fn_c_try_link "$LINENO"; then :
377170fa 11998
d70f978b
L
11999else
12000 pkg_failed=yes
12001fi
12002rm -f core conftest.err conftest.$ac_objext \
12003 conftest$ac_exeext conftest.$ac_ext
377170fa
L
12004 LDFLAGS=$pkg_save_LDFLAGS
12005fi
d70f978b 12006
301a9420 12007
301a9420 12008
f6720b1c
AM
12009if test $pkg_failed = yes; then
12010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12011$as_echo "no" >&6; }
301a9420 12012
f6720b1c
AM
12013if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12014 _pkg_short_errors_supported=yes
12015else
12016 _pkg_short_errors_supported=no
12017fi
12018 if test $_pkg_short_errors_supported = yes; then
12019 DEBUGINFOD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdebuginfod >= 0.179" 2>&1`
12020 else
12021 DEBUGINFOD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdebuginfod >= 0.179" 2>&1`
12022 fi
12023 # Put the nasty error message in config.log where it belongs
12024 echo "$DEBUGINFOD_PKG_ERRORS" >&5
301a9420 12025
f6720b1c
AM
12026 if test "x$with_debuginfod" = xyes; then
12027 as_fn_error $? "\"--with-debuginfod was given, but libdebuginfod is missing or unusable.\"" "$LINENO" 5
12028 else
12029 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libdebuginfod is missing or unusable; some features may be unavailable." >&5
12030$as_echo "$as_me: WARNING: libdebuginfod is missing or unusable; some features may be unavailable." >&2;}
12031 fi
12032elif test $pkg_failed = untried; then
12033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12034$as_echo "no" >&6; }
12035 if test "x$with_debuginfod" = xyes; then
12036 as_fn_error $? "\"--with-debuginfod was given, but libdebuginfod is missing or unusable.\"" "$LINENO" 5
12037 else
12038 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libdebuginfod is missing or unusable; some features may be unavailable." >&5
12039$as_echo "$as_me: WARNING: libdebuginfod is missing or unusable; some features may be unavailable." >&2;}
12040 fi
12041else
12042 DEBUGINFOD_CFLAGS=$pkg_cv_DEBUGINFOD_CFLAGS
12043 DEBUGINFOD_LIBS=$pkg_cv_DEBUGINFOD_LIBS
12044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12045$as_echo "yes" >&6; }
12046
12047$as_echo "#define HAVE_LIBDEBUGINFOD 1" >>confdefs.h
12048
12049fi
12050else
12051 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: debuginfod support disabled; some features may be unavailable." >&5
12052$as_echo "$as_me: WARNING: debuginfod support disabled; some features may be unavailable." >&2;}
301a9420
AM
12053fi
12054
12055
094e34f2
NA
12056 # Check whether --enable-libctf was given.
12057if test "${enable_libctf+set}" = set; then :
12058 enableval=$enable_libctf;
12059 case "$enableval" in
12060 yes|no) ;;
12061 *) as_fn_error $? "Argument to enable/disable libctf must be yes or no" "$LINENO" 5 ;;
12062 esac
12063
12064else
12065 enable_libctf=yes
12066fi
12067
12068
12069if test "${enable_libctf}" = yes; then
12070
12071$as_echo "#define ENABLE_LIBCTF 1" >>confdefs.h
12072
12073fi
12074 if test "${enable_libctf}" = yes; then
12075 ENABLE_LIBCTF_TRUE=
12076 ENABLE_LIBCTF_FALSE='#'
12077else
12078 ENABLE_LIBCTF_TRUE='#'
12079 ENABLE_LIBCTF_FALSE=
12080fi
12081
12082
d7040cdb 12083
270c9937
JB
12084# Set the 'development' global.
12085. $srcdir/../bfd/development.sh
12086
c5da1932
VZ
12087# Set acp_cpp_for_build variable
12088ac_cpp_for_build="$CC_FOR_BUILD -E $CPPFLAGS_FOR_BUILD"
12089
9780e045 12090# Default set of GCC warnings to enable.
397841b5 12091GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
c5da1932 12092GCC_WARN_CFLAGS_FOR_BUILD="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
9780e045
NC
12093
12094# Add -Wshadow if the compiler is a sufficiently recent version of GCC.
397841b5
AM
12095cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12096/* end confdefs.h. */
12097__GNUC__
12098_ACEOF
12099if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3107326d 12100 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then :
397841b5
AM
12101
12102else
12103 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wshadow"
12104fi
12105rm -f conftest*
12106
d7040cdb 12107
9780e045
NC
12108# Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
12109cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12110/* end confdefs.h. */
12111__GNUC__
12112_ACEOF
12113if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3107326d 12114 $EGREP "(^[0-4]$|^__GNUC__$)" >/dev/null 2>&1; then :
9780e045
NC
12115
12116else
491cf317
TO
12117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12118/* end confdefs.h. */
12119__clang__
12120_ACEOF
12121if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12122 $EGREP "^__clang__$" >/dev/null 2>&1; then :
9780e045
NC
12123 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wstack-usage=262144"
12124fi
12125rm -f conftest*
12126
491cf317
TO
12127fi
12128rm -f conftest*
12129
9780e045 12130
6757cf57
TS
12131# Set WARN_WRITE_STRINGS if the compiler supports -Wwrite-strings.
12132WARN_WRITE_STRINGS=""
12133cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12134/* end confdefs.h. */
12135__GNUC__
12136_ACEOF
12137if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3107326d 12138 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then :
6757cf57
TS
12139
12140else
12141 WARN_WRITE_STRINGS="-Wwrite-strings"
12142fi
12143rm -f conftest*
12144
9780e045 12145
96fe4562 12146# Verify CC_FOR_BUILD to be compatible with warning flags
c5da1932
VZ
12147
12148# Add -Wshadow if the compiler is a sufficiently recent version of GCC.
12149cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12150/* end confdefs.h. */
12151__GNUC__
12152_ACEOF
12153if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
3107326d 12154 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then :
c5da1932
VZ
12155
12156else
12157 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wshadow"
12158fi
12159rm -f conftest*
12160
12161
12162# Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
12163cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12164/* end confdefs.h. */
12165__GNUC__
12166_ACEOF
12167if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
3107326d 12168 $EGREP "(^[0-4]$|^__GNUC__$)" >/dev/null 2>&1; then :
c5da1932
VZ
12169
12170else
491cf317
TO
12171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12172/* end confdefs.h. */
12173__clang__
12174_ACEOF
12175if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
12176 $EGREP "^__clang__$" >/dev/null 2>&1; then :
c5da1932
VZ
12177 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wstack-usage=262144"
12178fi
12179rm -f conftest*
12180
491cf317
TO
12181fi
12182rm -f conftest*
12183
c5da1932 12184
81ecdfbb
RW
12185# Check whether --enable-werror was given.
12186if test "${enable_werror+set}" = set; then :
12187 enableval=$enable_werror; case "${enableval}" in
d7040cdb
SE
12188 yes | y) ERROR_ON_WARNING="yes" ;;
12189 no | n) ERROR_ON_WARNING="no" ;;
d0ac1c44 12190 *) as_fn_error $? "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
d7040cdb 12191 esac
81ecdfbb
RW
12192fi
12193
d7040cdb 12194
397841b5 12195# Disable -Wformat by default when using gcc on mingw
bb8541b9
L
12196case "${host}" in
12197 *-*-mingw32*)
12198 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
12199 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
c5da1932 12200 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wno-format"
bb8541b9
L
12201 fi
12202 ;;
12203 *) ;;
12204esac
12205
270c9937
JB
12206# Enable -Werror by default when using gcc. Turn it off for releases.
12207if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" -a "$development" = true ; then
d7040cdb
SE
12208 ERROR_ON_WARNING=yes
12209fi
12210
12211NO_WERROR=
12212if test "${ERROR_ON_WARNING}" = yes ; then
9780e045 12213 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
c5da1932 12214 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Werror"
d7040cdb
SE
12215 NO_WERROR="-Wno-error"
12216fi
12217
12218if test "${GCC}" = yes ; then
12219 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
c5da1932 12220 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD}"
d7040cdb
SE
12221fi
12222
81ecdfbb
RW
12223# Check whether --enable-build-warnings was given.
12224if test "${enable_build_warnings+set}" = set; then :
12225 enableval=$enable_build_warnings; case "${enableval}" in
c5da1932
VZ
12226 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}"
12227 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD}";;
d7040cdb
SE
12228 no) if test "${GCC}" = yes ; then
12229 WARN_CFLAGS="-w"
c5da1932 12230 WARN_CFLAGS_FOR_BUILD="-w"
d7040cdb
SE
12231 fi;;
12232 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
c5da1932
VZ
12233 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}"
12234 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD} ${t}";;
d7040cdb 12235 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
c5da1932
VZ
12236 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}"
12237 WARN_CFLAGS_FOR_BUILD="${t} ${GCC_WARN_CFLAGS_FOR_BUILD}";;
12238 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`
12239 WARN_CFLAGS_FOR_BUILD=`echo "${enableval}" | sed -e "s/,/ /g"`;;
d7040cdb 12240esac
81ecdfbb
RW
12241fi
12242
d7040cdb
SE
12243
12244if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
12245 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
12246fi
12247
12248
12249
12250
12251
6757cf57 12252
c5da1932 12253
81ecdfbb 12254ac_config_headers="$ac_config_headers config.h:config.in"
d7040cdb
SE
12255
12256
df7b86aa
NC
12257
12258
d7040cdb 12259if test -z "$target" ; then
d0ac1c44 12260 as_fn_error $? "Unrecognized target system type; please check config.sub." "$LINENO" 5
d7040cdb
SE
12261fi
12262if test -z "$host" ; then
d0ac1c44 12263 as_fn_error $? "Unrecognized host system type; please check config.sub." "$LINENO" 5
d7040cdb
SE
12264fi
12265
12266for ac_prog in 'bison -y' byacc
12267do
12268 # Extract the first word of "$ac_prog", so it can be a program name with args.
12269set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
12270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12271$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12272if ${ac_cv_prog_YACC+:} false; then :
81ecdfbb 12273 $as_echo_n "(cached) " >&6
d7040cdb
SE
12274else
12275 if test -n "$YACC"; then
12276 ac_cv_prog_YACC="$YACC" # Let the user override the test.
12277else
12278as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12279for as_dir in $PATH
12280do
12281 IFS=$as_save_IFS
12282 test -z "$as_dir" && as_dir=.
81ecdfbb 12283 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12284 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d7040cdb 12285 ac_cv_prog_YACC="$ac_prog"
81ecdfbb 12286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb
SE
12287 break 2
12288 fi
12289done
81ecdfbb
RW
12290 done
12291IFS=$as_save_IFS
d7040cdb
SE
12292
12293fi
12294fi
12295YACC=$ac_cv_prog_YACC
12296if test -n "$YACC"; then
81ecdfbb
RW
12297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
12298$as_echo "$YACC" >&6; }
d7040cdb 12299else
81ecdfbb
RW
12300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12301$as_echo "no" >&6; }
d7040cdb
SE
12302fi
12303
81ecdfbb 12304
d7040cdb
SE
12305 test -n "$YACC" && break
12306done
12307test -n "$YACC" || YACC="yacc"
12308
12309for ac_prog in flex lex
12310do
12311 # Extract the first word of "$ac_prog", so it can be a program name with args.
12312set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
12313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12314$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12315if ${ac_cv_prog_LEX+:} false; then :
81ecdfbb 12316 $as_echo_n "(cached) " >&6
d7040cdb
SE
12317else
12318 if test -n "$LEX"; then
12319 ac_cv_prog_LEX="$LEX" # Let the user override the test.
12320else
12321as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12322for as_dir in $PATH
12323do
12324 IFS=$as_save_IFS
12325 test -z "$as_dir" && as_dir=.
81ecdfbb 12326 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12327 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d7040cdb 12328 ac_cv_prog_LEX="$ac_prog"
81ecdfbb 12329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb
SE
12330 break 2
12331 fi
12332done
81ecdfbb
RW
12333 done
12334IFS=$as_save_IFS
d7040cdb
SE
12335
12336fi
12337fi
12338LEX=$ac_cv_prog_LEX
12339if test -n "$LEX"; then
81ecdfbb
RW
12340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
12341$as_echo "$LEX" >&6; }
d7040cdb 12342else
81ecdfbb
RW
12343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12344$as_echo "no" >&6; }
d7040cdb
SE
12345fi
12346
81ecdfbb 12347
d7040cdb
SE
12348 test -n "$LEX" && break
12349done
12350test -n "$LEX" || LEX=":"
12351
3d961d0d
AM
12352case "$LEX" in
12353 :|*"missing "*) ;;
12354 *) cat >conftest.l <<_ACEOF
81ecdfbb
RW
12355%%
12356a { ECHO; }
12357b { REJECT; }
12358c { yymore (); }
12359d { yyless (1); }
d0ac1c44
SM
12360e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
12361 yyless ((input () != 0)); }
81ecdfbb
RW
12362f { unput (yytext[0]); }
12363. { BEGIN INITIAL; }
12364%%
12365#ifdef YYTEXT_POINTER
12366extern char *yytext;
d7040cdb 12367#endif
d7040cdb 12368int
81ecdfbb 12369main (void)
d7040cdb 12370{
81ecdfbb 12371 return ! yylex () + ! yywrap ();
d7040cdb
SE
12372}
12373_ACEOF
81ecdfbb
RW
12374{ { ac_try="$LEX conftest.l"
12375case "(($ac_try" in
12376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12377 *) ac_try_echo=$ac_try;;
12378esac
12379eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12380$as_echo "$ac_try_echo"; } >&5
12381 (eval "$LEX conftest.l") 2>&5
d7040cdb 12382 ac_status=$?
81ecdfbb
RW
12383 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12384 test $ac_status = 0; }
12385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
12386$as_echo_n "checking lex output file root... " >&6; }
d0ac1c44 12387if ${ac_cv_prog_lex_root+:} false; then :
81ecdfbb 12388 $as_echo_n "(cached) " >&6
d7040cdb 12389else
d7040cdb 12390
81ecdfbb
RW
12391if test -f lex.yy.c; then
12392 ac_cv_prog_lex_root=lex.yy
12393elif test -f lexyy.c; then
12394 ac_cv_prog_lex_root=lexyy
12395else
d0ac1c44 12396 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
d7040cdb 12397fi
d7040cdb 12398fi
81ecdfbb
RW
12399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
12400$as_echo "$ac_cv_prog_lex_root" >&6; }
12401LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
d7040cdb 12402
81ecdfbb
RW
12403if test -z "${LEXLIB+set}"; then
12404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
12405$as_echo_n "checking lex library... " >&6; }
d0ac1c44 12406if ${ac_cv_lib_lex+:} false; then :
81ecdfbb 12407 $as_echo_n "(cached) " >&6
d7040cdb 12408else
d7040cdb 12409
81ecdfbb
RW
12410 ac_save_LIBS=$LIBS
12411 ac_cv_lib_lex='none needed'
12412 for ac_lib in '' -lfl -ll; do
12413 LIBS="$ac_lib $ac_save_LIBS"
12414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12415/* end confdefs.h. */
12416`cat $LEX_OUTPUT_ROOT.c`
12417_ACEOF
12418if ac_fn_c_try_link "$LINENO"; then :
12419 ac_cv_lib_lex=$ac_lib
d7040cdb 12420fi
81ecdfbb
RW
12421rm -f core conftest.err conftest.$ac_objext \
12422 conftest$ac_exeext conftest.$ac_ext
12423 test "$ac_cv_lib_lex" != 'none needed' && break
12424 done
12425 LIBS=$ac_save_LIBS
d7040cdb
SE
12426
12427fi
81ecdfbb
RW
12428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
12429$as_echo "$ac_cv_lib_lex" >&6; }
12430 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
d7040cdb
SE
12431fi
12432
d7040cdb 12433
81ecdfbb
RW
12434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
12435$as_echo_n "checking whether yytext is a pointer... " >&6; }
d0ac1c44 12436if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
81ecdfbb 12437 $as_echo_n "(cached) " >&6
d7040cdb
SE
12438else
12439 # POSIX says lex can declare yytext either as a pointer or an array; the
81ecdfbb 12440# default is implementation-dependent. Figure out which it is, since
d7040cdb
SE
12441# not all implementations provide the %pointer and %array declarations.
12442ac_cv_prog_lex_yytext_pointer=no
d7040cdb 12443ac_save_LIBS=$LIBS
81ecdfbb
RW
12444LIBS="$LEXLIB $ac_save_LIBS"
12445cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12446/* end confdefs.h. */
d0ac1c44
SM
12447
12448 #define YYTEXT_POINTER 1
d7040cdb
SE
12449`cat $LEX_OUTPUT_ROOT.c`
12450_ACEOF
81ecdfbb 12451if ac_fn_c_try_link "$LINENO"; then :
d7040cdb 12452 ac_cv_prog_lex_yytext_pointer=yes
d7040cdb 12453fi
81ecdfbb
RW
12454rm -f core conftest.err conftest.$ac_objext \
12455 conftest$ac_exeext conftest.$ac_ext
d7040cdb 12456LIBS=$ac_save_LIBS
d7040cdb
SE
12457
12458fi
81ecdfbb
RW
12459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
12460$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
d7040cdb
SE
12461if test $ac_cv_prog_lex_yytext_pointer = yes; then
12462
81ecdfbb 12463$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
d7040cdb
SE
12464
12465fi
81ecdfbb 12466rm -f conftest.l $LEX_OUTPUT_ROOT.c
3d961d0d
AM
12467 ;;
12468esac
d7040cdb
SE
12469if test "$LEX" = :; then
12470 LEX=${am_missing_run}flex
12471fi
12472
e184813f 12473ALL_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
12474
12475 MKINSTALLDIRS=
12476 if test -n "$ac_aux_dir"; then
12477 case "$ac_aux_dir" in
12478 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
12479 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
12480 esac
12481 fi
12482 if test -z "$MKINSTALLDIRS"; then
12483 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
12484 fi
12485
12486
12487
81ecdfbb
RW
12488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
12489$as_echo_n "checking whether NLS is requested... " >&6; }
12490 # Check whether --enable-nls was given.
12491if test "${enable_nls+set}" = set; then :
12492 enableval=$enable_nls; USE_NLS=$enableval
d7040cdb
SE
12493else
12494 USE_NLS=yes
81ecdfbb
RW
12495fi
12496
12497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
12498$as_echo "$USE_NLS" >&6; }
d7040cdb
SE
12499
12500
12501
12502
12503
12504
12505# Prepare PATH_SEPARATOR.
12506# The user is always right.
12507if test "${PATH_SEPARATOR+set}" != set; then
12508 echo "#! /bin/sh" >conf$$.sh
12509 echo "exit 0" >>conf$$.sh
12510 chmod +x conf$$.sh
12511 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12512 PATH_SEPARATOR=';'
12513 else
12514 PATH_SEPARATOR=:
12515 fi
12516 rm -f conf$$.sh
12517fi
12518
12519# Find out how to test for executable files. Don't use a zero-byte file,
12520# as systems may use methods other than mode bits to determine executability.
12521cat >conf$$.file <<_ASEOF
12522#! /bin/sh
12523exit 0
12524_ASEOF
12525chmod +x conf$$.file
12526if test -x conf$$.file >/dev/null 2>&1; then
12527 ac_executable_p="test -x"
12528else
12529 ac_executable_p="test -f"
12530fi
12531rm -f conf$$.file
12532
12533# Extract the first word of "msgfmt", so it can be a program name with args.
12534set dummy msgfmt; ac_word=$2
81ecdfbb
RW
12535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12536$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12537if ${ac_cv_path_MSGFMT+:} false; then :
81ecdfbb 12538 $as_echo_n "(cached) " >&6
d7040cdb
SE
12539else
12540 case "$MSGFMT" in
12541 [\\/]* | ?:[\\/]*)
12542 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
12543 ;;
12544 *)
12545 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12546 for ac_dir in $PATH; do
12547 IFS="$ac_save_IFS"
12548 test -z "$ac_dir" && ac_dir=.
12549 for ac_exec_ext in '' $ac_executable_extensions; do
12550 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12551 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
12552 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12553 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
12554 break 2
12555 fi
12556 fi
12557 done
12558 done
12559 IFS="$ac_save_IFS"
12560 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
12561 ;;
12562esac
12563fi
12564MSGFMT="$ac_cv_path_MSGFMT"
12565if test "$MSGFMT" != ":"; then
81ecdfbb
RW
12566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
12567$as_echo "$MSGFMT" >&6; }
d7040cdb 12568else
81ecdfbb
RW
12569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12570$as_echo "no" >&6; }
d7040cdb
SE
12571fi
12572
12573 # Extract the first word of "gmsgfmt", so it can be a program name with args.
12574set dummy gmsgfmt; ac_word=$2
81ecdfbb
RW
12575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12576$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12577if ${ac_cv_path_GMSGFMT+:} false; then :
81ecdfbb 12578 $as_echo_n "(cached) " >&6
d7040cdb
SE
12579else
12580 case $GMSGFMT in
12581 [\\/]* | ?:[\\/]*)
12582 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
12583 ;;
12584 *)
12585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12586for as_dir in $PATH
12587do
12588 IFS=$as_save_IFS
12589 test -z "$as_dir" && as_dir=.
81ecdfbb 12590 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12591 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d7040cdb 12592 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 12593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb
SE
12594 break 2
12595 fi
12596done
81ecdfbb
RW
12597 done
12598IFS=$as_save_IFS
d7040cdb
SE
12599
12600 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
12601 ;;
12602esac
12603fi
12604GMSGFMT=$ac_cv_path_GMSGFMT
d7040cdb 12605if test -n "$GMSGFMT"; then
81ecdfbb
RW
12606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
12607$as_echo "$GMSGFMT" >&6; }
d7040cdb 12608else
81ecdfbb
RW
12609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12610$as_echo "no" >&6; }
d7040cdb
SE
12611fi
12612
12613
12614
81ecdfbb 12615
d7040cdb
SE
12616# Prepare PATH_SEPARATOR.
12617# The user is always right.
12618if test "${PATH_SEPARATOR+set}" != set; then
12619 echo "#! /bin/sh" >conf$$.sh
12620 echo "exit 0" >>conf$$.sh
12621 chmod +x conf$$.sh
12622 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12623 PATH_SEPARATOR=';'
12624 else
12625 PATH_SEPARATOR=:
12626 fi
12627 rm -f conf$$.sh
12628fi
12629
12630# Find out how to test for executable files. Don't use a zero-byte file,
12631# as systems may use methods other than mode bits to determine executability.
12632cat >conf$$.file <<_ASEOF
12633#! /bin/sh
12634exit 0
12635_ASEOF
12636chmod +x conf$$.file
12637if test -x conf$$.file >/dev/null 2>&1; then
12638 ac_executable_p="test -x"
12639else
12640 ac_executable_p="test -f"
12641fi
12642rm -f conf$$.file
12643
12644# Extract the first word of "xgettext", so it can be a program name with args.
12645set dummy xgettext; ac_word=$2
81ecdfbb
RW
12646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12647$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12648if ${ac_cv_path_XGETTEXT+:} false; then :
81ecdfbb 12649 $as_echo_n "(cached) " >&6
d7040cdb
SE
12650else
12651 case "$XGETTEXT" in
12652 [\\/]* | ?:[\\/]*)
12653 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
12654 ;;
12655 *)
12656 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12657 for ac_dir in $PATH; do
12658 IFS="$ac_save_IFS"
12659 test -z "$ac_dir" && ac_dir=.
12660 for ac_exec_ext in '' $ac_executable_extensions; do
12661 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12662 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
12663 (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
12664 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
12665 break 2
12666 fi
12667 fi
12668 done
12669 done
12670 IFS="$ac_save_IFS"
12671 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
12672 ;;
12673esac
12674fi
12675XGETTEXT="$ac_cv_path_XGETTEXT"
12676if test "$XGETTEXT" != ":"; then
81ecdfbb
RW
12677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
12678$as_echo "$XGETTEXT" >&6; }
d7040cdb 12679else
81ecdfbb
RW
12680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12681$as_echo "no" >&6; }
d7040cdb
SE
12682fi
12683
12684 rm -f messages.po
12685
12686
12687# Prepare PATH_SEPARATOR.
12688# The user is always right.
12689if test "${PATH_SEPARATOR+set}" != set; then
12690 echo "#! /bin/sh" >conf$$.sh
12691 echo "exit 0" >>conf$$.sh
12692 chmod +x conf$$.sh
12693 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12694 PATH_SEPARATOR=';'
12695 else
12696 PATH_SEPARATOR=:
12697 fi
12698 rm -f conf$$.sh
12699fi
12700
12701# Find out how to test for executable files. Don't use a zero-byte file,
12702# as systems may use methods other than mode bits to determine executability.
12703cat >conf$$.file <<_ASEOF
12704#! /bin/sh
12705exit 0
12706_ASEOF
12707chmod +x conf$$.file
12708if test -x conf$$.file >/dev/null 2>&1; then
12709 ac_executable_p="test -x"
12710else
12711 ac_executable_p="test -f"
12712fi
12713rm -f conf$$.file
12714
12715# Extract the first word of "msgmerge", so it can be a program name with args.
12716set dummy msgmerge; ac_word=$2
81ecdfbb
RW
12717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12718$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12719if ${ac_cv_path_MSGMERGE+:} false; then :
81ecdfbb 12720 $as_echo_n "(cached) " >&6
d7040cdb
SE
12721else
12722 case "$MSGMERGE" in
12723 [\\/]* | ?:[\\/]*)
12724 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
12725 ;;
12726 *)
12727 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12728 for ac_dir in $PATH; do
12729 IFS="$ac_save_IFS"
12730 test -z "$ac_dir" && ac_dir=.
12731 for ac_exec_ext in '' $ac_executable_extensions; do
12732 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12733 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
12734 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
12735 break 2
12736 fi
12737 fi
12738 done
12739 done
12740 IFS="$ac_save_IFS"
12741 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
12742 ;;
12743esac
12744fi
12745MSGMERGE="$ac_cv_path_MSGMERGE"
12746if test "$MSGMERGE" != ":"; then
81ecdfbb
RW
12747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
12748$as_echo "$MSGMERGE" >&6; }
d7040cdb 12749else
81ecdfbb
RW
12750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12751$as_echo "no" >&6; }
d7040cdb
SE
12752fi
12753
12754
12755 if test "$GMSGFMT" != ":"; then
12756 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
12757 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12758 : ;
12759 else
12760 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
81ecdfbb
RW
12761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
12762$as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
d7040cdb
SE
12763 GMSGFMT=":"
12764 fi
12765 fi
12766
12767 if test "$XGETTEXT" != ":"; then
12768 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
12769 (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
12770 : ;
12771 else
81ecdfbb
RW
12772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
12773$as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
d7040cdb
SE
12774 XGETTEXT=":"
12775 fi
12776 rm -f messages.po
12777 fi
12778
81ecdfbb 12779 ac_config_commands="$ac_config_commands default-1"
d7040cdb
SE
12780
12781
12782
862776f2
AA
12783 if test "X$prefix" = "XNONE"; then
12784 acl_final_prefix="$ac_default_prefix"
12785 else
12786 acl_final_prefix="$prefix"
12787 fi
12788 if test "X$exec_prefix" = "XNONE"; then
12789 acl_final_exec_prefix='${prefix}'
12790 else
12791 acl_final_exec_prefix="$exec_prefix"
12792 fi
12793 acl_save_prefix="$prefix"
12794 prefix="$acl_final_prefix"
12795 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
12796 prefix="$acl_save_prefix"
81ecdfbb 12797
d7040cdb 12798
862776f2
AA
12799# Check whether --with-gnu-ld was given.
12800if test "${with_gnu_ld+set}" = set; then :
12801 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
d7040cdb 12802else
862776f2 12803 with_gnu_ld=no
42ecbf5e 12804fi
d7040cdb 12805
862776f2
AA
12806# Prepare PATH_SEPARATOR.
12807# The user is always right.
12808if test "${PATH_SEPARATOR+set}" != set; then
12809 echo "#! /bin/sh" >conf$$.sh
12810 echo "exit 0" >>conf$$.sh
12811 chmod +x conf$$.sh
12812 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12813 PATH_SEPARATOR=';'
12814 else
12815 PATH_SEPARATOR=:
12816 fi
12817 rm -f conf$$.sh
42ecbf5e 12818fi
862776f2
AA
12819ac_prog=ld
12820if test "$GCC" = yes; then
12821 # Check if gcc -print-prog-name=ld gives a path.
12822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
12823$as_echo_n "checking for ld used by GCC... " >&6; }
12824 case $host in
12825 *-*-mingw*)
12826 # gcc leaves a trailing carriage return which upsets mingw
12827 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12828 *)
12829 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12830 esac
12831 case $ac_prog in
12832 # Accept absolute paths.
12833 [\\/]* | [A-Za-z]:[\\/]*)
12834 re_direlt='/[^/][^/]*/\.\./'
12835 # Canonicalize the path of ld
12836 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
12837 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12838 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
12839 done
12840 test -z "$LD" && LD="$ac_prog"
12841 ;;
12842 "")
12843 # If it fails, then pretend we aren't using GCC.
12844 ac_prog=ld
12845 ;;
12846 *)
12847 # If it is relative, then search for the first ld in PATH.
12848 with_gnu_ld=unknown
12849 ;;
12850 esac
12851elif test "$with_gnu_ld" = yes; then
12852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12853$as_echo_n "checking for GNU ld... " >&6; }
12854else
12855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12856$as_echo_n "checking for non-GNU ld... " >&6; }
252b5132 12857fi
862776f2 12858if ${acl_cv_path_LD+:} false; then :
81ecdfbb 12859 $as_echo_n "(cached) " >&6
d7040cdb 12860else
862776f2
AA
12861 if test -z "$LD"; then
12862 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
12863 for ac_dir in $PATH; do
12864 test -z "$ac_dir" && ac_dir=.
12865 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12866 acl_cv_path_LD="$ac_dir/$ac_prog"
12867 # Check to see if the program is GNU ld. I'd rather use --version,
12868 # but apparently some GNU ld's only accept -v.
12869 # Break only if it was the GNU/non-GNU ld that we prefer.
12870 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | $EGREP '(GNU|with BFD)' > /dev/null; then
12871 test "$with_gnu_ld" != no && break
12872 else
12873 test "$with_gnu_ld" != yes && break
12874 fi
12875 fi
81ecdfbb 12876 done
862776f2
AA
12877 IFS="$ac_save_ifs"
12878else
12879 acl_cv_path_LD="$LD" # Let the user override the test with a path.
d7040cdb
SE
12880fi
12881fi
862776f2
AA
12882
12883LD="$acl_cv_path_LD"
12884if test -n "$LD"; then
12885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12886$as_echo "$LD" >&6; }
d7040cdb 12887else
81ecdfbb
RW
12888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12889$as_echo "no" >&6; }
d7040cdb 12890fi
862776f2
AA
12891test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12893$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12894if ${acl_cv_prog_gnu_ld+:} false; then :
81ecdfbb 12895 $as_echo_n "(cached) " >&6
252b5132 12896else
862776f2
AA
12897 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
12898if $LD -v 2>&1 </dev/null | $EGREP '(GNU|with BFD)' 1>&5; then
12899 acl_cv_prog_gnu_ld=yes
d7040cdb 12900else
862776f2 12901 acl_cv_prog_gnu_ld=no
d7040cdb 12902fi
d7040cdb 12903fi
862776f2
AA
12904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
12905$as_echo "$acl_cv_prog_gnu_ld" >&6; }
12906with_gnu_ld=$acl_cv_prog_gnu_ld
d7040cdb 12907
d7040cdb
SE
12908
12909
862776f2
AA
12910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
12911$as_echo_n "checking for shared library run path origin... " >&6; }
12912if ${acl_cv_rpath+:} false; then :
81ecdfbb 12913 $as_echo_n "(cached) " >&6
d7040cdb 12914else
252b5132 12915
862776f2
AA
12916 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
12917 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
12918 . ./conftest.sh
12919 rm -f ./conftest.sh
12920 acl_cv_rpath=done
42ecbf5e 12921
81ecdfbb 12922fi
862776f2
AA
12923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
12924$as_echo "$acl_cv_rpath" >&6; }
12925 wl="$acl_cv_wl"
12926 libext="$acl_cv_libext"
12927 shlibext="$acl_cv_shlibext"
12928 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
12929 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
12930 hardcode_direct="$acl_cv_hardcode_direct"
12931 hardcode_minus_L="$acl_cv_hardcode_minus_L"
12932 # Check whether --enable-rpath was given.
12933if test "${enable_rpath+set}" = set; then :
12934 enableval=$enable_rpath; :
252b5132 12935else
862776f2 12936 enable_rpath=yes
252b5132 12937fi
42ecbf5e 12938
252b5132 12939
252b5132 12940
34156b23
L
12941
12942
12943
34156b23 12944
34156b23 12945
862776f2
AA
12946 use_additional=yes
12947
12948 acl_save_prefix="$prefix"
12949 prefix="$acl_final_prefix"
12950 acl_save_exec_prefix="$exec_prefix"
12951 exec_prefix="$acl_final_exec_prefix"
34156b23 12952
862776f2
AA
12953 eval additional_includedir=\"$includedir\"
12954 eval additional_libdir=\"$libdir\"
34156b23 12955
862776f2
AA
12956 exec_prefix="$acl_save_exec_prefix"
12957 prefix="$acl_save_prefix"
34156b23
L
12958
12959
862776f2
AA
12960# Check whether --with-libiconv-prefix was given.
12961if test "${with_libiconv_prefix+set}" = set; then :
12962 withval=$with_libiconv_prefix;
12963 if test "X$withval" = "Xno"; then
12964 use_additional=no
12965 else
12966 if test "X$withval" = "X"; then
34156b23 12967
862776f2
AA
12968 acl_save_prefix="$prefix"
12969 prefix="$acl_final_prefix"
12970 acl_save_exec_prefix="$exec_prefix"
12971 exec_prefix="$acl_final_exec_prefix"
34156b23 12972
862776f2
AA
12973 eval additional_includedir=\"$includedir\"
12974 eval additional_libdir=\"$libdir\"
34156b23 12975
862776f2
AA
12976 exec_prefix="$acl_save_exec_prefix"
12977 prefix="$acl_save_prefix"
34156b23 12978
862776f2
AA
12979 else
12980 additional_includedir="$withval/include"
12981 additional_libdir="$withval/lib"
12982 fi
12983 fi
34156b23
L
12984
12985fi
34156b23 12986
862776f2
AA
12987
12988# Check whether --with-libiconv-type was given.
12989if test "${with_libiconv_type+set}" = set; then :
12990 withval=$with_libiconv_type; with_libiconv_type=$withval
34156b23 12991else
862776f2
AA
12992 with_libiconv_type=auto
12993fi
34156b23 12994
862776f2
AA
12995 lib_type=`eval echo \$with_libiconv_type`
12996
12997 LIBICONV=
12998 LTLIBICONV=
12999 INCICONV=
13000 rpathdirs=
13001 ltrpathdirs=
13002 names_already_handled=
13003 names_next_round='iconv '
13004 while test -n "$names_next_round"; do
13005 names_this_round="$names_next_round"
13006 names_next_round=
13007 for name in $names_this_round; do
13008 already_handled=
13009 for n in $names_already_handled; do
13010 if test "$n" = "$name"; then
13011 already_handled=yes
13012 break
13013 fi
13014 done
13015 if test -z "$already_handled"; then
13016 names_already_handled="$names_already_handled $name"
13017 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
13018 eval value=\"\$HAVE_LIB$uppername\"
13019 if test -n "$value"; then
13020 if test "$value" = yes; then
13021 eval value=\"\$LIB$uppername\"
13022 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
13023 eval value=\"\$LTLIB$uppername\"
13024 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
13025 else
13026 :
13027 fi
13028 else
13029 found_dir=
13030 found_la=
13031 found_so=
13032 found_a=
13033 if test $use_additional = yes; then
13034 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
13035 found_dir="$additional_libdir"
13036 found_so="$additional_libdir/lib$name.$shlibext"
13037 if test -f "$additional_libdir/lib$name.la"; then
13038 found_la="$additional_libdir/lib$name.la"
13039 fi
13040 elif test x$lib_type != xshared; then
13041 if test -f "$additional_libdir/lib$name.$libext"; then
13042 found_dir="$additional_libdir"
13043 found_a="$additional_libdir/lib$name.$libext"
13044 if test -f "$additional_libdir/lib$name.la"; then
13045 found_la="$additional_libdir/lib$name.la"
13046 fi
13047 fi
13048 fi
13049 fi
13050 if test "X$found_dir" = "X"; then
13051 for x in $LDFLAGS $LTLIBICONV; do
13052
13053 acl_save_prefix="$prefix"
13054 prefix="$acl_final_prefix"
13055 acl_save_exec_prefix="$exec_prefix"
13056 exec_prefix="$acl_final_exec_prefix"
13057 eval x=\"$x\"
13058 exec_prefix="$acl_save_exec_prefix"
13059 prefix="$acl_save_prefix"
13060
13061 case "$x" in
13062 -L*)
13063 dir=`echo "X$x" | sed -e 's/^X-L//'`
13064 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
13065 found_dir="$dir"
13066 found_so="$dir/lib$name.$shlibext"
13067 if test -f "$dir/lib$name.la"; then
13068 found_la="$dir/lib$name.la"
13069 fi
13070 elif test x$lib_type != xshared; then
13071 if test -f "$dir/lib$name.$libext"; then
13072 found_dir="$dir"
13073 found_a="$dir/lib$name.$libext"
13074 if test -f "$dir/lib$name.la"; then
13075 found_la="$dir/lib$name.la"
13076 fi
13077 fi
13078 fi
13079 ;;
13080 esac
13081 if test "X$found_dir" != "X"; then
13082 break
13083 fi
13084 done
13085 fi
13086 if test "X$found_dir" != "X"; then
13087 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
13088 if test "X$found_so" != "X"; then
13089 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
13090 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13091 else
13092 haveit=
13093 for x in $ltrpathdirs; do
13094 if test "X$x" = "X$found_dir"; then
13095 haveit=yes
13096 break
13097 fi
13098 done
13099 if test -z "$haveit"; then
13100 ltrpathdirs="$ltrpathdirs $found_dir"
13101 fi
13102 if test "$hardcode_direct" = yes; then
13103 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13104 else
13105 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
13106 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13107 haveit=
13108 for x in $rpathdirs; do
13109 if test "X$x" = "X$found_dir"; then
13110 haveit=yes
13111 break
13112 fi
13113 done
13114 if test -z "$haveit"; then
13115 rpathdirs="$rpathdirs $found_dir"
13116 fi
13117 else
13118 haveit=
13119 for x in $LDFLAGS $LIBICONV; do
13120
13121 acl_save_prefix="$prefix"
13122 prefix="$acl_final_prefix"
13123 acl_save_exec_prefix="$exec_prefix"
13124 exec_prefix="$acl_final_exec_prefix"
13125 eval x=\"$x\"
13126 exec_prefix="$acl_save_exec_prefix"
13127 prefix="$acl_save_prefix"
13128
13129 if test "X$x" = "X-L$found_dir"; then
13130 haveit=yes
13131 break
13132 fi
13133 done
13134 if test -z "$haveit"; then
13135 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
13136 fi
13137 if test "$hardcode_minus_L" != no; then
13138 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13139 else
13140 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
13141 fi
13142 fi
13143 fi
13144 fi
13145 else
13146 if test "X$found_a" != "X"; then
13147 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
13148 else
13149 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
13150 fi
13151 fi
13152 additional_includedir=
13153 case "$found_dir" in
13154 */lib | */lib/)
13155 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
13156 additional_includedir="$basedir/include"
13157 ;;
13158 esac
13159 if test "X$additional_includedir" != "X"; then
13160 if test "X$additional_includedir" != "X/usr/include"; then
13161 haveit=
13162 if test "X$additional_includedir" = "X/usr/local/include"; then
13163 if test -n "$GCC"; then
13164 case $host_os in
13165 linux*) haveit=yes;;
13166 esac
13167 fi
13168 fi
13169 if test -z "$haveit"; then
13170 for x in $CPPFLAGS $INCICONV; do
13171
13172 acl_save_prefix="$prefix"
13173 prefix="$acl_final_prefix"
13174 acl_save_exec_prefix="$exec_prefix"
13175 exec_prefix="$acl_final_exec_prefix"
13176 eval x=\"$x\"
13177 exec_prefix="$acl_save_exec_prefix"
13178 prefix="$acl_save_prefix"
13179
13180 if test "X$x" = "X-I$additional_includedir"; then
13181 haveit=yes
13182 break
13183 fi
13184 done
13185 if test -z "$haveit"; then
13186 if test -d "$additional_includedir"; then
13187 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
13188 fi
13189 fi
13190 fi
13191 fi
13192 fi
13193 if test -n "$found_la"; then
13194 save_libdir="$libdir"
13195 case "$found_la" in
13196 */* | *\\*) . "$found_la" ;;
13197 *) . "./$found_la" ;;
13198 esac
13199 libdir="$save_libdir"
13200 for dep in $dependency_libs; do
13201 case "$dep" in
13202 -L*)
13203 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
13204 if test "X$additional_libdir" != "X/usr/lib"; then
13205 haveit=
13206 if test "X$additional_libdir" = "X/usr/local/lib"; then
13207 if test -n "$GCC"; then
13208 case $host_os in
13209 linux*) haveit=yes;;
13210 esac
13211 fi
13212 fi
13213 if test -z "$haveit"; then
13214 haveit=
13215 for x in $LDFLAGS $LIBICONV; do
13216
13217 acl_save_prefix="$prefix"
13218 prefix="$acl_final_prefix"
13219 acl_save_exec_prefix="$exec_prefix"
13220 exec_prefix="$acl_final_exec_prefix"
13221 eval x=\"$x\"
13222 exec_prefix="$acl_save_exec_prefix"
13223 prefix="$acl_save_prefix"
13224
13225 if test "X$x" = "X-L$additional_libdir"; then
13226 haveit=yes
13227 break
13228 fi
13229 done
13230 if test -z "$haveit"; then
13231 if test -d "$additional_libdir"; then
13232 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
13233 fi
13234 fi
13235 haveit=
13236 for x in $LDFLAGS $LTLIBICONV; do
13237
13238 acl_save_prefix="$prefix"
13239 prefix="$acl_final_prefix"
13240 acl_save_exec_prefix="$exec_prefix"
13241 exec_prefix="$acl_final_exec_prefix"
13242 eval x=\"$x\"
13243 exec_prefix="$acl_save_exec_prefix"
13244 prefix="$acl_save_prefix"
13245
13246 if test "X$x" = "X-L$additional_libdir"; then
13247 haveit=yes
13248 break
13249 fi
13250 done
13251 if test -z "$haveit"; then
13252 if test -d "$additional_libdir"; then
13253 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
13254 fi
13255 fi
13256 fi
13257 fi
13258 ;;
13259 -R*)
13260 dir=`echo "X$dep" | sed -e 's/^X-R//'`
13261 if test "$enable_rpath" != no; then
13262 haveit=
13263 for x in $rpathdirs; do
13264 if test "X$x" = "X$dir"; then
13265 haveit=yes
13266 break
13267 fi
13268 done
13269 if test -z "$haveit"; then
13270 rpathdirs="$rpathdirs $dir"
13271 fi
13272 haveit=
13273 for x in $ltrpathdirs; do
13274 if test "X$x" = "X$dir"; then
13275 haveit=yes
13276 break
13277 fi
13278 done
13279 if test -z "$haveit"; then
13280 ltrpathdirs="$ltrpathdirs $dir"
13281 fi
13282 fi
13283 ;;
13284 -l*)
13285 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
13286 ;;
13287 *.la)
13288 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
13289 ;;
13290 *)
13291 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
13292 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
13293 ;;
13294 esac
13295 done
13296 fi
13297 else
13298 if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
13299 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
13300 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
13301 else
13302 LIBICONV="${LIBICONV}${LIBICONV:+ }-l:lib$name.$libext"
13303 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l:lib$name.$libext"
13304 fi
13305 fi
13306 fi
13307 fi
13308 done
13309 done
13310 if test "X$rpathdirs" != "X"; then
13311 if test -n "$hardcode_libdir_separator"; then
13312 alldirs=
13313 for found_dir in $rpathdirs; do
13314 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
13315 done
13316 acl_save_libdir="$libdir"
13317 libdir="$alldirs"
13318 eval flag=\"$hardcode_libdir_flag_spec\"
13319 libdir="$acl_save_libdir"
13320 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
13321 else
13322 for found_dir in $rpathdirs; do
13323 acl_save_libdir="$libdir"
13324 libdir="$found_dir"
13325 eval flag=\"$hardcode_libdir_flag_spec\"
13326 libdir="$acl_save_libdir"
13327 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
13328 done
13329 fi
13330 fi
13331 if test "X$ltrpathdirs" != "X"; then
13332 for found_dir in $ltrpathdirs; do
13333 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
13334 done
13335 fi
13336
13337
13338
13339
13340
13341if test -f ../gettext/uninstalled-config.sh; then
13342 relative_builddir='$(top_builddir)/../gettext'
13343 . ../gettext/uninstalled-config.sh
13344else
13345 # The sister gettext directory doesn't exist and won't collect information on
13346 # using gettext for us. Call a bundled AM_GNU_GETTEXT.
13347
13348
13349
13350
13351
13352
13353
13354
13355
13356
13357
13358
13359
13360
13361
13362
13363
13364
13365
13366
13367
13368
13369
13370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
13371$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
13372if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
13373 $as_echo_n "(cached) " >&6
13374else
13375 gt_save_LIBS="$LIBS"
13376 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
13377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13378/* end confdefs.h. */
13379#include <CoreFoundation/CFPreferences.h>
13380int
13381main ()
13382{
13383CFPreferencesCopyAppValue(NULL, NULL)
13384 ;
13385 return 0;
13386}
13387_ACEOF
13388if ac_fn_c_try_link "$LINENO"; then :
13389 gt_cv_func_CFPreferencesCopyAppValue=yes
13390else
13391 gt_cv_func_CFPreferencesCopyAppValue=no
13392fi
13393rm -f core conftest.err conftest.$ac_objext \
13394 conftest$ac_exeext conftest.$ac_ext
13395 LIBS="$gt_save_LIBS"
13396fi
13397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
13398$as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
13399 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
13400
13401$as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
13402
13403 fi
13404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyPreferredLanguages" >&5
13405$as_echo_n "checking for CFLocaleCopyPreferredLanguages... " >&6; }
13406if ${gt_cv_func_CFLocaleCopyPreferredLanguages+:} false; then :
13407 $as_echo_n "(cached) " >&6
13408else
13409 gt_save_LIBS="$LIBS"
13410 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
13411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13412/* end confdefs.h. */
13413#include <CoreFoundation/CFLocale.h>
13414int
13415main ()
13416{
13417CFLocaleCopyPreferredLanguages();
13418 ;
13419 return 0;
13420}
13421_ACEOF
13422if ac_fn_c_try_link "$LINENO"; then :
13423 gt_cv_func_CFLocaleCopyPreferredLanguages=yes
13424else
13425 gt_cv_func_CFLocaleCopyPreferredLanguages=no
13426fi
13427rm -f core conftest.err conftest.$ac_objext \
13428 conftest$ac_exeext conftest.$ac_ext
13429 LIBS="$gt_save_LIBS"
13430fi
13431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyPreferredLanguages" >&5
13432$as_echo "$gt_cv_func_CFLocaleCopyPreferredLanguages" >&6; }
13433 if test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
13434
13435$as_echo "#define HAVE_CFLOCALECOPYPREFERREDLANGUAGES 1" >>confdefs.h
13436
13437 fi
13438 INTL_MACOSX_LIBS=
13439 if test $gt_cv_func_CFPreferencesCopyAppValue = yes \
13440 || test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
13441 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation -Wl,-framework -Wl,CoreServices"
13442 fi
13443
13444
13445
13446
13447
13448
13449 LIBINTL=
13450 LTLIBINTL=
13451 POSUB=
13452
13453 case " $gt_needs " in
13454 *" need-formatstring-macros "*) gt_api_version=3 ;;
13455 *" need-ngettext "*) gt_api_version=2 ;;
13456 *) gt_api_version=1 ;;
13457 esac
13458 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
13459 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
13460
13461 if test "$USE_NLS" = "yes"; then
13462 gt_use_preinstalled_gnugettext=no
13463
13464
13465 if test $gt_api_version -ge 3; then
13466 gt_revision_test_code='
13467#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
13468#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
13469#endif
13470typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
13471'
13472 else
13473 gt_revision_test_code=
13474 fi
13475 if test $gt_api_version -ge 2; then
13476 gt_expression_test_code=' + * ngettext ("", "", 0)'
13477 else
13478 gt_expression_test_code=
13479 fi
13480
13481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
13482$as_echo_n "checking for GNU gettext in libc... " >&6; }
13483if eval \${$gt_func_gnugettext_libc+:} false; then :
13484 $as_echo_n "(cached) " >&6
13485else
13486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13487/* end confdefs.h. */
13488
13489#include <libintl.h>
13490#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
13491extern int _nl_msg_cat_cntr;
13492extern int *_nl_domain_bindings;
13493#define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_domain_bindings)
13494#else
13495#define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
13496#endif
13497$gt_revision_test_code
13498
13499int
13500main ()
13501{
13502
13503bindtextdomain ("", "");
13504return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
13505
13506 ;
13507 return 0;
13508}
13509_ACEOF
13510if ac_fn_c_try_link "$LINENO"; then :
13511 eval "$gt_func_gnugettext_libc=yes"
13512else
13513 eval "$gt_func_gnugettext_libc=no"
13514fi
13515rm -f core conftest.err conftest.$ac_objext \
13516 conftest$ac_exeext conftest.$ac_ext
13517fi
13518eval ac_res=\$$gt_func_gnugettext_libc
13519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13520$as_echo "$ac_res" >&6; }
13521
13522 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
13523
13524
13525
13526
13527
13528 am_save_CPPFLAGS="$CPPFLAGS"
13529
13530 for element in $INCICONV; do
13531 haveit=
13532 for x in $CPPFLAGS; do
13533
13534 acl_save_prefix="$prefix"
13535 prefix="$acl_final_prefix"
13536 acl_save_exec_prefix="$exec_prefix"
13537 exec_prefix="$acl_final_exec_prefix"
13538 eval x=\"$x\"
13539 exec_prefix="$acl_save_exec_prefix"
13540 prefix="$acl_save_prefix"
13541
13542 if test "X$x" = "X$element"; then
13543 haveit=yes
13544 break
13545 fi
13546 done
13547 if test -z "$haveit"; then
13548 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
13549 fi
13550 done
13551
13552
13553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
13554$as_echo_n "checking for iconv... " >&6; }
13555if ${am_cv_func_iconv+:} false; then :
13556 $as_echo_n "(cached) " >&6
13557else
13558
13559 am_cv_func_iconv="no, consider installing GNU libiconv"
13560 am_cv_lib_iconv=no
13561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13562/* end confdefs.h. */
13563
13564#include <stdlib.h>
13565#include <iconv.h>
13566
13567int
13568main ()
13569{
13570iconv_t cd = iconv_open("","");
13571 iconv(cd,NULL,NULL,NULL,NULL);
13572 iconv_close(cd);
13573 ;
13574 return 0;
13575}
13576_ACEOF
13577if ac_fn_c_try_link "$LINENO"; then :
13578 am_cv_func_iconv=yes
13579fi
13580rm -f core conftest.err conftest.$ac_objext \
13581 conftest$ac_exeext conftest.$ac_ext
13582 if test "$am_cv_func_iconv" != yes; then
13583 am_save_LIBS="$LIBS"
13584 LIBS="$LIBS $LIBICONV"
13585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13586/* end confdefs.h. */
13587
13588#include <stdlib.h>
13589#include <iconv.h>
13590
13591int
13592main ()
13593{
13594iconv_t cd = iconv_open("","");
13595 iconv(cd,NULL,NULL,NULL,NULL);
13596 iconv_close(cd);
13597 ;
13598 return 0;
13599}
13600_ACEOF
13601if ac_fn_c_try_link "$LINENO"; then :
13602 am_cv_lib_iconv=yes
13603 am_cv_func_iconv=yes
13604fi
13605rm -f core conftest.err conftest.$ac_objext \
13606 conftest$ac_exeext conftest.$ac_ext
13607 LIBS="$am_save_LIBS"
13608 fi
13609
13610fi
13611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
13612$as_echo "$am_cv_func_iconv" >&6; }
13613 if test "$am_cv_func_iconv" = yes; then
13614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
13615$as_echo_n "checking for working iconv... " >&6; }
13616if ${am_cv_func_iconv_works+:} false; then :
13617 $as_echo_n "(cached) " >&6
13618else
13619
13620 am_save_LIBS="$LIBS"
13621 if test $am_cv_lib_iconv = yes; then
13622 LIBS="$LIBS $LIBICONV"
13623 fi
13624 am_cv_func_iconv_works=no
13625 for ac_iconv_const in '' 'const'; do
13626 if test "$cross_compiling" = yes; then :
13627 case "$host_os" in
13628 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
13629 *) am_cv_func_iconv_works="guessing yes" ;;
13630 esac
13631else
13632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13633/* end confdefs.h. */
13634
13635#include <iconv.h>
13636#include <string.h>
13637
13638#ifndef ICONV_CONST
13639# define ICONV_CONST $ac_iconv_const
13640#endif
13641
13642int
13643main ()
13644{
13645int result = 0;
13646 /* Test against AIX 5.1...7.2 bug: Failures are not distinguishable from
13647 successful returns. This is even documented in
13648 <https://www.ibm.com/support/knowledgecenter/ssw_aix_72/i_bostechref/iconv.html> */
13649 {
13650 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
13651 if (cd_utf8_to_88591 != (iconv_t)(-1))
13652 {
13653 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
13654 char buf[10];
13655 ICONV_CONST char *inptr = input;
13656 size_t inbytesleft = strlen (input);
13657 char *outptr = buf;
13658 size_t outbytesleft = sizeof (buf);
13659 size_t res = iconv (cd_utf8_to_88591,
13660 &inptr, &inbytesleft,
13661 &outptr, &outbytesleft);
13662 if (res == 0)
13663 result |= 1;
13664 iconv_close (cd_utf8_to_88591);
13665 }
13666 }
13667 /* Test against Solaris 10 bug: Failures are not distinguishable from
13668 successful returns. */
13669 {
13670 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
13671 if (cd_ascii_to_88591 != (iconv_t)(-1))
13672 {
13673 static ICONV_CONST char input[] = "\263";
13674 char buf[10];
13675 ICONV_CONST char *inptr = input;
13676 size_t inbytesleft = strlen (input);
13677 char *outptr = buf;
13678 size_t outbytesleft = sizeof (buf);
13679 size_t res = iconv (cd_ascii_to_88591,
13680 &inptr, &inbytesleft,
13681 &outptr, &outbytesleft);
13682 if (res == 0)
13683 result |= 2;
13684 iconv_close (cd_ascii_to_88591);
13685 }
13686 }
13687 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
13688 {
13689 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
13690 if (cd_88591_to_utf8 != (iconv_t)(-1))
13691 {
13692 static ICONV_CONST char input[] = "\304";
13693 static char buf[2] = { (char)0xDE, (char)0xAD };
13694 ICONV_CONST char *inptr = input;
13695 size_t inbytesleft = 1;
13696 char *outptr = buf;
13697 size_t outbytesleft = 1;
13698 size_t res = iconv (cd_88591_to_utf8,
13699 &inptr, &inbytesleft,
13700 &outptr, &outbytesleft);
13701 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
13702 result |= 4;
13703 iconv_close (cd_88591_to_utf8);
13704 }
13705 }
13706#if 0 /* This bug could be worked around by the caller. */
13707 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
13708 {
13709 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
13710 if (cd_88591_to_utf8 != (iconv_t)(-1))
13711 {
13712 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
13713 char buf[50];
13714 ICONV_CONST char *inptr = input;
13715 size_t inbytesleft = strlen (input);
13716 char *outptr = buf;
13717 size_t outbytesleft = sizeof (buf);
13718 size_t res = iconv (cd_88591_to_utf8,
13719 &inptr, &inbytesleft,
13720 &outptr, &outbytesleft);
13721 if ((int)res > 0)
13722 result |= 8;
13723 iconv_close (cd_88591_to_utf8);
13724 }
13725 }
13726#endif
13727 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
13728 provided. */
13729 {
13730 /* Try standardized names. */
13731 iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP");
13732 /* Try IRIX, OSF/1 names. */
13733 iconv_t cd2 = iconv_open ("UTF-8", "eucJP");
13734 /* Try AIX names. */
13735 iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP");
13736 /* Try HP-UX names. */
13737 iconv_t cd4 = iconv_open ("utf8", "eucJP");
13738 if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1)
13739 && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1))
13740 result |= 16;
13741 if (cd1 != (iconv_t)(-1))
13742 iconv_close (cd1);
13743 if (cd2 != (iconv_t)(-1))
13744 iconv_close (cd2);
13745 if (cd3 != (iconv_t)(-1))
13746 iconv_close (cd3);
13747 if (cd4 != (iconv_t)(-1))
13748 iconv_close (cd4);
13749 }
13750 return result;
13751
13752 ;
13753 return 0;
13754}
13755_ACEOF
13756if ac_fn_c_try_run "$LINENO"; then :
13757 am_cv_func_iconv_works=yes
13758fi
13759rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13760 conftest.$ac_objext conftest.beam conftest.$ac_ext
13761fi
13762
13763 test "$am_cv_func_iconv_works" = no || break
13764 done
13765 LIBS="$am_save_LIBS"
13766
13767fi
13768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
13769$as_echo "$am_cv_func_iconv_works" >&6; }
13770 case "$am_cv_func_iconv_works" in
13771 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
13772 *) am_func_iconv=yes ;;
13773 esac
13774 else
13775 am_func_iconv=no am_cv_lib_iconv=no
13776 fi
13777 if test "$am_func_iconv" = yes; then
13778
13779$as_echo "#define HAVE_ICONV 1" >>confdefs.h
13780
13781 fi
13782 if test "$am_cv_lib_iconv" = yes; then
13783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
13784$as_echo_n "checking how to link with libiconv... " >&6; }
13785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
13786$as_echo "$LIBICONV" >&6; }
13787 else
13788 CPPFLAGS="$am_save_CPPFLAGS"
13789 LIBICONV=
13790 LTLIBICONV=
13791 fi
13792
13793
13794
13795
13796
13797
13798 use_additional=yes
13799
13800 acl_save_prefix="$prefix"
13801 prefix="$acl_final_prefix"
13802 acl_save_exec_prefix="$exec_prefix"
13803 exec_prefix="$acl_final_exec_prefix"
13804
13805 eval additional_includedir=\"$includedir\"
13806 eval additional_libdir=\"$libdir\"
13807
13808 exec_prefix="$acl_save_exec_prefix"
13809 prefix="$acl_save_prefix"
13810
13811
13812# Check whether --with-libintl-prefix was given.
13813if test "${with_libintl_prefix+set}" = set; then :
13814 withval=$with_libintl_prefix;
13815 if test "X$withval" = "Xno"; then
13816 use_additional=no
13817 else
13818 if test "X$withval" = "X"; then
13819
13820 acl_save_prefix="$prefix"
13821 prefix="$acl_final_prefix"
13822 acl_save_exec_prefix="$exec_prefix"
13823 exec_prefix="$acl_final_exec_prefix"
13824
13825 eval additional_includedir=\"$includedir\"
13826 eval additional_libdir=\"$libdir\"
13827
13828 exec_prefix="$acl_save_exec_prefix"
13829 prefix="$acl_save_prefix"
13830
13831 else
13832 additional_includedir="$withval/include"
13833 additional_libdir="$withval/lib"
13834 fi
13835 fi
13836
13837fi
13838
13839
13840# Check whether --with-libintl-type was given.
13841if test "${with_libintl_type+set}" = set; then :
13842 withval=$with_libintl_type; with_libintl_type=$withval
13843else
13844 with_libintl_type=auto
13845fi
13846
13847 lib_type=`eval echo \$with_libintl_type`
13848
13849 LIBINTL=
13850 LTLIBINTL=
13851 INCINTL=
13852 rpathdirs=
13853 ltrpathdirs=
13854 names_already_handled=
13855 names_next_round='intl '
13856 while test -n "$names_next_round"; do
13857 names_this_round="$names_next_round"
13858 names_next_round=
13859 for name in $names_this_round; do
13860 already_handled=
13861 for n in $names_already_handled; do
13862 if test "$n" = "$name"; then
13863 already_handled=yes
13864 break
13865 fi
13866 done
13867 if test -z "$already_handled"; then
13868 names_already_handled="$names_already_handled $name"
13869 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
13870 eval value=\"\$HAVE_LIB$uppername\"
13871 if test -n "$value"; then
13872 if test "$value" = yes; then
13873 eval value=\"\$LIB$uppername\"
13874 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
13875 eval value=\"\$LTLIB$uppername\"
13876 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
13877 else
13878 :
13879 fi
13880 else
13881 found_dir=
13882 found_la=
13883 found_so=
13884 found_a=
13885 if test $use_additional = yes; then
13886 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
13887 found_dir="$additional_libdir"
13888 found_so="$additional_libdir/lib$name.$shlibext"
13889 if test -f "$additional_libdir/lib$name.la"; then
13890 found_la="$additional_libdir/lib$name.la"
13891 fi
13892 elif test x$lib_type != xshared; then
13893 if test -f "$additional_libdir/lib$name.$libext"; then
13894 found_dir="$additional_libdir"
13895 found_a="$additional_libdir/lib$name.$libext"
13896 if test -f "$additional_libdir/lib$name.la"; then
13897 found_la="$additional_libdir/lib$name.la"
13898 fi
13899 fi
13900 fi
13901 fi
13902 if test "X$found_dir" = "X"; then
13903 for x in $LDFLAGS $LTLIBINTL; do
13904
13905 acl_save_prefix="$prefix"
13906 prefix="$acl_final_prefix"
13907 acl_save_exec_prefix="$exec_prefix"
13908 exec_prefix="$acl_final_exec_prefix"
13909 eval x=\"$x\"
13910 exec_prefix="$acl_save_exec_prefix"
13911 prefix="$acl_save_prefix"
13912
13913 case "$x" in
13914 -L*)
13915 dir=`echo "X$x" | sed -e 's/^X-L//'`
13916 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
13917 found_dir="$dir"
13918 found_so="$dir/lib$name.$shlibext"
13919 if test -f "$dir/lib$name.la"; then
13920 found_la="$dir/lib$name.la"
13921 fi
13922 elif test x$lib_type != xshared; then
13923 if test -f "$dir/lib$name.$libext"; then
13924 found_dir="$dir"
13925 found_a="$dir/lib$name.$libext"
13926 if test -f "$dir/lib$name.la"; then
13927 found_la="$dir/lib$name.la"
13928 fi
13929 fi
13930 fi
13931 ;;
13932 esac
13933 if test "X$found_dir" != "X"; then
13934 break
13935 fi
13936 done
13937 fi
13938 if test "X$found_dir" != "X"; then
13939 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
13940 if test "X$found_so" != "X"; then
13941 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
13942 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
13943 else
13944 haveit=
13945 for x in $ltrpathdirs; do
13946 if test "X$x" = "X$found_dir"; then
13947 haveit=yes
13948 break
13949 fi
13950 done
13951 if test -z "$haveit"; then
13952 ltrpathdirs="$ltrpathdirs $found_dir"
13953 fi
13954 if test "$hardcode_direct" = yes; then
13955 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
13956 else
13957 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
13958 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
13959 haveit=
13960 for x in $rpathdirs; do
13961 if test "X$x" = "X$found_dir"; then
13962 haveit=yes
13963 break
13964 fi
13965 done
13966 if test -z "$haveit"; then
13967 rpathdirs="$rpathdirs $found_dir"
13968 fi
13969 else
13970 haveit=
13971 for x in $LDFLAGS $LIBINTL; do
13972
13973 acl_save_prefix="$prefix"
13974 prefix="$acl_final_prefix"
13975 acl_save_exec_prefix="$exec_prefix"
13976 exec_prefix="$acl_final_exec_prefix"
13977 eval x=\"$x\"
13978 exec_prefix="$acl_save_exec_prefix"
13979 prefix="$acl_save_prefix"
13980
13981 if test "X$x" = "X-L$found_dir"; then
13982 haveit=yes
13983 break
13984 fi
13985 done
13986 if test -z "$haveit"; then
13987 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
13988 fi
13989 if test "$hardcode_minus_L" != no; then
13990 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
13991 else
13992 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
13993 fi
13994 fi
13995 fi
13996 fi
13997 else
13998 if test "X$found_a" != "X"; then
13999 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
14000 else
14001 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
14002 fi
14003 fi
14004 additional_includedir=
14005 case "$found_dir" in
14006 */lib | */lib/)
14007 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
14008 additional_includedir="$basedir/include"
14009 ;;
14010 esac
14011 if test "X$additional_includedir" != "X"; then
14012 if test "X$additional_includedir" != "X/usr/include"; then
14013 haveit=
14014 if test "X$additional_includedir" = "X/usr/local/include"; then
14015 if test -n "$GCC"; then
14016 case $host_os in
14017 linux*) haveit=yes;;
14018 esac
14019 fi
14020 fi
14021 if test -z "$haveit"; then
14022 for x in $CPPFLAGS $INCINTL; do
14023
14024 acl_save_prefix="$prefix"
14025 prefix="$acl_final_prefix"
14026 acl_save_exec_prefix="$exec_prefix"
14027 exec_prefix="$acl_final_exec_prefix"
14028 eval x=\"$x\"
14029 exec_prefix="$acl_save_exec_prefix"
14030 prefix="$acl_save_prefix"
14031
14032 if test "X$x" = "X-I$additional_includedir"; then
14033 haveit=yes
14034 break
14035 fi
14036 done
14037 if test -z "$haveit"; then
14038 if test -d "$additional_includedir"; then
14039 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
14040 fi
14041 fi
14042 fi
14043 fi
14044 fi
14045 if test -n "$found_la"; then
14046 save_libdir="$libdir"
14047 case "$found_la" in
14048 */* | *\\*) . "$found_la" ;;
14049 *) . "./$found_la" ;;
14050 esac
14051 libdir="$save_libdir"
14052 for dep in $dependency_libs; do
14053 case "$dep" in
14054 -L*)
14055 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
14056 if test "X$additional_libdir" != "X/usr/lib"; then
14057 haveit=
14058 if test "X$additional_libdir" = "X/usr/local/lib"; then
14059 if test -n "$GCC"; then
14060 case $host_os in
14061 linux*) haveit=yes;;
14062 esac
14063 fi
14064 fi
14065 if test -z "$haveit"; then
14066 haveit=
14067 for x in $LDFLAGS $LIBINTL; do
14068
14069 acl_save_prefix="$prefix"
14070 prefix="$acl_final_prefix"
14071 acl_save_exec_prefix="$exec_prefix"
14072 exec_prefix="$acl_final_exec_prefix"
14073 eval x=\"$x\"
14074 exec_prefix="$acl_save_exec_prefix"
14075 prefix="$acl_save_prefix"
14076
14077 if test "X$x" = "X-L$additional_libdir"; then
14078 haveit=yes
14079 break
14080 fi
14081 done
14082 if test -z "$haveit"; then
14083 if test -d "$additional_libdir"; then
14084 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
14085 fi
14086 fi
14087 haveit=
14088 for x in $LDFLAGS $LTLIBINTL; do
14089
14090 acl_save_prefix="$prefix"
14091 prefix="$acl_final_prefix"
14092 acl_save_exec_prefix="$exec_prefix"
14093 exec_prefix="$acl_final_exec_prefix"
14094 eval x=\"$x\"
14095 exec_prefix="$acl_save_exec_prefix"
14096 prefix="$acl_save_prefix"
14097
14098 if test "X$x" = "X-L$additional_libdir"; then
14099 haveit=yes
14100 break
14101 fi
14102 done
14103 if test -z "$haveit"; then
14104 if test -d "$additional_libdir"; then
14105 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
14106 fi
14107 fi
14108 fi
14109 fi
14110 ;;
14111 -R*)
14112 dir=`echo "X$dep" | sed -e 's/^X-R//'`
14113 if test "$enable_rpath" != no; then
14114 haveit=
14115 for x in $rpathdirs; do
14116 if test "X$x" = "X$dir"; then
14117 haveit=yes
14118 break
14119 fi
14120 done
14121 if test -z "$haveit"; then
14122 rpathdirs="$rpathdirs $dir"
14123 fi
14124 haveit=
14125 for x in $ltrpathdirs; do
14126 if test "X$x" = "X$dir"; then
14127 haveit=yes
14128 break
14129 fi
14130 done
14131 if test -z "$haveit"; then
14132 ltrpathdirs="$ltrpathdirs $dir"
14133 fi
14134 fi
14135 ;;
14136 -l*)
14137 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14138 ;;
14139 *.la)
14140 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14141 ;;
14142 *)
14143 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
14144 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
14145 ;;
14146 esac
14147 done
14148 fi
14149 else
14150 if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
14151 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
14152 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
14153 else
14154 LIBINTL="${LIBINTL}${LIBINTL:+ }-l:lib$name.$libext"
14155 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l:lib$name.$libext"
14156 fi
14157 fi
14158 fi
14159 fi
14160 done
14161 done
14162 if test "X$rpathdirs" != "X"; then
14163 if test -n "$hardcode_libdir_separator"; then
14164 alldirs=
14165 for found_dir in $rpathdirs; do
14166 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
14167 done
14168 acl_save_libdir="$libdir"
14169 libdir="$alldirs"
14170 eval flag=\"$hardcode_libdir_flag_spec\"
14171 libdir="$acl_save_libdir"
14172 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
14173 else
14174 for found_dir in $rpathdirs; do
14175 acl_save_libdir="$libdir"
14176 libdir="$found_dir"
14177 eval flag=\"$hardcode_libdir_flag_spec\"
14178 libdir="$acl_save_libdir"
14179 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
14180 done
14181 fi
14182 fi
14183 if test "X$ltrpathdirs" != "X"; then
14184 for found_dir in $ltrpathdirs; do
14185 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
14186 done
14187 fi
14188
14189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
14190$as_echo_n "checking for GNU gettext in libintl... " >&6; }
14191if eval \${$gt_func_gnugettext_libintl+:} false; then :
14192 $as_echo_n "(cached) " >&6
14193else
14194 gt_save_CPPFLAGS="$CPPFLAGS"
14195 CPPFLAGS="$CPPFLAGS $INCINTL"
14196 gt_save_LIBS="$LIBS"
14197 LIBS="$LIBS $LIBINTL"
14198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14199/* end confdefs.h. */
14200
14201#include <libintl.h>
14202#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
14203extern int _nl_msg_cat_cntr;
14204extern
14205#ifdef __cplusplus
14206"C"
14207#endif
14208const char *_nl_expand_alias (const char *);
14209#define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
14210#else
14211#define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
14212#endif
14213$gt_revision_test_code
14214
14215int
14216main ()
14217{
14218
14219bindtextdomain ("", "");
14220return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
14221
14222 ;
14223 return 0;
14224}
14225_ACEOF
14226if ac_fn_c_try_link "$LINENO"; then :
14227 eval "$gt_func_gnugettext_libintl=yes"
14228else
14229 eval "$gt_func_gnugettext_libintl=no"
14230fi
14231rm -f core conftest.err conftest.$ac_objext \
14232 conftest$ac_exeext conftest.$ac_ext
14233 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
14234 LIBS="$LIBS $LIBICONV"
14235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14236/* end confdefs.h. */
14237
14238#include <libintl.h>
14239#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
14240extern int _nl_msg_cat_cntr;
14241extern
14242#ifdef __cplusplus
14243"C"
14244#endif
14245const char *_nl_expand_alias (const char *);
14246#define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
14247#else
14248#define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
14249#endif
14250$gt_revision_test_code
14251
14252int
14253main ()
14254{
14255
14256bindtextdomain ("", "");
14257return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
14258
14259 ;
14260 return 0;
14261}
14262_ACEOF
14263if ac_fn_c_try_link "$LINENO"; then :
14264 LIBINTL="$LIBINTL $LIBICONV"
14265 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
14266 eval "$gt_func_gnugettext_libintl=yes"
14267
14268fi
14269rm -f core conftest.err conftest.$ac_objext \
14270 conftest$ac_exeext conftest.$ac_ext
14271 fi
14272 CPPFLAGS="$gt_save_CPPFLAGS"
14273 LIBS="$gt_save_LIBS"
14274fi
14275eval ac_res=\$$gt_func_gnugettext_libintl
14276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14277$as_echo "$ac_res" >&6; }
14278 fi
14279
14280 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
14281 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
14282 && test "$PACKAGE" != gettext-runtime \
14283 && test "$PACKAGE" != gettext-tools; }; then
14284 gt_use_preinstalled_gnugettext=yes
14285 else
14286 LIBINTL=
14287 LTLIBINTL=
14288 INCINTL=
14289 fi
14290
14291
14292
14293 if test -n "$INTL_MACOSX_LIBS"; then
14294 if test "$gt_use_preinstalled_gnugettext" = "yes" \
14295 || test "$nls_cv_use_gnu_gettext" = "yes"; then
14296 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
14297 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
14298 fi
14299 fi
14300
14301 if test "$gt_use_preinstalled_gnugettext" = "yes" \
14302 || test "$nls_cv_use_gnu_gettext" = "yes"; then
14303
14304$as_echo "#define ENABLE_NLS 1" >>confdefs.h
14305
14306 else
14307 USE_NLS=no
14308 fi
14309 fi
14310
14311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
14312$as_echo_n "checking whether to use NLS... " >&6; }
14313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
14314$as_echo "$USE_NLS" >&6; }
14315 if test "$USE_NLS" = "yes"; then
14316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
14317$as_echo_n "checking where the gettext function comes from... " >&6; }
14318 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
14319 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
14320 gt_source="external libintl"
14321 else
14322 gt_source="libc"
14323 fi
14324 else
14325 gt_source="included intl directory"
14326 fi
14327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
14328$as_echo "$gt_source" >&6; }
14329 fi
14330
14331 if test "$USE_NLS" = "yes"; then
14332
14333 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
14334 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
14335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
14336$as_echo_n "checking how to link with libintl... " >&6; }
14337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
14338$as_echo "$LIBINTL" >&6; }
14339
14340 for element in $INCINTL; do
14341 haveit=
14342 for x in $CPPFLAGS; do
14343
14344 acl_save_prefix="$prefix"
14345 prefix="$acl_final_prefix"
14346 acl_save_exec_prefix="$exec_prefix"
14347 exec_prefix="$acl_final_exec_prefix"
14348 eval x=\"$x\"
14349 exec_prefix="$acl_save_exec_prefix"
14350 prefix="$acl_save_prefix"
14351
14352 if test "X$x" = "X$element"; then
14353 haveit=yes
14354 break
14355 fi
14356 done
14357 if test -z "$haveit"; then
14358 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
14359 fi
14360 done
14361
14362 fi
14363
14364
14365$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
14366
14367
14368$as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
14369
14370 fi
14371
14372 POSUB=po
14373 fi
14374
14375
14376
14377 INTLLIBS="$LIBINTL"
14378
14379
14380
14381
14382
14383
14384fi
14385
14386
14387
14388
14389
14390
14391
14392
14393
14394
14395
14396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
14397$as_echo_n "checking whether NLS is requested... " >&6; }
14398if test x"$USE_NLS" != xyes; then
14399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14400$as_echo "no" >&6; }
14401else
14402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14403$as_echo "yes" >&6; }
14404
14405$as_echo "#define ENABLE_NLS 1" >>confdefs.h
14406
14407
14408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
14409$as_echo_n "checking for catalogs to be installed... " >&6; }
14410 # Look for .po and .gmo files in the source directory.
14411 CATALOGS=
14412 XLINGUAS=
14413 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
14414 # If there aren't any .gmo files the shell will give us the
14415 # literal string "../path/to/srcdir/po/*.gmo" which has to be
14416 # weeded out.
14417 case "$cat" in *\**)
14418 continue;;
14419 esac
14420 # The quadruple backslash is collapsed to a double backslash
14421 # by the backticks, then collapsed again by the double quotes,
14422 # leaving us with one backslash in the sed expression (right
14423 # before the dot that mustn't act as a wildcard).
14424 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
14425 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
14426 # The user is allowed to set LINGUAS to a list of languages to
14427 # install catalogs for. If it's empty that means "all of them."
14428 if test "x$LINGUAS" = x; then
14429 CATALOGS="$CATALOGS $cat"
14430 XLINGUAS="$XLINGUAS $lang"
14431 else
14432 case "$LINGUAS" in *$lang*)
14433 CATALOGS="$CATALOGS $cat"
14434 XLINGUAS="$XLINGUAS $lang"
14435 ;;
14436 esac
14437 fi
14438 done
14439 LINGUAS="$XLINGUAS"
14440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
14441$as_echo "$LINGUAS" >&6; }
14442
14443
14444 DATADIRNAME=share
14445
14446 INSTOBJEXT=.mo
14447
14448 GENCAT=gencat
14449
14450 CATOBJEXT=.gmo
14451
14452fi
14453
14454
14455
14456
14457# Prepare PATH_SEPARATOR.
14458# The user is always right.
14459if test "${PATH_SEPARATOR+set}" != set; then
14460 echo "#! /bin/sh" >conf$$.sh
14461 echo "exit 0" >>conf$$.sh
14462 chmod +x conf$$.sh
14463 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14464 PATH_SEPARATOR=';'
14465 else
14466 PATH_SEPARATOR=:
14467 fi
14468 rm -f conf$$.sh
14469fi
14470
14471# Find out how to test for executable files. Don't use a zero-byte file,
14472# as systems may use methods other than mode bits to determine executability.
14473cat >conf$$.file <<_ASEOF
14474#! /bin/sh
14475exit 0
14476_ASEOF
14477chmod +x conf$$.file
14478if test -x conf$$.file >/dev/null 2>&1; then
14479 ac_executable_p="test -x"
14480else
14481 ac_executable_p="test -f"
14482fi
14483rm -f conf$$.file
14484
14485# Extract the first word of "msgfmt", so it can be a program name with args.
14486set dummy msgfmt; ac_word=$2
14487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14488$as_echo_n "checking for $ac_word... " >&6; }
14489if ${ac_cv_path_MSGFMT+:} false; then :
14490 $as_echo_n "(cached) " >&6
14491else
14492 case "$MSGFMT" in
14493 [\\/]* | ?:[\\/]*)
14494 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
14495 ;;
14496 *)
14497 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
14498 for ac_dir in $PATH; do
14499 IFS="$ac_save_IFS"
14500 test -z "$ac_dir" && ac_dir=.
14501 for ac_exec_ext in '' $ac_executable_extensions; do
14502 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
14503 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
14504 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
14505 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
14506 break 2
14507 fi
14508 fi
14509 done
14510 done
14511 IFS="$ac_save_IFS"
14512 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
14513 ;;
14514esac
14515fi
14516MSGFMT="$ac_cv_path_MSGFMT"
14517if test "$MSGFMT" != ":"; then
14518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
14519$as_echo "$MSGFMT" >&6; }
14520else
14521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14522$as_echo "no" >&6; }
14523fi
14524
14525 # Extract the first word of "gmsgfmt", so it can be a program name with args.
14526set dummy gmsgfmt; ac_word=$2
14527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14528$as_echo_n "checking for $ac_word... " >&6; }
14529if ${ac_cv_path_GMSGFMT+:} false; then :
14530 $as_echo_n "(cached) " >&6
14531else
14532 case $GMSGFMT in
14533 [\\/]* | ?:[\\/]*)
14534 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
14535 ;;
14536 *)
14537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14538for as_dir in $PATH
14539do
14540 IFS=$as_save_IFS
14541 test -z "$as_dir" && as_dir=.
14542 for ac_exec_ext in '' $ac_executable_extensions; do
14543 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14544 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
14545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14546 break 2
14547 fi
14548done
14549 done
14550IFS=$as_save_IFS
14551
14552 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
14553 ;;
14554esac
14555fi
14556GMSGFMT=$ac_cv_path_GMSGFMT
14557if test -n "$GMSGFMT"; then
14558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
14559$as_echo "$GMSGFMT" >&6; }
14560else
14561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14562$as_echo "no" >&6; }
14563fi
14564
14565
14566
14567
14568# Prepare PATH_SEPARATOR.
14569# The user is always right.
14570if test "${PATH_SEPARATOR+set}" != set; then
14571 echo "#! /bin/sh" >conf$$.sh
14572 echo "exit 0" >>conf$$.sh
14573 chmod +x conf$$.sh
14574 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14575 PATH_SEPARATOR=';'
14576 else
14577 PATH_SEPARATOR=:
14578 fi
14579 rm -f conf$$.sh
14580fi
14581
14582# Find out how to test for executable files. Don't use a zero-byte file,
14583# as systems may use methods other than mode bits to determine executability.
14584cat >conf$$.file <<_ASEOF
14585#! /bin/sh
14586exit 0
14587_ASEOF
14588chmod +x conf$$.file
14589if test -x conf$$.file >/dev/null 2>&1; then
14590 ac_executable_p="test -x"
14591else
14592 ac_executable_p="test -f"
14593fi
14594rm -f conf$$.file
14595
14596# Extract the first word of "xgettext", so it can be a program name with args.
14597set dummy xgettext; ac_word=$2
14598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14599$as_echo_n "checking for $ac_word... " >&6; }
14600if ${ac_cv_path_XGETTEXT+:} false; then :
14601 $as_echo_n "(cached) " >&6
14602else
14603 case "$XGETTEXT" in
14604 [\\/]* | ?:[\\/]*)
14605 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
14606 ;;
14607 *)
14608 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
14609 for ac_dir in $PATH; do
14610 IFS="$ac_save_IFS"
14611 test -z "$ac_dir" && ac_dir=.
14612 for ac_exec_ext in '' $ac_executable_extensions; do
14613 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
14614 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
14615 (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
14616 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
14617 break 2
14618 fi
14619 fi
14620 done
14621 done
14622 IFS="$ac_save_IFS"
14623 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
14624 ;;
14625esac
14626fi
14627XGETTEXT="$ac_cv_path_XGETTEXT"
14628if test "$XGETTEXT" != ":"; then
14629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
14630$as_echo "$XGETTEXT" >&6; }
14631else
14632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14633$as_echo "no" >&6; }
14634fi
14635
14636 rm -f messages.po
14637
14638
14639# Prepare PATH_SEPARATOR.
14640# The user is always right.
14641if test "${PATH_SEPARATOR+set}" != set; then
14642 echo "#! /bin/sh" >conf$$.sh
14643 echo "exit 0" >>conf$$.sh
14644 chmod +x conf$$.sh
14645 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14646 PATH_SEPARATOR=';'
14647 else
14648 PATH_SEPARATOR=:
14649 fi
14650 rm -f conf$$.sh
14651fi
14652
14653# Find out how to test for executable files. Don't use a zero-byte file,
14654# as systems may use methods other than mode bits to determine executability.
14655cat >conf$$.file <<_ASEOF
14656#! /bin/sh
14657exit 0
14658_ASEOF
14659chmod +x conf$$.file
14660if test -x conf$$.file >/dev/null 2>&1; then
14661 ac_executable_p="test -x"
14662else
14663 ac_executable_p="test -f"
14664fi
14665rm -f conf$$.file
14666
14667# Extract the first word of "msgmerge", so it can be a program name with args.
14668set dummy msgmerge; ac_word=$2
14669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14670$as_echo_n "checking for $ac_word... " >&6; }
14671if ${ac_cv_path_MSGMERGE+:} false; then :
14672 $as_echo_n "(cached) " >&6
14673else
14674 case "$MSGMERGE" in
14675 [\\/]* | ?:[\\/]*)
14676 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
14677 ;;
14678 *)
14679 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
14680 for ac_dir in $PATH; do
14681 IFS="$ac_save_IFS"
14682 test -z "$ac_dir" && ac_dir=.
14683 for ac_exec_ext in '' $ac_executable_extensions; do
14684 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
14685 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
14686 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
14687 break 2
14688 fi
14689 fi
14690 done
14691 done
14692 IFS="$ac_save_IFS"
14693 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
14694 ;;
14695esac
14696fi
14697MSGMERGE="$ac_cv_path_MSGMERGE"
14698if test "$MSGMERGE" != ":"; then
14699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
14700$as_echo "$MSGMERGE" >&6; }
14701else
14702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14703$as_echo "no" >&6; }
14704fi
14705
14706
14707 if test "$GMSGFMT" != ":"; then
14708 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
14709 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
14710 : ;
14711 else
14712 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
14713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
14714$as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
14715 GMSGFMT=":"
14716 fi
14717 fi
14718
14719 if test "$XGETTEXT" != ":"; then
14720 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
14721 (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
14722 : ;
14723 else
14724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
14725$as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
14726 XGETTEXT=":"
14727 fi
14728 rm -f messages.po
14729 fi
14730
14731 ac_config_commands="$ac_config_commands default-2"
14732
14733
14734
14735
14736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
14737$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
14738 # Check whether --enable-maintainer-mode was given.
14739if test "${enable_maintainer_mode+set}" = set; then :
14740 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
14741else
14742 USE_MAINTAINER_MODE=no
14743fi
14744
14745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
14746$as_echo "$USE_MAINTAINER_MODE" >&6; }
14747 if test $USE_MAINTAINER_MODE = yes; then
14748 MAINTAINER_MODE_TRUE=
14749 MAINTAINER_MODE_FALSE='#'
14750else
14751 MAINTAINER_MODE_TRUE='#'
14752 MAINTAINER_MODE_FALSE=
14753fi
14754
14755 MAINT=$MAINTAINER_MODE_TRUE
14756
14757
14758 if false; then
14759 GENINSRC_NEVER_TRUE=
14760 GENINSRC_NEVER_FALSE='#'
14761else
14762 GENINSRC_NEVER_TRUE='#'
14763 GENINSRC_NEVER_FALSE=
14764fi
14765
14766
14767if test -n "$EXEEXT"; then
14768
14769$as_echo "#define HAVE_EXECUTABLE_SUFFIX 1" >>confdefs.h
14770
14771fi
14772
14773cat >>confdefs.h <<_ACEOF
14774#define EXECUTABLE_SUFFIX "${EXEEXT}"
14775_ACEOF
14776
14777
14778# host-specific stuff:
14779
14780HDEFINES=
14781
14782. ${srcdir}/../bfd/configure.host
14783
14784
14785AR=${AR-ar}
14786
14787if test -n "$ac_tool_prefix"; then
14788 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14789set dummy ${ac_tool_prefix}ranlib; ac_word=$2
14790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14791$as_echo_n "checking for $ac_word... " >&6; }
14792if ${ac_cv_prog_RANLIB+:} false; then :
14793 $as_echo_n "(cached) " >&6
14794else
14795 if test -n "$RANLIB"; then
14796 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14797else
14798as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14799for as_dir in $PATH
14800do
14801 IFS=$as_save_IFS
14802 test -z "$as_dir" && as_dir=.
14803 for ac_exec_ext in '' $ac_executable_extensions; do
14804 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14805 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
14806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14807 break 2
14808 fi
14809done
14810 done
14811IFS=$as_save_IFS
14812
14813fi
14814fi
14815RANLIB=$ac_cv_prog_RANLIB
14816if test -n "$RANLIB"; then
14817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
14818$as_echo "$RANLIB" >&6; }
14819else
14820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14821$as_echo "no" >&6; }
14822fi
14823
14824
14825fi
14826if test -z "$ac_cv_prog_RANLIB"; then
14827 ac_ct_RANLIB=$RANLIB
14828 # Extract the first word of "ranlib", so it can be a program name with args.
14829set dummy ranlib; ac_word=$2
14830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14831$as_echo_n "checking for $ac_word... " >&6; }
14832if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
14833 $as_echo_n "(cached) " >&6
14834else
14835 if test -n "$ac_ct_RANLIB"; then
14836 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14837else
14838as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14839for as_dir in $PATH
14840do
14841 IFS=$as_save_IFS
14842 test -z "$as_dir" && as_dir=.
14843 for ac_exec_ext in '' $ac_executable_extensions; do
14844 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14845 ac_cv_prog_ac_ct_RANLIB="ranlib"
14846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14847 break 2
14848 fi
14849done
14850 done
14851IFS=$as_save_IFS
14852
14853fi
14854fi
14855ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14856if test -n "$ac_ct_RANLIB"; then
14857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
14858$as_echo "$ac_ct_RANLIB" >&6; }
14859else
14860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14861$as_echo "no" >&6; }
14862fi
14863
14864 if test "x$ac_ct_RANLIB" = x; then
14865 RANLIB=":"
14866 else
14867 case $cross_compiling:$ac_tool_warned in
14868yes:)
14869{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14870$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14871ac_tool_warned=yes ;;
14872esac
14873 RANLIB=$ac_ct_RANLIB
14874 fi
14875else
14876 RANLIB="$ac_cv_prog_RANLIB"
14877fi
14878
14879
14880
14881# Put a plausible default for CC_FOR_BUILD in Makefile.
14882if test -z "$CC_FOR_BUILD"; then
14883 if test "x$cross_compiling" = "xno"; then
14884 CC_FOR_BUILD='$(CC)'
14885 else
14886 CC_FOR_BUILD=gcc
14887 fi
14888fi
14889
14890# Also set EXEEXT_FOR_BUILD.
14891if test "x$cross_compiling" = "xno"; then
14892 EXEEXT_FOR_BUILD='$(EXEEXT)'
14893else
14894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build system executable suffix" >&5
14895$as_echo_n "checking for build system executable suffix... " >&6; }
14896if ${bfd_cv_build_exeext+:} false; then :
14897 $as_echo_n "(cached) " >&6
14898else
14899 rm -f conftest*
14900 echo 'int main () { return 0; }' > conftest.c
14901 bfd_cv_build_exeext=
14902 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
14903 for file in conftest.*; do
14904 case $file in
14905 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
14906 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
14907 esac
14908 done
14909 rm -f conftest*
14910 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
14911fi
14912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_build_exeext" >&5
14913$as_echo "$bfd_cv_build_exeext" >&6; }
14914 EXEEXT_FOR_BUILD=""
14915 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
14916fi
14917
14918
14919DEMANGLER_NAME=c++filt
14920case "${host}" in
14921 *-*-go32* | *-*-msdos*)
14922 DEMANGLER_NAME=cxxfilt
14923esac
14924
14925
14926# We use headers from include/ that check various HAVE_*_H macros, thus
14927# should ensure they are set by configure. This is true even when C99
14928# guarantees they are available.
14929# plugin-api.h tests HAVE_STDINT_H and HAVE_INTTYPES_H
14930# Besides those, we need to check anything used in binutils/ not in C99.
14931for ac_header in fcntl.h inttypes.h stdint.h sys/file.h \
14932 sys/stat.h sys/time.h sys/types.h unistd.h
14933do :
14934 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14935ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14936if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14937 cat >>confdefs.h <<_ACEOF
14938#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14939_ACEOF
14940
14941fi
14942
14943done
14944
14945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
14946$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
14947if ${ac_cv_header_sys_wait_h+:} false; then :
14948 $as_echo_n "(cached) " >&6
14949else
14950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14951/* end confdefs.h. */
14952#include <sys/types.h>
14953#include <sys/wait.h>
14954#ifndef WEXITSTATUS
14955# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14956#endif
14957#ifndef WIFEXITED
14958# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14959#endif
14960
14961int
14962main ()
14963{
14964 int s;
14965 wait (&s);
14966 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14967 ;
14968 return 0;
14969}
14970_ACEOF
14971if ac_fn_c_try_compile "$LINENO"; then :
14972 ac_cv_header_sys_wait_h=yes
14973else
14974 ac_cv_header_sys_wait_h=no
14975fi
14976rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14977fi
14978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
14979$as_echo "$ac_cv_header_sys_wait_h" >&6; }
14980if test $ac_cv_header_sys_wait_h = yes; then
14981
14982$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
14983
14984fi
14985
14986
14987
14988
14989 for ac_header in $ac_header_list
14990do :
14991 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14992ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
14993"
14994if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14995 cat >>confdefs.h <<_ACEOF
14996#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14997_ACEOF
14998
14999fi
15000
15001done
15002
15003
15004
15005
15006
15007
15008
15009
15010for ac_func in getpagesize
15011do :
15012 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
15013if test "x$ac_cv_func_getpagesize" = xyes; then :
15014 cat >>confdefs.h <<_ACEOF
15015#define HAVE_GETPAGESIZE 1
15016_ACEOF
15017
15018fi
15019done
15020
15021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
15022$as_echo_n "checking for working mmap... " >&6; }
15023if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
15024 $as_echo_n "(cached) " >&6
15025else
15026 if test "$cross_compiling" = yes; then :
15027 ac_cv_func_mmap_fixed_mapped=no
15028else
15029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15030/* end confdefs.h. */
15031$ac_includes_default
15032/* malloc might have been renamed as rpl_malloc. */
15033#undef malloc
15034
15035/* Thanks to Mike Haertel and Jim Avera for this test.
15036 Here is a matrix of mmap possibilities:
15037 mmap private not fixed
15038 mmap private fixed at somewhere currently unmapped
15039 mmap private fixed at somewhere already mapped
15040 mmap shared not fixed
15041 mmap shared fixed at somewhere currently unmapped
15042 mmap shared fixed at somewhere already mapped
15043 For private mappings, we should verify that changes cannot be read()
15044 back from the file, nor mmap's back from the file at a different
15045 address. (There have been systems where private was not correctly
15046 implemented like the infamous i386 svr4.0, and systems where the
15047 VM page cache was not coherent with the file system buffer cache
15048 like early versions of FreeBSD and possibly contemporary NetBSD.)
34156b23
L
15049 For shared mappings, we should conversely verify that changes get
15050 propagated back to all the places they're supposed to be.
15051
15052 Grep wants private fixed already mapped.
15053 The main things grep needs to know about mmap are:
15054 * does it exist and is it safe to write into the mmap'd area
15055 * how to use it (BSD variants) */
15056
15057#include <fcntl.h>
15058#include <sys/mman.h>
15059
15060#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
15061char *malloc ();
15062#endif
15063
15064/* This mess was copied from the GNU getpagesize.h. */
15065#ifndef HAVE_GETPAGESIZE
15066# ifdef _SC_PAGESIZE
15067# define getpagesize() sysconf(_SC_PAGESIZE)
15068# else /* no _SC_PAGESIZE */
15069# ifdef HAVE_SYS_PARAM_H
15070# include <sys/param.h>
15071# ifdef EXEC_PAGESIZE
15072# define getpagesize() EXEC_PAGESIZE
15073# else /* no EXEC_PAGESIZE */
15074# ifdef NBPG
15075# define getpagesize() NBPG * CLSIZE
15076# ifndef CLSIZE
15077# define CLSIZE 1
15078# endif /* no CLSIZE */
15079# else /* no NBPG */
15080# ifdef NBPC
15081# define getpagesize() NBPC
15082# else /* no NBPC */
15083# ifdef PAGESIZE
15084# define getpagesize() PAGESIZE
15085# endif /* PAGESIZE */
15086# endif /* no NBPC */
15087# endif /* no NBPG */
15088# endif /* no EXEC_PAGESIZE */
15089# else /* no HAVE_SYS_PARAM_H */
15090# define getpagesize() 8192 /* punt totally */
15091# endif /* no HAVE_SYS_PARAM_H */
15092# endif /* no _SC_PAGESIZE */
15093
15094#endif /* no HAVE_GETPAGESIZE */
15095
15096int
15097main ()
15098{
15099 char *data, *data2, *data3;
15100 const char *cdata2;
15101 int i, pagesize;
15102 int fd, fd2;
15103
15104 pagesize = getpagesize ();
15105
15106 /* First, make a file with some known garbage in it. */
15107 data = (char *) malloc (pagesize);
15108 if (!data)
15109 return 1;
15110 for (i = 0; i < pagesize; ++i)
15111 *(data + i) = rand ();
15112 umask (0);
15113 fd = creat ("conftest.mmap", 0600);
15114 if (fd < 0)
15115 return 2;
15116 if (write (fd, data, pagesize) != pagesize)
15117 return 3;
15118 close (fd);
15119
15120 /* Next, check that the tail of a page is zero-filled. File must have
15121 non-zero length, otherwise we risk SIGBUS for entire page. */
15122 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
15123 if (fd2 < 0)
15124 return 4;
15125 cdata2 = "";
15126 if (write (fd2, cdata2, 1) != 1)
15127 return 5;
15128 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
15129 if (data2 == MAP_FAILED)
15130 return 6;
15131 for (i = 0; i < pagesize; ++i)
15132 if (*(data2 + i))
15133 return 7;
15134 close (fd2);
15135 if (munmap (data2, pagesize))
15136 return 8;
15137
15138 /* Next, try to mmap the file at a fixed address which already has
15139 something else allocated at it. If we can, also make sure that
15140 we see the same garbage. */
15141 fd = open ("conftest.mmap", O_RDWR);
15142 if (fd < 0)
15143 return 9;
15144 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
15145 MAP_PRIVATE | MAP_FIXED, fd, 0L))
15146 return 10;
15147 for (i = 0; i < pagesize; ++i)
15148 if (*(data + i) != *(data2 + i))
15149 return 11;
15150
15151 /* Finally, make sure that changes to the mapped area do not
15152 percolate back to the file as seen by read(). (This is a bug on
15153 some variants of i386 svr4.0.) */
15154 for (i = 0; i < pagesize; ++i)
15155 *(data2 + i) = *(data2 + i) + 1;
15156 data3 = (char *) malloc (pagesize);
15157 if (!data3)
15158 return 12;
15159 if (read (fd, data3, pagesize) != pagesize)
15160 return 13;
15161 for (i = 0; i < pagesize; ++i)
15162 if (*(data + i) != *(data3 + i))
15163 return 14;
15164 close (fd);
15165 return 0;
15166}
15167_ACEOF
15168if ac_fn_c_try_run "$LINENO"; then :
15169 ac_cv_func_mmap_fixed_mapped=yes
15170else
15171 ac_cv_func_mmap_fixed_mapped=no
15172fi
15173rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15174 conftest.$ac_objext conftest.beam conftest.$ac_ext
15175fi
15176
15177fi
15178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
15179$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
15180if test $ac_cv_func_mmap_fixed_mapped = yes; then
15181
15182$as_echo "#define HAVE_MMAP 1" >>confdefs.h
15183
15184fi
15185rm -f conftest.mmap conftest.txt
15186
d7229d6a 15187for ac_func in fseeko fseeko64 getc_unlocked mkdtemp mkstemp utimensat utimes
81ecdfbb
RW
15188do :
15189 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15190ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
d0ac1c44 15191if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
81ecdfbb
RW
15192 cat >>confdefs.h <<_ACEOF
15193#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15194_ACEOF
42ecbf5e 15195
81ecdfbb
RW
15196fi
15197done
42ecbf5e 15198
42ecbf5e 15199
985e0264 15200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
3bfcb652 15201$as_echo_n "checking for mbstate_t... " >&6; }
985e0264 15202cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3bfcb652
NC
15203/* end confdefs.h. */
15204#include <wchar.h>
15205int
15206main ()
15207{
15208mbstate_t teststate;
15209 ;
15210 return 0;
15211}
15212_ACEOF
15213if ac_fn_c_try_compile "$LINENO"; then :
15214 have_mbstate_t=yes
15215else
15216 have_mbstate_t=no
15217fi
15218rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
985e0264 15219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mbstate_t" >&5
3bfcb652 15220$as_echo "$have_mbstate_t" >&6; }
985e0264 15221if test x"$have_mbstate_t" = xyes; then
3bfcb652
NC
15222
15223$as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
15224
985e0264
AM
15225fi
15226
15227# Copied from gnulib stat-time.m4.
15228# We should just switch over to using gnulib.
15229ac_fn_c_check_member "$LINENO" "struct stat" "st_atim.tv_nsec" "ac_cv_member_struct_stat_st_atim_tv_nsec" "#include <sys/types.h>
15230 #include <sys/stat.h>
15231"
15232if test "x$ac_cv_member_struct_stat_st_atim_tv_nsec" = xyes; then :
15233
15234cat >>confdefs.h <<_ACEOF
15235#define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1
15236_ACEOF
15237
15238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat.st_atim is of type struct timespec" >&5
15239$as_echo_n "checking whether struct stat.st_atim is of type struct timespec... " >&6; }
15240if ${ac_cv_typeof_struct_stat_st_atim_is_struct_timespec+:} false; then :
15241 $as_echo_n "(cached) " >&6
15242else
15243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15244/* end confdefs.h. */
15245
15246 #include <sys/types.h>
15247 #include <sys/stat.h>
15248 #if HAVE_SYS_TIME_H
15249 # include <sys/time.h>
15250 #endif
15251 #include <time.h>
15252 struct timespec ts;
15253 struct stat st;
15254
15255int
15256main ()
15257{
15258
15259 st.st_atim = ts;
15260
15261 ;
15262 return 0;
15263}
15264_ACEOF
15265if ac_fn_c_try_compile "$LINENO"; then :
15266 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=yes
15267else
15268 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=no
15269fi
15270rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15271fi
15272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&5
15273$as_echo "$ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&6; }
15274 if test $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec = yes; then
15275
15276$as_echo "#define TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC 1" >>confdefs.h
15277
15278 fi
15279else
15280 ac_fn_c_check_member "$LINENO" "struct stat" "st_atimespec.tv_nsec" "ac_cv_member_struct_stat_st_atimespec_tv_nsec" "#include <sys/types.h>
15281 #include <sys/stat.h>
15282"
15283if test "x$ac_cv_member_struct_stat_st_atimespec_tv_nsec" = xyes; then :
15284
15285cat >>confdefs.h <<_ACEOF
15286#define HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC 1
15287_ACEOF
15288
15289
15290else
15291 ac_fn_c_check_member "$LINENO" "struct stat" "st_atimensec" "ac_cv_member_struct_stat_st_atimensec" "#include <sys/types.h>
15292 #include <sys/stat.h>
15293"
15294if test "x$ac_cv_member_struct_stat_st_atimensec" = xyes; then :
15295
15296cat >>confdefs.h <<_ACEOF
15297#define HAVE_STRUCT_STAT_ST_ATIMENSEC 1
15298_ACEOF
15299
15300
15301else
15302 ac_fn_c_check_member "$LINENO" "struct stat" "st_atim.st__tim.tv_nsec" "ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" "#include <sys/types.h>
15303 #include <sys/stat.h>
15304"
15305if test "x$ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" = xyes; then :
15306
15307cat >>confdefs.h <<_ACEOF
15308#define HAVE_STRUCT_STAT_ST_ATIM_ST__TIM_TV_NSEC 1
15309_ACEOF
15310
15311
15312fi
15313
15314fi
15315
15316fi
15317
15318fi
15319
d15b04bd 15320
81ecdfbb
RW
15321# Some systems have frexp only in -lm, not in -lc.
15322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing frexp" >&5
15323$as_echo_n "checking for library containing frexp... " >&6; }
d0ac1c44 15324if ${ac_cv_search_frexp+:} false; then :
81ecdfbb 15325 $as_echo_n "(cached) " >&6
f9c026a8 15326else
81ecdfbb
RW
15327 ac_func_search_save_LIBS=$LIBS
15328cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f9c026a8 15329/* end confdefs.h. */
f9c026a8 15330
81ecdfbb
RW
15331/* Override any GCC internal prototype to avoid an error.
15332 Use char because int might match the return type of a GCC
f9c026a8 15333 builtin and then its argument prototype would still apply. */
42ecbf5e
DJ
15334#ifdef __cplusplus
15335extern "C"
15336#endif
42ecbf5e
DJ
15337char frexp ();
15338int
15339main ()
15340{
81ecdfbb 15341return frexp ();
42ecbf5e
DJ
15342 ;
15343 return 0;
15344}
15345_ACEOF
81ecdfbb
RW
15346for ac_lib in '' m; do
15347 if test -z "$ac_lib"; then
15348 ac_res="none required"
15349 else
15350 ac_res=-l$ac_lib
42ecbf5e 15351 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
81ecdfbb
RW
15352 fi
15353 if ac_fn_c_try_link "$LINENO"; then :
15354 ac_cv_search_frexp=$ac_res
15355fi
15356rm -f core conftest.err conftest.$ac_objext \
15357 conftest$ac_exeext
d0ac1c44 15358 if ${ac_cv_search_frexp+:} false; then :
81ecdfbb
RW
15359 break
15360fi
15361done
d0ac1c44 15362if ${ac_cv_search_frexp+:} false; then :
42ecbf5e 15363
f353eb8a 15364else
81ecdfbb 15365 ac_cv_search_frexp=no
e5a52504 15366fi
81ecdfbb 15367rm conftest.$ac_ext
42ecbf5e
DJ
15368LIBS=$ac_func_search_save_LIBS
15369fi
81ecdfbb
RW
15370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_frexp" >&5
15371$as_echo "$ac_cv_search_frexp" >&6; }
15372ac_res=$ac_cv_search_frexp
15373if test "$ac_res" != no; then :
15374 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
42ecbf5e 15375
f353eb8a
ILT
15376fi
15377
42ecbf5e 15378
44350750
NC
15379
15380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
15381$as_echo_n "checking for LC_MESSAGES... " >&6; }
d0ac1c44 15382if ${am_cv_val_LC_MESSAGES+:} false; then :
44350750
NC
15383 $as_echo_n "(cached) " >&6
15384else
15385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15386/* end confdefs.h. */
15387#include <locale.h>
15388int
15389main ()
15390{
15391return LC_MESSAGES
15392 ;
15393 return 0;
15394}
15395_ACEOF
15396if ac_fn_c_try_link "$LINENO"; then :
15397 am_cv_val_LC_MESSAGES=yes
15398else
15399 am_cv_val_LC_MESSAGES=no
15400fi
15401rm -f core conftest.err conftest.$ac_objext \
15402 conftest$ac_exeext conftest.$ac_ext
15403fi
15404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
15405$as_echo "$am_cv_val_LC_MESSAGES" >&6; }
15406 if test $am_cv_val_LC_MESSAGES = yes; then
15407
15408$as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
15409
15410 fi
15411
15412
81ecdfbb
RW
15413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a known getopt prototype in unistd.h" >&5
15414$as_echo_n "checking for a known getopt prototype in unistd.h... " >&6; }
d0ac1c44 15415if ${bu_cv_decl_getopt_unistd_h+:} false; then :
81ecdfbb 15416 $as_echo_n "(cached) " >&6
e46eba98 15417else
81ecdfbb 15418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e 15419/* end confdefs.h. */
e46eba98 15420#include <unistd.h>
42ecbf5e
DJ
15421int
15422main ()
15423{
e46eba98 15424extern int getopt (int, char *const*, const char *);
42ecbf5e
DJ
15425 ;
15426 return 0;
15427}
15428_ACEOF
81ecdfbb 15429if ac_fn_c_try_compile "$LINENO"; then :
e46eba98
NC
15430 bu_cv_decl_getopt_unistd_h=yes
15431else
81ecdfbb 15432 bu_cv_decl_getopt_unistd_h=no
e46eba98 15433fi
81ecdfbb 15434rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e46eba98
NC
15435fi
15436
81ecdfbb
RW
15437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bu_cv_decl_getopt_unistd_h" >&5
15438$as_echo "$bu_cv_decl_getopt_unistd_h" >&6; }
e46eba98 15439if test $bu_cv_decl_getopt_unistd_h = yes; then
42ecbf5e 15440
81ecdfbb 15441$as_echo "#define HAVE_DECL_GETOPT 1" >>confdefs.h
e46eba98
NC
15442
15443fi
15444
252b5132
RH
15445# Under Next 3.2 <utime.h> apparently does not define struct utimbuf
15446# by default.
81ecdfbb
RW
15447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for utime.h" >&5
15448$as_echo_n "checking for utime.h... " >&6; }
d0ac1c44 15449if ${bu_cv_header_utime_h+:} false; then :
81ecdfbb 15450 $as_echo_n "(cached) " >&6
42ecbf5e 15451else
81ecdfbb 15452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e 15453/* end confdefs.h. */
252b5132
RH
15454#include <sys/types.h>
15455#ifdef HAVE_TIME_H
15456#include <time.h>
15457#endif
15458#include <utime.h>
42ecbf5e
DJ
15459int
15460main ()
15461{
252b5132 15462struct utimbuf s;
42ecbf5e
DJ
15463 ;
15464 return 0;
15465}
15466_ACEOF
81ecdfbb 15467if ac_fn_c_try_compile "$LINENO"; then :
252b5132
RH
15468 bu_cv_header_utime_h=yes
15469else
81ecdfbb 15470 bu_cv_header_utime_h=no
252b5132 15471fi
81ecdfbb 15472rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
15473fi
15474
81ecdfbb
RW
15475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bu_cv_header_utime_h" >&5
15476$as_echo "$bu_cv_header_utime_h" >&6; }
252b5132 15477if test $bu_cv_header_utime_h = yes; then
42ecbf5e 15478
81ecdfbb 15479$as_echo "#define HAVE_GOOD_UTIME_H 1" >>confdefs.h
252b5132
RH
15480
15481fi
15482
1f5345a6 15483ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
d0ac1c44 15484if test "x$ac_cv_have_decl_asprintf" = xyes; then :
1f5345a6
ST
15485 ac_have_decl=1
15486else
15487 ac_have_decl=0
15488fi
15489
15490cat >>confdefs.h <<_ACEOF
15491#define HAVE_DECL_ASPRINTF $ac_have_decl
15492_ACEOF
952781e8 15493ac_fn_c_check_decl "$LINENO" "environ" "ac_cv_have_decl_environ" "$ac_includes_default"
d0ac1c44 15494if test "x$ac_cv_have_decl_environ" = xyes; then :
952781e8
AM
15495 ac_have_decl=1
15496else
15497 ac_have_decl=0
15498fi
15499
15500cat >>confdefs.h <<_ACEOF
15501#define HAVE_DECL_ENVIRON $ac_have_decl
15502_ACEOF
952781e8 15503ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
d0ac1c44 15504if test "x$ac_cv_have_decl_getc_unlocked" = xyes; then :
81ecdfbb 15505 ac_have_decl=1
252b5132 15506else
81ecdfbb 15507 ac_have_decl=0
252b5132 15508fi
252b5132 15509
398ee8f1 15510cat >>confdefs.h <<_ACEOF
952781e8 15511#define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
398ee8f1 15512_ACEOF
952781e8 15513ac_fn_c_check_decl "$LINENO" "stpcpy" "ac_cv_have_decl_stpcpy" "$ac_includes_default"
d0ac1c44 15514if test "x$ac_cv_have_decl_stpcpy" = xyes; then :
81ecdfbb 15515 ac_have_decl=1
398ee8f1 15516else
81ecdfbb 15517 ac_have_decl=0
398ee8f1 15518fi
252b5132 15519
398ee8f1 15520cat >>confdefs.h <<_ACEOF
952781e8 15521#define HAVE_DECL_STPCPY $ac_have_decl
b7d4af3a 15522_ACEOF
b737d304
RO
15523ac_fn_c_check_decl "$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default"
15524if test "x$ac_cv_have_decl_strnlen" = xyes; then :
15525 ac_have_decl=1
15526else
15527 ac_have_decl=0
15528fi
15529
15530cat >>confdefs.h <<_ACEOF
15531#define HAVE_DECL_STRNLEN $ac_have_decl
15532_ACEOF
db50c840
EB
15533
15534
2cac01e3 15535# Link in zlib/zstd if we can. This allows us to read compressed debug
ed2b5077
L
15536# sections. This is used only by readelf.c (objdump uses bfd for
15537# reading compressed sections).
15538
15539 # Use the system's zlib library.
39f3de7c
L
15540 zlibdir="-L\$(top_builddir)/../zlib"
15541 zlibinc="-I\$(top_srcdir)/../zlib"
52546677 15542
0ee42ecd
L
15543# Check whether --with-system-zlib was given.
15544if test "${with_system_zlib+set}" = set; then :
afa59b79
L
15545 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
15546 zlibdir=
15547 zlibinc=
15548 fi
52546677 15549
52546677
RM
15550fi
15551
15552
52546677 15553
1b315056 15554
252b5132 15555
ed2b5077 15556
2cac01e3
FS
15557# Check whether --with-zstd was given.
15558if test "${with_zstd+set}" = set; then :
15559 withval=$with_zstd;
15560else
15561 with_zstd=auto
15562fi
15563
15564
15565if test "$with_zstd" != no; then :
15566
15567pkg_failed=no
200164d4
CL
15568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libzstd >= 1.4.0" >&5
15569$as_echo_n "checking for libzstd >= 1.4.0... " >&6; }
2cac01e3
FS
15570
15571if test -n "$ZSTD_CFLAGS"; then
15572 pkg_cv_ZSTD_CFLAGS="$ZSTD_CFLAGS"
15573 elif test -n "$PKG_CONFIG"; then
15574 if test -n "$PKG_CONFIG" && \
200164d4
CL
15575 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libzstd >= 1.4.0\""; } >&5
15576 ($PKG_CONFIG --exists --print-errors "libzstd >= 1.4.0") 2>&5
2cac01e3
FS
15577 ac_status=$?
15578 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15579 test $ac_status = 0; }; then
200164d4 15580 pkg_cv_ZSTD_CFLAGS=`$PKG_CONFIG --cflags "libzstd >= 1.4.0" 2>/dev/null`
2cac01e3
FS
15581 test "x$?" != "x0" && pkg_failed=yes
15582else
15583 pkg_failed=yes
15584fi
15585 else
15586 pkg_failed=untried
15587fi
15588if test -n "$ZSTD_LIBS"; then
15589 pkg_cv_ZSTD_LIBS="$ZSTD_LIBS"
15590 elif test -n "$PKG_CONFIG"; then
15591 if test -n "$PKG_CONFIG" && \
200164d4
CL
15592 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libzstd >= 1.4.0\""; } >&5
15593 ($PKG_CONFIG --exists --print-errors "libzstd >= 1.4.0") 2>&5
2cac01e3
FS
15594 ac_status=$?
15595 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15596 test $ac_status = 0; }; then
200164d4 15597 pkg_cv_ZSTD_LIBS=`$PKG_CONFIG --libs "libzstd >= 1.4.0" 2>/dev/null`
2cac01e3
FS
15598 test "x$?" != "x0" && pkg_failed=yes
15599else
15600 pkg_failed=yes
15601fi
15602 else
15603 pkg_failed=untried
15604fi
15605
15606if test $pkg_failed = no; then
15607 pkg_save_LDFLAGS="$LDFLAGS"
15608 LDFLAGS="$LDFLAGS $pkg_cv_ZSTD_LIBS"
15609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15610/* end confdefs.h. */
15611
15612int
15613main ()
15614{
15615
15616 ;
15617 return 0;
15618}
15619_ACEOF
15620if ac_fn_c_try_link "$LINENO"; then :
15621
15622else
15623 pkg_failed=yes
15624fi
15625rm -f core conftest.err conftest.$ac_objext \
15626 conftest$ac_exeext conftest.$ac_ext
15627 LDFLAGS=$pkg_save_LDFLAGS
15628fi
15629
15630
15631
15632if test $pkg_failed = yes; then
15633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15634$as_echo "no" >&6; }
15635
15636if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15637 _pkg_short_errors_supported=yes
15638else
15639 _pkg_short_errors_supported=no
15640fi
15641 if test $_pkg_short_errors_supported = yes; then
200164d4 15642 ZSTD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libzstd >= 1.4.0" 2>&1`
2cac01e3 15643 else
200164d4 15644 ZSTD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libzstd >= 1.4.0" 2>&1`
2cac01e3
FS
15645 fi
15646 # Put the nasty error message in config.log where it belongs
15647 echo "$ZSTD_PKG_ERRORS" >&5
15648
15649
15650 if test "$with_zstd" = yes; then
15651 as_fn_error $? "--with-zstd was given, but pkgconfig/libzstd.pc is not found" "$LINENO" 5
15652 fi
15653
15654elif test $pkg_failed = untried; then
15655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15656$as_echo "no" >&6; }
15657
15658 if test "$with_zstd" = yes; then
15659 as_fn_error $? "--with-zstd was given, but pkgconfig/libzstd.pc is not found" "$LINENO" 5
15660 fi
15661
15662else
15663 ZSTD_CFLAGS=$pkg_cv_ZSTD_CFLAGS
15664 ZSTD_LIBS=$pkg_cv_ZSTD_LIBS
15665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15666$as_echo "yes" >&6; }
15667
15668
15669$as_echo "#define HAVE_ZSTD 1" >>confdefs.h
15670
15671
15672fi
15673
15674fi
15675
15676
15677
252b5132 15678case "${host}" in
8a965946 15679*-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
42ecbf5e 15680
81ecdfbb 15681$as_echo "#define USE_BINARY_FOPEN 1" >>confdefs.h
252b5132
RH
15682 ;;
15683esac
15684
2952f10c
SM
15685# Support for the msgpack C library.
15686
15687# Check whether --with-msgpack was given.
15688if test "${with_msgpack+set}" = set; then :
15689 withval=$with_msgpack;
15690else
15691 with_msgpack=auto
15692fi
15693
15694
544c5619 15695if test "$with_msgpack" != no; then :
2952f10c
SM
15696
15697pkg_failed=no
15698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for msgpack" >&5
15699$as_echo_n "checking for msgpack... " >&6; }
15700
15701if test -n "$MSGPACK_CFLAGS"; then
15702 pkg_cv_MSGPACK_CFLAGS="$MSGPACK_CFLAGS"
15703 elif test -n "$PKG_CONFIG"; then
15704 if test -n "$PKG_CONFIG" && \
15705 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"msgpack\""; } >&5
15706 ($PKG_CONFIG --exists --print-errors "msgpack") 2>&5
15707 ac_status=$?
15708 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15709 test $ac_status = 0; }; then
15710 pkg_cv_MSGPACK_CFLAGS=`$PKG_CONFIG --cflags "msgpack" 2>/dev/null`
15711 test "x$?" != "x0" && pkg_failed=yes
15712else
15713 pkg_failed=yes
15714fi
15715 else
15716 pkg_failed=untried
15717fi
15718if test -n "$MSGPACK_LIBS"; then
15719 pkg_cv_MSGPACK_LIBS="$MSGPACK_LIBS"
15720 elif test -n "$PKG_CONFIG"; then
15721 if test -n "$PKG_CONFIG" && \
15722 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"msgpack\""; } >&5
15723 ($PKG_CONFIG --exists --print-errors "msgpack") 2>&5
15724 ac_status=$?
15725 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15726 test $ac_status = 0; }; then
15727 pkg_cv_MSGPACK_LIBS=`$PKG_CONFIG --libs "msgpack" 2>/dev/null`
15728 test "x$?" != "x0" && pkg_failed=yes
15729else
15730 pkg_failed=yes
15731fi
15732 else
15733 pkg_failed=untried
15734fi
15735
15736if test $pkg_failed = no; then
15737 pkg_save_LDFLAGS="$LDFLAGS"
15738 LDFLAGS="$LDFLAGS $pkg_cv_MSGPACK_LIBS"
15739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15740/* end confdefs.h. */
15741
15742int
15743main ()
15744{
15745
15746 ;
15747 return 0;
15748}
15749_ACEOF
15750if ac_fn_c_try_link "$LINENO"; then :
15751
15752else
15753 pkg_failed=yes
15754fi
15755rm -f core conftest.err conftest.$ac_objext \
15756 conftest$ac_exeext conftest.$ac_ext
15757 LDFLAGS=$pkg_save_LDFLAGS
15758fi
15759
15760
15761
15762if test $pkg_failed = yes; then
15763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15764$as_echo "no" >&6; }
15765
15766if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15767 _pkg_short_errors_supported=yes
15768else
15769 _pkg_short_errors_supported=no
15770fi
15771 if test $_pkg_short_errors_supported = yes; then
15772 MSGPACK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "msgpack" 2>&1`
15773 else
15774 MSGPACK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "msgpack" 2>&1`
15775 fi
15776 # Put the nasty error message in config.log where it belongs
15777 echo "$MSGPACK_PKG_ERRORS" >&5
15778
544c5619
AM
15779 if test "$with_msgpack" = yes; then :
15780 as_fn_error $? "--with-msgpack was given, but msgpack is missing or unusable." "$LINENO" 5
15781fi
2952f10c
SM
15782elif test $pkg_failed = untried; then
15783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15784$as_echo "no" >&6; }
544c5619
AM
15785 if test "$with_msgpack" = yes; then :
15786 as_fn_error $? "--with-msgpack was given, but msgpack is missing or unusable." "$LINENO" 5
15787fi
2952f10c
SM
15788else
15789 MSGPACK_CFLAGS=$pkg_cv_MSGPACK_CFLAGS
15790 MSGPACK_LIBS=$pkg_cv_MSGPACK_LIBS
862776f2
AA
15791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15792$as_echo "yes" >&6; }
9f1528a1 15793
862776f2 15794$as_echo "#define HAVE_MSGPACK 1" >>confdefs.h
9f1528a1 15795
862776f2
AA
15796fi
15797fi
5ba684e2 15798
862776f2 15799# target-specific stuff:
5ba684e2 15800
862776f2
AA
15801# Canonicalize the secondary target names.
15802if test -n "$enable_targets"; then
15803 for targ in `echo $enable_targets | sed 's/,/ /g'`
15804 do
15805 result=`$ac_config_sub $targ 2>/dev/null`
15806 if test -n "$result"; then
15807 canon_targets="$canon_targets $result"
15808 else
15809 # Allow targets that config.sub doesn't recognize, like "all".
15810 canon_targets="$canon_targets $targ"
15811 fi
15812 done
15813fi
5ba684e2 15814
862776f2
AA
15815ac_fn_c_check_header_mongrel "$LINENO" "iconv.h" "ac_cv_header_iconv_h" "$ac_includes_default"
15816if test "x$ac_cv_header_iconv_h" = xyes; then :
15817
15818fi
5ba684e2 15819
5ba684e2 15820
5ba684e2 15821
5ba684e2 15822
5ba684e2 15823
862776f2
AA
15824
15825
15826 am_save_CPPFLAGS="$CPPFLAGS"
15827
15828 for element in $INCICONV; do
15829 haveit=
15830 for x in $CPPFLAGS; do
5ba684e2
NC
15831
15832 acl_save_prefix="$prefix"
15833 prefix="$acl_final_prefix"
15834 acl_save_exec_prefix="$exec_prefix"
15835 exec_prefix="$acl_final_exec_prefix"
15836 eval x=\"$x\"
15837 exec_prefix="$acl_save_exec_prefix"
15838 prefix="$acl_save_prefix"
15839
862776f2
AA
15840 if test "X$x" = "X$element"; then
15841 haveit=yes
15842 break
5ba684e2
NC
15843 fi
15844 done
862776f2
AA
15845 if test -z "$haveit"; then
15846 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
5ba684e2 15847 fi
862776f2 15848 done
5ba684e2
NC
15849
15850
81ecdfbb
RW
15851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
15852$as_echo_n "checking for iconv... " >&6; }
d0ac1c44 15853if ${am_cv_func_iconv+:} false; then :
81ecdfbb 15854 $as_echo_n "(cached) " >&6
5ba684e2
NC
15855else
15856
15857 am_cv_func_iconv="no, consider installing GNU libiconv"
15858 am_cv_lib_iconv=no
81ecdfbb 15859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5ba684e2 15860/* end confdefs.h. */
862776f2 15861
5ba684e2
NC
15862#include <stdlib.h>
15863#include <iconv.h>
862776f2 15864
cfe101c6
YS
15865int
15866main ()
15867{
15868iconv_t cd = iconv_open("","");
15869 iconv(cd,NULL,NULL,NULL,NULL);
15870 iconv_close(cd);
15871 ;
15872 return 0;
15873}
15874_ACEOF
15875if ac_fn_c_try_link "$LINENO"; then :
862776f2 15876 am_cv_func_iconv=yes
cfe101c6
YS
15877fi
15878rm -f core conftest.err conftest.$ac_objext \
15879 conftest$ac_exeext conftest.$ac_ext
5ba684e2
NC
15880 if test "$am_cv_func_iconv" != yes; then
15881 am_save_LIBS="$LIBS"
15882 LIBS="$LIBS $LIBICONV"
81ecdfbb 15883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5ba684e2 15884/* end confdefs.h. */
862776f2 15885
5ba684e2
NC
15886#include <stdlib.h>
15887#include <iconv.h>
862776f2 15888
5ba684e2
NC
15889int
15890main ()
15891{
15892iconv_t cd = iconv_open("","");
862776f2
AA
15893 iconv(cd,NULL,NULL,NULL,NULL);
15894 iconv_close(cd);
5ba684e2
NC
15895 ;
15896 return 0;
15897}
15898_ACEOF
81ecdfbb 15899if ac_fn_c_try_link "$LINENO"; then :
5ba684e2
NC
15900 am_cv_lib_iconv=yes
15901 am_cv_func_iconv=yes
5ba684e2 15902fi
81ecdfbb
RW
15903rm -f core conftest.err conftest.$ac_objext \
15904 conftest$ac_exeext conftest.$ac_ext
5ba684e2
NC
15905 LIBS="$am_save_LIBS"
15906 fi
15907
15908fi
81ecdfbb
RW
15909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
15910$as_echo "$am_cv_func_iconv" >&6; }
5ba684e2 15911 if test "$am_cv_func_iconv" = yes; then
862776f2
AA
15912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
15913$as_echo_n "checking for working iconv... " >&6; }
15914if ${am_cv_func_iconv_works+:} false; then :
15915 $as_echo_n "(cached) " >&6
15916else
5ba684e2 15917
862776f2
AA
15918 am_save_LIBS="$LIBS"
15919 if test $am_cv_lib_iconv = yes; then
15920 LIBS="$LIBS $LIBICONV"
15921 fi
15922 am_cv_func_iconv_works=no
15923 for ac_iconv_const in '' 'const'; do
15924 if test "$cross_compiling" = yes; then :
15925 case "$host_os" in
15926 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
15927 *) am_cv_func_iconv_works="guessing yes" ;;
15928 esac
15929else
15930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15931/* end confdefs.h. */
5ba684e2 15932
862776f2
AA
15933#include <iconv.h>
15934#include <string.h>
cfe101c6 15935
862776f2
AA
15936#ifndef ICONV_CONST
15937# define ICONV_CONST $ac_iconv_const
15938#endif
cfe101c6 15939
862776f2
AA
15940int
15941main ()
15942{
15943int result = 0;
15944 /* Test against AIX 5.1...7.2 bug: Failures are not distinguishable from
15945 successful returns. This is even documented in
15946 <https://www.ibm.com/support/knowledgecenter/ssw_aix_72/i_bostechref/iconv.html> */
15947 {
15948 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
15949 if (cd_utf8_to_88591 != (iconv_t)(-1))
15950 {
15951 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
15952 char buf[10];
15953 ICONV_CONST char *inptr = input;
15954 size_t inbytesleft = strlen (input);
15955 char *outptr = buf;
15956 size_t outbytesleft = sizeof (buf);
15957 size_t res = iconv (cd_utf8_to_88591,
15958 &inptr, &inbytesleft,
15959 &outptr, &outbytesleft);
15960 if (res == 0)
15961 result |= 1;
15962 iconv_close (cd_utf8_to_88591);
15963 }
15964 }
15965 /* Test against Solaris 10 bug: Failures are not distinguishable from
15966 successful returns. */
15967 {
15968 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
15969 if (cd_ascii_to_88591 != (iconv_t)(-1))
15970 {
15971 static ICONV_CONST char input[] = "\263";
15972 char buf[10];
15973 ICONV_CONST char *inptr = input;
15974 size_t inbytesleft = strlen (input);
15975 char *outptr = buf;
15976 size_t outbytesleft = sizeof (buf);
15977 size_t res = iconv (cd_ascii_to_88591,
15978 &inptr, &inbytesleft,
15979 &outptr, &outbytesleft);
15980 if (res == 0)
15981 result |= 2;
15982 iconv_close (cd_ascii_to_88591);
15983 }
15984 }
15985 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
15986 {
15987 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
15988 if (cd_88591_to_utf8 != (iconv_t)(-1))
15989 {
15990 static ICONV_CONST char input[] = "\304";
15991 static char buf[2] = { (char)0xDE, (char)0xAD };
15992 ICONV_CONST char *inptr = input;
15993 size_t inbytesleft = 1;
15994 char *outptr = buf;
15995 size_t outbytesleft = 1;
15996 size_t res = iconv (cd_88591_to_utf8,
15997 &inptr, &inbytesleft,
15998 &outptr, &outbytesleft);
15999 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
16000 result |= 4;
16001 iconv_close (cd_88591_to_utf8);
16002 }
16003 }
16004#if 0 /* This bug could be worked around by the caller. */
16005 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
16006 {
16007 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
16008 if (cd_88591_to_utf8 != (iconv_t)(-1))
16009 {
16010 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
16011 char buf[50];
16012 ICONV_CONST char *inptr = input;
16013 size_t inbytesleft = strlen (input);
16014 char *outptr = buf;
16015 size_t outbytesleft = sizeof (buf);
16016 size_t res = iconv (cd_88591_to_utf8,
16017 &inptr, &inbytesleft,
16018 &outptr, &outbytesleft);
16019 if ((int)res > 0)
16020 result |= 8;
16021 iconv_close (cd_88591_to_utf8);
16022 }
16023 }
16024#endif
16025 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
16026 provided. */
16027 {
16028 /* Try standardized names. */
16029 iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP");
16030 /* Try IRIX, OSF/1 names. */
16031 iconv_t cd2 = iconv_open ("UTF-8", "eucJP");
16032 /* Try AIX names. */
16033 iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP");
16034 /* Try HP-UX names. */
16035 iconv_t cd4 = iconv_open ("utf8", "eucJP");
16036 if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1)
16037 && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1))
16038 result |= 16;
16039 if (cd1 != (iconv_t)(-1))
16040 iconv_close (cd1);
16041 if (cd2 != (iconv_t)(-1))
16042 iconv_close (cd2);
16043 if (cd3 != (iconv_t)(-1))
16044 iconv_close (cd3);
16045 if (cd4 != (iconv_t)(-1))
16046 iconv_close (cd4);
16047 }
16048 return result;
cfe101c6 16049
862776f2
AA
16050 ;
16051 return 0;
16052}
16053_ACEOF
16054if ac_fn_c_try_run "$LINENO"; then :
16055 am_cv_func_iconv_works=yes
16056fi
16057rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16058 conftest.$ac_objext conftest.beam conftest.$ac_ext
16059fi
16060
16061 test "$am_cv_func_iconv_works" = no || break
16062 done
16063 LIBS="$am_save_LIBS"
cfe101c6 16064
862776f2
AA
16065fi
16066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
16067$as_echo "$am_cv_func_iconv_works" >&6; }
16068 case "$am_cv_func_iconv_works" in
16069 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
16070 *) am_func_iconv=yes ;;
16071 esac
16072 else
16073 am_func_iconv=no am_cv_lib_iconv=no
16074 fi
16075 if test "$am_func_iconv" = yes; then
16076
16077$as_echo "#define HAVE_ICONV 1" >>confdefs.h
16078
16079 fi
16080 if test "$am_cv_lib_iconv" = yes; then
81ecdfbb
RW
16081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
16082$as_echo_n "checking how to link with libiconv... " >&6; }
16083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
16084$as_echo "$LIBICONV" >&6; }
5ba684e2 16085 else
862776f2 16086 CPPFLAGS="$am_save_CPPFLAGS"
5ba684e2
NC
16087 LIBICONV=
16088 LTLIBICONV=
16089 fi
16090
16091
16092
16093 if test "$am_cv_func_iconv" = yes; then
862776f2
AA
16094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iconv is compatible with its POSIX signature" >&5
16095$as_echo_n "checking whether iconv is compatible with its POSIX signature... " >&6; }
16096if ${gl_cv_iconv_nonconst+:} false; then :
81ecdfbb 16097 $as_echo_n "(cached) " >&6
5ba684e2 16098else
862776f2 16099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5ba684e2
NC
16100/* end confdefs.h. */
16101
16102#include <stdlib.h>
16103#include <iconv.h>
16104extern
16105#ifdef __cplusplus
16106"C"
16107#endif
5ba684e2 16108size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
5ba684e2
NC
16109
16110int
16111main ()
16112{
16113
16114 ;
16115 return 0;
16116}
16117_ACEOF
81ecdfbb 16118if ac_fn_c_try_compile "$LINENO"; then :
862776f2 16119 gl_cv_iconv_nonconst=yes
5ba684e2 16120else
862776f2 16121 gl_cv_iconv_nonconst=no
5ba684e2 16122fi
81ecdfbb 16123rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5ba684e2 16124
862776f2
AA
16125fi
16126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_iconv_nonconst" >&5
16127$as_echo "$gl_cv_iconv_nonconst" >&6; }
16128 else
16129 gl_cv_iconv_nonconst=yes
16130 fi
16131 if test $gl_cv_iconv_nonconst = yes; then
16132 iconv_arg1=""
16133 else
16134 iconv_arg1="const"
16135 fi
5ba684e2
NC
16136
16137cat >>confdefs.h <<_ACEOF
862776f2 16138#define ICONV_CONST $iconv_arg1
5ba684e2
NC
16139_ACEOF
16140
862776f2
AA
16141
16142
16143 if test "$am_func_iconv" = yes; then
16144 if test -n "$LIBICONV"; then
16145 am_cv_func_iconv_summary='yes, in libiconv'
16146 else
16147 am_cv_func_iconv_summary='yes, in libc'
16148 fi
16149 else
16150 if test "$am_cv_func_iconv" = yes; then
16151 am_cv_func_iconv_summary='not working, consider installing GNU libiconv'
16152 else
16153 am_cv_func_iconv_summary='no, consider installing GNU libiconv'
16154 fi
5ba684e2
NC
16155 fi
16156
16157
252b5132
RH
16158BUILD_SRCONV=
16159BUILD_DLLTOOL=
16160DLLTOOL_DEFS=
7aad4c3d 16161DLLTOOL_DEFAULT=
252b5132 16162BUILD_WINDRES=
692ed3e7 16163BUILD_WINDMC=
252b5132
RH
16164BUILD_DLLWRAP=
16165BUILD_MISC=
1d97d67f 16166BUILD_INSTALL_MISC=
8b1e6df3 16167OBJDUMP_DEFS=
6abcee90
TG
16168OBJDUMP_PRIVATE_VECTORS=
16169OBJDUMP_PRIVATE_OFILES=
16170od_vectors=
252b5132
RH
16171
16172for targ in $target $canon_targets
16173do
b5c37946
SJ
16174 case $targ in
16175 all | *-*-hms*)
252b5132 16176 BUILD_SRCONV='$(SRCONV_PROG)'
b5c37946
SJ
16177 ;;
16178 esac
16179
16180 case $targ in
16181 all | spu-*-*)
16182 BUILD_MISC='bin2c$(EXEEXT_FOR_BUILD)'
16183 ;;
16184 esac
16185
16186 case $targ in
16187 powerpc*-*-linux* | powerpc*-*-elf* | powerpc*-*-eabi*)
16188 BUILD_INSTALL_MISC=embedspu
16189 ;;
16190 esac
16191
16192 case $targ in
16193 mep-*)
16194 OBJDUMP_DEFS="-DSKIP_ZEROES=256 -DSKIP_ZEROES_AT_END=0"
16195 ;;
16196 powerpc*-aix5.[01])
16197 ;;
16198 powerpc*-aix[5-9].*)
16199 OBJDUMP_DEFS="-DAIX_WEAK_SUPPORT"
16200 ;;
16201 esac
16202
16203 case $targ in
16204 aarch64-*-mingw*)
b7bf7f1b
AM
16205 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
16206 if test -z "$DLLTOOL_DEFAULT"; then
b5c37946 16207 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_AARCH64"
b7bf7f1b 16208 fi
b5c37946
SJ
16209 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_AARCH64"
16210 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
16211 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
b7bf7f1b 16212 BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
b5c37946
SJ
16213 ;;
16214 arm-wince-pe* | arm-*-wince | arm*-*-cegcc* | arm*-*-mingw32ce*)
16215 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
16216 if test -z "$DLLTOOL_DEFAULT"; then
675b9d61 16217 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM_WINCE"
b5c37946
SJ
16218 fi
16219 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM_WINCE -DDLLTOOL_ARM"
16220 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
16221 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
16222 ;;
16223 arm-*-pe*)
16224 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
16225 if test -z "$DLLTOOL_DEFAULT"; then
675b9d61 16226 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM"
b5c37946
SJ
16227 fi
16228 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM"
16229 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
16230 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
16231 ;;
16232 i[3-7]86-*-pe* | i[3-7]86-*-cygwin* | i[3-7]86-*-mingw32** | all)
16233 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
16234 if test -z "$DLLTOOL_DEFAULT"; then
7aad4c3d 16235 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_I386"
b5c37946
SJ
16236 fi
16237 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
16238 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
16239 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
16240 BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
16241 ;;
16242 i[3-7]86-*-interix)
16243 BUILD_DLLTOOL='$(DLLTOOL_PROG)'
16244 if test -z "$DLLTOOL_DEFAULT"; then
675b9d61 16245 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_I386"
b5c37946
SJ
16246 fi
16247 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
16248 ;;
16249 mcore-*-pe)
16250 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
16251 if test -z "$DLLTOOL_DEFAULT"; then
7aad4c3d 16252 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MCORE"
b5c37946
SJ
16253 fi
16254 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MCORE"
16255 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
16256 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
16257 ;;
16258 mcore-*-elf)
16259 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
16260 if test -z "$DLLTOOL_DEFAULT"; then
7aad4c3d 16261 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MCORE_ELF"
b5c37946
SJ
16262 fi
16263 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MCORE_ELF"
16264 ;;
16265 sh*-*-pe)
16266 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
16267 if test -z "$DLLTOOL_DEFAULT"; then
16268 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_SH"
16269 fi
16270 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_SH"
16271 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
16272 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
16273 ;;
16274 x86_64-*-mingw* | x86_64-*-cygwin*)
16275 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
16276 if test -z "$DLLTOOL_DEFAULT"; then
16277 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MX86_64"
16278 fi
16279 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MX86_64"
16280 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
16281 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
16282 BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
16283 ;;
16284 esac
6abcee90 16285
b5c37946
SJ
16286 # Add objdump private vectors.
16287 case $targ in
16288 all)
16289 od_vectors="objdump_private_desc_elf32_avr objdump_private_desc_xcoff\
16290 objdump_private_desc_pe objdump_private_desc_mach_o"
16291 ;;
16292 avr-*-*)
16293 od_vectors="$od_vectors objdump_private_desc_elf32_avr"
16294 ;;
16295 powerpc*-*-aix* | rs6000-*-aix*)
16296 od_vectors="$od_vectors objdump_private_desc_xcoff"
16297 ;;
16298 *-*-pe* | *-*-cygwin* | *-*-mingw*)
16299 od_vectors="$od_vectors objdump_private_desc_pe"
16300 ;;
16301 *-*-darwin*)
16302 od_vectors="$od_vectors objdump_private_desc_mach_o"
16303 ;;
16304 esac
252b5132
RH
16305done
16306
6abcee90
TG
16307# Uniq objdump private vector, build objdump target ofiles.
16308od_files=
16309f=""
16310for i in $od_vectors ; do
16311 case " $f " in
16312 *" $i "*) ;;
16313 *)
16314 f="$f $i"
16315 OBJDUMP_PRIVATE_VECTORS="$OBJDUMP_PRIVATE_VECTORS &$i,"
16316 case $i in
6d0cfb9c
DC
16317 objdump_private_desc_elf32_avr)
16318 od_files="$od_files od-elf32_avr" ;;
6abcee90
TG
16319 objdump_private_desc_xcoff)
16320 od_files="$od_files od-xcoff" ;;
45b8517a
NC
16321 objdump_private_desc_pe)
16322 od_files="$od_files od-pe" ;;
c5012cd8
TG
16323 objdump_private_desc_mach_o)
16324 od_files="$od_files od-macho" ;;
d0ac1c44 16325 *) as_fn_error $? "*** unknown private vector $i" "$LINENO" 5 ;;
6abcee90
TG
16326 esac
16327 ;;
16328 esac
16329done
16330
16331# Uniq objdump target ofiles
16332f=""
16333for i in $od_files ; do
16334 case " $f " in
16335 *" $i "*) ;;
16336 *)
16337 f="$f $i"
16338 OBJDUMP_PRIVATE_OFILES="$OBJDUMP_PRIVATE_OFILES $i.$objext"
16339 ;;
16340 esac
16341done
16342
7aad4c3d
L
16343DLLTOOL_DEFS="$DLLTOOL_DEFS $DLLTOOL_DEFAULT"
16344
42ecbf5e
DJ
16345if test "${with_windres+set}" = set; then
16346 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
16347fi
16348
692ed3e7
NC
16349if test "${with_windmc+set}" = set; then
16350 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
16351fi
16352
6abcee90
TG
16353OBJDUMP_DEFS="${OBJDUMP_DEFS} -DOBJDUMP_PRIVATE_VECTORS=\"${OBJDUMP_PRIVATE_VECTORS}\""
16354
16355
692ed3e7 16356
42ecbf5e
DJ
16357
16358
16359
16360
16361
16362
16363
16364
16365
16366
42ecbf5e
DJ
16367cat >>confdefs.h <<_ACEOF
16368#define TARGET "${target}"
16369_ACEOF
16370
16371
16372targ=$target
16373. $srcdir/../bfd/config.bfd
16374if test "x$targ_underscore" = "xyes"; then
16375 UNDERSCORE=1
16376else
16377 UNDERSCORE=0
16378fi
16379
16380cat >>confdefs.h <<_ACEOF
16381#define TARGET_PREPENDS_UNDERSCORE $UNDERSCORE
16382_ACEOF
16383
16384
16385# Emulation
52fbfb5d
AM
16386targ=$target
16387. ${srcdir}/configure.tgt
16388EMULATION=$targ_emul
16389EMULATION_VECTOR=$targ_emul_vector
42ecbf5e
DJ
16390
16391
16392
16393
108a6f8e
CD
16394# Required for html and install-html
16395
16396
16397
16398
31dd3154 16399
45c06bb7 16400ac_config_files="$ac_config_files Makefile po/Makefile.in:po/Make-in"
da594c4a 16401
42ecbf5e
DJ
16402cat >confcache <<\_ACEOF
16403# This file is a shell script that caches the results of configure
16404# tests run on this system so they can be shared between configure
16405# scripts and configure runs, see configure's option --config-cache.
16406# It is not useful on other systems. If it contains results you don't
16407# want to keep, you may remove or edit it.
16408#
16409# config.status only pays attention to the cache file if you give it
16410# the --recheck option to rerun configure.
16411#
16412# `ac_cv_env_foo' variables (set or unset) will be overridden when
16413# loading this file, other *unset* `ac_cv_foo' will be assigned the
16414# following values.
16415
16416_ACEOF
16417
16418# The following way of writing the cache mishandles newlines in values,
16419# but we know of no workaround that is simple, portable, and efficient.
81ecdfbb 16420# So, we kill variables containing newlines.
42ecbf5e
DJ
16421# Ultrix sh set writes to stderr and can't be redirected directly,
16422# and sets the high bit in the cache file unless we assign to the vars.
81ecdfbb
RW
16423(
16424 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16425 eval ac_val=\$$ac_var
16426 case $ac_val in #(
16427 *${as_nl}*)
16428 case $ac_var in #(
16429 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16430$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16431 esac
16432 case $ac_var in #(
16433 _ | IFS | as_nl) ;; #(
16434 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16435 *) { eval $ac_var=; unset $ac_var;} ;;
16436 esac ;;
16437 esac
16438 done
16439
42ecbf5e 16440 (set) 2>&1 |
81ecdfbb
RW
16441 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16442 *${as_nl}ac_space=\ *)
16443 # `set' does not quote correctly, so add quotes: double-quote
16444 # substitution turns \\\\ into \\, and sed turns \\ into \.
42ecbf5e
DJ
16445 sed -n \
16446 "s/'/'\\\\''/g;
16447 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
81ecdfbb 16448 ;; #(
42ecbf5e
DJ
16449 *)
16450 # `set' quotes correctly as required by POSIX, so do not add quotes.
81ecdfbb 16451 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
42ecbf5e 16452 ;;
81ecdfbb
RW
16453 esac |
16454 sort
16455) |
42ecbf5e 16456 sed '
81ecdfbb 16457 /^ac_cv_env_/b end
42ecbf5e 16458 t clear
81ecdfbb 16459 :clear
42ecbf5e
DJ
16460 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16461 t end
81ecdfbb
RW
16462 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16463 :end' >>confcache
16464if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16465 if test -w "$cache_file"; then
d0ac1c44 16466 if test "x$cache_file" != "x/dev/null"; then
81ecdfbb
RW
16467 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16468$as_echo "$as_me: updating cache $cache_file" >&6;}
d0ac1c44
SM
16469 if test ! -f "$cache_file" || test -h "$cache_file"; then
16470 cat confcache >"$cache_file"
16471 else
16472 case $cache_file in #(
16473 */* | ?:*)
16474 mv -f confcache "$cache_file"$$ &&
16475 mv -f "$cache_file"$$ "$cache_file" ;; #(
16476 *)
16477 mv -f confcache "$cache_file" ;;
16478 esac
16479 fi
16480 fi
42ecbf5e 16481 else
81ecdfbb
RW
16482 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16483$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
42ecbf5e
DJ
16484 fi
16485fi
16486rm -f confcache
16487
16488test "x$prefix" = xNONE && prefix=$ac_default_prefix
16489# Let make expand exec_prefix.
16490test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16491
42ecbf5e
DJ
16492DEFS=-DHAVE_CONFIG_H
16493
16494ac_libobjs=
16495ac_ltlibobjs=
d0ac1c44 16496U=
42ecbf5e
DJ
16497for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16498 # 1. Remove the extension, and $U if already installed.
81ecdfbb
RW
16499 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16500 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16501 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16502 # will be set to the directory where LIBOBJS objects are built.
16503 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16504 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
42ecbf5e
DJ
16505done
16506LIBOBJS=$ac_libobjs
16507
16508LTLIBOBJS=$ac_ltlibobjs
16509
16510
d0ac1c44
SM
16511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
16512$as_echo_n "checking that generated files are newer than configure... " >&6; }
16513 if test -n "$am_sleep_pid"; then
16514 # Hide warnings about reused PIDs.
16515 wait $am_sleep_pid 2>/dev/null
16516 fi
16517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
16518$as_echo "done" >&6; }
81ecdfbb
RW
16519 if test -n "$EXEEXT"; then
16520 am__EXEEXT_TRUE=
16521 am__EXEEXT_FALSE='#'
16522else
16523 am__EXEEXT_TRUE='#'
16524 am__EXEEXT_FALSE=
42ecbf5e 16525fi
81ecdfbb 16526
87b9f255
AM
16527if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16528 as_fn_error $? "conditional \"AMDEP\" was never defined.
16529Usually this means the macro was only invoked conditionally." "$LINENO" 5
16530fi
16531if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16532 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16533Usually this means the macro was only invoked conditionally." "$LINENO" 5
16534fi
094e34f2
NA
16535if test -z "${ENABLE_LIBCTF_TRUE}" && test -z "${ENABLE_LIBCTF_FALSE}"; then
16536 as_fn_error $? "conditional \"ENABLE_LIBCTF\" was never defined.
16537Usually this means the macro was only invoked conditionally." "$LINENO" 5
16538fi
42ecbf5e 16539if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
d0ac1c44 16540 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
81ecdfbb 16541Usually this means the macro was only invoked conditionally." "$LINENO" 5
42ecbf5e 16542fi
d5fbea21 16543if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
d0ac1c44 16544 as_fn_error $? "conditional \"GENINSRC_NEVER\" was never defined.
81ecdfbb 16545Usually this means the macro was only invoked conditionally." "$LINENO" 5
d5fbea21 16546fi
42ecbf5e 16547
d0ac1c44 16548: "${CONFIG_STATUS=./config.status}"
81ecdfbb 16549ac_write_fail=0
42ecbf5e
DJ
16550ac_clean_files_save=$ac_clean_files
16551ac_clean_files="$ac_clean_files $CONFIG_STATUS"
81ecdfbb
RW
16552{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16553$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16554as_write_fail=0
16555cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
42ecbf5e
DJ
16556#! $SHELL
16557# Generated by $as_me.
16558# Run this file to recreate the current configuration.
16559# Compiler output produced by configure, useful for debugging
16560# configure, is in config.log if it exists.
16561
16562debug=false
16563ac_cs_recheck=false
16564ac_cs_silent=false
252b5132 16565
81ecdfbb
RW
16566SHELL=\${CONFIG_SHELL-$SHELL}
16567export SHELL
16568_ASEOF
16569cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16570## -------------------- ##
16571## M4sh Initialization. ##
16572## -------------------- ##
252b5132 16573
81ecdfbb
RW
16574# Be more Bourne compatible
16575DUALCASE=1; export DUALCASE # for MKS sh
16576if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
42ecbf5e
DJ
16577 emulate sh
16578 NULLCMD=:
81ecdfbb 16579 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
42ecbf5e
DJ
16580 # is contrary to our usage. Disable this feature.
16581 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
16582 setopt NO_GLOB_SUBST
16583else
16584 case `(set -o) 2>/dev/null` in #(
16585 *posix*) :
16586 set -o posix ;; #(
16587 *) :
16588 ;;
16589esac
42ecbf5e 16590fi
252b5132 16591
81ecdfbb
RW
16592
16593as_nl='
16594'
16595export as_nl
16596# Printing a long string crashes Solaris 7 /usr/bin/printf.
16597as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16598as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16599as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16600# Prefer a ksh shell builtin over an external printf program on Solaris,
16601# but without wasting forks for bash or zsh.
16602if test -z "$BASH_VERSION$ZSH_VERSION" \
16603 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16604 as_echo='print -r --'
16605 as_echo_n='print -rn --'
16606elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16607 as_echo='printf %s\n'
16608 as_echo_n='printf %s'
16609else
16610 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16611 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16612 as_echo_n='/usr/ucb/echo -n'
16613 else
16614 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16615 as_echo_n_body='eval
16616 arg=$1;
16617 case $arg in #(
16618 *"$as_nl"*)
16619 expr "X$arg" : "X\\(.*\\)$as_nl";
16620 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16621 esac;
16622 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16623 '
16624 export as_echo_n_body
16625 as_echo_n='sh -c $as_echo_n_body as_echo'
16626 fi
16627 export as_echo_body
16628 as_echo='sh -c $as_echo_body as_echo'
16629fi
16630
16631# The user is always right.
16632if test "${PATH_SEPARATOR+set}" != set; then
16633 PATH_SEPARATOR=:
16634 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16635 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16636 PATH_SEPARATOR=';'
16637 }
42ecbf5e 16638fi
252b5132
RH
16639
16640
81ecdfbb
RW
16641# IFS
16642# We need space, tab and new line, in precisely that order. Quoting is
16643# there to prevent editors from complaining about space-tab.
16644# (If _AS_PATH_WALK were called with IFS unset, it would disable word
16645# splitting by setting IFS to empty value.)
16646IFS=" "" $as_nl"
16647
16648# Find who we are. Look in the path if we contain no directory separator.
d0ac1c44 16649as_myself=
81ecdfbb
RW
16650case $0 in #((
16651 *[\\/]* ) as_myself=$0 ;;
16652 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16653for as_dir in $PATH
16654do
16655 IFS=$as_save_IFS
16656 test -z "$as_dir" && as_dir=.
16657 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16658 done
16659IFS=$as_save_IFS
16660
16661 ;;
16662esac
16663# We did not find ourselves, most probably we were run as `sh COMMAND'
16664# in which case we are not to be found in the path.
16665if test "x$as_myself" = x; then
16666 as_myself=$0
16667fi
16668if test ! -f "$as_myself"; then
16669 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16670 exit 1
16671fi
16672
16673# Unset variables that we do not need and which cause bugs (e.g. in
16674# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16675# suppresses any "Segmentation fault" message there. '((' could
16676# trigger a bug in pdksh 5.2.14.
16677for as_var in BASH_ENV ENV MAIL MAILPATH
16678do eval test x\${$as_var+set} = xset \
16679 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16680done
42ecbf5e
DJ
16681PS1='$ '
16682PS2='> '
16683PS4='+ '
252b5132 16684
42ecbf5e 16685# NLS nuisances.
81ecdfbb
RW
16686LC_ALL=C
16687export LC_ALL
16688LANGUAGE=C
16689export LANGUAGE
16690
16691# CDPATH.
16692(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16693
16694
d0ac1c44
SM
16695# as_fn_error STATUS ERROR [LINENO LOG_FD]
16696# ----------------------------------------
81ecdfbb
RW
16697# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16698# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
d0ac1c44 16699# script with STATUS, using 1 if that was 0.
81ecdfbb
RW
16700as_fn_error ()
16701{
d0ac1c44
SM
16702 as_status=$1; test $as_status -eq 0 && as_status=1
16703 if test "$4"; then
16704 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16705 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
42ecbf5e 16706 fi
d0ac1c44 16707 $as_echo "$as_me: error: $2" >&2
81ecdfbb
RW
16708 as_fn_exit $as_status
16709} # as_fn_error
16710
16711
16712# as_fn_set_status STATUS
16713# -----------------------
16714# Set $? to STATUS, without forking.
16715as_fn_set_status ()
16716{
16717 return $1
16718} # as_fn_set_status
16719
16720# as_fn_exit STATUS
16721# -----------------
16722# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16723as_fn_exit ()
16724{
16725 set +e
16726 as_fn_set_status $1
16727 exit $1
16728} # as_fn_exit
16729
16730# as_fn_unset VAR
16731# ---------------
16732# Portably unset VAR.
16733as_fn_unset ()
16734{
16735 { eval $1=; unset $1;}
16736}
16737as_unset=as_fn_unset
16738# as_fn_append VAR VALUE
16739# ----------------------
16740# Append the text in VALUE to the end of the definition contained in VAR. Take
16741# advantage of any shell optimizations that allow amortized linear growth over
16742# repeated appends, instead of the typical quadratic growth present in naive
16743# implementations.
16744if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16745 eval 'as_fn_append ()
16746 {
16747 eval $1+=\$2
16748 }'
16749else
16750 as_fn_append ()
16751 {
16752 eval $1=\$$1\$2
16753 }
16754fi # as_fn_append
16755
16756# as_fn_arith ARG...
16757# ------------------
16758# Perform arithmetic evaluation on the ARGs, and store the result in the
16759# global $as_val. Take advantage of shells that can avoid forks. The arguments
16760# must be portable across $(()) and expr.
16761if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16762 eval 'as_fn_arith ()
16763 {
16764 as_val=$(( $* ))
16765 }'
16766else
16767 as_fn_arith ()
16768 {
16769 as_val=`expr "$@" || test $? -eq 1`
16770 }
16771fi # as_fn_arith
16772
252b5132 16773
81ecdfbb
RW
16774if expr a : '\(a\)' >/dev/null 2>&1 &&
16775 test "X`expr 00001 : '.*\(...\)'`" = X001; then
42ecbf5e
DJ
16776 as_expr=expr
16777else
16778 as_expr=false
16779fi
252b5132 16780
81ecdfbb 16781if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
42ecbf5e
DJ
16782 as_basename=basename
16783else
16784 as_basename=false
16785fi
252b5132 16786
81ecdfbb
RW
16787if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16788 as_dirname=dirname
16789else
16790 as_dirname=false
16791fi
8b1e6df3 16792
81ecdfbb 16793as_me=`$as_basename -- "$0" ||
42ecbf5e
DJ
16794$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16795 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
16796 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16797$as_echo X/"$0" |
16798 sed '/^.*\/\([^/][^/]*\)\/*$/{
16799 s//\1/
16800 q
16801 }
16802 /^X\/\(\/\/\)$/{
16803 s//\1/
16804 q
16805 }
16806 /^X\/\(\/\).*/{
16807 s//\1/
16808 q
16809 }
16810 s/.*/./; q'`
0218d1e4 16811
42ecbf5e
DJ
16812# Avoid depending upon Character Ranges.
16813as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16814as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16815as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16816as_cr_digits='0123456789'
16817as_cr_alnum=$as_cr_Letters$as_cr_digits
252b5132 16818
81ecdfbb
RW
16819ECHO_C= ECHO_N= ECHO_T=
16820case `echo -n x` in #(((((
16821-n*)
16822 case `echo 'xy\c'` in
16823 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16824 xy) ECHO_C='\c';;
16825 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16826 ECHO_T=' ';;
16827 esac;;
16828*)
16829 ECHO_N='-n';;
42ecbf5e 16830esac
eb1e0e80 16831
81ecdfbb
RW
16832rm -f conf$$ conf$$.exe conf$$.file
16833if test -d conf$$.dir; then
16834 rm -f conf$$.dir/conf$$.file
d15b04bd 16835else
81ecdfbb
RW
16836 rm -f conf$$.dir
16837 mkdir conf$$.dir 2>/dev/null
42ecbf5e 16838fi
81ecdfbb
RW
16839if (echo >conf$$.file) 2>/dev/null; then
16840 if ln -s conf$$.file conf$$ 2>/dev/null; then
42ecbf5e 16841 as_ln_s='ln -s'
81ecdfbb
RW
16842 # ... but there are two gotchas:
16843 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16844 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
d0ac1c44 16845 # In both cases, we have to default to `cp -pR'.
81ecdfbb 16846 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
d0ac1c44 16847 as_ln_s='cp -pR'
81ecdfbb
RW
16848 elif ln conf$$.file conf$$ 2>/dev/null; then
16849 as_ln_s=ln
16850 else
d0ac1c44 16851 as_ln_s='cp -pR'
252b5132 16852 fi
42ecbf5e 16853else
d0ac1c44 16854 as_ln_s='cp -pR'
252b5132 16855fi
81ecdfbb
RW
16856rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16857rmdir conf$$.dir 2>/dev/null
16858
16859
16860# as_fn_mkdir_p
16861# -------------
16862# Create "$as_dir" as a directory, including parents if necessary.
16863as_fn_mkdir_p ()
16864{
16865
16866 case $as_dir in #(
16867 -*) as_dir=./$as_dir;;
16868 esac
16869 test -d "$as_dir" || eval $as_mkdir_p || {
16870 as_dirs=
16871 while :; do
16872 case $as_dir in #(
16873 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16874 *) as_qdir=$as_dir;;
16875 esac
16876 as_dirs="'$as_qdir' $as_dirs"
16877 as_dir=`$as_dirname -- "$as_dir" ||
16878$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16879 X"$as_dir" : 'X\(//\)[^/]' \| \
16880 X"$as_dir" : 'X\(//\)$' \| \
16881 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16882$as_echo X"$as_dir" |
16883 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16884 s//\1/
16885 q
16886 }
16887 /^X\(\/\/\)[^/].*/{
16888 s//\1/
16889 q
16890 }
16891 /^X\(\/\/\)$/{
16892 s//\1/
16893 q
16894 }
16895 /^X\(\/\).*/{
16896 s//\1/
16897 q
16898 }
16899 s/.*/./; q'`
16900 test -d "$as_dir" && break
16901 done
16902 test -z "$as_dirs" || eval "mkdir $as_dirs"
d0ac1c44 16903 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
81ecdfbb 16904
252b5132 16905
81ecdfbb 16906} # as_fn_mkdir_p
42ecbf5e 16907if mkdir -p . 2>/dev/null; then
81ecdfbb 16908 as_mkdir_p='mkdir -p "$as_dir"'
42ecbf5e
DJ
16909else
16910 test -d ./-p && rmdir ./-p
16911 as_mkdir_p=false
16912fi
81ecdfbb 16913
d0ac1c44
SM
16914
16915# as_fn_executable_p FILE
16916# -----------------------
16917# Test if FILE is an executable regular file.
16918as_fn_executable_p ()
16919{
16920 test -f "$1" && test -x "$1"
16921} # as_fn_executable_p
16922as_test_x='test -x'
16923as_executable_p=as_fn_executable_p
252b5132 16924
42ecbf5e
DJ
16925# Sed expression to map a string onto a valid CPP name.
16926as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16927
16928# Sed expression to map a string onto a valid variable name.
16929as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16930
16931
42ecbf5e 16932exec 6>&1
81ecdfbb
RW
16933## ----------------------------------- ##
16934## Main body of $CONFIG_STATUS script. ##
16935## ----------------------------------- ##
16936_ASEOF
16937test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
42ecbf5e 16938
81ecdfbb
RW
16939cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16940# Save the log message, to keep $0 and so on meaningful, and to
42ecbf5e 16941# report actual input values of CONFIG_FILES etc. instead of their
81ecdfbb
RW
16942# values after options handling.
16943ac_log="
b5c37946 16944This file was extended by binutils $as_me 2.41.50, which was
d0ac1c44 16945generated by GNU Autoconf 2.69. Invocation command line was
42ecbf5e
DJ
16946
16947 CONFIG_FILES = $CONFIG_FILES
16948 CONFIG_HEADERS = $CONFIG_HEADERS
16949 CONFIG_LINKS = $CONFIG_LINKS
16950 CONFIG_COMMANDS = $CONFIG_COMMANDS
16951 $ $0 $@
16952
81ecdfbb
RW
16953on `(hostname || uname -n) 2>/dev/null | sed 1q`
16954"
16955
42ecbf5e
DJ
16956_ACEOF
16957
81ecdfbb
RW
16958case $ac_config_files in *"
16959"*) set x $ac_config_files; shift; ac_config_files=$*;;
16960esac
252b5132 16961
81ecdfbb
RW
16962case $ac_config_headers in *"
16963"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16964esac
e5a52504
MM
16965
16966
81ecdfbb
RW
16967cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16968# Files that config.status was made for.
16969config_files="$ac_config_files"
16970config_headers="$ac_config_headers"
16971config_commands="$ac_config_commands"
d15b04bd 16972
81ecdfbb 16973_ACEOF
42ecbf5e 16974
81ecdfbb 16975cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42ecbf5e 16976ac_cs_usage="\
81ecdfbb
RW
16977\`$as_me' instantiates files and other configuration actions
16978from templates according to the current configuration. Unless the files
16979and actions are specified as TAGs, all are instantiated by default.
42ecbf5e 16980
81ecdfbb 16981Usage: $0 [OPTION]... [TAG]...
42ecbf5e
DJ
16982
16983 -h, --help print this help, then exit
81ecdfbb 16984 -V, --version print version number and configuration settings, then exit
d0ac1c44 16985 --config print configuration, then exit
81ecdfbb
RW
16986 -q, --quiet, --silent
16987 do not print progress messages
42ecbf5e
DJ
16988 -d, --debug don't remove temporary files
16989 --recheck update $as_me by reconfiguring in the same conditions
81ecdfbb
RW
16990 --file=FILE[:TEMPLATE]
16991 instantiate the configuration file FILE
16992 --header=FILE[:TEMPLATE]
16993 instantiate the configuration header FILE
42ecbf5e
DJ
16994
16995Configuration files:
16996$config_files
16997
16998Configuration headers:
16999$config_headers
17000
17001Configuration commands:
17002$config_commands
17003
81ecdfbb 17004Report bugs to the package provider."
42ecbf5e 17005
81ecdfbb
RW
17006_ACEOF
17007cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
d0ac1c44 17008ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
42ecbf5e 17009ac_cs_version="\\
b5c37946 17010binutils config.status 2.41.50
d0ac1c44
SM
17011configured by $0, generated by GNU Autoconf 2.69,
17012 with options \\"\$ac_cs_config\\"
42ecbf5e 17013
d0ac1c44 17014Copyright (C) 2012 Free Software Foundation, Inc.
42ecbf5e
DJ
17015This config.status script is free software; the Free Software Foundation
17016gives unlimited permission to copy, distribute and modify it."
81ecdfbb
RW
17017
17018ac_pwd='$ac_pwd'
17019srcdir='$srcdir'
17020INSTALL='$INSTALL'
17021MKDIR_P='$MKDIR_P'
17022AWK='$AWK'
17023test -n "\$AWK" || AWK=awk
42ecbf5e
DJ
17024_ACEOF
17025
81ecdfbb
RW
17026cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17027# The default lists apply if the user does not specify any file.
42ecbf5e
DJ
17028ac_need_defaults=:
17029while test $# != 0
17030do
17031 case $1 in
d0ac1c44 17032 --*=?*)
81ecdfbb
RW
17033 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17034 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
42ecbf5e
DJ
17035 ac_shift=:
17036 ;;
d0ac1c44
SM
17037 --*=)
17038 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17039 ac_optarg=
17040 ac_shift=:
17041 ;;
81ecdfbb 17042 *)
42ecbf5e
DJ
17043 ac_option=$1
17044 ac_optarg=$2
17045 ac_shift=shift
17046 ;;
42ecbf5e
DJ
17047 esac
17048
17049 case $ac_option in
17050 # Handling of the options.
42ecbf5e
DJ
17051 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17052 ac_cs_recheck=: ;;
81ecdfbb
RW
17053 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17054 $as_echo "$ac_cs_version"; exit ;;
d0ac1c44
SM
17055 --config | --confi | --conf | --con | --co | --c )
17056 $as_echo "$ac_cs_config"; exit ;;
81ecdfbb 17057 --debug | --debu | --deb | --de | --d | -d )
42ecbf5e
DJ
17058 debug=: ;;
17059 --file | --fil | --fi | --f )
17060 $ac_shift
81ecdfbb
RW
17061 case $ac_optarg in
17062 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
d0ac1c44 17063 '') as_fn_error $? "missing file argument" ;;
81ecdfbb
RW
17064 esac
17065 as_fn_append CONFIG_FILES " '$ac_optarg'"
42ecbf5e
DJ
17066 ac_need_defaults=false;;
17067 --header | --heade | --head | --hea )
17068 $ac_shift
81ecdfbb
RW
17069 case $ac_optarg in
17070 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17071 esac
17072 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
42ecbf5e 17073 ac_need_defaults=false;;
81ecdfbb
RW
17074 --he | --h)
17075 # Conflict between --help and --header
d0ac1c44 17076 as_fn_error $? "ambiguous option: \`$1'
81ecdfbb
RW
17077Try \`$0 --help' for more information.";;
17078 --help | --hel | -h )
17079 $as_echo "$ac_cs_usage"; exit ;;
42ecbf5e
DJ
17080 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17081 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17082 ac_cs_silent=: ;;
17083
17084 # This is an error.
d0ac1c44 17085 -*) as_fn_error $? "unrecognized option: \`$1'
81ecdfbb 17086Try \`$0 --help' for more information." ;;
42ecbf5e 17087
81ecdfbb
RW
17088 *) as_fn_append ac_config_targets " $1"
17089 ac_need_defaults=false ;;
42ecbf5e
DJ
17090
17091 esac
17092 shift
17093done
17094
17095ac_configure_extra_args=
17096
17097if $ac_cs_silent; then
17098 exec 6>/dev/null
17099 ac_configure_extra_args="$ac_configure_extra_args --silent"
17100fi
17101
17102_ACEOF
81ecdfbb 17103cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42ecbf5e 17104if \$ac_cs_recheck; then
d0ac1c44 17105 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
81ecdfbb
RW
17106 shift
17107 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17108 CONFIG_SHELL='$SHELL'
17109 export CONFIG_SHELL
17110 exec "\$@"
42ecbf5e
DJ
17111fi
17112
17113_ACEOF
81ecdfbb
RW
17114cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17115exec 5>>config.log
17116{
17117 echo
17118 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17119## Running $as_me. ##
17120_ASBOX
17121 $as_echo "$ac_log"
17122} >&5
42ecbf5e 17123
81ecdfbb
RW
17124_ACEOF
17125cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
d15b04bd 17126#
81ecdfbb 17127# INIT-COMMANDS
d15b04bd 17128#
b9583093 17129AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
d7040cdb
SE
17130
17131
17132# The HP-UX ksh and POSIX shell print the target directory to stdout
17133# if CDPATH is set.
17134(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17135
17136sed_quote_subst='$sed_quote_subst'
17137double_quote_subst='$double_quote_subst'
17138delay_variable_subst='$delay_variable_subst'
3725885a
RW
17139macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17140macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17141enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17142enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17143pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17144enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17145SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17146ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17147host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17148host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17149host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17150build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17151build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17152build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17153SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17154Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17155GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17156EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17157FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17158LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17159NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17160LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17161max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17162ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17163exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17164lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17165lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17166lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17167reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17168reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17169OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17170deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17171file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17172AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17173AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17174STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17175RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17176old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17177old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17178old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17179lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17180CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17181CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17182compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17183GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17184lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17185lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17186lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17187lt_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"`'
17188objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17189MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17190lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
df7b86aa 17191lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
f2c621e4 17192lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
3725885a
RW
17193lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17194lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17195need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17196DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17197NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17198LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17199OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17200OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17201libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17202shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17203extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17204archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17205enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17206export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17207whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17208compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17209old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17210old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17211archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17212archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17213module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17214module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17215with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17216allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17217no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17218hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17219hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
17220hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17221hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17222hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17223hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17224hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17225hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17226inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17227link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
f2c621e4 17228fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
3725885a
RW
17229always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17230export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17231exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17232include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17233prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17234file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17235variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17236need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17237need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17238version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17239runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17240shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17241shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17242libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17243library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17244soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17245install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17246postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17247postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17248finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17249finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17250hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17251sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17252sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17253hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17254enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17255enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17256enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17257old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17258striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
d7040cdb
SE
17259
17260LTCC='$LTCC'
17261LTCFLAGS='$LTCFLAGS'
17262compiler='$compiler_DEFAULT'
17263
3725885a
RW
17264# A function that is used when there is no print builtin or printf.
17265func_fallback_echo ()
17266{
17267 eval 'cat <<_LTECHO_EOF
17268\$1
17269_LTECHO_EOF'
17270}
17271
d7040cdb 17272# Quote evaled strings.
3725885a
RW
17273for var in SHELL \
17274ECHO \
17275SED \
d7040cdb
SE
17276GREP \
17277EGREP \
17278FGREP \
17279LD \
17280NM \
17281LN_S \
17282lt_SP2NL \
17283lt_NL2SP \
17284reload_flag \
718a6fd8 17285OBJDUMP \
d7040cdb
SE
17286deplibs_check_method \
17287file_magic_cmd \
17288AR \
17289AR_FLAGS \
17290STRIP \
17291RANLIB \
17292CC \
17293CFLAGS \
17294compiler \
17295lt_cv_sys_global_symbol_pipe \
17296lt_cv_sys_global_symbol_to_cdecl \
17297lt_cv_sys_global_symbol_to_c_name_address \
718a6fd8 17298lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
d7040cdb 17299lt_prog_compiler_no_builtin_flag \
df7b86aa 17300lt_prog_compiler_wl \
f2c621e4 17301lt_prog_compiler_pic \
d7040cdb
SE
17302lt_prog_compiler_static \
17303lt_cv_prog_compiler_c_o \
17304need_locks \
718a6fd8
SE
17305DSYMUTIL \
17306NMEDIT \
17307LIPO \
17308OTOOL \
17309OTOOL64 \
d7040cdb
SE
17310shrext_cmds \
17311export_dynamic_flag_spec \
17312whole_archive_flag_spec \
17313compiler_needs_object \
17314with_gnu_ld \
17315allow_undefined_flag \
17316no_undefined_flag \
17317hardcode_libdir_flag_spec \
17318hardcode_libdir_flag_spec_ld \
17319hardcode_libdir_separator \
f2c621e4 17320fix_srcfile_path \
d7040cdb
SE
17321exclude_expsyms \
17322include_expsyms \
17323file_list_spec \
17324variables_saved_for_relink \
17325libname_spec \
17326library_names_spec \
17327soname_spec \
3725885a 17328install_override_mode \
d7040cdb
SE
17329finish_eval \
17330old_striplib \
17331striplib; do
3725885a 17332 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
d7040cdb 17333 *[\\\\\\\`\\"\\\$]*)
3725885a 17334 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
d7040cdb
SE
17335 ;;
17336 *)
17337 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17338 ;;
17339 esac
17340done
17341
17342# Double-quote double-evaled strings.
17343for var in reload_cmds \
17344old_postinstall_cmds \
17345old_postuninstall_cmds \
17346old_archive_cmds \
17347extract_expsyms_cmds \
17348old_archive_from_new_cmds \
17349old_archive_from_expsyms_cmds \
17350archive_cmds \
17351archive_expsym_cmds \
17352module_cmds \
17353module_expsym_cmds \
17354export_symbols_cmds \
17355prelink_cmds \
17356postinstall_cmds \
17357postuninstall_cmds \
17358finish_cmds \
17359sys_lib_search_path_spec \
17360sys_lib_dlsearch_path_spec; do
3725885a 17361 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
d7040cdb 17362 *[\\\\\\\`\\"\\\$]*)
3725885a 17363 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
d7040cdb
SE
17364 ;;
17365 *)
17366 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17367 ;;
17368 esac
17369done
17370
d7040cdb
SE
17371ac_aux_dir='$ac_aux_dir'
17372xsi_shell='$xsi_shell'
17373lt_shell_append='$lt_shell_append'
17374
17375# See if we are running on zsh, and set the options which allow our
17376# commands through without removal of \ escapes INIT.
17377if test -n "\${ZSH_VERSION+set}" ; then
17378 setopt NO_GLOB_SUBST
17379fi
17380
17381
17382 PACKAGE='$PACKAGE'
17383 VERSION='$VERSION'
17384 TIMESTAMP='$TIMESTAMP'
17385 RM='$RM'
17386 ofile='$ofile'
17387
17388
17389
862776f2
AA
17390# Capture the value of obsolete ALL_LINGUAS because we need it to compute
17391 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
17392 # from automake.
17393 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
17394 # Capture the value of LINGUAS because we need it to compute CATALOGS.
17395 LINGUAS="${LINGUAS-%UNSET%}"
17396
20e95c23
DJ
17397# Capture the value of obsolete ALL_LINGUAS because we need it to compute
17398 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
17399 # from automake.
17400 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
17401 # Capture the value of LINGUAS because we need it to compute CATALOGS.
17402 LINGUAS="${LINGUAS-%UNSET%}"
17403
42ecbf5e
DJ
17404
17405_ACEOF
17406
81ecdfbb 17407cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42ecbf5e 17408
81ecdfbb 17409# Handling of arguments.
42ecbf5e 17410for ac_config_target in $ac_config_targets
252b5132 17411do
81ecdfbb
RW
17412 case $ac_config_target in
17413 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17414 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17415 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
17416 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
862776f2 17417 "default-2") CONFIG_COMMANDS="$CONFIG_COMMANDS default-2" ;;
81ecdfbb 17418 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
81ecdfbb
RW
17419 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
17420
d0ac1c44 17421 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
d15b04bd 17422 esac
252b5132
RH
17423done
17424
81ecdfbb 17425
42ecbf5e
DJ
17426# If the user did not use the arguments to specify the items to instantiate,
17427# then the envvar interface is used. Set only those that are not.
17428# We use the long form for the default assignment because of an extremely
17429# bizarre bug on SunOS 4.1.3.
17430if $ac_need_defaults; then
17431 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17432 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17433 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17434fi
17435
17436# Have a temporary directory for convenience. Make it in the build tree
81ecdfbb 17437# simply because there is no reason against having it here, and in addition,
42ecbf5e 17438# creating and moving files from /tmp can sometimes cause problems.
81ecdfbb
RW
17439# Hook for its removal unless debugging.
17440# Note that there is a small window in which the directory will not be cleaned:
17441# after its creation but before its name has been assigned to `$tmp'.
42ecbf5e
DJ
17442$debug ||
17443{
d0ac1c44 17444 tmp= ac_tmp=
81ecdfbb 17445 trap 'exit_status=$?
d0ac1c44
SM
17446 : "${ac_tmp:=$tmp}"
17447 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
81ecdfbb
RW
17448' 0
17449 trap 'as_fn_exit 1' 1 2 13 15
42ecbf5e 17450}
42ecbf5e 17451# Create a (secure) tmp directory for tmp files.
e5a52504 17452
42ecbf5e 17453{
81ecdfbb 17454 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
d0ac1c44 17455 test -d "$tmp"
42ecbf5e
DJ
17456} ||
17457{
81ecdfbb
RW
17458 tmp=./conf$$-$RANDOM
17459 (umask 077 && mkdir "$tmp")
d0ac1c44
SM
17460} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17461ac_tmp=$tmp
81ecdfbb
RW
17462
17463# Set up the scripts for CONFIG_FILES section.
17464# No need to generate them if there are no CONFIG_FILES.
17465# This happens for instance with `./config.status config.h'.
17466if test -n "$CONFIG_FILES"; then
17467
17468
17469ac_cr=`echo X | tr X '\015'`
17470# On cygwin, bash can eat \r inside `` if the user requested igncr.
17471# But we know of no other shell where ac_cr would be empty at this
17472# point, so we can use a bashism as a fallback.
17473if test "x$ac_cr" = x; then
17474 eval ac_cr=\$\'\\r\'
17475fi
17476ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17477if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
d0ac1c44 17478 ac_cs_awk_cr='\\r'
81ecdfbb
RW
17479else
17480 ac_cs_awk_cr=$ac_cr
17481fi
17482
d0ac1c44 17483echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
81ecdfbb
RW
17484_ACEOF
17485
17486
17487{
17488 echo "cat >conf$$subs.awk <<_ACEOF" &&
17489 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17490 echo "_ACEOF"
17491} >conf$$subs.sh ||
d0ac1c44
SM
17492 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17493ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
81ecdfbb
RW
17494ac_delim='%!_!# '
17495for ac_last_try in false false false false false :; do
17496 . ./conf$$subs.sh ||
d0ac1c44 17497 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
81ecdfbb
RW
17498
17499 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17500 if test $ac_delim_n = $ac_delim_num; then
17501 break
17502 elif $ac_last_try; then
d0ac1c44 17503 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
81ecdfbb
RW
17504 else
17505 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17506 fi
17507done
17508rm -f conf$$subs.sh
17509
17510cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
d0ac1c44 17511cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
81ecdfbb
RW
17512_ACEOF
17513sed -n '
17514h
17515s/^/S["/; s/!.*/"]=/
17516p
17517g
17518s/^[^!]*!//
17519:repl
17520t repl
17521s/'"$ac_delim"'$//
17522t delim
17523:nl
17524h
d0ac1c44 17525s/\(.\{148\}\)..*/\1/
81ecdfbb
RW
17526t more1
17527s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17528p
17529n
17530b repl
17531:more1
17532s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17533p
17534g
17535s/.\{148\}//
17536t nl
17537:delim
17538h
d0ac1c44 17539s/\(.\{148\}\)..*/\1/
81ecdfbb
RW
17540t more2
17541s/["\\]/\\&/g; s/^/"/; s/$/"/
17542p
17543b
17544:more2
17545s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17546p
17547g
17548s/.\{148\}//
17549t delim
17550' <conf$$subs.awk | sed '
17551/^[^""]/{
17552 N
17553 s/\n//
17554}
17555' >>$CONFIG_STATUS || ac_write_fail=1
17556rm -f conf$$subs.awk
17557cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17558_ACAWK
d0ac1c44 17559cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
81ecdfbb
RW
17560 for (key in S) S_is_set[key] = 1
17561 FS = "\a"
17562
17563}
42ecbf5e 17564{
81ecdfbb
RW
17565 line = $ 0
17566 nfields = split(line, field, "@")
17567 substed = 0
17568 len = length(field[1])
17569 for (i = 2; i < nfields; i++) {
17570 key = field[i]
17571 keylen = length(key)
17572 if (S_is_set[key]) {
17573 value = S[key]
17574 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17575 len += length(value) + length(field[++i])
17576 substed = 1
17577 } else
17578 len += 1 + keylen
17579 }
17580
17581 print line
42ecbf5e
DJ
17582}
17583
81ecdfbb
RW
17584_ACAWK
17585_ACEOF
17586cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17587if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17588 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17589else
17590 cat
d0ac1c44
SM
17591fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17592 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
42ecbf5e
DJ
17593_ACEOF
17594
d0ac1c44
SM
17595# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17596# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
81ecdfbb
RW
17597# trailing colons and then remove the whole line if VPATH becomes empty
17598# (actually we leave an empty line to preserve line numbers).
17599if test "x$srcdir" = x.; then
d0ac1c44
SM
17600 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
17601h
17602s///
17603s/^/:/
17604s/[ ]*$/:/
17605s/:\$(srcdir):/:/g
17606s/:\${srcdir}:/:/g
17607s/:@srcdir@:/:/g
17608s/^:*//
81ecdfbb 17609s/:*$//
d0ac1c44
SM
17610x
17611s/\(=[ ]*\).*/\1/
17612G
17613s/\n//
81ecdfbb
RW
17614s/^[^=]*=[ ]*$//
17615}'
17616fi
e5a52504 17617
81ecdfbb
RW
17618cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17619fi # test -n "$CONFIG_FILES"
252b5132 17620
81ecdfbb
RW
17621# Set up the scripts for CONFIG_HEADERS section.
17622# No need to generate them if there are no CONFIG_HEADERS.
17623# This happens for instance with `./config.status Makefile'.
17624if test -n "$CONFIG_HEADERS"; then
d0ac1c44 17625cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
81ecdfbb 17626BEGIN {
42ecbf5e
DJ
17627_ACEOF
17628
81ecdfbb
RW
17629# Transform confdefs.h into an awk script `defines.awk', embedded as
17630# here-document in config.status, that substitutes the proper values into
17631# config.h.in to produce config.h.
17632
17633# Create a delimiter string that does not exist in confdefs.h, to ease
17634# handling of long lines.
17635ac_delim='%!_!# '
17636for ac_last_try in false false :; do
d0ac1c44
SM
17637 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17638 if test -z "$ac_tt"; then
81ecdfbb
RW
17639 break
17640 elif $ac_last_try; then
d0ac1c44 17641 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
81ecdfbb
RW
17642 else
17643 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
252b5132 17644 fi
81ecdfbb 17645done
252b5132 17646
81ecdfbb
RW
17647# For the awk script, D is an array of macro values keyed by name,
17648# likewise P contains macro parameters if any. Preserve backslash
17649# newline sequences.
17650
17651ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17652sed -n '
17653s/.\{148\}/&'"$ac_delim"'/g
17654t rset
17655:rset
17656s/^[ ]*#[ ]*define[ ][ ]*/ /
17657t def
17658d
17659:def
17660s/\\$//
17661t bsnl
17662s/["\\]/\\&/g
17663s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17664D["\1"]=" \3"/p
17665s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17666d
17667:bsnl
17668s/["\\]/\\&/g
17669s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17670D["\1"]=" \3\\\\\\n"\\/p
17671t cont
17672s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17673t cont
17674d
17675:cont
17676n
17677s/.\{148\}/&'"$ac_delim"'/g
17678t clear
17679:clear
17680s/\\$//
17681t bsnlc
17682s/["\\]/\\&/g; s/^/"/; s/$/"/p
17683d
17684:bsnlc
17685s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17686b cont
17687' <confdefs.h | sed '
17688s/'"$ac_delim"'/"\\\
17689"/g' >>$CONFIG_STATUS || ac_write_fail=1
17690
17691cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17692 for (key in D) D_is_set[key] = 1
17693 FS = "\a"
17694}
17695/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17696 line = \$ 0
17697 split(line, arg, " ")
17698 if (arg[1] == "#") {
17699 defundef = arg[2]
17700 mac1 = arg[3]
17701 } else {
17702 defundef = substr(arg[1], 2)
17703 mac1 = arg[2]
17704 }
17705 split(mac1, mac2, "(") #)
17706 macro = mac2[1]
17707 prefix = substr(line, 1, index(line, defundef) - 1)
17708 if (D_is_set[macro]) {
17709 # Preserve the white space surrounding the "#".
17710 print prefix "define", macro P[macro] D[macro]
17711 next
17712 } else {
17713 # Replace #undef with comments. This is necessary, for example,
17714 # in the case of _POSIX_SOURCE, which is predefined and required
17715 # on some systems where configure will not decide to define it.
17716 if (defundef == "undef") {
17717 print "/*", prefix defundef, macro, "*/"
17718 next
17719 }
17720 }
17721}
17722{ print }
17723_ACAWK
42ecbf5e 17724_ACEOF
81ecdfbb 17725cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
d0ac1c44 17726 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
81ecdfbb
RW
17727fi # test -n "$CONFIG_HEADERS"
17728
17729
17730eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17731shift
17732for ac_tag
17733do
17734 case $ac_tag in
17735 :[FHLC]) ac_mode=$ac_tag; continue;;
17736 esac
17737 case $ac_mode$ac_tag in
17738 :[FHL]*:*);;
d0ac1c44 17739 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
81ecdfbb
RW
17740 :[FH]-) ac_tag=-:-;;
17741 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17742 esac
17743 ac_save_IFS=$IFS
17744 IFS=:
17745 set x $ac_tag
17746 IFS=$ac_save_IFS
17747 shift
17748 ac_file=$1
17749 shift
17750
17751 case $ac_mode in
17752 :L) ac_source=$1;;
17753 :[FH])
17754 ac_file_inputs=
17755 for ac_f
17756 do
17757 case $ac_f in
d0ac1c44 17758 -) ac_f="$ac_tmp/stdin";;
81ecdfbb
RW
17759 *) # Look for the file first in the build tree, then in the source tree
17760 # (if the path is not absolute). The absolute path cannot be DOS-style,
17761 # because $ac_f cannot contain `:'.
17762 test -f "$ac_f" ||
17763 case $ac_f in
17764 [\\/$]*) false;;
17765 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17766 esac ||
d0ac1c44 17767 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
81ecdfbb
RW
17768 esac
17769 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17770 as_fn_append ac_file_inputs " '$ac_f'"
17771 done
17772
17773 # Let's still pretend it is `configure' which instantiates (i.e., don't
17774 # use $as_me), people would be surprised to read:
17775 # /* config.h. Generated by config.status. */
17776 configure_input='Generated from '`
17777 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17778 `' by configure.'
17779 if test x"$ac_file" != x-; then
17780 configure_input="$ac_file. $configure_input"
17781 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17782$as_echo "$as_me: creating $ac_file" >&6;}
17783 fi
17784 # Neutralize special characters interpreted by sed in replacement strings.
17785 case $configure_input in #(
17786 *\&* | *\|* | *\\* )
17787 ac_sed_conf_input=`$as_echo "$configure_input" |
17788 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17789 *) ac_sed_conf_input=$configure_input;;
17790 esac
17791
17792 case $ac_tag in
d0ac1c44
SM
17793 *:-:* | *:-) cat >"$ac_tmp/stdin" \
17794 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
81ecdfbb
RW
17795 esac
17796 ;;
252b5132
RH
17797 esac
17798
81ecdfbb 17799 ac_dir=`$as_dirname -- "$ac_file" ||
42ecbf5e
DJ
17800$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17801 X"$ac_file" : 'X\(//\)[^/]' \| \
17802 X"$ac_file" : 'X\(//\)$' \| \
81ecdfbb
RW
17803 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17804$as_echo X"$ac_file" |
17805 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17806 s//\1/
17807 q
17808 }
17809 /^X\(\/\/\)[^/].*/{
17810 s//\1/
17811 q
17812 }
17813 /^X\(\/\/\)$/{
17814 s//\1/
17815 q
17816 }
17817 /^X\(\/\).*/{
17818 s//\1/
17819 q
17820 }
17821 s/.*/./; q'`
17822 as_dir="$ac_dir"; as_fn_mkdir_p
42ecbf5e 17823 ac_builddir=.
e5a52504 17824
81ecdfbb
RW
17825case "$ac_dir" in
17826.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17827*)
17828 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17829 # A ".." for each directory in $ac_dir_suffix.
17830 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17831 case $ac_top_builddir_sub in
17832 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17833 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17834 esac ;;
17835esac
17836ac_abs_top_builddir=$ac_pwd
17837ac_abs_builddir=$ac_pwd$ac_dir_suffix
17838# for backward compatibility:
17839ac_top_builddir=$ac_top_build_prefix
42ecbf5e
DJ
17840
17841case $srcdir in
81ecdfbb 17842 .) # We are building in place.
42ecbf5e 17843 ac_srcdir=.
81ecdfbb
RW
17844 ac_top_srcdir=$ac_top_builddir_sub
17845 ac_abs_top_srcdir=$ac_pwd ;;
17846 [\\/]* | ?:[\\/]* ) # Absolute name.
42ecbf5e 17847 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
17848 ac_top_srcdir=$srcdir
17849 ac_abs_top_srcdir=$srcdir ;;
17850 *) # Relative name.
17851 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17852 ac_top_srcdir=$ac_top_build_prefix$srcdir
17853 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
42ecbf5e 17854esac
81ecdfbb 17855ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
252b5132 17856
e5a52504 17857
81ecdfbb
RW
17858 case $ac_mode in
17859 :F)
17860 #
17861 # CONFIG_FILE
17862 #
42ecbf5e
DJ
17863
17864 case $INSTALL in
17865 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
81ecdfbb
RW
17866 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17867 esac
17868 ac_MKDIR_P=$MKDIR_P
17869 case $MKDIR_P in
17870 [\\/$]* | ?:[\\/]* ) ;;
17871 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
d15b04bd 17872 esac
81ecdfbb 17873_ACEOF
e5a52504 17874
81ecdfbb
RW
17875cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17876# If the template does not know about datarootdir, expand it.
17877# FIXME: This hack should be removed a few years after 2.60.
17878ac_datarootdir_hack=; ac_datarootdir_seen=
17879ac_sed_dataroot='
17880/datarootdir/ {
17881 p
17882 q
17883}
17884/@datadir@/p
17885/@docdir@/p
17886/@infodir@/p
17887/@localedir@/p
17888/@mandir@/p'
17889case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17890*datarootdir*) ac_datarootdir_seen=yes;;
17891*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17892 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17893$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17894_ACEOF
17895cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17896 ac_datarootdir_hack='
17897 s&@datadir@&$datadir&g
17898 s&@docdir@&$docdir&g
17899 s&@infodir@&$infodir&g
17900 s&@localedir@&$localedir&g
17901 s&@mandir@&$mandir&g
17902 s&\\\${datarootdir}&$datarootdir&g' ;;
17903esac
42ecbf5e 17904_ACEOF
81ecdfbb
RW
17905
17906# Neutralize VPATH when `$srcdir' = `.'.
17907# Shell code in configure.ac might set extrasub.
17908# FIXME: do we really want to maintain this feature?
17909cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17910ac_sed_extra="$ac_vpsub
42ecbf5e
DJ
17911$extrasub
17912_ACEOF
81ecdfbb 17913cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42ecbf5e
DJ
17914:t
17915/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
81ecdfbb
RW
17916s|@configure_input@|$ac_sed_conf_input|;t t
17917s&@top_builddir@&$ac_top_builddir_sub&;t t
17918s&@top_build_prefix@&$ac_top_build_prefix&;t t
17919s&@srcdir@&$ac_srcdir&;t t
17920s&@abs_srcdir@&$ac_abs_srcdir&;t t
17921s&@top_srcdir@&$ac_top_srcdir&;t t
17922s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17923s&@builddir@&$ac_builddir&;t t
17924s&@abs_builddir@&$ac_abs_builddir&;t t
17925s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17926s&@INSTALL@&$ac_INSTALL&;t t
17927s&@MKDIR_P@&$ac_MKDIR_P&;t t
17928$ac_datarootdir_hack
17929"
d0ac1c44
SM
17930eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17931 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
81ecdfbb
RW
17932
17933test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
d0ac1c44
SM
17934 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17935 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17936 "$ac_tmp/out"`; test -z "$ac_out"; } &&
81ecdfbb 17937 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
d0ac1c44 17938which seems to be undefined. Please make sure it is defined" >&5
81ecdfbb 17939$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
d0ac1c44 17940which seems to be undefined. Please make sure it is defined" >&2;}
81ecdfbb 17941
d0ac1c44 17942 rm -f "$ac_tmp/stdin"
42ecbf5e 17943 case $ac_file in
d0ac1c44
SM
17944 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17945 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
81ecdfbb 17946 esac \
d0ac1c44 17947 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
81ecdfbb
RW
17948 ;;
17949 :H)
17950 #
17951 # CONFIG_HEADER
17952 #
42ecbf5e 17953 if test x"$ac_file" != x-; then
81ecdfbb
RW
17954 {
17955 $as_echo "/* $configure_input */" \
d0ac1c44
SM
17956 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17957 } >"$ac_tmp/config.h" \
17958 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17959 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
81ecdfbb
RW
17960 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17961$as_echo "$as_me: $ac_file is unchanged" >&6;}
42ecbf5e 17962 else
81ecdfbb 17963 rm -f "$ac_file"
d0ac1c44
SM
17964 mv "$ac_tmp/config.h" "$ac_file" \
17965 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
252b5132 17966 fi
42ecbf5e 17967 else
81ecdfbb 17968 $as_echo "/* $configure_input */" \
d0ac1c44
SM
17969 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17970 || as_fn_error $? "could not create -" "$LINENO" 5
252b5132 17971 fi
81ecdfbb
RW
17972# Compute "$ac_file"'s index in $config_headers.
17973_am_arg="$ac_file"
42ecbf5e
DJ
17974_am_stamp_count=1
17975for _am_header in $config_headers :; do
17976 case $_am_header in
81ecdfbb 17977 $_am_arg | $_am_arg:* )
42ecbf5e
DJ
17978 break ;;
17979 * )
17980 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17981 esac
17982done
81ecdfbb
RW
17983echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17984$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17985 X"$_am_arg" : 'X\(//\)[^/]' \| \
17986 X"$_am_arg" : 'X\(//\)$' \| \
17987 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17988$as_echo X"$_am_arg" |
17989 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17990 s//\1/
17991 q
17992 }
17993 /^X\(\/\/\)[^/].*/{
17994 s//\1/
17995 q
17996 }
17997 /^X\(\/\/\)$/{
17998 s//\1/
17999 q
18000 }
18001 /^X\(\/\).*/{
18002 s//\1/
18003 q
18004 }
18005 s/.*/./; q'`/stamp-h$_am_stamp_count
18006 ;;
42ecbf5e 18007
81ecdfbb
RW
18008 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18009$as_echo "$as_me: executing $ac_file commands" >&6;}
18010 ;;
18011 esac
e5a52504 18012
42ecbf5e 18013
81ecdfbb
RW
18014 case $ac_file$ac_mode in
18015 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
d0ac1c44 18016 # Older Autoconf quotes --file arguments for eval, but not when files
81ecdfbb
RW
18017 # are listed without --file. Let's play safe and only enable the eval
18018 # if we detect the quoting.
b9583093
AM
18019 case $CONFIG_FILES in
18020 *\'*) eval set x "$CONFIG_FILES" ;;
18021 *) set x $CONFIG_FILES ;;
18022 esac
81ecdfbb 18023 shift
b9583093 18024 for mf
81ecdfbb
RW
18025 do
18026 # Strip MF so we end up with the name of the file.
b9583093
AM
18027 mf=`echo "$mf" | sed -e 's/:.*$//'`
18028 # Check whether this is an Automake generated Makefile or not.
18029 # We used to match only the files named 'Makefile.in', but
18030 # some people rename them; so instead we look at the file content.
18031 # Grep'ing the first line is not enough: some people post-process
18032 # each Makefile.in and add a new line on top of each file to say so.
18033 # Grep'ing the whole file is not good either: AIX grep has a line
81ecdfbb 18034 # limit of 2048, but all sed's we know have understand at least 4000.
b9583093
AM
18035 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18036 dirpart=`$as_dirname -- "$mf" ||
18037$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18038 X"$mf" : 'X\(//\)[^/]' \| \
18039 X"$mf" : 'X\(//\)$' \| \
18040 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18041$as_echo X"$mf" |
81ecdfbb
RW
18042 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18043 s//\1/
18044 q
18045 }
18046 /^X\(\/\/\)[^/].*/{
18047 s//\1/
18048 q
18049 }
18050 /^X\(\/\/\)$/{
18051 s//\1/
18052 q
18053 }
18054 /^X\(\/\).*/{
18055 s//\1/
18056 q
18057 }
18058 s/.*/./; q'`
b9583093
AM
18059 else
18060 continue
18061 fi
18062 # Extract the definition of DEPDIR, am__include, and am__quote
18063 # from the Makefile without running 'make'.
18064 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18065 test -z "$DEPDIR" && continue
18066 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18067 test -z "$am__include" && continue
18068 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18069 # Find all dependency output files, they are included files with
18070 # $(DEPDIR) in their names. We invoke sed twice because it is the
18071 # simplest approach to changing $(DEPDIR) to its actual value in the
18072 # expansion.
18073 for file in `sed -n "
18074 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18075 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
18076 # Make sure the directory exists.
18077 test -f "$dirpart/$file" && continue
18078 fdir=`$as_dirname -- "$file" ||
18079$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18080 X"$file" : 'X\(//\)[^/]' \| \
18081 X"$file" : 'X\(//\)$' \| \
18082 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18083$as_echo X"$file" |
18084 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
81ecdfbb
RW
18085 s//\1/
18086 q
18087 }
b9583093 18088 /^X\(\/\/\)[^/].*/{
81ecdfbb
RW
18089 s//\1/
18090 q
18091 }
b9583093
AM
18092 /^X\(\/\/\)$/{
18093 s//\1/
18094 q
18095 }
18096 /^X\(\/\).*/{
81ecdfbb
RW
18097 s//\1/
18098 q
18099 }
18100 s/.*/./; q'`
b9583093
AM
18101 as_dir=$dirpart/$fdir; as_fn_mkdir_p
18102 # echo "creating $dirpart/$file"
18103 echo '# dummy' > "$dirpart/$file"
18104 done
42ecbf5e 18105 done
81ecdfbb 18106}
d7040cdb 18107 ;;
81ecdfbb 18108 "libtool":C)
d7040cdb
SE
18109
18110 # See if we are running on zsh, and set the options which allow our
18111 # commands through without removal of \ escapes.
18112 if test -n "${ZSH_VERSION+set}" ; then
18113 setopt NO_GLOB_SUBST
18114 fi
18115
18116 cfgfile="${ofile}T"
18117 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18118 $RM "$cfgfile"
18119
18120 cat <<_LT_EOF >> "$cfgfile"
18121#! $SHELL
18122
18123# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
718a6fd8 18124# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
d7040cdb
SE
18125# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18126# NOTE: Changes made to this file will be lost: look at ltmain.sh.
18127#
718a6fd8 18128# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
f2c621e4 18129# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
718a6fd8 18130# Written by Gordon Matzigkeit, 1996
d7040cdb 18131#
718a6fd8 18132# This file is part of GNU Libtool.
d7040cdb 18133#
718a6fd8
SE
18134# GNU Libtool is free software; you can redistribute it and/or
18135# modify it under the terms of the GNU General Public License as
18136# published by the Free Software Foundation; either version 2 of
18137# the License, or (at your option) any later version.
d7040cdb 18138#
718a6fd8
SE
18139# As a special exception to the GNU General Public License,
18140# if you distribute this file as part of a program or library that
18141# is built using GNU Libtool, you may include this file under the
18142# same distribution terms that you use for the rest of that program.
d7040cdb 18143#
718a6fd8
SE
18144# GNU Libtool is distributed in the hope that it will be useful,
18145# but WITHOUT ANY WARRANTY; without even the implied warranty of
18146# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18147# GNU General Public License for more details.
d7040cdb 18148#
718a6fd8
SE
18149# You should have received a copy of the GNU General Public License
18150# along with GNU Libtool; see the file COPYING. If not, a copy
18151# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18152# obtained by writing to the Free Software Foundation, Inc.,
18153# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
d7040cdb
SE
18154
18155
18156# The names of the tagged configurations supported by this script.
18157available_tags=""
18158
18159# ### BEGIN LIBTOOL CONFIG
18160
18161# Which release of libtool.m4 was used?
18162macro_version=$macro_version
18163macro_revision=$macro_revision
18164
18165# Whether or not to build shared libraries.
18166build_libtool_libs=$enable_shared
18167
18168# Whether or not to build static libraries.
18169build_old_libs=$enable_static
18170
18171# What type of objects to build.
18172pic_mode=$pic_mode
18173
18174# Whether or not to optimize for fast installation.
18175fast_install=$enable_fast_install
18176
3725885a
RW
18177# Shell to use when invoking shell scripts.
18178SHELL=$lt_SHELL
18179
18180# An echo program that protects backslashes.
18181ECHO=$lt_ECHO
18182
d7040cdb
SE
18183# The host system.
18184host_alias=$host_alias
18185host=$host
18186host_os=$host_os
18187
18188# The build system.
18189build_alias=$build_alias
18190build=$build
18191build_os=$build_os
18192
18193# A sed program that does not truncate output.
18194SED=$lt_SED
18195
18196# Sed that helps us avoid accidentally triggering echo(1) options like -n.
18197Xsed="\$SED -e 1s/^X//"
18198
18199# A grep program that handles long lines.
18200GREP=$lt_GREP
18201
18202# An ERE matcher.
18203EGREP=$lt_EGREP
18204
18205# A literal string matcher.
18206FGREP=$lt_FGREP
18207
18208# A BSD- or MS-compatible name lister.
18209NM=$lt_NM
18210
18211# Whether we need soft or hard links.
18212LN_S=$lt_LN_S
18213
18214# What is the maximum length of a command?
18215max_cmd_len=$max_cmd_len
18216
18217# Object file suffix (normally "o").
18218objext=$ac_objext
18219
18220# Executable file suffix (normally "").
18221exeext=$exeext
18222
18223# whether the shell understands "unset".
18224lt_unset=$lt_unset
18225
18226# turn spaces into newlines.
18227SP2NL=$lt_lt_SP2NL
18228
18229# turn newlines into spaces.
18230NL2SP=$lt_lt_NL2SP
18231
718a6fd8
SE
18232# An object symbol dumper.
18233OBJDUMP=$lt_OBJDUMP
18234
d7040cdb
SE
18235# Method to check whether dependent libraries are shared objects.
18236deplibs_check_method=$lt_deplibs_check_method
18237
f2c621e4 18238# Command to use when deplibs_check_method == "file_magic".
d7040cdb
SE
18239file_magic_cmd=$lt_file_magic_cmd
18240
18241# The archiver.
18242AR=$lt_AR
18243AR_FLAGS=$lt_AR_FLAGS
18244
18245# A symbol stripping program.
18246STRIP=$lt_STRIP
18247
18248# Commands used to install an old-style archive.
18249RANLIB=$lt_RANLIB
18250old_postinstall_cmds=$lt_old_postinstall_cmds
18251old_postuninstall_cmds=$lt_old_postuninstall_cmds
18252
3725885a
RW
18253# Whether to use a lock for old archive extraction.
18254lock_old_archive_extraction=$lock_old_archive_extraction
18255
d7040cdb
SE
18256# A C compiler.
18257LTCC=$lt_CC
18258
18259# LTCC compiler flags.
18260LTCFLAGS=$lt_CFLAGS
18261
18262# Take the output of nm and produce a listing of raw symbols and C names.
18263global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18264
18265# Transform the output of nm in a proper C declaration.
18266global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18267
18268# Transform the output of nm in a C name address pair.
18269global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18270
718a6fd8
SE
18271# Transform the output of nm in a C name address pair when lib prefix is needed.
18272global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18273
d7040cdb
SE
18274# The name of the directory that contains temporary libtool files.
18275objdir=$objdir
18276
d7040cdb
SE
18277# Used to examine libraries when file_magic_cmd begins with "file".
18278MAGIC_CMD=$MAGIC_CMD
18279
18280# Must we lock files when doing compilation?
18281need_locks=$lt_need_locks
18282
718a6fd8
SE
18283# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18284DSYMUTIL=$lt_DSYMUTIL
18285
18286# Tool to change global to local symbols on Mac OS X.
18287NMEDIT=$lt_NMEDIT
18288
18289# Tool to manipulate fat objects and archives on Mac OS X.
18290LIPO=$lt_LIPO
18291
18292# ldd/readelf like tool for Mach-O binaries on Mac OS X.
18293OTOOL=$lt_OTOOL
18294
18295# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18296OTOOL64=$lt_OTOOL64
18297
d7040cdb
SE
18298# Old archive suffix (normally "a").
18299libext=$libext
18300
18301# Shared library suffix (normally ".so").
18302shrext_cmds=$lt_shrext_cmds
18303
18304# The commands to extract the exported symbol list from a shared archive.
18305extract_expsyms_cmds=$lt_extract_expsyms_cmds
18306
18307# Variables whose values should be saved in libtool wrapper scripts and
18308# restored at link time.
18309variables_saved_for_relink=$lt_variables_saved_for_relink
18310
18311# Do we need the "lib" prefix for modules?
18312need_lib_prefix=$need_lib_prefix
18313
18314# Do we need a version for libraries?
18315need_version=$need_version
18316
18317# Library versioning type.
18318version_type=$version_type
18319
18320# Shared library runtime path variable.
18321runpath_var=$runpath_var
18322
18323# Shared library path variable.
18324shlibpath_var=$shlibpath_var
18325
18326# Is shlibpath searched before the hard-coded library search path?
18327shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18328
18329# Format of library name prefix.
18330libname_spec=$lt_libname_spec
18331
18332# List of archive names. First name is the real one, the rest are links.
18333# The last name is the one that the linker finds with -lNAME
18334library_names_spec=$lt_library_names_spec
18335
18336# The coded name of the library, if different from the real name.
18337soname_spec=$lt_soname_spec
18338
3725885a
RW
18339# Permission mode override for installation of shared libraries.
18340install_override_mode=$lt_install_override_mode
18341
d7040cdb
SE
18342# Command to use after installation of a shared archive.
18343postinstall_cmds=$lt_postinstall_cmds
18344
18345# Command to use after uninstallation of a shared archive.
18346postuninstall_cmds=$lt_postuninstall_cmds
18347
18348# Commands used to finish a libtool library installation in a directory.
18349finish_cmds=$lt_finish_cmds
18350
18351# As "finish_cmds", except a single script fragment to be evaled but
18352# not shown.
18353finish_eval=$lt_finish_eval
18354
18355# Whether we should hardcode library paths into libraries.
18356hardcode_into_libs=$hardcode_into_libs
18357
18358# Compile-time system search path for libraries.
18359sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18360
18361# Run-time system search path for libraries.
18362sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18363
18364# Whether dlopen is supported.
18365dlopen_support=$enable_dlopen
18366
18367# Whether dlopen of programs is supported.
18368dlopen_self=$enable_dlopen_self
18369
18370# Whether dlopen of statically linked programs is supported.
18371dlopen_self_static=$enable_dlopen_self_static
18372
18373# Commands to strip libraries.
18374old_striplib=$lt_old_striplib
18375striplib=$lt_striplib
18376
18377
18378# The linker used to build libraries.
18379LD=$lt_LD
18380
3725885a
RW
18381# How to create reloadable object files.
18382reload_flag=$lt_reload_flag
18383reload_cmds=$lt_reload_cmds
18384
d7040cdb
SE
18385# Commands used to build an old-style archive.
18386old_archive_cmds=$lt_old_archive_cmds
18387
18388# A language specific compiler.
18389CC=$lt_compiler
18390
18391# Is the compiler the GNU compiler?
18392with_gcc=$GCC
18393
18394# Compiler flag to turn off builtin functions.
18395no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18396
df7b86aa
NC
18397# How to pass a linker flag through the compiler.
18398wl=$lt_lt_prog_compiler_wl
18399
f2c621e4
AS
18400# Additional compiler flags for building library objects.
18401pic_flag=$lt_lt_prog_compiler_pic
18402
d7040cdb
SE
18403# Compiler flag to prevent dynamic linking.
18404link_static_flag=$lt_lt_prog_compiler_static
18405
18406# Does compiler simultaneously support -c and -o options?
18407compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18408
18409# Whether or not to add -lc for building shared libraries.
18410build_libtool_need_lc=$archive_cmds_need_lc
18411
18412# Whether or not to disallow shared libs when runtime libs are static.
18413allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18414
18415# Compiler flag to allow reflexive dlopens.
18416export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18417
18418# Compiler flag to generate shared objects directly from archives.
18419whole_archive_flag_spec=$lt_whole_archive_flag_spec
18420
18421# Whether the compiler copes with passing no objects directly.
18422compiler_needs_object=$lt_compiler_needs_object
18423
18424# Create an old-style archive from a shared archive.
18425old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18426
18427# Create a temporary old-style archive to link instead of a shared archive.
18428old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18429
18430# Commands used to build a shared archive.
18431archive_cmds=$lt_archive_cmds
18432archive_expsym_cmds=$lt_archive_expsym_cmds
18433
18434# Commands used to build a loadable module if different from building
18435# a shared archive.
18436module_cmds=$lt_module_cmds
18437module_expsym_cmds=$lt_module_expsym_cmds
18438
18439# Whether we are building with GNU ld or not.
18440with_gnu_ld=$lt_with_gnu_ld
18441
18442# Flag that allows shared libraries with undefined symbols to be built.
18443allow_undefined_flag=$lt_allow_undefined_flag
18444
18445# Flag that enforces no undefined symbols.
18446no_undefined_flag=$lt_no_undefined_flag
18447
18448# Flag to hardcode \$libdir into a binary during linking.
18449# This must work even if \$libdir does not exist
18450hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18451
18452# If ld is used when linking, flag to hardcode \$libdir into a binary
18453# during linking. This must work even if \$libdir does not exist.
18454hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18455
18456# Whether we need a single "-rpath" flag with a separated argument.
18457hardcode_libdir_separator=$lt_hardcode_libdir_separator
18458
18459# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18460# DIR into the resulting binary.
18461hardcode_direct=$hardcode_direct
18462
18463# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18464# DIR into the resulting binary and the resulting library dependency is
18465# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18466# library is relocated.
18467hardcode_direct_absolute=$hardcode_direct_absolute
18468
18469# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18470# into the resulting binary.
18471hardcode_minus_L=$hardcode_minus_L
18472
18473# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18474# into the resulting binary.
18475hardcode_shlibpath_var=$hardcode_shlibpath_var
18476
18477# Set to "yes" if building a shared library automatically hardcodes DIR
18478# into the library and all subsequent libraries and executables linked
18479# against it.
18480hardcode_automatic=$hardcode_automatic
18481
18482# Set to yes if linker adds runtime paths of dependent libraries
18483# to runtime path list.
18484inherit_rpath=$inherit_rpath
18485
18486# Whether libtool must link a program against all its dependency libraries.
18487link_all_deplibs=$link_all_deplibs
18488
f2c621e4
AS
18489# Fix the shell variable \$srcfile for the compiler.
18490fix_srcfile_path=$lt_fix_srcfile_path
18491
d7040cdb
SE
18492# Set to "yes" if exported symbols are required.
18493always_export_symbols=$always_export_symbols
18494
18495# The commands to list exported symbols.
18496export_symbols_cmds=$lt_export_symbols_cmds
18497
18498# Symbols that should not be listed in the preloaded symbols.
18499exclude_expsyms=$lt_exclude_expsyms
18500
18501# Symbols that must always be exported.
18502include_expsyms=$lt_include_expsyms
18503
18504# Commands necessary for linking programs (against libraries) with templates.
18505prelink_cmds=$lt_prelink_cmds
18506
18507# Specify filename containing input files.
18508file_list_spec=$lt_file_list_spec
18509
18510# How to hardcode a shared library path into an executable.
18511hardcode_action=$hardcode_action
18512
18513# ### END LIBTOOL CONFIG
18514
18515_LT_EOF
18516
18517 case $host_os in
18518 aix3*)
18519 cat <<\_LT_EOF >> "$cfgfile"
18520# AIX sometimes has problems with the GCC collect2 program. For some
18521# reason, if we set the COLLECT_NAMES environment variable, the problems
18522# vanish in a puff of smoke.
18523if test "X${COLLECT_NAMES+set}" != Xset; then
18524 COLLECT_NAMES=
18525 export COLLECT_NAMES
18526fi
18527_LT_EOF
18528 ;;
18529 esac
18530
18531
18532ltmain="$ac_aux_dir/ltmain.sh"
18533
18534
18535 # We use sed instead of cat because bash on DJGPP gets confused if
18536 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18537 # text mode, it properly converts lines to CR/LF. This bash problem
18538 # is reportedly fixed, but why not run on old versions too?
f2c621e4
AS
18539 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
18540 || (rm -f "$cfgfile"; exit 1)
18541
18542 case $xsi_shell in
18543 yes)
18544 cat << \_LT_EOF >> "$cfgfile"
18545
18546# func_dirname file append nondir_replacement
18547# Compute the dirname of FILE. If nonempty, add APPEND to the result,
18548# otherwise set result to NONDIR_REPLACEMENT.
18549func_dirname ()
18550{
18551 case ${1} in
18552 */*) func_dirname_result="${1%/*}${2}" ;;
18553 * ) func_dirname_result="${3}" ;;
18554 esac
18555}
18556
18557# func_basename file
18558func_basename ()
18559{
18560 func_basename_result="${1##*/}"
18561}
18562
18563# func_dirname_and_basename file append nondir_replacement
18564# perform func_basename and func_dirname in a single function
18565# call:
18566# dirname: Compute the dirname of FILE. If nonempty,
18567# add APPEND to the result, otherwise set result
18568# to NONDIR_REPLACEMENT.
18569# value returned in "$func_dirname_result"
18570# basename: Compute filename of FILE.
18571# value retuned in "$func_basename_result"
18572# Implementation must be kept synchronized with func_dirname
18573# and func_basename. For efficiency, we do not delegate to
18574# those functions but instead duplicate the functionality here.
18575func_dirname_and_basename ()
18576{
18577 case ${1} in
18578 */*) func_dirname_result="${1%/*}${2}" ;;
18579 * ) func_dirname_result="${3}" ;;
18580 esac
18581 func_basename_result="${1##*/}"
18582}
18583
18584# func_stripname prefix suffix name
18585# strip PREFIX and SUFFIX off of NAME.
18586# PREFIX and SUFFIX must not contain globbing or regex special
18587# characters, hashes, percent signs, but SUFFIX may contain a leading
18588# dot (in which case that matches only a dot).
18589func_stripname ()
18590{
18591 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
18592 # positional parameters, so assign one to ordinary parameter first.
18593 func_stripname_result=${3}
18594 func_stripname_result=${func_stripname_result#"${1}"}
18595 func_stripname_result=${func_stripname_result%"${2}"}
18596}
18597
18598# func_opt_split
18599func_opt_split ()
18600{
18601 func_opt_split_opt=${1%%=*}
18602 func_opt_split_arg=${1#*=}
18603}
18604
18605# func_lo2o object
18606func_lo2o ()
18607{
18608 case ${1} in
18609 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
18610 *) func_lo2o_result=${1} ;;
18611 esac
18612}
18613
18614# func_xform libobj-or-source
18615func_xform ()
18616{
18617 func_xform_result=${1%.*}.lo
18618}
18619
18620# func_arith arithmetic-term...
18621func_arith ()
18622{
18623 func_arith_result=$(( $* ))
18624}
18625
18626# func_len string
18627# STRING may not start with a hyphen.
18628func_len ()
18629{
18630 func_len_result=${#1}
18631}
18632
18633_LT_EOF
18634 ;;
18635 *) # Bourne compatible functions.
18636 cat << \_LT_EOF >> "$cfgfile"
18637
18638# func_dirname file append nondir_replacement
18639# Compute the dirname of FILE. If nonempty, add APPEND to the result,
18640# otherwise set result to NONDIR_REPLACEMENT.
18641func_dirname ()
18642{
18643 # Extract subdirectory from the argument.
18644 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
18645 if test "X$func_dirname_result" = "X${1}"; then
18646 func_dirname_result="${3}"
18647 else
18648 func_dirname_result="$func_dirname_result${2}"
18649 fi
18650}
18651
18652# func_basename file
18653func_basename ()
18654{
18655 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
18656}
18657
18658
18659# func_stripname prefix suffix name
18660# strip PREFIX and SUFFIX off of NAME.
18661# PREFIX and SUFFIX must not contain globbing or regex special
18662# characters, hashes, percent signs, but SUFFIX may contain a leading
18663# dot (in which case that matches only a dot).
18664# func_strip_suffix prefix name
18665func_stripname ()
18666{
18667 case ${2} in
18668 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
18669 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
18670 esac
18671}
18672
18673# sed scripts:
18674my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
18675my_sed_long_arg='1s/^-[^=]*=//'
18676
18677# func_opt_split
18678func_opt_split ()
18679{
18680 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
18681 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
18682}
18683
18684# func_lo2o object
18685func_lo2o ()
18686{
18687 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
18688}
18689
18690# func_xform libobj-or-source
18691func_xform ()
18692{
18693 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
18694}
18695
18696# func_arith arithmetic-term...
18697func_arith ()
18698{
18699 func_arith_result=`expr "$@"`
18700}
18701
18702# func_len string
18703# STRING may not start with a hyphen.
18704func_len ()
18705{
18706 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
18707}
18708
18709_LT_EOF
18710esac
18711
18712case $lt_shell_append in
18713 yes)
18714 cat << \_LT_EOF >> "$cfgfile"
18715
18716# func_append var value
18717# Append VALUE to the end of shell variable VAR.
18718func_append ()
18719{
18720 eval "$1+=\$2"
18721}
18722_LT_EOF
18723 ;;
18724 *)
18725 cat << \_LT_EOF >> "$cfgfile"
18726
18727# func_append var value
18728# Append VALUE to the end of shell variable VAR.
18729func_append ()
18730{
18731 eval "$1=\$$1\$2"
18732}
18733
18734_LT_EOF
18735 ;;
18736 esac
18737
18738
18739 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
18740 || (rm -f "$cfgfile"; exit 1)
18741
18742 mv -f "$cfgfile" "$ofile" ||
d7040cdb
SE
18743 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18744 chmod +x "$ofile"
18745
42ecbf5e 18746 ;;
81ecdfbb 18747 "default-1":C)
20e95c23
DJ
18748 for ac_file in $CONFIG_FILES; do
18749 # Support "outfile[:infile[:infile...]]"
18750 case "$ac_file" in
18751 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
18752 esac
18753 # PO directories have a Makefile.in generated from Makefile.in.in.
18754 case "$ac_file" in */Makefile.in)
18755 # Adjust a relative srcdir.
18756 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
3cac54d2 18757 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
20e95c23
DJ
18758 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
18759 # In autoconf-2.13 it is called $ac_given_srcdir.
18760 # In autoconf-2.50 it is called $srcdir.
862776f2
AA
18761 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
18762 case "$ac_given_srcdir" in
18763 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
18764 /*) top_srcdir="$ac_given_srcdir" ;;
18765 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
18766 esac
18767 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
18768 rm -f "$ac_dir/POTFILES"
18769 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
18770 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
18771 POMAKEFILEDEPS="POTFILES.in"
18772 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
18773 # on $ac_dir but don't depend on user-specified configuration
18774 # parameters.
18775 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
18776 # The LINGUAS file contains the set of available languages.
18777 if test -n "$OBSOLETE_ALL_LINGUAS"; then
18778 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.ac is obsolete" || echo "setting ALL_LINGUAS in configure.ac is obsolete"
18779 fi
18780 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
18781 # Hide the ALL_LINGUAS assigment from automake.
18782 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
18783 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
18784 else
18785 # The set of available languages was given in configure.ac.
18786 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
18787 fi
18788 case "$ac_given_srcdir" in
18789 .) srcdirpre= ;;
18790 *) srcdirpre='$(srcdir)/' ;;
18791 esac
18792 POFILES=
18793 GMOFILES=
18794 UPDATEPOFILES=
18795 DUMMYPOFILES=
18796 for lang in $ALL_LINGUAS; do
18797 POFILES="$POFILES $srcdirpre$lang.po"
18798 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
18799 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
18800 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
18801 done
18802 # CATALOGS depends on both $ac_dir and the user's LINGUAS
18803 # environment variable.
18804 INST_LINGUAS=
18805 if test -n "$ALL_LINGUAS"; then
18806 for presentlang in $ALL_LINGUAS; do
18807 useit=no
18808 if test "%UNSET%" != "$LINGUAS"; then
18809 desiredlanguages="$LINGUAS"
18810 else
18811 desiredlanguages="$ALL_LINGUAS"
18812 fi
18813 for desiredlang in $desiredlanguages; do
18814 # Use the presentlang catalog if desiredlang is
18815 # a. equal to presentlang, or
18816 # b. a variant of presentlang (because in this case,
18817 # presentlang can be used as a fallback for messages
18818 # which are not translated in the desiredlang catalog).
18819 case "$desiredlang" in
18820 "$presentlang"*) useit=yes;;
18821 esac
18822 done
18823 if test $useit = yes; then
18824 INST_LINGUAS="$INST_LINGUAS $presentlang"
18825 fi
18826 done
18827 fi
18828 CATALOGS=
18829 if test -n "$INST_LINGUAS"; then
18830 for lang in $INST_LINGUAS; do
18831 CATALOGS="$CATALOGS $lang.gmo"
18832 done
18833 fi
18834 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
18835 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"
18836 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
18837 if test -f "$f"; then
18838 case "$f" in
18839 *.orig | *.bak | *~) ;;
18840 *) cat "$f" >> "$ac_dir/Makefile" ;;
18841 esac
18842 fi
18843 done
18844 fi
18845 ;;
18846 esac
18847 done ;;
18848 "default-2":C)
18849 for ac_file in $CONFIG_FILES; do
18850 # Support "outfile[:infile[:infile...]]"
18851 case "$ac_file" in
18852 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
18853 esac
18854 # PO directories have a Makefile.in generated from Makefile.in.in.
18855 case "$ac_file" in */Makefile.in)
18856 # Adjust a relative srcdir.
18857 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
18858 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
18859 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
18860 # In autoconf-2.13 it is called $ac_given_srcdir.
18861 # In autoconf-2.50 it is called $srcdir.
20e95c23
DJ
18862 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
18863 case "$ac_given_srcdir" in
18864 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
18865 /*) top_srcdir="$ac_given_srcdir" ;;
18866 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
18867 esac
18868 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
18869 rm -f "$ac_dir/POTFILES"
18870 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
18871 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
18872 POMAKEFILEDEPS="POTFILES.in"
18873 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
18874 # on $ac_dir but don't depend on user-specified configuration
18875 # parameters.
18876 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
18877 # The LINGUAS file contains the set of available languages.
18878 if test -n "$OBSOLETE_ALL_LINGUAS"; then
37a42ee9 18879 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
18880 fi
18881 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
18882 # Hide the ALL_LINGUAS assigment from automake.
18883 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
18884 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
18885 else
37a42ee9 18886 # The set of available languages was given in configure.ac.
20e95c23
DJ
18887 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
18888 fi
18889 case "$ac_given_srcdir" in
18890 .) srcdirpre= ;;
18891 *) srcdirpre='$(srcdir)/' ;;
18892 esac
18893 POFILES=
18894 GMOFILES=
18895 UPDATEPOFILES=
18896 DUMMYPOFILES=
18897 for lang in $ALL_LINGUAS; do
18898 POFILES="$POFILES $srcdirpre$lang.po"
18899 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
18900 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
18901 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
18902 done
18903 # CATALOGS depends on both $ac_dir and the user's LINGUAS
18904 # environment variable.
18905 INST_LINGUAS=
18906 if test -n "$ALL_LINGUAS"; then
18907 for presentlang in $ALL_LINGUAS; do
18908 useit=no
18909 if test "%UNSET%" != "$LINGUAS"; then
18910 desiredlanguages="$LINGUAS"
18911 else
18912 desiredlanguages="$ALL_LINGUAS"
18913 fi
18914 for desiredlang in $desiredlanguages; do
18915 # Use the presentlang catalog if desiredlang is
18916 # a. equal to presentlang, or
18917 # b. a variant of presentlang (because in this case,
18918 # presentlang can be used as a fallback for messages
18919 # which are not translated in the desiredlang catalog).
18920 case "$desiredlang" in
18921 "$presentlang"*) useit=yes;;
18922 esac
18923 done
18924 if test $useit = yes; then
18925 INST_LINGUAS="$INST_LINGUAS $presentlang"
18926 fi
18927 done
18928 fi
18929 CATALOGS=
18930 if test -n "$INST_LINGUAS"; then
18931 for lang in $INST_LINGUAS; do
18932 CATALOGS="$CATALOGS $lang.gmo"
18933 done
18934 fi
18935 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
18936 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"
18937 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
18938 if test -f "$f"; then
18939 case "$f" in
18940 *.orig | *.bak | *~) ;;
18941 *) cat "$f" >> "$ac_dir/Makefile" ;;
18942 esac
18943 fi
18944 done
18945 fi
18946 ;;
18947 esac
18948 done ;;
81ecdfbb 18949
42ecbf5e 18950 esac
81ecdfbb 18951done # for ac_tag
e5a52504 18952
42ecbf5e 18953
81ecdfbb 18954as_fn_exit 0
42ecbf5e 18955_ACEOF
42ecbf5e
DJ
18956ac_clean_files=$ac_clean_files_save
18957
81ecdfbb 18958test $ac_write_fail = 0 ||
d0ac1c44 18959 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
81ecdfbb 18960
42ecbf5e
DJ
18961
18962# configure is writing to config.log, and then calls config.status.
18963# config.status does its own redirection, appending to config.log.
18964# Unfortunately, on DOS this fails, as config.log is still kept open
18965# by configure, so config.status won't be able to write to it; its
18966# output is simply discarded. So we exec the FD to /dev/null,
18967# effectively closing config.log, so it can be properly (re)opened and
18968# appended to by config.status. When coming back to configure, we
18969# need to make the FD available again.
18970if test "$no_create" != yes; then
18971 ac_cs_success=:
18972 ac_config_status_args=
18973 test "$silent" = yes &&
18974 ac_config_status_args="$ac_config_status_args --quiet"
18975 exec 5>/dev/null
18976 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18977 exec 5>>config.log
18978 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18979 # would make configure fail if this is the last instruction.
d0ac1c44 18980 $ac_cs_success || as_fn_exit 1
81ecdfbb
RW
18981fi
18982if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18983 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18984$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
42ecbf5e 18985fi
252b5132 18986
d546b610
L
18987
18988
18989touch config.status.tmp
18990if touch --reference=config.status config.status.tmp > /dev/null 2>&1; then
18991 sed '/as_fn_exit 0/i \
18992sed -e \"s/^\t\\\(\\\$(AM_V_CCLD)\\\)/\t+ \\\1/\" Makefile > Makefile.tmp \
18993touch --reference=Makefile Makefile.tmp \
18994mv Makefile.tmp Makefile \
18995' config.status > config.status.tmp
18996 touch --reference=config.status config.status.tmp
18997 mv config.status.tmp config.status
18998 chmod +x config.status
18999 sed -e "s/^\t\(\$(AM_V_CCLD)\)/\t+ \1/" Makefile > Makefile.tmp
19000 touch --reference=Makefile Makefile.tmp
19001 mv Makefile.tmp Makefile
19002else
19003 rm -f config.status.tmp
19004fi