C99 binutils configury
[deliverable/binutils-gdb.git] / opcodes / configure
CommitLineData
252b5132 1#! /bin/sh
252b5132 2# Guess values for system-dependent variables and create Makefiles.
573fe3fb 3# Generated by GNU Autoconf 2.69 for opcodes 2.36.50.
d0ac1c44
SM
4#
5#
6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
81ecdfbb 7#
252b5132
RH
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
81ecdfbb
RW
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
979273e3 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 :
979273e3
NN
18 emulate sh
19 NULLCMD=:
81ecdfbb 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
979273e3
NN
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
979273e3 31fi
979273e3 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 }
979273e3
NN
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
979273e3
NN
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
979273e3 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."
979273e3 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."
979273e3 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
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
979273e3 426
81ecdfbb
RW
427if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
979273e3
NN
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
979273e3
NN
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
979273e3 445
81ecdfbb 446as_me=`$as_basename -- "$0" ||
979273e3
NN
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'`
979273e3 464
979273e3
NN
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
979273e3 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 |
979273e3 482 sed '
81ecdfbb
RW
483 s/[$]LINENO.*/&-/
484 t lineno
485 b
486 :lineno
979273e3 487 N
81ecdfbb
RW
488 :loop
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
979273e3 490 t loop
81ecdfbb 491 s/-\n.*//
979273e3 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; }
979273e3 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
979273e3
NN
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"
979273e3
NN
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';;
979273e3
NN
519esac
520
81ecdfbb
RW
521rm -f conf$$ conf$$.exe conf$$.file
522if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
979273e3 524else
81ecdfbb
RW
525 rm -f conf$$.dir
526 mkdir conf$$.dir 2>/dev/null
979273e3 527fi
81ecdfbb
RW
528if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
979273e3 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'
979273e3 541 fi
979273e3 542else
d0ac1c44 543 as_ln_s='cp -pR'
979273e3 544fi
81ecdfbb
RW
545rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546rmdir conf$$.dir 2>/dev/null
979273e3
NN
547
548if mkdir -p . 2>/dev/null; then
81ecdfbb 549 as_mkdir_p='mkdir -p "$as_dir"'
979273e3
NN
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
979273e3
NN
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
979273e3 570# Name of the host.
d0ac1c44 571# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
979273e3
NN
572# so uname gets run too.
573ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
252b5132 574
979273e3
NN
575#
576# Initializations.
577#
252b5132 578ac_default_prefix=/usr/local
81ecdfbb 579ac_clean_files=
979273e3 580ac_config_libobj_dir=.
81ecdfbb 581LIBOBJS=
979273e3
NN
582cross_compiling=no
583subdirs=
584MFLAGS=
585MAKEFLAGS=
979273e3
NN
586
587# Identity of this package.
2e98a7bd
AM
588PACKAGE_NAME='opcodes'
589PACKAGE_TARNAME='opcodes'
573fe3fb
NC
590PACKAGE_VERSION='2.36.50'
591PACKAGE_STRING='opcodes 2.36.50'
2e98a7bd
AM
592PACKAGE_BUGREPORT=''
593PACKAGE_URL=''
979273e3
NN
594
595ac_unique_file="z8k-dis.c"
596# Factoring default headers for most tests.
597ac_includes_default="\
598#include <stdio.h>
81ecdfbb 599#ifdef HAVE_SYS_TYPES_H
979273e3
NN
600# include <sys/types.h>
601#endif
81ecdfbb 602#ifdef HAVE_SYS_STAT_H
979273e3
NN
603# include <sys/stat.h>
604#endif
81ecdfbb 605#ifdef STDC_HEADERS
979273e3
NN
606# include <stdlib.h>
607# include <stddef.h>
608#else
81ecdfbb 609# ifdef HAVE_STDLIB_H
979273e3
NN
610# include <stdlib.h>
611# endif
612#endif
81ecdfbb
RW
613#ifdef HAVE_STRING_H
614# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
979273e3
NN
615# include <memory.h>
616# endif
617# include <string.h>
618#endif
81ecdfbb 619#ifdef HAVE_STRINGS_H
979273e3
NN
620# include <strings.h>
621#endif
81ecdfbb 622#ifdef HAVE_INTTYPES_H
979273e3 623# include <inttypes.h>
979273e3 624#endif
81ecdfbb
RW
625#ifdef HAVE_STDINT_H
626# include <stdint.h>
627#endif
628#ifdef HAVE_UNISTD_H
979273e3
NN
629# include <unistd.h>
630#endif"
631
81ecdfbb
RW
632ac_subst_vars='am__EXEEXT_FALSE
633am__EXEEXT_TRUE
634LTLIBOBJS
635LIBOBJS
636BFD_MACHINES
637archdefs
638SHARED_DEPENDENCIES
639SHARED_LIBADD
640SHARED_LDFLAGS
2eee5593
AM
641BUILD_LIB_DEPS
642BUILD_LIBS
81ecdfbb
RW
643LIBM
644cgendir
645CGEN_MAINT_FALSE
646CGEN_MAINT_TRUE
647HDEFINES
648EXEEXT_FOR_BUILD
649CC_FOR_BUILD
650MSGMERGE
651MSGFMT
652MKINSTALLDIRS
653CATOBJEXT
654GENCAT
655INSTOBJEXT
656DATADIRNAME
657CATALOGS
658POSUB
659GMSGFMT
660XGETTEXT
661INCINTL
662LIBINTL_DEP
663LIBINTL
664USE_NLS
665bfdincludedir
666bfdlibdir
667target_noncanonical
668host_noncanonical
669INSTALL_LIBBFD_FALSE
670INSTALL_LIBBFD_TRUE
671MAINT
672MAINTAINER_MODE_FALSE
673MAINTAINER_MODE_TRUE
6757cf57 674WARN_WRITE_STRINGS
81ecdfbb 675NO_WERROR
c5da1932 676WARN_CFLAGS_FOR_BUILD
81ecdfbb
RW
677WARN_CFLAGS
678OTOOL64
679OTOOL
680LIPO
681NMEDIT
682DSYMUTIL
81ecdfbb
RW
683OBJDUMP
684LN_S
685NM
686ac_ct_DUMPBIN
687DUMPBIN
688LD
689FGREP
690SED
691LIBTOOL
692RANLIB
693AR
694EGREP
695GREP
696CPP
697am__fastdepCC_FALSE
698am__fastdepCC_TRUE
699CCDEPMODE
6eb7d830 700am__nodep
81ecdfbb
RW
701AMDEPBACKSLASH
702AMDEP_FALSE
703AMDEP_TRUE
704am__quote
705am__include
706DEPDIR
ab2af25e
AM
707OBJEXT
708EXEEXT
709ac_ct_CC
710CPPFLAGS
711LDFLAGS
712CFLAGS
713CC
714AM_BACKSLASH
715AM_DEFAULT_VERBOSITY
716AM_DEFAULT_V
717AM_V
81ecdfbb
RW
718am__untar
719am__tar
720AMTAR
721am__leading_dot
722SET_MAKE
723AWK
724mkdir_p
725MKDIR_P
726INSTALL_STRIP_PROGRAM
727STRIP
728install_sh
729MAKEINFO
730AUTOHEADER
731AUTOMAKE
732AUTOCONF
733ACLOCAL
734VERSION
735PACKAGE
736CYGPATH_W
737am__isrc
738INSTALL_DATA
739INSTALL_SCRIPT
740INSTALL_PROGRAM
81ecdfbb
RW
741target_os
742target_vendor
743target_cpu
744target
745host_os
746host_vendor
747host_cpu
748host
749build_os
750build_vendor
751build_cpu
752build
753target_alias
754host_alias
755build_alias
756LIBS
757ECHO_T
758ECHO_N
759ECHO_C
760DEFS
761mandir
762localedir
763libdir
764psdir
765pdfdir
766dvidir
767htmldir
768infodir
769docdir
770oldincludedir
771includedir
772localstatedir
773sharedstatedir
774sysconfdir
775datadir
776datarootdir
777libexecdir
778sbindir
779bindir
780program_transform_name
781prefix
782exec_prefix
783PACKAGE_URL
784PACKAGE_BUGREPORT
785PACKAGE_STRING
786PACKAGE_VERSION
787PACKAGE_TARNAME
788PACKAGE_NAME
789PATH_SEPARATOR
790SHELL'
979273e3 791ac_subst_files=''
81ecdfbb
RW
792ac_user_opts='
793enable_option_checking
d0ac1c44 794enable_silent_rules
ab2af25e 795enable_dependency_tracking
81ecdfbb
RW
796enable_shared
797enable_static
798with_pic
799enable_fast_install
800with_gnu_ld
801enable_libtool_lock
802enable_targets
803enable_werror
804enable_build_warnings
805enable_maintainer_mode
806enable_install_libbfd
807enable_nls
808enable_cgen_maint
809'
810 ac_precious_vars='build_alias
811host_alias
812target_alias
813CC
814CFLAGS
815LDFLAGS
816LIBS
817CPPFLAGS
818CPP'
819
252b5132
RH
820
821# Initialize some variables set by options.
979273e3
NN
822ac_init_help=
823ac_init_version=false
81ecdfbb
RW
824ac_unrecognized_opts=
825ac_unrecognized_sep=
252b5132
RH
826# The variables have the same names as the options, with
827# dashes changed to underlines.
979273e3 828cache_file=/dev/null
252b5132 829exec_prefix=NONE
252b5132 830no_create=
252b5132
RH
831no_recursion=
832prefix=NONE
833program_prefix=NONE
834program_suffix=NONE
835program_transform_name=s,x,x,
836silent=
837site=
838srcdir=
252b5132
RH
839verbose=
840x_includes=NONE
841x_libraries=NONE
979273e3
NN
842
843# Installation directory options.
844# These are left unexpanded so users can "make install exec_prefix=/foo"
845# and all the variables that are supposed to be based on exec_prefix
846# by default will actually change.
847# Use braces instead of parens because sh, perl, etc. also accept them.
81ecdfbb 848# (The list follows the same order as the GNU Coding Standards.)
252b5132
RH
849bindir='${exec_prefix}/bin'
850sbindir='${exec_prefix}/sbin'
851libexecdir='${exec_prefix}/libexec'
81ecdfbb
RW
852datarootdir='${prefix}/share'
853datadir='${datarootdir}'
252b5132
RH
854sysconfdir='${prefix}/etc'
855sharedstatedir='${prefix}/com'
856localstatedir='${prefix}/var'
252b5132
RH
857includedir='${prefix}/include'
858oldincludedir='/usr/include'
2e98a7bd 859docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
81ecdfbb
RW
860infodir='${datarootdir}/info'
861htmldir='${docdir}'
862dvidir='${docdir}'
863pdfdir='${docdir}'
864psdir='${docdir}'
865libdir='${exec_prefix}/lib'
866localedir='${datarootdir}/locale'
867mandir='${datarootdir}/man'
252b5132 868
252b5132 869ac_prev=
81ecdfbb 870ac_dashdash=
252b5132
RH
871for ac_option
872do
252b5132
RH
873 # If the previous option needs an argument, assign it.
874 if test -n "$ac_prev"; then
81ecdfbb 875 eval $ac_prev=\$ac_option
252b5132
RH
876 ac_prev=
877 continue
878 fi
879
81ecdfbb 880 case $ac_option in
d0ac1c44
SM
881 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
882 *=) ac_optarg= ;;
883 *) ac_optarg=yes ;;
81ecdfbb 884 esac
252b5132
RH
885
886 # Accept the important Cygnus configure options, so we can diagnose typos.
887
81ecdfbb
RW
888 case $ac_dashdash$ac_option in
889 --)
890 ac_dashdash=yes ;;
252b5132
RH
891
892 -bindir | --bindir | --bindi | --bind | --bin | --bi)
893 ac_prev=bindir ;;
894 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
979273e3 895 bindir=$ac_optarg ;;
252b5132
RH
896
897 -build | --build | --buil | --bui | --bu)
979273e3 898 ac_prev=build_alias ;;
252b5132 899 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
979273e3 900 build_alias=$ac_optarg ;;
252b5132
RH
901
902 -cache-file | --cache-file | --cache-fil | --cache-fi \
903 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
904 ac_prev=cache_file ;;
905 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
906 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
979273e3
NN
907 cache_file=$ac_optarg ;;
908
909 --config-cache | -C)
910 cache_file=config.cache ;;
252b5132 911
81ecdfbb 912 -datadir | --datadir | --datadi | --datad)
252b5132 913 ac_prev=datadir ;;
81ecdfbb 914 -datadir=* | --datadir=* | --datadi=* | --datad=*)
979273e3 915 datadir=$ac_optarg ;;
252b5132 916
81ecdfbb
RW
917 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
918 | --dataroo | --dataro | --datar)
919 ac_prev=datarootdir ;;
920 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
921 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
922 datarootdir=$ac_optarg ;;
923
252b5132 924 -disable-* | --disable-*)
81ecdfbb 925 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
252b5132 926 # Reject names that are not valid shell variable names.
81ecdfbb 927 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 928 as_fn_error $? "invalid feature name: $ac_useropt"
81ecdfbb
RW
929 ac_useropt_orig=$ac_useropt
930 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
931 case $ac_user_opts in
932 *"
933"enable_$ac_useropt"
934"*) ;;
935 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
936 ac_unrecognized_sep=', ';;
937 esac
938 eval enable_$ac_useropt=no ;;
939
940 -docdir | --docdir | --docdi | --doc | --do)
941 ac_prev=docdir ;;
942 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
943 docdir=$ac_optarg ;;
944
945 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
946 ac_prev=dvidir ;;
947 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
948 dvidir=$ac_optarg ;;
252b5132
RH
949
950 -enable-* | --enable-*)
81ecdfbb 951 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
252b5132 952 # Reject names that are not valid shell variable names.
81ecdfbb 953 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 954 as_fn_error $? "invalid feature name: $ac_useropt"
81ecdfbb
RW
955 ac_useropt_orig=$ac_useropt
956 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
957 case $ac_user_opts in
958 *"
959"enable_$ac_useropt"
960"*) ;;
961 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
962 ac_unrecognized_sep=', ';;
252b5132 963 esac
81ecdfbb 964 eval enable_$ac_useropt=\$ac_optarg ;;
252b5132
RH
965
966 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
967 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
968 | --exec | --exe | --ex)
969 ac_prev=exec_prefix ;;
970 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
971 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
972 | --exec=* | --exe=* | --ex=*)
979273e3 973 exec_prefix=$ac_optarg ;;
252b5132
RH
974
975 -gas | --gas | --ga | --g)
976 # Obsolete; use --with-gas.
977 with_gas=yes ;;
978
979273e3
NN
979 -help | --help | --hel | --he | -h)
980 ac_init_help=long ;;
981 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
982 ac_init_help=recursive ;;
983 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
984 ac_init_help=short ;;
252b5132
RH
985
986 -host | --host | --hos | --ho)
979273e3 987 ac_prev=host_alias ;;
252b5132 988 -host=* | --host=* | --hos=* | --ho=*)
979273e3 989 host_alias=$ac_optarg ;;
252b5132 990
81ecdfbb
RW
991 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
992 ac_prev=htmldir ;;
993 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
994 | --ht=*)
995 htmldir=$ac_optarg ;;
996
252b5132
RH
997 -includedir | --includedir | --includedi | --included | --include \
998 | --includ | --inclu | --incl | --inc)
999 ac_prev=includedir ;;
1000 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1001 | --includ=* | --inclu=* | --incl=* | --inc=*)
979273e3 1002 includedir=$ac_optarg ;;
252b5132
RH
1003
1004 -infodir | --infodir | --infodi | --infod | --info | --inf)
1005 ac_prev=infodir ;;
1006 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
979273e3 1007 infodir=$ac_optarg ;;
252b5132
RH
1008
1009 -libdir | --libdir | --libdi | --libd)
1010 ac_prev=libdir ;;
1011 -libdir=* | --libdir=* | --libdi=* | --libd=*)
979273e3 1012 libdir=$ac_optarg ;;
252b5132
RH
1013
1014 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1015 | --libexe | --libex | --libe)
1016 ac_prev=libexecdir ;;
1017 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1018 | --libexe=* | --libex=* | --libe=*)
979273e3 1019 libexecdir=$ac_optarg ;;
252b5132 1020
81ecdfbb
RW
1021 -localedir | --localedir | --localedi | --localed | --locale)
1022 ac_prev=localedir ;;
1023 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1024 localedir=$ac_optarg ;;
1025
252b5132 1026 -localstatedir | --localstatedir | --localstatedi | --localstated \
81ecdfbb 1027 | --localstate | --localstat | --localsta | --localst | --locals)
252b5132
RH
1028 ac_prev=localstatedir ;;
1029 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
81ecdfbb 1030 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
979273e3 1031 localstatedir=$ac_optarg ;;
252b5132
RH
1032
1033 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1034 ac_prev=mandir ;;
1035 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
979273e3 1036 mandir=$ac_optarg ;;
252b5132
RH
1037
1038 -nfp | --nfp | --nf)
1039 # Obsolete; use --without-fp.
1040 with_fp=no ;;
1041
1042 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
979273e3 1043 | --no-cr | --no-c | -n)
252b5132
RH
1044 no_create=yes ;;
1045
1046 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1047 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1048 no_recursion=yes ;;
1049
1050 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1051 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1052 | --oldin | --oldi | --old | --ol | --o)
1053 ac_prev=oldincludedir ;;
1054 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1055 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1056 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
979273e3 1057 oldincludedir=$ac_optarg ;;
252b5132
RH
1058
1059 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1060 ac_prev=prefix ;;
1061 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
979273e3 1062 prefix=$ac_optarg ;;
252b5132
RH
1063
1064 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1065 | --program-pre | --program-pr | --program-p)
1066 ac_prev=program_prefix ;;
1067 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1068 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
979273e3 1069 program_prefix=$ac_optarg ;;
252b5132
RH
1070
1071 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1072 | --program-suf | --program-su | --program-s)
1073 ac_prev=program_suffix ;;
1074 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1075 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
979273e3 1076 program_suffix=$ac_optarg ;;
252b5132
RH
1077
1078 -program-transform-name | --program-transform-name \
1079 | --program-transform-nam | --program-transform-na \
1080 | --program-transform-n | --program-transform- \
1081 | --program-transform | --program-transfor \
1082 | --program-transfo | --program-transf \
1083 | --program-trans | --program-tran \
1084 | --progr-tra | --program-tr | --program-t)
1085 ac_prev=program_transform_name ;;
1086 -program-transform-name=* | --program-transform-name=* \
1087 | --program-transform-nam=* | --program-transform-na=* \
1088 | --program-transform-n=* | --program-transform-=* \
1089 | --program-transform=* | --program-transfor=* \
1090 | --program-transfo=* | --program-transf=* \
1091 | --program-trans=* | --program-tran=* \
1092 | --progr-tra=* | --program-tr=* | --program-t=*)
979273e3 1093 program_transform_name=$ac_optarg ;;
252b5132 1094
81ecdfbb
RW
1095 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1096 ac_prev=pdfdir ;;
1097 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1098 pdfdir=$ac_optarg ;;
1099
1100 -psdir | --psdir | --psdi | --psd | --ps)
1101 ac_prev=psdir ;;
1102 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1103 psdir=$ac_optarg ;;
1104
252b5132
RH
1105 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1106 | -silent | --silent | --silen | --sile | --sil)
1107 silent=yes ;;
1108
1109 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1110 ac_prev=sbindir ;;
1111 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1112 | --sbi=* | --sb=*)
979273e3 1113 sbindir=$ac_optarg ;;
252b5132
RH
1114
1115 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1116 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1117 | --sharedst | --shareds | --shared | --share | --shar \
1118 | --sha | --sh)
1119 ac_prev=sharedstatedir ;;
1120 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1121 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1122 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1123 | --sha=* | --sh=*)
979273e3 1124 sharedstatedir=$ac_optarg ;;
252b5132
RH
1125
1126 -site | --site | --sit)
1127 ac_prev=site ;;
1128 -site=* | --site=* | --sit=*)
979273e3 1129 site=$ac_optarg ;;
1fe1f39c 1130
252b5132
RH
1131 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1132 ac_prev=srcdir ;;
1133 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
979273e3 1134 srcdir=$ac_optarg ;;
252b5132
RH
1135
1136 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1137 | --syscon | --sysco | --sysc | --sys | --sy)
1138 ac_prev=sysconfdir ;;
1139 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1140 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
979273e3 1141 sysconfdir=$ac_optarg ;;
252b5132
RH
1142
1143 -target | --target | --targe | --targ | --tar | --ta | --t)
979273e3 1144 ac_prev=target_alias ;;
252b5132 1145 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
979273e3 1146 target_alias=$ac_optarg ;;
252b5132
RH
1147
1148 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1149 verbose=yes ;;
1150
979273e3
NN
1151 -version | --version | --versio | --versi | --vers | -V)
1152 ac_init_version=: ;;
252b5132
RH
1153
1154 -with-* | --with-*)
81ecdfbb 1155 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
252b5132 1156 # Reject names that are not valid shell variable names.
81ecdfbb 1157 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 1158 as_fn_error $? "invalid package name: $ac_useropt"
81ecdfbb
RW
1159 ac_useropt_orig=$ac_useropt
1160 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1161 case $ac_user_opts in
1162 *"
1163"with_$ac_useropt"
1164"*) ;;
1165 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1166 ac_unrecognized_sep=', ';;
252b5132 1167 esac
81ecdfbb 1168 eval with_$ac_useropt=\$ac_optarg ;;
252b5132
RH
1169
1170 -without-* | --without-*)
81ecdfbb 1171 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
252b5132 1172 # Reject names that are not valid shell variable names.
81ecdfbb 1173 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 1174 as_fn_error $? "invalid package name: $ac_useropt"
81ecdfbb
RW
1175 ac_useropt_orig=$ac_useropt
1176 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1177 case $ac_user_opts in
1178 *"
1179"with_$ac_useropt"
1180"*) ;;
1181 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1182 ac_unrecognized_sep=', ';;
1183 esac
1184 eval with_$ac_useropt=no ;;
252b5132
RH
1185
1186 --x)
1187 # Obsolete; use --with-x.
1188 with_x=yes ;;
1189
1190 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1191 | --x-incl | --x-inc | --x-in | --x-i)
1192 ac_prev=x_includes ;;
1193 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1194 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
979273e3 1195 x_includes=$ac_optarg ;;
252b5132
RH
1196
1197 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1198 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1199 ac_prev=x_libraries ;;
1200 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1201 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
979273e3 1202 x_libraries=$ac_optarg ;;
252b5132 1203
d0ac1c44
SM
1204 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1205Try \`$0 --help' for more information"
252b5132
RH
1206 ;;
1207
979273e3
NN
1208 *=*)
1209 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1210 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1211 case $ac_envvar in #(
1212 '' | [0-9]* | *[!_$as_cr_alnum]* )
d0ac1c44 1213 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
81ecdfbb
RW
1214 esac
1215 eval $ac_envvar=\$ac_optarg
979273e3
NN
1216 export $ac_envvar ;;
1217
252b5132 1218 *)
979273e3 1219 # FIXME: should be removed in autoconf 3.0.
81ecdfbb 1220 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
979273e3 1221 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
81ecdfbb 1222 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
d0ac1c44 1223 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
252b5132
RH
1224 ;;
1225
1226 esac
1227done
1228
1229if test -n "$ac_prev"; then
979273e3 1230 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
d0ac1c44 1231 as_fn_error $? "missing argument to $ac_option"
252b5132 1232fi
252b5132 1233
81ecdfbb
RW
1234if test -n "$ac_unrecognized_opts"; then
1235 case $enable_option_checking in
1236 no) ;;
d0ac1c44 1237 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
81ecdfbb 1238 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
979273e3 1239 esac
81ecdfbb 1240fi
252b5132 1241
81ecdfbb
RW
1242# Check all directory arguments for consistency.
1243for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1244 datadir sysconfdir sharedstatedir localstatedir includedir \
1245 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
e0b2a78c 1246 libdir localedir mandir
252b5132 1247do
81ecdfbb
RW
1248 eval ac_val=\$$ac_var
1249 # Remove trailing slashes.
1250 case $ac_val in
1251 */ )
1252 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1253 eval $ac_var=\$ac_val;;
1254 esac
1255 # Be sure to have absolute directory names.
979273e3 1256 case $ac_val in
81ecdfbb
RW
1257 [\\/$]* | ?:[\\/]* ) continue;;
1258 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
252b5132 1259 esac
d0ac1c44 1260 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
252b5132
RH
1261done
1262
979273e3
NN
1263# There might be people who depend on the old broken behavior: `$host'
1264# used to hold the argument of --host etc.
1265# FIXME: To remove some day.
1266build=$build_alias
1267host=$host_alias
1268target=$target_alias
1269
1270# FIXME: To remove some day.
1271if test "x$host_alias" != x; then
1272 if test "x$build_alias" = x; then
1273 cross_compiling=maybe
979273e3
NN
1274 elif test "x$build_alias" != "x$host_alias"; then
1275 cross_compiling=yes
1276 fi
1277fi
252b5132 1278
979273e3
NN
1279ac_tool_prefix=
1280test -n "$host_alias" && ac_tool_prefix=$host_alias-
1281
1282test "$silent" = yes && exec 6>/dev/null
252b5132 1283
252b5132 1284
81ecdfbb
RW
1285ac_pwd=`pwd` && test -n "$ac_pwd" &&
1286ac_ls_di=`ls -di .` &&
1287ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
d0ac1c44 1288 as_fn_error $? "working directory cannot be determined"
81ecdfbb 1289test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
d0ac1c44 1290 as_fn_error $? "pwd does not report name of working directory"
81ecdfbb
RW
1291
1292
252b5132
RH
1293# Find the source files, if location was not specified.
1294if test -z "$srcdir"; then
1295 ac_srcdir_defaulted=yes
81ecdfbb
RW
1296 # Try the directory containing this script, then the parent directory.
1297 ac_confdir=`$as_dirname -- "$as_myself" ||
1298$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1299 X"$as_myself" : 'X\(//\)[^/]' \| \
1300 X"$as_myself" : 'X\(//\)$' \| \
1301 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1302$as_echo X"$as_myself" |
1303 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1304 s//\1/
1305 q
1306 }
1307 /^X\(\/\/\)[^/].*/{
1308 s//\1/
1309 q
1310 }
1311 /^X\(\/\/\)$/{
1312 s//\1/
1313 q
1314 }
1315 /^X\(\/\).*/{
1316 s//\1/
1317 q
1318 }
1319 s/.*/./; q'`
252b5132 1320 srcdir=$ac_confdir
81ecdfbb 1321 if test ! -r "$srcdir/$ac_unique_file"; then
252b5132
RH
1322 srcdir=..
1323 fi
1324else
1325 ac_srcdir_defaulted=no
1326fi
81ecdfbb
RW
1327if test ! -r "$srcdir/$ac_unique_file"; then
1328 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
d0ac1c44 1329 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
81ecdfbb
RW
1330fi
1331ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1332ac_abs_confdir=`(
d0ac1c44 1333 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
81ecdfbb
RW
1334 pwd)`
1335# When building in place, set srcdir=.
1336if test "$ac_abs_confdir" = "$ac_pwd"; then
1337 srcdir=.
1338fi
1339# Remove unnecessary trailing slashes from srcdir.
1340# Double slashes in file names in object file debugging info
1341# mess up M-x gdb in Emacs.
1342case $srcdir in
1343*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1344esac
1345for ac_var in $ac_precious_vars; do
1346 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1347 eval ac_env_${ac_var}_value=\$${ac_var}
1348 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1349 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1350done
252b5132 1351
979273e3
NN
1352#
1353# Report the --help message.
1354#
1355if test "$ac_init_help" = "long"; then
1356 # Omit some internal or obsolete options to make the list less imposing.
1357 # This message is too long to be a string in the A/UX 3.1 sh.
1358 cat <<_ACEOF
573fe3fb 1359\`configure' configures opcodes 2.36.50 to adapt to many kinds of systems.
252b5132 1360
979273e3 1361Usage: $0 [OPTION]... [VAR=VALUE]...
252b5132 1362
979273e3
NN
1363To assign environment variables (e.g., CC, CFLAGS...), specify them as
1364VAR=VALUE. See below for descriptions of some of the useful variables.
252b5132 1365
979273e3 1366Defaults for the options are specified in brackets.
ac48eca1 1367
979273e3
NN
1368Configuration:
1369 -h, --help display this help and exit
1370 --help=short display options specific to this package
1371 --help=recursive display the short help of all the included packages
1372 -V, --version display version information and exit
d0ac1c44 1373 -q, --quiet, --silent do not print \`checking ...' messages
979273e3
NN
1374 --cache-file=FILE cache test results in FILE [disabled]
1375 -C, --config-cache alias for \`--cache-file=config.cache'
1376 -n, --no-create do not create output files
1377 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1378
979273e3
NN
1379Installation directories:
1380 --prefix=PREFIX install architecture-independent files in PREFIX
81ecdfbb 1381 [$ac_default_prefix]
979273e3 1382 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
81ecdfbb 1383 [PREFIX]
ac48eca1 1384
979273e3
NN
1385By default, \`make install' will install all the files in
1386\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1387an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1388for instance \`--prefix=\$HOME'.
ac48eca1 1389
979273e3 1390For better control, use the options below.
ac48eca1 1391
979273e3 1392Fine tuning of the installation directories:
81ecdfbb
RW
1393 --bindir=DIR user executables [EPREFIX/bin]
1394 --sbindir=DIR system admin executables [EPREFIX/sbin]
1395 --libexecdir=DIR program executables [EPREFIX/libexec]
1396 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1397 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1398 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1399 --libdir=DIR object code libraries [EPREFIX/lib]
1400 --includedir=DIR C header files [PREFIX/include]
1401 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1402 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1403 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1404 --infodir=DIR info documentation [DATAROOTDIR/info]
1405 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1406 --mandir=DIR man documentation [DATAROOTDIR/man]
2e98a7bd 1407 --docdir=DIR documentation root [DATAROOTDIR/doc/opcodes]
81ecdfbb
RW
1408 --htmldir=DIR html documentation [DOCDIR]
1409 --dvidir=DIR dvi documentation [DOCDIR]
1410 --pdfdir=DIR pdf documentation [DOCDIR]
1411 --psdir=DIR ps documentation [DOCDIR]
979273e3 1412_ACEOF
ac48eca1 1413
979273e3 1414 cat <<\_ACEOF
252b5132 1415
979273e3
NN
1416Program names:
1417 --program-prefix=PREFIX prepend PREFIX to installed program names
1418 --program-suffix=SUFFIX append SUFFIX to installed program names
1419 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
252b5132 1420
979273e3
NN
1421System types:
1422 --build=BUILD configure for building on BUILD [guessed]
1423 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1424 --target=TARGET configure for building compilers for TARGET [HOST]
1425_ACEOF
252b5132 1426fi
252b5132 1427
979273e3 1428if test -n "$ac_init_help"; then
2e98a7bd 1429 case $ac_init_help in
573fe3fb 1430 short | recursive ) echo "Configuration of opcodes 2.36.50:";;
2e98a7bd 1431 esac
979273e3 1432 cat <<\_ACEOF
252b5132 1433
979273e3 1434Optional Features:
81ecdfbb 1435 --disable-option-checking ignore unrecognized --enable/--with options
979273e3
NN
1436 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1437 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
ab2af25e
AM
1438 --enable-silent-rules less verbose build output (undo: "make V=1")
1439 --disable-silent-rules verbose build output (undo: "make V=0")
d0ac1c44
SM
1440 --enable-dependency-tracking
1441 do not reject slow dependency extractors
1442 --disable-dependency-tracking
1443 speeds up one-time build
81ecdfbb
RW
1444 --enable-shared[=PKGS] build shared libraries [default=no]
1445 --enable-static[=PKGS] build static libraries [default=yes]
d7040cdb
SE
1446 --enable-fast-install[=PKGS]
1447 optimize for fast installation [default=yes]
979273e3
NN
1448 --disable-libtool-lock avoid locking (might break parallel builds)
1449 --enable-targets alternative target configurations
241a6c40
AM
1450 --enable-werror treat compile warnings as errors
1451 --enable-build-warnings enable build-time compiler warnings
d0ac1c44
SM
1452 --enable-maintainer-mode
1453 enable make rules and dependencies not useful (and
1454 sometimes confusing) to the casual installer
979273e3
NN
1455 --enable-install-libbfd controls installation of libbfd and related headers
1456 --disable-nls do not use Native Language Support
1457 --enable-cgen-maint=dir build cgen generated files
1458
1459Optional Packages:
1460 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1461 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
d7040cdb
SE
1462 --with-pic try to use only PIC/non-PIC objects [default=use
1463 both]
1464 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
252b5132 1465
979273e3
NN
1466Some influential environment variables:
1467 CC C compiler command
1468 CFLAGS C compiler flags
1469 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1470 nonstandard directory <lib dir>
81ecdfbb 1471 LIBS libraries to pass to the linker, e.g. -l<library>
d0ac1c44 1472 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
81ecdfbb 1473 you have headers in a nonstandard directory <include dir>
979273e3 1474 CPP C preprocessor
a2d91340 1475
979273e3
NN
1476Use these variables to override the choices made by `configure' or to help
1477it to find libraries and programs with nonstandard names/locations.
1478
81ecdfbb 1479Report bugs to the package provider.
979273e3 1480_ACEOF
81ecdfbb 1481ac_status=$?
a2d91340
AC
1482fi
1483
979273e3
NN
1484if test "$ac_init_help" = "recursive"; then
1485 # If there are subdirs, report their specific --help.
979273e3 1486 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
81ecdfbb
RW
1487 test -d "$ac_dir" ||
1488 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1489 continue
979273e3
NN
1490 ac_builddir=.
1491
81ecdfbb
RW
1492case "$ac_dir" in
1493.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1494*)
1495 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1496 # A ".." for each directory in $ac_dir_suffix.
1497 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1498 case $ac_top_builddir_sub in
1499 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1500 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1501 esac ;;
1502esac
1503ac_abs_top_builddir=$ac_pwd
1504ac_abs_builddir=$ac_pwd$ac_dir_suffix
1505# for backward compatibility:
1506ac_top_builddir=$ac_top_build_prefix
a2d91340 1507
979273e3 1508case $srcdir in
81ecdfbb 1509 .) # We are building in place.
979273e3 1510 ac_srcdir=.
81ecdfbb
RW
1511 ac_top_srcdir=$ac_top_builddir_sub
1512 ac_abs_top_srcdir=$ac_pwd ;;
1513 [\\/]* | ?:[\\/]* ) # Absolute name.
979273e3 1514 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
1515 ac_top_srcdir=$srcdir
1516 ac_abs_top_srcdir=$srcdir ;;
1517 *) # Relative name.
1518 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1519 ac_top_srcdir=$ac_top_build_prefix$srcdir
1520 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
a2d91340 1521esac
81ecdfbb
RW
1522ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1523
1524 cd "$ac_dir" || { ac_status=$?; continue; }
1525 # Check for guested configure.
1526 if test -f "$ac_srcdir/configure.gnu"; then
1527 echo &&
1528 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1529 elif test -f "$ac_srcdir/configure"; then
1530 echo &&
1531 $SHELL "$ac_srcdir/configure" --help=recursive
979273e3 1532 else
81ecdfbb
RW
1533 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1534 fi || ac_status=$?
1535 cd "$ac_pwd" || { ac_status=$?; break; }
979273e3
NN
1536 done
1537fi
a2d91340 1538
81ecdfbb 1539test -n "$ac_init_help" && exit $ac_status
979273e3
NN
1540if $ac_init_version; then
1541 cat <<\_ACEOF
573fe3fb 1542opcodes configure 2.36.50
d0ac1c44 1543generated by GNU Autoconf 2.69
252b5132 1544
d0ac1c44 1545Copyright (C) 2012 Free Software Foundation, Inc.
979273e3
NN
1546This configure script is free software; the Free Software Foundation
1547gives unlimited permission to copy, distribute and modify it.
1548_ACEOF
81ecdfbb 1549 exit
979273e3 1550fi
2c73f9d8 1551
81ecdfbb
RW
1552## ------------------------ ##
1553## Autoconf initialization. ##
1554## ------------------------ ##
252b5132 1555
81ecdfbb
RW
1556# ac_fn_c_try_compile LINENO
1557# --------------------------
1558# Try to compile conftest.$ac_ext, and return whether this succeeded.
1559ac_fn_c_try_compile ()
1560{
1561 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1562 rm -f conftest.$ac_objext
1563 if { { ac_try="$ac_compile"
1564case "(($ac_try" in
1565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1566 *) ac_try_echo=$ac_try;;
1567esac
1568eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1569$as_echo "$ac_try_echo"; } >&5
1570 (eval "$ac_compile") 2>conftest.err
1571 ac_status=$?
1572 if test -s conftest.err; then
1573 grep -v '^ *+' conftest.err >conftest.er1
1574 cat conftest.er1 >&5
1575 mv -f conftest.er1 conftest.err
1576 fi
1577 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1578 test $ac_status = 0; } && {
1579 test -z "$ac_c_werror_flag" ||
1580 test ! -s conftest.err
1581 } && test -s conftest.$ac_objext; then :
1582 ac_retval=0
1583else
1584 $as_echo "$as_me: failed program was:" >&5
1585sed 's/^/| /' conftest.$ac_ext >&5
252b5132 1586
81ecdfbb
RW
1587 ac_retval=1
1588fi
d0ac1c44
SM
1589 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1590 as_fn_set_status $ac_retval
81ecdfbb
RW
1591
1592} # ac_fn_c_try_compile
1593
81ecdfbb
RW
1594# ac_fn_c_try_cpp LINENO
1595# ----------------------
1596# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1597ac_fn_c_try_cpp ()
1598{
1599 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1600 if { { ac_try="$ac_cpp conftest.$ac_ext"
1601case "(($ac_try" in
1602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1603 *) ac_try_echo=$ac_try;;
1604esac
1605eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1606$as_echo "$ac_try_echo"; } >&5
1607 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1608 ac_status=$?
1609 if test -s conftest.err; then
1610 grep -v '^ *+' conftest.err >conftest.er1
1611 cat conftest.er1 >&5
1612 mv -f conftest.er1 conftest.err
1613 fi
1614 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
d0ac1c44 1615 test $ac_status = 0; } > conftest.i && {
81ecdfbb
RW
1616 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1617 test ! -s conftest.err
1618 }; then :
1619 ac_retval=0
1620else
1621 $as_echo "$as_me: failed program was:" >&5
1622sed 's/^/| /' conftest.$ac_ext >&5
1623
1624 ac_retval=1
1625fi
d0ac1c44
SM
1626 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1627 as_fn_set_status $ac_retval
81ecdfbb
RW
1628
1629} # ac_fn_c_try_cpp
1630
1631# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1632# -------------------------------------------------------
1633# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1634# the include files in INCLUDES and setting the cache variable VAR
1635# accordingly.
1636ac_fn_c_check_header_mongrel ()
1637{
1638 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
d0ac1c44 1639 if eval \${$3+:} false; then :
81ecdfbb
RW
1640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1641$as_echo_n "checking for $2... " >&6; }
d0ac1c44 1642if eval \${$3+:} false; then :
81ecdfbb
RW
1643 $as_echo_n "(cached) " >&6
1644fi
1645eval ac_res=\$$3
1646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1647$as_echo "$ac_res" >&6; }
1648else
1649 # Is the header compilable?
1650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1651$as_echo_n "checking $2 usability... " >&6; }
1652cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1653/* end confdefs.h. */
1654$4
1655#include <$2>
1656_ACEOF
1657if ac_fn_c_try_compile "$LINENO"; then :
1658 ac_header_compiler=yes
1659else
1660 ac_header_compiler=no
1661fi
1662rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1664$as_echo "$ac_header_compiler" >&6; }
1665
1666# Is the header present?
1667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1668$as_echo_n "checking $2 presence... " >&6; }
1669cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1670/* end confdefs.h. */
1671#include <$2>
1672_ACEOF
1673if ac_fn_c_try_cpp "$LINENO"; then :
1674 ac_header_preproc=yes
1675else
1676 ac_header_preproc=no
1677fi
d0ac1c44 1678rm -f conftest.err conftest.i conftest.$ac_ext
81ecdfbb
RW
1679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1680$as_echo "$ac_header_preproc" >&6; }
1681
1682# So? What about this header?
1683case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1684 yes:no: )
1685 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1686$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1687 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1688$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1689 ;;
1690 no:yes:* )
1691 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1692$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1693 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1694$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1695 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1696$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1697 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1698$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1699 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1700$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1701 ;;
1702esac
1703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1704$as_echo_n "checking for $2... " >&6; }
d0ac1c44 1705if eval \${$3+:} false; then :
81ecdfbb
RW
1706 $as_echo_n "(cached) " >&6
1707else
1708 eval "$3=\$ac_header_compiler"
1709fi
1710eval ac_res=\$$3
1711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1712$as_echo "$ac_res" >&6; }
1713fi
d0ac1c44 1714 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
81ecdfbb
RW
1715
1716} # ac_fn_c_check_header_mongrel
1717
1718# ac_fn_c_try_run LINENO
1719# ----------------------
1720# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1721# that executables *can* be run.
1722ac_fn_c_try_run ()
1723{
1724 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1725 if { { ac_try="$ac_link"
1726case "(($ac_try" in
1727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1728 *) ac_try_echo=$ac_try;;
1729esac
1730eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1731$as_echo "$ac_try_echo"; } >&5
1732 (eval "$ac_link") 2>&5
1733 ac_status=$?
1734 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1735 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1736 { { case "(($ac_try" in
1737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1738 *) ac_try_echo=$ac_try;;
1739esac
1740eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1741$as_echo "$ac_try_echo"; } >&5
1742 (eval "$ac_try") 2>&5
1743 ac_status=$?
1744 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1745 test $ac_status = 0; }; }; then :
1746 ac_retval=0
1747else
1748 $as_echo "$as_me: program exited with status $ac_status" >&5
1749 $as_echo "$as_me: failed program was:" >&5
1750sed 's/^/| /' conftest.$ac_ext >&5
1751
1752 ac_retval=$ac_status
1753fi
1754 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
d0ac1c44
SM
1755 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1756 as_fn_set_status $ac_retval
81ecdfbb
RW
1757
1758} # ac_fn_c_try_run
1759
1760# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1761# -------------------------------------------------------
1762# Tests whether HEADER exists and can be compiled using the include files in
1763# INCLUDES, setting the cache variable VAR accordingly.
1764ac_fn_c_check_header_compile ()
1765{
1766 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1768$as_echo_n "checking for $2... " >&6; }
d0ac1c44 1769if eval \${$3+:} false; then :
81ecdfbb
RW
1770 $as_echo_n "(cached) " >&6
1771else
1772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1773/* end confdefs.h. */
1774$4
1775#include <$2>
1776_ACEOF
1777if ac_fn_c_try_compile "$LINENO"; then :
1778 eval "$3=yes"
1779else
1780 eval "$3=no"
1781fi
1782rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1783fi
1784eval ac_res=\$$3
1785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1786$as_echo "$ac_res" >&6; }
d0ac1c44 1787 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
81ecdfbb
RW
1788
1789} # ac_fn_c_check_header_compile
1790
ab2af25e
AM
1791# ac_fn_c_try_link LINENO
1792# -----------------------
1793# Try to link conftest.$ac_ext, and return whether this succeeded.
1794ac_fn_c_try_link ()
1795{
1796 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1797 rm -f conftest.$ac_objext conftest$ac_exeext
1798 if { { ac_try="$ac_link"
1799case "(($ac_try" in
1800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1801 *) ac_try_echo=$ac_try;;
1802esac
1803eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1804$as_echo "$ac_try_echo"; } >&5
1805 (eval "$ac_link") 2>conftest.err
1806 ac_status=$?
1807 if test -s conftest.err; then
1808 grep -v '^ *+' conftest.err >conftest.er1
1809 cat conftest.er1 >&5
1810 mv -f conftest.er1 conftest.err
1811 fi
1812 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1813 test $ac_status = 0; } && {
1814 test -z "$ac_c_werror_flag" ||
1815 test ! -s conftest.err
1816 } && test -s conftest$ac_exeext && {
1817 test "$cross_compiling" = yes ||
1818 test -x conftest$ac_exeext
1819 }; then :
1820 ac_retval=0
1821else
1822 $as_echo "$as_me: failed program was:" >&5
1823sed 's/^/| /' conftest.$ac_ext >&5
1824
1825 ac_retval=1
1826fi
1827 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1828 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1829 # interfere with the next link command; also delete a directory that is
1830 # left behind by Apple's compiler. We do this before executing the actions.
1831 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1832 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1833 as_fn_set_status $ac_retval
1834
1835} # ac_fn_c_try_link
1836
81ecdfbb
RW
1837# ac_fn_c_check_func LINENO FUNC VAR
1838# ----------------------------------
1839# Tests whether FUNC exists, setting the cache variable VAR accordingly
1840ac_fn_c_check_func ()
1841{
1842 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1844$as_echo_n "checking for $2... " >&6; }
d0ac1c44 1845if eval \${$3+:} false; then :
81ecdfbb
RW
1846 $as_echo_n "(cached) " >&6
1847else
1848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1849/* end confdefs.h. */
1850/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1851 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1852#define $2 innocuous_$2
1853
1854/* System header to define __stub macros and hopefully few prototypes,
1855 which can conflict with char $2 (); below.
1856 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1857 <limits.h> exists even on freestanding compilers. */
1858
1859#ifdef __STDC__
1860# include <limits.h>
1861#else
1862# include <assert.h>
1863#endif
1864
1865#undef $2
1866
1867/* Override any GCC internal prototype to avoid an error.
1868 Use char because int might match the return type of a GCC
1869 builtin and then its argument prototype would still apply. */
1870#ifdef __cplusplus
1871extern "C"
1872#endif
1873char $2 ();
1874/* The GNU C library defines this for functions which it implements
1875 to always fail with ENOSYS. Some functions are actually named
1876 something starting with __ and the normal name is an alias. */
1877#if defined __stub_$2 || defined __stub___$2
1878choke me
1879#endif
1880
1881int
1882main ()
1883{
1884return $2 ();
1885 ;
1886 return 0;
1887}
1888_ACEOF
1889if ac_fn_c_try_link "$LINENO"; then :
1890 eval "$3=yes"
1891else
1892 eval "$3=no"
1893fi
1894rm -f core conftest.err conftest.$ac_objext \
1895 conftest$ac_exeext conftest.$ac_ext
1896fi
1897eval ac_res=\$$3
1898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1899$as_echo "$ac_res" >&6; }
d0ac1c44 1900 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
81ecdfbb
RW
1901
1902} # ac_fn_c_check_func
1903
d0ac1c44
SM
1904# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1905# ---------------------------------------------
1906# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1907# accordingly.
81ecdfbb
RW
1908ac_fn_c_check_decl ()
1909{
1910 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
360cfc9c
AM
1911 as_decl_name=`echo $2|sed 's/ *(.*//'`
1912 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1914$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
d0ac1c44 1915if eval \${$3+:} false; then :
81ecdfbb
RW
1916 $as_echo_n "(cached) " >&6
1917else
1918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1919/* end confdefs.h. */
1920$4
1921int
1922main ()
1923{
360cfc9c
AM
1924#ifndef $as_decl_name
1925#ifdef __cplusplus
1926 (void) $as_decl_use;
1927#else
1928 (void) $as_decl_name;
1929#endif
81ecdfbb
RW
1930#endif
1931
1932 ;
1933 return 0;
1934}
1935_ACEOF
1936if ac_fn_c_try_compile "$LINENO"; then :
1937 eval "$3=yes"
1938else
1939 eval "$3=no"
1940fi
1941rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1942fi
1943eval ac_res=\$$3
1944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1945$as_echo "$ac_res" >&6; }
d0ac1c44 1946 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
81ecdfbb
RW
1947
1948} # ac_fn_c_check_decl
1949cat >config.log <<_ACEOF
1950This file contains any messages produced by compilers while
1951running configure, to aid debugging if configure makes a mistake.
1952
573fe3fb 1953It was created by opcodes $as_me 2.36.50, which was
d0ac1c44 1954generated by GNU Autoconf 2.69. Invocation command line was
81ecdfbb
RW
1955
1956 $ $0 $@
1957
1958_ACEOF
1959exec 5>>config.log
1960{
1961cat <<_ASUNAME
1962## --------- ##
1963## Platform. ##
1964## --------- ##
1965
1966hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1967uname -m = `(uname -m) 2>/dev/null || echo unknown`
1968uname -r = `(uname -r) 2>/dev/null || echo unknown`
1969uname -s = `(uname -s) 2>/dev/null || echo unknown`
1970uname -v = `(uname -v) 2>/dev/null || echo unknown`
1971
1972/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1973/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
979273e3
NN
1974
1975/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1976/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1977/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
81ecdfbb 1978/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
979273e3
NN
1979/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1980/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1981/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1982
1983_ASUNAME
1984
1985as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1986for as_dir in $PATH
1987do
1988 IFS=$as_save_IFS
1989 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
1990 $as_echo "PATH: $as_dir"
1991 done
1992IFS=$as_save_IFS
252b5132 1993
979273e3 1994} >&5
75798298 1995
979273e3 1996cat >&5 <<_ACEOF
252b5132 1997
252b5132 1998
979273e3
NN
1999## ----------- ##
2000## Core tests. ##
2001## ----------- ##
2002
2003_ACEOF
2004
2005
2006# Keep a trace of the command line.
2007# Strip out --no-create and --no-recursion so they do not pile up.
2008# Strip out --silent because we don't want to record it for future runs.
2009# Also quote any args containing shell meta-characters.
2010# Make two passes to allow for proper duplicate-argument suppression.
2011ac_configure_args=
2012ac_configure_args0=
2013ac_configure_args1=
979273e3
NN
2014ac_must_keep_next=false
2015for ac_pass in 1 2
2016do
2017 for ac_arg
2018 do
2019 case $ac_arg in
2020 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2021 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2022 | -silent | --silent | --silen | --sile | --sil)
2023 continue ;;
81ecdfbb
RW
2024 *\'*)
2025 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
979273e3
NN
2026 esac
2027 case $ac_pass in
81ecdfbb 2028 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
979273e3 2029 2)
81ecdfbb 2030 as_fn_append ac_configure_args1 " '$ac_arg'"
979273e3
NN
2031 if test $ac_must_keep_next = true; then
2032 ac_must_keep_next=false # Got value, back to normal.
2033 else
2034 case $ac_arg in
2035 *=* | --config-cache | -C | -disable-* | --disable-* \
2036 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2037 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2038 | -with-* | --with-* | -without-* | --without-* | --x)
2039 case "$ac_configure_args0 " in
2040 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2041 esac
2042 ;;
2043 -* ) ac_must_keep_next=true ;;
2044 esac
2045 fi
81ecdfbb 2046 as_fn_append ac_configure_args " '$ac_arg'"
979273e3
NN
2047 ;;
2048 esac
2049 done
2050done
81ecdfbb
RW
2051{ ac_configure_args0=; unset ac_configure_args0;}
2052{ ac_configure_args1=; unset ac_configure_args1;}
979273e3
NN
2053
2054# When interrupted or exit'd, cleanup temporary files, and complete
2055# config.log. We remove comments because anyway the quotes in there
2056# would cause problems or look ugly.
81ecdfbb
RW
2057# WARNING: Use '\'' to represent an apostrophe within the trap.
2058# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
979273e3
NN
2059trap 'exit_status=$?
2060 # Save into config.log some information that might help in debugging.
2061 {
2062 echo
2063
d0ac1c44 2064 $as_echo "## ---------------- ##
979273e3 2065## Cache variables. ##
d0ac1c44 2066## ---------------- ##"
979273e3
NN
2067 echo
2068 # The following way of writing the cache mishandles newlines in values,
81ecdfbb
RW
2069(
2070 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2071 eval ac_val=\$$ac_var
2072 case $ac_val in #(
2073 *${as_nl}*)
2074 case $ac_var in #(
2075 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2076$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2077 esac
2078 case $ac_var in #(
2079 _ | IFS | as_nl) ;; #(
2080 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2081 *) { eval $ac_var=; unset $ac_var;} ;;
2082 esac ;;
2083 esac
2084 done
979273e3 2085 (set) 2>&1 |
81ecdfbb
RW
2086 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2087 *${as_nl}ac_space=\ *)
979273e3 2088 sed -n \
81ecdfbb
RW
2089 "s/'\''/'\''\\\\'\'''\''/g;
2090 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2091 ;; #(
979273e3 2092 *)
81ecdfbb 2093 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
979273e3 2094 ;;
81ecdfbb
RW
2095 esac |
2096 sort
2097)
979273e3
NN
2098 echo
2099
d0ac1c44 2100 $as_echo "## ----------------- ##
979273e3 2101## Output variables. ##
d0ac1c44 2102## ----------------- ##"
979273e3
NN
2103 echo
2104 for ac_var in $ac_subst_vars
2105 do
81ecdfbb
RW
2106 eval ac_val=\$$ac_var
2107 case $ac_val in
2108 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2109 esac
2110 $as_echo "$ac_var='\''$ac_val'\''"
979273e3
NN
2111 done | sort
2112 echo
2113
2114 if test -n "$ac_subst_files"; then
d0ac1c44 2115 $as_echo "## ------------------- ##
81ecdfbb 2116## File substitutions. ##
d0ac1c44 2117## ------------------- ##"
979273e3
NN
2118 echo
2119 for ac_var in $ac_subst_files
2120 do
81ecdfbb
RW
2121 eval ac_val=\$$ac_var
2122 case $ac_val in
2123 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2124 esac
2125 $as_echo "$ac_var='\''$ac_val'\''"
979273e3
NN
2126 done | sort
2127 echo
2128 fi
2129
2130 if test -s confdefs.h; then
d0ac1c44 2131 $as_echo "## ----------- ##
979273e3 2132## confdefs.h. ##
d0ac1c44 2133## ----------- ##"
979273e3 2134 echo
81ecdfbb 2135 cat confdefs.h
979273e3
NN
2136 echo
2137 fi
2138 test "$ac_signal" != 0 &&
81ecdfbb
RW
2139 $as_echo "$as_me: caught signal $ac_signal"
2140 $as_echo "$as_me: exit $exit_status"
979273e3 2141 } >&5
81ecdfbb
RW
2142 rm -f core *.core core.conftest.* &&
2143 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
979273e3 2144 exit $exit_status
81ecdfbb 2145' 0
979273e3 2146for ac_signal in 1 2 13 15; do
81ecdfbb 2147 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
979273e3
NN
2148done
2149ac_signal=0
2150
2151# confdefs.h avoids OS command line length limits that DEFS can exceed.
81ecdfbb
RW
2152rm -f -r conftest* confdefs.h
2153
2154$as_echo "/* confdefs.h */" > confdefs.h
979273e3
NN
2155
2156# Predefined preprocessor variables.
2157
2158cat >>confdefs.h <<_ACEOF
2159#define PACKAGE_NAME "$PACKAGE_NAME"
2160_ACEOF
2161
979273e3
NN
2162cat >>confdefs.h <<_ACEOF
2163#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2164_ACEOF
2165
979273e3
NN
2166cat >>confdefs.h <<_ACEOF
2167#define PACKAGE_VERSION "$PACKAGE_VERSION"
2168_ACEOF
2169
979273e3
NN
2170cat >>confdefs.h <<_ACEOF
2171#define PACKAGE_STRING "$PACKAGE_STRING"
2172_ACEOF
2173
979273e3
NN
2174cat >>confdefs.h <<_ACEOF
2175#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2176_ACEOF
2177
81ecdfbb
RW
2178cat >>confdefs.h <<_ACEOF
2179#define PACKAGE_URL "$PACKAGE_URL"
2180_ACEOF
2181
979273e3
NN
2182
2183# Let the site file select an alternate cache file if it wants to.
81ecdfbb
RW
2184# Prefer an explicitly selected file to automatically selected ones.
2185ac_site_file1=NONE
2186ac_site_file2=NONE
2187if test -n "$CONFIG_SITE"; then
d0ac1c44
SM
2188 # We do not want a PATH search for config.site.
2189 case $CONFIG_SITE in #((
2190 -*) ac_site_file1=./$CONFIG_SITE;;
2191 */*) ac_site_file1=$CONFIG_SITE;;
2192 *) ac_site_file1=./$CONFIG_SITE;;
2193 esac
81ecdfbb
RW
2194elif test "x$prefix" != xNONE; then
2195 ac_site_file1=$prefix/share/config.site
2196 ac_site_file2=$prefix/etc/config.site
2197else
2198 ac_site_file1=$ac_default_prefix/share/config.site
2199 ac_site_file2=$ac_default_prefix/etc/config.site
2200fi
2201for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2202do
2203 test "x$ac_site_file" = xNONE && continue
d0ac1c44 2204 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
81ecdfbb
RW
2205 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2206$as_echo "$as_me: loading site script $ac_site_file" >&6;}
979273e3 2207 sed 's/^/| /' "$ac_site_file" >&5
d0ac1c44
SM
2208 . "$ac_site_file" \
2209 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2210$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2211as_fn_error $? "failed to load site script $ac_site_file
2212See \`config.log' for more details" "$LINENO" 5; }
979273e3
NN
2213 fi
2214done
2215
2216if test -r "$cache_file"; then
d0ac1c44
SM
2217 # Some versions of bash will fail to source /dev/null (special files
2218 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2219 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
81ecdfbb
RW
2220 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2221$as_echo "$as_me: loading cache $cache_file" >&6;}
979273e3 2222 case $cache_file in
81ecdfbb
RW
2223 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2224 *) . "./$cache_file";;
979273e3
NN
2225 esac
2226 fi
2227else
81ecdfbb
RW
2228 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2229$as_echo "$as_me: creating cache $cache_file" >&6;}
979273e3
NN
2230 >$cache_file
2231fi
2232
2233# Check that the precious variables saved in the cache have kept the same
2234# value.
2235ac_cache_corrupted=false
81ecdfbb 2236for ac_var in $ac_precious_vars; do
979273e3
NN
2237 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2238 eval ac_new_set=\$ac_env_${ac_var}_set
81ecdfbb
RW
2239 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2240 eval ac_new_val=\$ac_env_${ac_var}_value
979273e3
NN
2241 case $ac_old_set,$ac_new_set in
2242 set,)
81ecdfbb
RW
2243 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2244$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
979273e3
NN
2245 ac_cache_corrupted=: ;;
2246 ,set)
81ecdfbb
RW
2247 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2248$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
979273e3
NN
2249 ac_cache_corrupted=: ;;
2250 ,);;
2251 *)
2252 if test "x$ac_old_val" != "x$ac_new_val"; then
81ecdfbb
RW
2253 # differences in whitespace do not lead to failure.
2254 ac_old_val_w=`echo x $ac_old_val`
2255 ac_new_val_w=`echo x $ac_new_val`
2256 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2257 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2258$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2259 ac_cache_corrupted=:
2260 else
2261 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2262$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2263 eval $ac_var=\$ac_old_val
2264 fi
2265 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2266$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2267 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2268$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
979273e3
NN
2269 fi;;
2270 esac
2271 # Pass precious variables to config.status.
2272 if test "$ac_new_set" = set; then
2273 case $ac_new_val in
81ecdfbb 2274 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
979273e3
NN
2275 *) ac_arg=$ac_var=$ac_new_val ;;
2276 esac
2277 case " $ac_configure_args " in
2278 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
81ecdfbb 2279 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
979273e3
NN
2280 esac
2281 fi
2282done
2283if $ac_cache_corrupted; then
81ecdfbb
RW
2284 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2285$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2286 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2287$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
d0ac1c44 2288 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
979273e3 2289fi
81ecdfbb
RW
2290## -------------------- ##
2291## Main body of script. ##
2292## -------------------- ##
979273e3
NN
2293
2294ac_ext=c
2295ac_cpp='$CPP $CPPFLAGS'
2296ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2297ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2298ac_compiler_gnu=$ac_cv_c_compiler_gnu
2299
2300
2301
979273e3
NN
2302
2303
2304
2305
2306ac_aux_dir=
81ecdfbb 2307for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
d0ac1c44
SM
2308 if test -f "$ac_dir/install-sh"; then
2309 ac_aux_dir=$ac_dir
2310 ac_install_sh="$ac_aux_dir/install-sh -c"
2311 break
2312 elif test -f "$ac_dir/install.sh"; then
2313 ac_aux_dir=$ac_dir
2314 ac_install_sh="$ac_aux_dir/install.sh -c"
2315 break
2316 elif test -f "$ac_dir/shtool"; then
2317 ac_aux_dir=$ac_dir
2318 ac_install_sh="$ac_aux_dir/shtool install -c"
2319 break
2320 fi
979273e3
NN
2321done
2322if test -z "$ac_aux_dir"; then
d0ac1c44 2323 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
979273e3 2324fi
81ecdfbb
RW
2325
2326# These three variables are undocumented and unsupported,
2327# and are intended to be withdrawn in a future Autoconf release.
2328# They can cause serious problems if a builder's source tree is in a directory
2329# whose full name contains unusual characters.
2330ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2331ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2332ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2333
979273e3
NN
2334
2335# Make sure we can run config.sub.
81ecdfbb 2336$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
d0ac1c44 2337 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
81ecdfbb
RW
2338
2339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2340$as_echo_n "checking build system type... " >&6; }
d0ac1c44 2341if ${ac_cv_build+:} false; then :
81ecdfbb
RW
2342 $as_echo_n "(cached) " >&6
2343else
2344 ac_build_alias=$build_alias
2345test "x$ac_build_alias" = x &&
2346 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2347test "x$ac_build_alias" = x &&
d0ac1c44 2348 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
81ecdfbb 2349ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
d0ac1c44 2350 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
81ecdfbb
RW
2351
2352fi
2353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2354$as_echo "$ac_cv_build" >&6; }
2355case $ac_cv_build in
2356*-*-*) ;;
d0ac1c44 2357*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
81ecdfbb 2358esac
979273e3 2359build=$ac_cv_build
81ecdfbb
RW
2360ac_save_IFS=$IFS; IFS='-'
2361set x $ac_cv_build
2362shift
2363build_cpu=$1
2364build_vendor=$2
2365shift; shift
2366# Remember, the first character of IFS is used to create $*,
2367# except with old shells:
2368build_os=$*
2369IFS=$ac_save_IFS
2370case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
979273e3
NN
2371
2372
81ecdfbb
RW
2373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2374$as_echo_n "checking host system type... " >&6; }
d0ac1c44 2375if ${ac_cv_host+:} false; then :
81ecdfbb 2376 $as_echo_n "(cached) " >&6
979273e3 2377else
81ecdfbb
RW
2378 if test "x$host_alias" = x; then
2379 ac_cv_host=$ac_cv_build
2380else
2381 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
d0ac1c44 2382 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
81ecdfbb 2383fi
979273e3
NN
2384
2385fi
81ecdfbb
RW
2386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2387$as_echo "$ac_cv_host" >&6; }
2388case $ac_cv_host in
2389*-*-*) ;;
d0ac1c44 2390*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
81ecdfbb 2391esac
979273e3 2392host=$ac_cv_host
81ecdfbb
RW
2393ac_save_IFS=$IFS; IFS='-'
2394set x $ac_cv_host
2395shift
2396host_cpu=$1
2397host_vendor=$2
2398shift; shift
2399# Remember, the first character of IFS is used to create $*,
2400# except with old shells:
2401host_os=$*
2402IFS=$ac_save_IFS
2403case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
979273e3
NN
2404
2405
81ecdfbb
RW
2406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2407$as_echo_n "checking target system type... " >&6; }
d0ac1c44 2408if ${ac_cv_target+:} false; then :
81ecdfbb
RW
2409 $as_echo_n "(cached) " >&6
2410else
2411 if test "x$target_alias" = x; then
2412 ac_cv_target=$ac_cv_host
979273e3 2413else
81ecdfbb 2414 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
d0ac1c44 2415 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
81ecdfbb 2416fi
979273e3
NN
2417
2418fi
81ecdfbb
RW
2419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2420$as_echo "$ac_cv_target" >&6; }
2421case $ac_cv_target in
2422*-*-*) ;;
d0ac1c44 2423*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
81ecdfbb 2424esac
979273e3 2425target=$ac_cv_target
81ecdfbb
RW
2426ac_save_IFS=$IFS; IFS='-'
2427set x $ac_cv_target
2428shift
2429target_cpu=$1
2430target_vendor=$2
2431shift; shift
2432# Remember, the first character of IFS is used to create $*,
2433# except with old shells:
2434target_os=$*
2435IFS=$ac_save_IFS
2436case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
979273e3
NN
2437
2438
2439# The aliases save the names the user supplied, while $host etc.
2440# will get canonicalized.
2441test -n "$target_alias" &&
2442 test "$program_prefix$program_suffix$program_transform_name" = \
2443 NONENONEs,x,x, &&
2444 program_prefix=${target_alias}-
d0ac1c44 2445
ab2af25e
AM
2446am__api_version='1.15'
2447
2448# Find a good install program. We prefer a C program (faster),
2449# so one script is as good as another. But avoid the broken or
2450# incompatible versions:
2451# SysV /etc/install, /usr/sbin/install
2452# SunOS /usr/etc/install
2453# IRIX /sbin/install
2454# AIX /bin/install
2455# AmigaOS /C/install, which installs bootblocks on floppy discs
2456# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2457# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2458# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2459# OS/2's system install, which has a completely different semantic
2460# ./install, which can be erroneously created by make from ./install.sh.
2461# Reject install programs that cannot install multiple files.
2462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2463$as_echo_n "checking for a BSD-compatible install... " >&6; }
2464if test -z "$INSTALL"; then
2465if ${ac_cv_path_install+:} false; then :
81ecdfbb 2466 $as_echo_n "(cached) " >&6
979273e3 2467else
ab2af25e 2468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
979273e3
NN
2469for as_dir in $PATH
2470do
2471 IFS=$as_save_IFS
2472 test -z "$as_dir" && as_dir=.
ab2af25e
AM
2473 # Account for people who put trailing slashes in PATH elements.
2474case $as_dir/ in #((
2475 ./ | .// | /[cC]/* | \
2476 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2477 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2478 /usr/ucb/* ) ;;
2479 *)
2480 # OSF1 and SCO ODT 3.0 have their own names for install.
2481 # Don't use installbsd from OSF since it installs stuff as root
2482 # by default.
2483 for ac_prog in ginstall scoinst install; do
2484 for ac_exec_ext in '' $ac_executable_extensions; do
2485 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2486 if test $ac_prog = install &&
2487 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2488 # AIX install. It has an incompatible calling convention.
2489 :
2490 elif test $ac_prog = install &&
2491 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2492 # program-specific install script used by HP pwplus--don't use.
2493 :
2494 else
2495 rm -rf conftest.one conftest.two conftest.dir
2496 echo one > conftest.one
2497 echo two > conftest.two
2498 mkdir conftest.dir
2499 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2500 test -s conftest.one && test -s conftest.two &&
2501 test -s conftest.dir/conftest.one &&
2502 test -s conftest.dir/conftest.two
2503 then
2504 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2505 break 3
2506 fi
2507 fi
2508 fi
2509 done
2510 done
2511 ;;
2512esac
2513
81ecdfbb
RW
2514 done
2515IFS=$as_save_IFS
979273e3 2516
ab2af25e 2517rm -rf conftest.one conftest.two conftest.dir
81ecdfbb 2518
979273e3 2519fi
ab2af25e
AM
2520 if test "${ac_cv_path_install+set}" = set; then
2521 INSTALL=$ac_cv_path_install
2522 else
2523 # As a last resort, use the slow shell script. Don't cache a
2524 # value for INSTALL within a source directory, because that will
2525 # break other packages using the cache if that directory is
2526 # removed, or if the value is a relative name.
2527 INSTALL=$ac_install_sh
252b5132
RH
2528 fi
2529fi
81ecdfbb
RW
2530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2531$as_echo "$INSTALL" >&6; }
252b5132
RH
2532
2533# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2534# It thinks the first close brace ends the variable substitution.
2535test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2536
979273e3 2537test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
252b5132
RH
2538
2539test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2540
81ecdfbb
RW
2541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2542$as_echo_n "checking whether build environment is sane... " >&6; }
81ecdfbb
RW
2543# Reject unsafe characters in $srcdir or the absolute working directory
2544# name. Accept space and tab only in the latter.
2545am_lf='
2546'
2547case `pwd` in
2548 *[\\\"\#\$\&\'\`$am_lf]*)
d0ac1c44 2549 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
81ecdfbb
RW
2550esac
2551case $srcdir in
2552 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
d0ac1c44 2553 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
81ecdfbb
RW
2554esac
2555
d0ac1c44 2556# Do 'set' in a subshell so we don't clobber the current shell's
252b5132
RH
2557# arguments. Must try -L first in case configure is actually a
2558# symlink; some systems play weird games with the mod time of symlinks
2559# (eg FreeBSD returns the mod time of the symlink's containing
2560# directory).
2561if (
d0ac1c44
SM
2562 am_has_slept=no
2563 for am_try in 1 2; do
2564 echo "timestamp, slept: $am_has_slept" > conftest.file
2565 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2566 if test "$*" = "X"; then
2567 # -L didn't work.
2568 set X `ls -t "$srcdir/configure" conftest.file`
2569 fi
2570 if test "$*" != "X $srcdir/configure conftest.file" \
2571 && test "$*" != "X conftest.file $srcdir/configure"; then
2572
2573 # If neither matched, then we have a broken ls. This can happen
2574 # if, for instance, CONFIG_SHELL is bash and it inherits a
2575 # broken ls alias from the environment. This has actually
2576 # happened. Such a system could not be considered "sane".
2577 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2578 alias in your environment" "$LINENO" 5
2579 fi
2580 if test "$2" = conftest.file || test $am_try -eq 2; then
2581 break
2582 fi
2583 # Just in case.
2584 sleep 1
2585 am_has_slept=yes
2586 done
8ae85421 2587 test "$2" = conftest.file
252b5132
RH
2588 )
2589then
2590 # Ok.
2591 :
2592else
d0ac1c44 2593 as_fn_error $? "newly created file is older than distributed files!
81ecdfbb 2594Check your system clock" "$LINENO" 5
252b5132 2595fi
81ecdfbb
RW
2596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2597$as_echo "yes" >&6; }
d0ac1c44
SM
2598# If we didn't sleep, we still need to ensure time stamps of config.status and
2599# generated files are strictly newer.
2600am_sleep_pid=
2601if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2602 ( sleep 1 ) &
2603 am_sleep_pid=$!
2604fi
2605
2606rm -f conftest.file
2607
252b5132 2608test "$program_prefix" != NONE &&
81ecdfbb 2609 program_transform_name="s&^&$program_prefix&;$program_transform_name"
252b5132
RH
2610# Use a double $ so make ignores it.
2611test "$program_suffix" != NONE &&
81ecdfbb
RW
2612 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2613# Double any \ or $.
979273e3 2614# By default was `s,x,x', remove it if useless.
81ecdfbb
RW
2615ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2616program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
979273e3 2617
ab2af25e
AM
2618# Expand $ac_aux_dir to an absolute path.
2619am_aux_dir=`cd "$ac_aux_dir" && pwd`
2620
81ecdfbb
RW
2621if test x"${MISSING+set}" != xset; then
2622 case $am_aux_dir in
2623 *\ * | *\ *)
2624 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2625 *)
2626 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2627 esac
2628fi
8ae85421 2629# Use eval to expand $SHELL
d0ac1c44
SM
2630if eval "$MISSING --is-lightweight"; then
2631 am_missing_run="$MISSING "
8ae85421
AM
2632else
2633 am_missing_run=
d0ac1c44
SM
2634 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2635$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
81ecdfbb
RW
2636fi
2637
d0ac1c44 2638if test x"${install_sh+set}" != xset; then
81ecdfbb
RW
2639 case $am_aux_dir in
2640 *\ * | *\ *)
2641 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2642 *)
2643 install_sh="\${SHELL} $am_aux_dir/install-sh"
2644 esac
2645fi
2646
d0ac1c44
SM
2647# Installed binaries are usually stripped using 'strip' when the user
2648# run "make install-strip". However 'strip' might not be the right
81ecdfbb 2649# tool to use in cross-compilation environments, therefore Automake
d0ac1c44 2650# will honor the 'STRIP' environment variable to overrule this program.
81ecdfbb
RW
2651if test "$cross_compiling" != no; then
2652 if test -n "$ac_tool_prefix"; then
2653 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2654set dummy ${ac_tool_prefix}strip; ac_word=$2
2655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2656$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 2657if ${ac_cv_prog_STRIP+:} false; then :
81ecdfbb
RW
2658 $as_echo_n "(cached) " >&6
2659else
2660 if test -n "$STRIP"; then
2661 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2662else
2663as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2664for as_dir in $PATH
2665do
2666 IFS=$as_save_IFS
2667 test -z "$as_dir" && as_dir=.
2668 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 2669 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
81ecdfbb
RW
2670 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2672 break 2
2673 fi
2674done
2675 done
2676IFS=$as_save_IFS
2677
2678fi
2679fi
2680STRIP=$ac_cv_prog_STRIP
2681if test -n "$STRIP"; then
2682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2683$as_echo "$STRIP" >&6; }
2684else
2685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2686$as_echo "no" >&6; }
2687fi
2688
2689
2690fi
2691if test -z "$ac_cv_prog_STRIP"; then
2692 ac_ct_STRIP=$STRIP
2693 # Extract the first word of "strip", so it can be a program name with args.
2694set dummy strip; ac_word=$2
2695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2696$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 2697if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
81ecdfbb
RW
2698 $as_echo_n "(cached) " >&6
2699else
2700 if test -n "$ac_ct_STRIP"; then
2701 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2702else
2703as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2704for as_dir in $PATH
2705do
2706 IFS=$as_save_IFS
2707 test -z "$as_dir" && as_dir=.
2708 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 2709 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
81ecdfbb
RW
2710 ac_cv_prog_ac_ct_STRIP="strip"
2711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2712 break 2
2713 fi
2714done
8ae85421 2715 done
81ecdfbb
RW
2716IFS=$as_save_IFS
2717
2718fi
2719fi
2720ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2721if test -n "$ac_ct_STRIP"; then
2722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2723$as_echo "$ac_ct_STRIP" >&6; }
2724else
2725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2726$as_echo "no" >&6; }
2727fi
2728
2729 if test "x$ac_ct_STRIP" = x; then
2730 STRIP=":"
2731 else
2732 case $cross_compiling:$ac_tool_warned in
2733yes:)
2734{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2735$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2736ac_tool_warned=yes ;;
2737esac
2738 STRIP=$ac_ct_STRIP
2739 fi
2740else
2741 STRIP="$ac_cv_prog_STRIP"
2742fi
2743
2744fi
2745INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2746
2747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2748$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2749if test -z "$MKDIR_P"; then
d0ac1c44 2750 if ${ac_cv_path_mkdir+:} false; then :
81ecdfbb
RW
2751 $as_echo_n "(cached) " >&6
2752else
2753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2754for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2755do
2756 IFS=$as_save_IFS
2757 test -z "$as_dir" && as_dir=.
2758 for ac_prog in mkdir gmkdir; do
2759 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 2760 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
81ecdfbb
RW
2761 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2762 'mkdir (GNU coreutils) '* | \
2763 'mkdir (coreutils) '* | \
2764 'mkdir (fileutils) '4.1*)
2765 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2766 break 3;;
2767 esac
2768 done
2769 done
2770 done
2771IFS=$as_save_IFS
2772
2773fi
2774
d0ac1c44 2775 test -d ./--version && rmdir ./--version
81ecdfbb
RW
2776 if test "${ac_cv_path_mkdir+set}" = set; then
2777 MKDIR_P="$ac_cv_path_mkdir -p"
8ae85421 2778 else
81ecdfbb
RW
2779 # As a last resort, use the slow shell script. Don't cache a
2780 # value for MKDIR_P within a source directory, because that will
2781 # break other packages using the cache if that directory is
2782 # removed, or if the value is a relative name.
81ecdfbb 2783 MKDIR_P="$ac_install_sh -d"
8ae85421
AM
2784 fi
2785fi
81ecdfbb
RW
2786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2787$as_echo "$MKDIR_P" >&6; }
2788
8ae85421
AM
2789for ac_prog in gawk mawk nawk awk
2790do
2791 # Extract the first word of "$ac_prog", so it can be a program name with args.
2792set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
2793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2794$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 2795if ${ac_cv_prog_AWK+:} false; then :
81ecdfbb 2796 $as_echo_n "(cached) " >&6
8ae85421
AM
2797else
2798 if test -n "$AWK"; then
2799 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2800else
2801as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2802for as_dir in $PATH
2803do
2804 IFS=$as_save_IFS
2805 test -z "$as_dir" && as_dir=.
81ecdfbb 2806 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 2807 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8ae85421 2808 ac_cv_prog_AWK="$ac_prog"
81ecdfbb 2809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8ae85421
AM
2810 break 2
2811 fi
2812done
81ecdfbb
RW
2813 done
2814IFS=$as_save_IFS
8ae85421
AM
2815
2816fi
2817fi
2818AWK=$ac_cv_prog_AWK
2819if test -n "$AWK"; then
81ecdfbb
RW
2820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2821$as_echo "$AWK" >&6; }
8ae85421 2822else
81ecdfbb
RW
2823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2824$as_echo "no" >&6; }
8ae85421
AM
2825fi
2826
81ecdfbb 2827
8ae85421
AM
2828 test -n "$AWK" && break
2829done
2830
81ecdfbb
RW
2831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2832$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2833set x ${MAKE-make}
2834ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
d0ac1c44 2835if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
81ecdfbb 2836 $as_echo_n "(cached) " >&6
979273e3
NN
2837else
2838 cat >conftest.make <<\_ACEOF
81ecdfbb 2839SHELL = /bin/sh
252b5132 2840all:
81ecdfbb 2841 @echo '@@@%%%=$(MAKE)=@@@%%%'
979273e3 2842_ACEOF
d0ac1c44 2843# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
81ecdfbb
RW
2844case `${MAKE-make} -f conftest.make 2>/dev/null` in
2845 *@@@%%%=?*=@@@%%%*)
2846 eval ac_cv_prog_make_${ac_make}_set=yes;;
2847 *)
2848 eval ac_cv_prog_make_${ac_make}_set=no;;
2849esac
979273e3 2850rm -f conftest.make
252b5132 2851fi
81ecdfbb
RW
2852if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2854$as_echo "yes" >&6; }
252b5132
RH
2855 SET_MAKE=
2856else
81ecdfbb
RW
2857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2858$as_echo "no" >&6; }
252b5132
RH
2859 SET_MAKE="MAKE=${MAKE-make}"
2860fi
2861
8ae85421
AM
2862rm -rf .tst 2>/dev/null
2863mkdir .tst 2>/dev/null
2864if test -d .tst; then
2865 am__leading_dot=.
2866else
2867 am__leading_dot=_
2868fi
2869rmdir .tst 2>/dev/null
2870
d0ac1c44
SM
2871# Check whether --enable-silent-rules was given.
2872if test "${enable_silent_rules+set}" = set; then :
2873 enableval=$enable_silent_rules;
2874fi
2875
2876case $enable_silent_rules in # (((
2877 yes) AM_DEFAULT_VERBOSITY=0;;
2878 no) AM_DEFAULT_VERBOSITY=1;;
2879 *) AM_DEFAULT_VERBOSITY=1;;
2880esac
2881am_make=${MAKE-make}
2882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2883$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2884if ${am_cv_make_support_nested_variables+:} false; then :
2885 $as_echo_n "(cached) " >&6
2886else
2887 if $as_echo 'TRUE=$(BAR$(V))
2888BAR0=false
2889BAR1=true
2890V=1
2891am__doit:
2892 @$(TRUE)
2893.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2894 am_cv_make_support_nested_variables=yes
2895else
2896 am_cv_make_support_nested_variables=no
2897fi
2898fi
2899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2900$as_echo "$am_cv_make_support_nested_variables" >&6; }
2901if test $am_cv_make_support_nested_variables = yes; then
2902 AM_V='$(V)'
2903 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2904else
2905 AM_V=$AM_DEFAULT_VERBOSITY
2906 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2907fi
2908AM_BACKSLASH='\'
2909
81ecdfbb
RW
2910if test "`cd $srcdir && pwd`" != "`pwd`"; then
2911 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2912 # is not polluted with repeated "-I."
2913 am__isrc=' -I$(srcdir)'
2914 # test to see if srcdir already configured
2915 if test -f $srcdir/config.status; then
d0ac1c44 2916 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
81ecdfbb 2917 fi
252b5132 2918fi
979273e3 2919
8ae85421
AM
2920# test whether we have cygpath
2921if test -z "$CYGPATH_W"; then
2922 if (cygpath --version) >/dev/null 2>/dev/null; then
2923 CYGPATH_W='cygpath -w'
2924 else
2925 CYGPATH_W=echo
2926 fi
2927fi
2928
2929
2930# Define the identity of the package.
2e98a7bd 2931 PACKAGE='opcodes'
573fe3fb 2932 VERSION='2.36.50'
8ae85421
AM
2933
2934
979273e3 2935cat >>confdefs.h <<_ACEOF
252b5132 2936#define PACKAGE "$PACKAGE"
979273e3 2937_ACEOF
252b5132 2938
979273e3
NN
2939
2940cat >>confdefs.h <<_ACEOF
252b5132 2941#define VERSION "$VERSION"
979273e3 2942_ACEOF
252b5132 2943
8ae85421 2944# Some tools Automake needs.
252b5132 2945
8ae85421 2946ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
252b5132 2947
8ae85421
AM
2948
2949AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2950
2951
2952AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2953
2954
2955AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2956
2957
2958MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2959
d0ac1c44
SM
2960# For better backward compatibility. To be removed once Automake 1.9.x
2961# dies out for good. For more background, see:
2962# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2963# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2964mkdir_p='$(MKDIR_P)'
2965
2966# We need awk for the "check" target (and possibly the TAP driver). The
2967# system "awk" is bad on some platforms.
6eb7d830
AM
2968# Always define AMTAR for backward compatibility. Yes, it's still used
2969# in the wild :-( We should find a proper way to deprecate it ...
2970AMTAR='$${TAR-tar}'
8ae85421 2971
d0ac1c44
SM
2972
2973# We'll loop over all known methods to create a tar archive until one works.
2974_am_tools='gnutar pax cpio none'
2975
ab2af25e
AM
2976am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2977
8ae85421 2978
8ae85421 2979
252b5132
RH
2980
2981
2982
d0ac1c44
SM
2983# POSIX will say in a future version that running "rm -f" with no argument
2984# is OK; and we want to be able to make that assumption in our Makefile
2985# recipes. So use an aggressive probe to check that the usage we want is
2986# actually supported "in the wild" to an acceptable degree.
2987# See automake bug#10828.
2988# To make any issue more visible, cause the running configure to be aborted
2989# by default if the 'rm' program in use doesn't match our expectations; the
2990# user can still override this though.
2991if rm -f && rm -fr && rm -rf; then : OK; else
2992 cat >&2 <<'END'
2993Oops!
2994
2995Your 'rm' program seems unable to run without file operands specified
2996on the command line, even when the '-f' option is present. This is contrary
2997to the behaviour of most rm programs out there, and not conforming with
2998the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2999
3000Please tell bug-automake@gnu.org about your system, including the value
3001of your $PATH and any error possibly output before this message. This
3002can help us improve future automake versions.
3003
3004END
3005 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3006 echo 'Configuration will proceed anyway, since you have set the' >&2
3007 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3008 echo >&2
3009 else
3010 cat >&2 <<'END'
3011Aborting the configuration process, to ensure you take notice of the issue.
3012
3013You can download and install GNU coreutils to get an 'rm' implementation
3014that behaves properly: <http://www.gnu.org/software/coreutils/>.
3015
3016If you want to complete the configuration process using your problematic
3017'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3018to "yes", and re-run configure.
3019
3020END
3021 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3022 fi
3023fi
3024
8ae85421 3025
dabbade6
L
3026ac_ext=c
3027ac_cpp='$CPP $CPPFLAGS'
3028ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3029ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3030ac_compiler_gnu=$ac_cv_c_compiler_gnu
979273e3 3031if test -n "$ac_tool_prefix"; then
dabbade6
L
3032 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3033set dummy ${ac_tool_prefix}gcc; ac_word=$2
81ecdfbb
RW
3034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3035$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 3036if ${ac_cv_prog_CC+:} false; then :
81ecdfbb 3037 $as_echo_n "(cached) " >&6
252b5132 3038else
dabbade6
L
3039 if test -n "$CC"; then
3040 ac_cv_prog_CC="$CC" # Let the user override the test.
252b5132 3041else
979273e3
NN
3042as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3043for as_dir in $PATH
3044do
3045 IFS=$as_save_IFS
3046 test -z "$as_dir" && as_dir=.
81ecdfbb 3047 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 3048 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
dabbade6 3049 ac_cv_prog_CC="${ac_tool_prefix}gcc"
81ecdfbb 3050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
979273e3
NN
3051 break 2
3052 fi
3053done
81ecdfbb
RW
3054 done
3055IFS=$as_save_IFS
979273e3 3056
252b5132
RH
3057fi
3058fi
dabbade6
L
3059CC=$ac_cv_prog_CC
3060if test -n "$CC"; then
81ecdfbb
RW
3061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3062$as_echo "$CC" >&6; }
252b5132 3063else
81ecdfbb
RW
3064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3065$as_echo "no" >&6; }
979273e3
NN
3066fi
3067
81ecdfbb 3068
252b5132 3069fi
dabbade6
L
3070if test -z "$ac_cv_prog_CC"; then
3071 ac_ct_CC=$CC
3072 # Extract the first word of "gcc", so it can be a program name with args.
3073set dummy gcc; ac_word=$2
81ecdfbb
RW
3074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3075$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 3076if ${ac_cv_prog_ac_ct_CC+:} false; then :
81ecdfbb 3077 $as_echo_n "(cached) " >&6
979273e3 3078else
dabbade6
L
3079 if test -n "$ac_ct_CC"; then
3080 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
979273e3
NN
3081else
3082as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3083for as_dir in $PATH
3084do
3085 IFS=$as_save_IFS
3086 test -z "$as_dir" && as_dir=.
81ecdfbb 3087 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 3088 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
dabbade6 3089 ac_cv_prog_ac_ct_CC="gcc"
81ecdfbb 3090 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
979273e3
NN
3091 break 2
3092 fi
3093done
81ecdfbb
RW
3094 done
3095IFS=$as_save_IFS
252b5132 3096
979273e3
NN
3097fi
3098fi
dabbade6
L
3099ac_ct_CC=$ac_cv_prog_ac_ct_CC
3100if test -n "$ac_ct_CC"; then
81ecdfbb
RW
3101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3102$as_echo "$ac_ct_CC" >&6; }
979273e3 3103else
81ecdfbb
RW
3104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3105$as_echo "no" >&6; }
979273e3 3106fi
252b5132 3107
81ecdfbb
RW
3108 if test "x$ac_ct_CC" = x; then
3109 CC=""
3110 else
3111 case $cross_compiling:$ac_tool_warned in
3112yes:)
3113{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3114$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3115ac_tool_warned=yes ;;
3116esac
3117 CC=$ac_ct_CC
3118 fi
979273e3 3119else
dabbade6 3120 CC="$ac_cv_prog_CC"
979273e3 3121fi
252b5132 3122
dabbade6 3123if test -z "$CC"; then
81ecdfbb
RW
3124 if test -n "$ac_tool_prefix"; then
3125 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
dabbade6 3126set dummy ${ac_tool_prefix}cc; ac_word=$2
81ecdfbb
RW
3127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3128$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 3129if ${ac_cv_prog_CC+:} false; then :
81ecdfbb 3130 $as_echo_n "(cached) " >&6
252b5132 3131else
dabbade6
L
3132 if test -n "$CC"; then
3133 ac_cv_prog_CC="$CC" # Let the user override the test.
252b5132 3134else
979273e3
NN
3135as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3136for as_dir in $PATH
3137do
3138 IFS=$as_save_IFS
3139 test -z "$as_dir" && as_dir=.
81ecdfbb 3140 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 3141 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
dabbade6 3142 ac_cv_prog_CC="${ac_tool_prefix}cc"
81ecdfbb 3143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
979273e3
NN
3144 break 2
3145 fi
3146done
81ecdfbb
RW
3147 done
3148IFS=$as_save_IFS
979273e3 3149
252b5132
RH
3150fi
3151fi
dabbade6
L
3152CC=$ac_cv_prog_CC
3153if test -n "$CC"; then
81ecdfbb
RW
3154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3155$as_echo "$CC" >&6; }
252b5132 3156else
81ecdfbb
RW
3157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3158$as_echo "no" >&6; }
252b5132
RH
3159fi
3160
252b5132 3161
81ecdfbb 3162 fi
dabbade6
L
3163fi
3164if test -z "$CC"; then
3165 # Extract the first word of "cc", so it can be a program name with args.
3166set dummy cc; ac_word=$2
81ecdfbb
RW
3167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3168$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 3169if ${ac_cv_prog_CC+:} false; then :
81ecdfbb 3170 $as_echo_n "(cached) " >&6
dabbade6
L
3171else
3172 if test -n "$CC"; then
3173 ac_cv_prog_CC="$CC" # Let the user override the test.
3174else
3175 ac_prog_rejected=no
3176as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3177for as_dir in $PATH
3178do
3179 IFS=$as_save_IFS
3180 test -z "$as_dir" && as_dir=.
81ecdfbb 3181 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 3182 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
dabbade6
L
3183 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3184 ac_prog_rejected=yes
3185 continue
3186 fi
3187 ac_cv_prog_CC="cc"
81ecdfbb 3188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
dabbade6
L
3189 break 2
3190 fi
3191done
81ecdfbb
RW
3192 done
3193IFS=$as_save_IFS
252b5132 3194
dabbade6
L
3195if test $ac_prog_rejected = yes; then
3196 # We found a bogon in the path, so make sure we never use it.
3197 set dummy $ac_cv_prog_CC
3198 shift
3199 if test $# != 0; then
3200 # We chose a different compiler from the bogus one.
3201 # However, it has the same basename, so the bogon will be chosen
3202 # first if we set CC to just the basename; use the full file name.
3203 shift
3204 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3205 fi
3206fi
3207fi
3208fi
3209CC=$ac_cv_prog_CC
3210if test -n "$CC"; then
81ecdfbb
RW
3211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3212$as_echo "$CC" >&6; }
252b5132 3213else
81ecdfbb
RW
3214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3215$as_echo "no" >&6; }
dabbade6 3216fi
252b5132 3217
81ecdfbb 3218
dabbade6
L
3219fi
3220if test -z "$CC"; then
3221 if test -n "$ac_tool_prefix"; then
81ecdfbb 3222 for ac_prog in cl.exe
dabbade6
L
3223 do
3224 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3225set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
3226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3227$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 3228if ${ac_cv_prog_CC+:} false; then :
81ecdfbb 3229 $as_echo_n "(cached) " >&6
dabbade6
L
3230else
3231 if test -n "$CC"; then
3232 ac_cv_prog_CC="$CC" # Let the user override the test.
3233else
3234as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3235for as_dir in $PATH
3236do
3237 IFS=$as_save_IFS
3238 test -z "$as_dir" && as_dir=.
81ecdfbb 3239 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 3240 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
dabbade6 3241 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
81ecdfbb 3242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
dabbade6
L
3243 break 2
3244 fi
3245done
81ecdfbb
RW
3246 done
3247IFS=$as_save_IFS
d7040cdb 3248
dabbade6
L
3249fi
3250fi
3251CC=$ac_cv_prog_CC
3252if test -n "$CC"; then
81ecdfbb
RW
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3254$as_echo "$CC" >&6; }
dabbade6 3255else
81ecdfbb
RW
3256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3257$as_echo "no" >&6; }
dabbade6 3258fi
d7040cdb 3259
81ecdfbb 3260
dabbade6
L
3261 test -n "$CC" && break
3262 done
3263fi
3264if test -z "$CC"; then
3265 ac_ct_CC=$CC
81ecdfbb 3266 for ac_prog in cl.exe
dabbade6
L
3267do
3268 # Extract the first word of "$ac_prog", so it can be a program name with args.
3269set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
3270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3271$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 3272if ${ac_cv_prog_ac_ct_CC+:} false; then :
81ecdfbb 3273 $as_echo_n "(cached) " >&6
dabbade6
L
3274else
3275 if test -n "$ac_ct_CC"; then
3276 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3277else
3278as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3279for as_dir in $PATH
3280do
3281 IFS=$as_save_IFS
3282 test -z "$as_dir" && as_dir=.
81ecdfbb 3283 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 3284 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
dabbade6 3285 ac_cv_prog_ac_ct_CC="$ac_prog"
81ecdfbb 3286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
dabbade6
L
3287 break 2
3288 fi
3289done
81ecdfbb
RW
3290 done
3291IFS=$as_save_IFS
d7040cdb 3292
dabbade6
L
3293fi
3294fi
3295ac_ct_CC=$ac_cv_prog_ac_ct_CC
3296if test -n "$ac_ct_CC"; then
81ecdfbb
RW
3297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3298$as_echo "$ac_ct_CC" >&6; }
dabbade6 3299else
81ecdfbb
RW
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3301$as_echo "no" >&6; }
dabbade6 3302fi
d7040cdb 3303
81ecdfbb 3304
dabbade6
L
3305 test -n "$ac_ct_CC" && break
3306done
d7040cdb 3307
81ecdfbb
RW
3308 if test "x$ac_ct_CC" = x; then
3309 CC=""
3310 else
3311 case $cross_compiling:$ac_tool_warned in
3312yes:)
3313{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3314$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3315ac_tool_warned=yes ;;
3316esac
3317 CC=$ac_ct_CC
3318 fi
dabbade6 3319fi
d7040cdb 3320
dabbade6 3321fi
d7040cdb
SE
3322
3323
81ecdfbb
RW
3324test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3325$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
3326as_fn_error $? "no acceptable C compiler found in \$PATH
3327See \`config.log' for more details" "$LINENO" 5; }
d7040cdb 3328
dabbade6 3329# Provide some information about the compiler.
81ecdfbb
RW
3330$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3331set X $ac_compile
3332ac_compiler=$2
3333for ac_option in --version -v -V -qversion; do
3334 { { ac_try="$ac_compiler $ac_option >&5"
3335case "(($ac_try" in
3336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3337 *) ac_try_echo=$ac_try;;
3338esac
3339eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3340$as_echo "$ac_try_echo"; } >&5
3341 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
dabbade6 3342 ac_status=$?
81ecdfbb
RW
3343 if test -s conftest.err; then
3344 sed '10a\
3345... rest of stderr output deleted ...
3346 10q' conftest.err >conftest.er1
3347 cat conftest.er1 >&5
81ecdfbb 3348 fi
d0ac1c44 3349 rm -f conftest.er1 conftest.err
81ecdfbb
RW
3350 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3351 test $ac_status = 0; }
3352done
d7040cdb 3353
ab2af25e
AM
3354cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3355/* end confdefs.h. */
3356
3357int
3358main ()
3359{
3360
3361 ;
3362 return 0;
3363}
3364_ACEOF
3365ac_clean_files_save=$ac_clean_files
3366ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3367# Try to create an executable without -o first, disregard a.out.
3368# It will help us diagnose broken compilers, and finding out an intuition
3369# of exeext.
3370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3371$as_echo_n "checking whether the C compiler works... " >&6; }
3372ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3373
3374# The possible output files:
3375ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3376
3377ac_rmfiles=
3378for ac_file in $ac_files
3379do
3380 case $ac_file in
3381 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3382 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3383 esac
3384done
3385rm -f $ac_rmfiles
3386
3387if { { ac_try="$ac_link_default"
3388case "(($ac_try" in
3389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3390 *) ac_try_echo=$ac_try;;
3391esac
3392eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3393$as_echo "$ac_try_echo"; } >&5
3394 (eval "$ac_link_default") 2>&5
3395 ac_status=$?
3396 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3397 test $ac_status = 0; }; then :
3398 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3399# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3400# in a Makefile. We should not override ac_cv_exeext if it was cached,
3401# so that the user can short-circuit this test for compilers unknown to
3402# Autoconf.
3403for ac_file in $ac_files ''
3404do
3405 test -f "$ac_file" || continue
3406 case $ac_file in
3407 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3408 ;;
3409 [ab].out )
3410 # We found the default executable, but exeext='' is most
3411 # certainly right.
3412 break;;
3413 *.* )
3414 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3415 then :; else
3416 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3417 fi
3418 # We set ac_cv_exeext here because the later test for it is not
3419 # safe: cross compilers may not add the suffix if given an `-o'
3420 # argument, so we may need to know it at that point already.
3421 # Even if this section looks crufty: it has the advantage of
3422 # actually working.
3423 break;;
3424 * )
3425 break;;
3426 esac
3427done
3428test "$ac_cv_exeext" = no && ac_cv_exeext=
3429
3430else
3431 ac_file=''
3432fi
3433if test -z "$ac_file"; then :
3434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3435$as_echo "no" >&6; }
3436$as_echo "$as_me: failed program was:" >&5
3437sed 's/^/| /' conftest.$ac_ext >&5
3438
3439{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3440$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3441as_fn_error 77 "C compiler cannot create executables
3442See \`config.log' for more details" "$LINENO" 5; }
3443else
3444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3445$as_echo "yes" >&6; }
3446fi
3447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3448$as_echo_n "checking for C compiler default output file name... " >&6; }
3449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3450$as_echo "$ac_file" >&6; }
3451ac_exeext=$ac_cv_exeext
3452
3453rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3454ac_clean_files=$ac_clean_files_save
3455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3456$as_echo_n "checking for suffix of executables... " >&6; }
3457if { { ac_try="$ac_link"
3458case "(($ac_try" in
3459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3460 *) ac_try_echo=$ac_try;;
3461esac
3462eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3463$as_echo "$ac_try_echo"; } >&5
3464 (eval "$ac_link") 2>&5
3465 ac_status=$?
3466 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3467 test $ac_status = 0; }; then :
3468 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3469# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3470# work properly (i.e., refer to `conftest.exe'), while it won't with
3471# `rm'.
3472for ac_file in conftest.exe conftest conftest.*; do
3473 test -f "$ac_file" || continue
3474 case $ac_file in
3475 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3476 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3477 break;;
3478 * ) break;;
3479 esac
3480done
3481else
3482 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3483$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3484as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3485See \`config.log' for more details" "$LINENO" 5; }
3486fi
3487rm -f conftest conftest$ac_cv_exeext
3488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3489$as_echo "$ac_cv_exeext" >&6; }
3490
3491rm -f conftest.$ac_ext
3492EXEEXT=$ac_cv_exeext
3493ac_exeext=$EXEEXT
3494cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3495/* end confdefs.h. */
3496#include <stdio.h>
3497int
3498main ()
3499{
3500FILE *f = fopen ("conftest.out", "w");
3501 return ferror (f) || fclose (f) != 0;
3502
3503 ;
3504 return 0;
3505}
3506_ACEOF
3507ac_clean_files="$ac_clean_files conftest.out"
3508# Check that the compiler produces executables we can run. If not, either
3509# the compiler is broken, or we cross compile.
3510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3511$as_echo_n "checking whether we are cross compiling... " >&6; }
3512if test "$cross_compiling" != yes; then
3513 { { ac_try="$ac_link"
3514case "(($ac_try" in
3515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3516 *) ac_try_echo=$ac_try;;
3517esac
3518eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3519$as_echo "$ac_try_echo"; } >&5
3520 (eval "$ac_link") 2>&5
3521 ac_status=$?
3522 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3523 test $ac_status = 0; }
3524 if { ac_try='./conftest$ac_cv_exeext'
3525 { { case "(($ac_try" in
3526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3527 *) ac_try_echo=$ac_try;;
3528esac
3529eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3530$as_echo "$ac_try_echo"; } >&5
3531 (eval "$ac_try") 2>&5
3532 ac_status=$?
3533 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3534 test $ac_status = 0; }; }; then
3535 cross_compiling=no
3536 else
3537 if test "$cross_compiling" = maybe; then
3538 cross_compiling=yes
3539 else
3540 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3541$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3542as_fn_error $? "cannot run C compiled programs.
3543If you meant to cross compile, use \`--host'.
3544See \`config.log' for more details" "$LINENO" 5; }
3545 fi
3546 fi
3547fi
3548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3549$as_echo "$cross_compiling" >&6; }
3550
3551rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3552ac_clean_files=$ac_clean_files_save
3553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3554$as_echo_n "checking for suffix of object files... " >&6; }
3555if ${ac_cv_objext+:} false; then :
3556 $as_echo_n "(cached) " >&6
3557else
3558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3559/* end confdefs.h. */
3560
3561int
3562main ()
3563{
3564
3565 ;
3566 return 0;
3567}
3568_ACEOF
3569rm -f conftest.o conftest.obj
3570if { { ac_try="$ac_compile"
3571case "(($ac_try" in
3572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3573 *) ac_try_echo=$ac_try;;
3574esac
3575eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3576$as_echo "$ac_try_echo"; } >&5
3577 (eval "$ac_compile") 2>&5
3578 ac_status=$?
3579 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3580 test $ac_status = 0; }; then :
3581 for ac_file in conftest.o conftest.obj conftest.*; do
3582 test -f "$ac_file" || continue;
3583 case $ac_file in
3584 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3585 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3586 break;;
3587 esac
3588done
3589else
3590 $as_echo "$as_me: failed program was:" >&5
3591sed 's/^/| /' conftest.$ac_ext >&5
3592
3593{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3594$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3595as_fn_error $? "cannot compute suffix of object files: cannot compile
3596See \`config.log' for more details" "$LINENO" 5; }
3597fi
3598rm -f conftest.$ac_cv_objext conftest.$ac_ext
3599fi
3600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3601$as_echo "$ac_cv_objext" >&6; }
3602OBJEXT=$ac_cv_objext
3603ac_objext=$OBJEXT
81ecdfbb
RW
3604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3605$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
d0ac1c44 3606if ${ac_cv_c_compiler_gnu+:} false; then :
81ecdfbb 3607 $as_echo_n "(cached) " >&6
252b5132 3608else
81ecdfbb 3609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
dabbade6 3610/* end confdefs.h. */
d7040cdb 3611
dabbade6
L
3612int
3613main ()
3614{
3615#ifndef __GNUC__
3616 choke me
3617#endif
d7040cdb 3618
dabbade6
L
3619 ;
3620 return 0;
3621}
3622_ACEOF
81ecdfbb 3623if ac_fn_c_try_compile "$LINENO"; then :
dabbade6 3624 ac_compiler_gnu=yes
d7040cdb 3625else
81ecdfbb 3626 ac_compiler_gnu=no
dabbade6 3627fi
81ecdfbb 3628rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
dabbade6 3629ac_cv_c_compiler_gnu=$ac_compiler_gnu
d7040cdb 3630
dabbade6 3631fi
81ecdfbb
RW
3632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3633$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3634if test $ac_compiler_gnu = yes; then
3635 GCC=yes
3636else
3637 GCC=
3638fi
dabbade6
L
3639ac_test_CFLAGS=${CFLAGS+set}
3640ac_save_CFLAGS=$CFLAGS
81ecdfbb
RW
3641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3642$as_echo_n "checking whether $CC accepts -g... " >&6; }
d0ac1c44 3643if ${ac_cv_prog_cc_g+:} false; then :
81ecdfbb
RW
3644 $as_echo_n "(cached) " >&6
3645else
3646 ac_save_c_werror_flag=$ac_c_werror_flag
3647 ac_c_werror_flag=yes
3648 ac_cv_prog_cc_g=no
3649 CFLAGS="-g"
3650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
dabbade6 3651/* end confdefs.h. */
d7040cdb 3652
dabbade6
L
3653int
3654main ()
3655{
d7040cdb 3656
dabbade6
L
3657 ;
3658 return 0;
3659}
3660_ACEOF
81ecdfbb 3661if ac_fn_c_try_compile "$LINENO"; then :
dabbade6
L
3662 ac_cv_prog_cc_g=yes
3663else
81ecdfbb
RW
3664 CFLAGS=""
3665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3666/* end confdefs.h. */
d7040cdb 3667
81ecdfbb
RW
3668int
3669main ()
3670{
3671
3672 ;
3673 return 0;
3674}
3675_ACEOF
3676if ac_fn_c_try_compile "$LINENO"; then :
3677
3678else
3679 ac_c_werror_flag=$ac_save_c_werror_flag
3680 CFLAGS="-g"
3681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3682/* end confdefs.h. */
3683
3684int
3685main ()
3686{
3687
3688 ;
3689 return 0;
3690}
3691_ACEOF
3692if ac_fn_c_try_compile "$LINENO"; then :
3693 ac_cv_prog_cc_g=yes
3694fi
3695rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
dabbade6 3696fi
81ecdfbb 3697rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
dabbade6 3698fi
81ecdfbb
RW
3699rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3700 ac_c_werror_flag=$ac_save_c_werror_flag
3701fi
3702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3703$as_echo "$ac_cv_prog_cc_g" >&6; }
dabbade6
L
3704if test "$ac_test_CFLAGS" = set; then
3705 CFLAGS=$ac_save_CFLAGS
3706elif test $ac_cv_prog_cc_g = yes; then
3707 if test "$GCC" = yes; then
3708 CFLAGS="-g -O2"
3709 else
3710 CFLAGS="-g"
3711 fi
3712else
3713 if test "$GCC" = yes; then
3714 CFLAGS="-O2"
3715 else
3716 CFLAGS=
3717 fi
3718fi
81ecdfbb
RW
3719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3720$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
d0ac1c44 3721if ${ac_cv_prog_cc_c89+:} false; then :
81ecdfbb 3722 $as_echo_n "(cached) " >&6
d7040cdb 3723else
81ecdfbb 3724 ac_cv_prog_cc_c89=no
dabbade6 3725ac_save_CC=$CC
81ecdfbb 3726cat confdefs.h - <<_ACEOF >conftest.$ac_ext
dabbade6
L
3727/* end confdefs.h. */
3728#include <stdarg.h>
3729#include <stdio.h>
d0ac1c44 3730struct stat;
dabbade6
L
3731/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3732struct buf { int x; };
3733FILE * (*rcsopen) (struct buf *, struct stat *, int);
3734static char *e (p, i)
3735 char **p;
3736 int i;
3737{
3738 return p[i];
3739}
3740static char *f (char * (*g) (char **, int), char **p, ...)
3741{
3742 char *s;
3743 va_list v;
3744 va_start (v,p);
3745 s = g (p, va_arg (v,int));
3746 va_end (v);
3747 return s;
3748}
d7040cdb 3749
dabbade6
L
3750/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3751 function prototypes and stuff, but not '\xHH' hex character constants.
3752 These don't provoke an error unfortunately, instead are silently treated
81ecdfbb 3753 as 'x'. The following induces an error, until -std is added to get
dabbade6
L
3754 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3755 array size at least. It's necessary to write '\x00'==0 to get something
81ecdfbb 3756 that's true only with -std. */
dabbade6 3757int osf4_cc_array ['\x00' == 0 ? 1 : -1];
d7040cdb 3758
81ecdfbb
RW
3759/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3760 inside strings and character constants. */
3761#define FOO(x) 'x'
3762int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3763
dabbade6
L
3764int test (int i, double x);
3765struct s1 {int (*f) (int a);};
3766struct s2 {int (*f) (double a);};
3767int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3768int argc;
3769char **argv;
3770int
3771main ()
3772{
3773return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3774 ;
3775 return 0;
3776}
3777_ACEOF
81ecdfbb
RW
3778for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3779 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
dabbade6
L
3780do
3781 CC="$ac_save_CC $ac_arg"
81ecdfbb
RW
3782 if ac_fn_c_try_compile "$LINENO"; then :
3783 ac_cv_prog_cc_c89=$ac_arg
d7040cdb 3784fi
81ecdfbb
RW
3785rm -f core conftest.err conftest.$ac_objext
3786 test "x$ac_cv_prog_cc_c89" != "xno" && break
dabbade6 3787done
81ecdfbb 3788rm -f conftest.$ac_ext
dabbade6 3789CC=$ac_save_CC
d7040cdb 3790
dabbade6 3791fi
81ecdfbb
RW
3792# AC_CACHE_VAL
3793case "x$ac_cv_prog_cc_c89" in
3794 x)
3795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3796$as_echo "none needed" >&6; } ;;
3797 xno)
3798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3799$as_echo "unsupported" >&6; } ;;
252b5132 3800 *)
81ecdfbb
RW
3801 CC="$CC $ac_cv_prog_cc_c89"
3802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3803$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
dabbade6 3804esac
81ecdfbb 3805if test "x$ac_cv_prog_cc_c89" != xno; then :
ac48eca1 3806
dabbade6 3807fi
252b5132 3808
dabbade6
L
3809ac_ext=c
3810ac_cpp='$CPP $CPPFLAGS'
3811ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3812ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3813ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb 3814
d0ac1c44
SM
3815ac_ext=c
3816ac_cpp='$CPP $CPPFLAGS'
3817ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3818ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3819ac_compiler_gnu=$ac_cv_c_compiler_gnu
3820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3821$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3822if ${am_cv_prog_cc_c_o+:} false; then :
3823 $as_echo_n "(cached) " >&6
3824else
3825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3826/* end confdefs.h. */
3827
3828int
3829main ()
3830{
3831
3832 ;
3833 return 0;
3834}
3835_ACEOF
3836 # Make sure it works both with $CC and with simple cc.
3837 # Following AC_PROG_CC_C_O, we do the test twice because some
3838 # compilers refuse to overwrite an existing .o file with -o,
3839 # though they will create one.
3840 am_cv_prog_cc_c_o=yes
3841 for am_i in 1 2; do
3842 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3843 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3844 ac_status=$?
3845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3846 (exit $ac_status); } \
3847 && test -f conftest2.$ac_objext; then
3848 : OK
3849 else
3850 am_cv_prog_cc_c_o=no
3851 break
3852 fi
3853 done
3854 rm -f core conftest*
3855 unset am_i
3856fi
3857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3858$as_echo "$am_cv_prog_cc_c_o" >&6; }
3859if test "$am_cv_prog_cc_c_o" != yes; then
3860 # Losing compiler, so override with the script.
3861 # FIXME: It is wrong to rewrite CC.
3862 # But if we don't then we get into trouble of one sort or another.
3863 # A longer-term fix would be to have automake use am__CC in this case,
3864 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3865 CC="$am_aux_dir/compile $CC"
3866fi
3867ac_ext=c
3868ac_cpp='$CPP $CPPFLAGS'
3869ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3870ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3871ac_compiler_gnu=$ac_cv_c_compiler_gnu
3872
ab2af25e
AM
3873DEPDIR="${am__leading_dot}deps"
3874
3875ac_config_commands="$ac_config_commands depfiles"
3876
3877
3878am_make=${MAKE-make}
3879cat > confinc << 'END'
3880am__doit:
3881 @echo this is the am__doit target
3882.PHONY: am__doit
3883END
3884# If we don't find an include directive, just comment out the code.
3885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3886$as_echo_n "checking for style of include used by $am_make... " >&6; }
3887am__include="#"
3888am__quote=
3889_am_result=none
3890# First try GNU make style include.
3891echo "include confinc" > confmf
3892# Ignore all kinds of additional output from 'make'.
3893case `$am_make -s -f confmf 2> /dev/null` in #(
3894*the\ am__doit\ target*)
3895 am__include=include
3896 am__quote=
3897 _am_result=GNU
3898 ;;
3899esac
3900# Now try BSD make style include.
3901if test "$am__include" = "#"; then
3902 echo '.include "confinc"' > confmf
3903 case `$am_make -s -f confmf 2> /dev/null` in #(
3904 *the\ am__doit\ target*)
3905 am__include=.include
3906 am__quote="\""
3907 _am_result=BSD
3908 ;;
3909 esac
3910fi
3911
3912
3913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3914$as_echo "$_am_result" >&6; }
3915rm -f confinc confmf
3916
3917# Check whether --enable-dependency-tracking was given.
3918if test "${enable_dependency_tracking+set}" = set; then :
3919 enableval=$enable_dependency_tracking;
3920fi
3921
3922if test "x$enable_dependency_tracking" != xno; then
3923 am_depcomp="$ac_aux_dir/depcomp"
3924 AMDEPBACKSLASH='\'
3925 am__nodep='_no'
3926fi
3927 if test "x$enable_dependency_tracking" != xno; then
3928 AMDEP_TRUE=
3929 AMDEP_FALSE='#'
3930else
3931 AMDEP_TRUE='#'
3932 AMDEP_FALSE=
3933fi
3934
3935
3936
3937depcc="$CC" am_compiler_list=
3938
3939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3940$as_echo_n "checking dependency style of $depcc... " >&6; }
3941if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3942 $as_echo_n "(cached) " >&6
3943else
3944 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3945 # We make a subdir and do the tests there. Otherwise we can end up
3946 # making bogus files that we don't know about and never remove. For
3947 # instance it was reported that on HP-UX the gcc test will end up
3948 # making a dummy file named 'D' -- because '-MD' means "put the output
3949 # in D".
3950 rm -rf conftest.dir
3951 mkdir conftest.dir
3952 # Copy depcomp to subdir because otherwise we won't find it if we're
3953 # using a relative directory.
3954 cp "$am_depcomp" conftest.dir
3955 cd conftest.dir
3956 # We will build objects and dependencies in a subdirectory because
3957 # it helps to detect inapplicable dependency modes. For instance
3958 # both Tru64's cc and ICC support -MD to output dependencies as a
3959 # side effect of compilation, but ICC will put the dependencies in
3960 # the current directory while Tru64 will put them in the object
3961 # directory.
3962 mkdir sub
3963
3964 am_cv_CC_dependencies_compiler_type=none
3965 if test "$am_compiler_list" = ""; then
3966 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3967 fi
3968 am__universal=false
3969 case " $depcc " in #(
3970 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3971 esac
3972
3973 for depmode in $am_compiler_list; do
3974 # Setup a source with many dependencies, because some compilers
3975 # like to wrap large dependency lists on column 80 (with \), and
3976 # we should not choose a depcomp mode which is confused by this.
3977 #
3978 # We need to recreate these files for each test, as the compiler may
3979 # overwrite some of them when testing with obscure command lines.
3980 # This happens at least with the AIX C compiler.
3981 : > sub/conftest.c
3982 for i in 1 2 3 4 5 6; do
3983 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3984 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3985 # Solaris 10 /bin/sh.
3986 echo '/* dummy */' > sub/conftst$i.h
3987 done
3988 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3989
3990 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3991 # mode. It turns out that the SunPro C++ compiler does not properly
3992 # handle '-M -o', and we need to detect this. Also, some Intel
3993 # versions had trouble with output in subdirs.
3994 am__obj=sub/conftest.${OBJEXT-o}
3995 am__minus_obj="-o $am__obj"
3996 case $depmode in
3997 gcc)
3998 # This depmode causes a compiler race in universal mode.
3999 test "$am__universal" = false || continue
4000 ;;
4001 nosideeffect)
4002 # After this tag, mechanisms are not by side-effect, so they'll
4003 # only be used when explicitly requested.
4004 if test "x$enable_dependency_tracking" = xyes; then
4005 continue
4006 else
4007 break
4008 fi
4009 ;;
4010 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4011 # This compiler won't grok '-c -o', but also, the minuso test has
4012 # not run yet. These depmodes are late enough in the game, and
4013 # so weak that their functioning should not be impacted.
4014 am__obj=conftest.${OBJEXT-o}
4015 am__minus_obj=
4016 ;;
4017 none) break ;;
4018 esac
4019 if depmode=$depmode \
4020 source=sub/conftest.c object=$am__obj \
4021 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4022 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4023 >/dev/null 2>conftest.err &&
4024 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4025 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4026 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4027 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4028 # icc doesn't choke on unknown options, it will just issue warnings
4029 # or remarks (even with -Werror). So we grep stderr for any message
4030 # that says an option was ignored or not supported.
4031 # When given -MP, icc 7.0 and 7.1 complain thusly:
4032 # icc: Command line warning: ignoring option '-M'; no argument required
4033 # The diagnosis changed in icc 8.0:
4034 # icc: Command line remark: option '-MP' not supported
4035 if (grep 'ignoring option' conftest.err ||
4036 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4037 am_cv_CC_dependencies_compiler_type=$depmode
4038 break
4039 fi
4040 fi
4041 done
4042
4043 cd ..
4044 rm -rf conftest.dir
4045else
4046 am_cv_CC_dependencies_compiler_type=none
4047fi
4048
4049fi
4050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4051$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4052CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4053
4054 if
4055 test "x$enable_dependency_tracking" != xno \
4056 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4057 am__fastdepCC_TRUE=
4058 am__fastdepCC_FALSE='#'
4059else
4060 am__fastdepCC_TRUE='#'
4061 am__fastdepCC_FALSE=
4062fi
4063
4064
d0ac1c44 4065
7357c5b6
AM
4066ac_ext=c
4067ac_cpp='$CPP $CPPFLAGS'
4068ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4069ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4070ac_compiler_gnu=$ac_cv_c_compiler_gnu
81ecdfbb
RW
4071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4072$as_echo_n "checking how to run the C preprocessor... " >&6; }
7357c5b6
AM
4073# On Suns, sometimes $CPP names a directory.
4074if test -n "$CPP" && test -d "$CPP"; then
4075 CPP=
4076fi
4077if test -z "$CPP"; then
d0ac1c44 4078 if ${ac_cv_prog_CPP+:} false; then :
81ecdfbb 4079 $as_echo_n "(cached) " >&6
dabbade6 4080else
7357c5b6
AM
4081 # Double quotes because CPP needs to be expanded
4082 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4083 do
4084 ac_preproc_ok=false
4085for ac_c_preproc_warn_flag in '' yes
dabbade6 4086do
7357c5b6
AM
4087 # Use a header file that comes with gcc, so configuring glibc
4088 # with a fresh cross-compiler works.
4089 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4090 # <limits.h> exists even on freestanding compilers.
4091 # On the NeXT, cc -E runs the code through the compiler's parser,
4092 # not just through cpp. "Syntax error" is here to catch this case.
81ecdfbb 4093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4094/* end confdefs.h. */
4095#ifdef __STDC__
4096# include <limits.h>
4097#else
4098# include <assert.h>
4099#endif
4100 Syntax error
4101_ACEOF
81ecdfbb 4102if ac_fn_c_try_cpp "$LINENO"; then :
dabbade6 4103
81ecdfbb 4104else
7357c5b6
AM
4105 # Broken: fails on valid input.
4106continue
252b5132 4107fi
d0ac1c44 4108rm -f conftest.err conftest.i conftest.$ac_ext
7357c5b6 4109
81ecdfbb 4110 # OK, works on sane cases. Now check whether nonexistent headers
7357c5b6 4111 # can be detected and how.
81ecdfbb 4112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4113/* end confdefs.h. */
4114#include <ac_nonexistent.h>
4115_ACEOF
81ecdfbb 4116if ac_fn_c_try_cpp "$LINENO"; then :
7357c5b6
AM
4117 # Broken: success on invalid input.
4118continue
dabbade6 4119else
7357c5b6
AM
4120 # Passes both tests.
4121ac_preproc_ok=:
4122break
dabbade6 4123fi
d0ac1c44 4124rm -f conftest.err conftest.i conftest.$ac_ext
dabbade6 4125
d7040cdb 4126done
7357c5b6 4127# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
d0ac1c44 4128rm -f conftest.i conftest.err conftest.$ac_ext
81ecdfbb 4129if $ac_preproc_ok; then :
7357c5b6
AM
4130 break
4131fi
4132
4133 done
4134 ac_cv_prog_CPP=$CPP
d7040cdb
SE
4135
4136fi
7357c5b6
AM
4137 CPP=$ac_cv_prog_CPP
4138else
4139 ac_cv_prog_CPP=$CPP
d7040cdb 4140fi
81ecdfbb
RW
4141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4142$as_echo "$CPP" >&6; }
7357c5b6
AM
4143ac_preproc_ok=false
4144for ac_c_preproc_warn_flag in '' yes
4145do
4146 # Use a header file that comes with gcc, so configuring glibc
4147 # with a fresh cross-compiler works.
4148 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4149 # <limits.h> exists even on freestanding compilers.
4150 # On the NeXT, cc -E runs the code through the compiler's parser,
4151 # not just through cpp. "Syntax error" is here to catch this case.
81ecdfbb 4152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4153/* end confdefs.h. */
4154#ifdef __STDC__
4155# include <limits.h>
4156#else
4157# include <assert.h>
4158#endif
4159 Syntax error
4160_ACEOF
81ecdfbb 4161if ac_fn_c_try_cpp "$LINENO"; then :
d7040cdb 4162
81ecdfbb 4163else
7357c5b6
AM
4164 # Broken: fails on valid input.
4165continue
d7040cdb 4166fi
d0ac1c44 4167rm -f conftest.err conftest.i conftest.$ac_ext
d7040cdb 4168
81ecdfbb 4169 # OK, works on sane cases. Now check whether nonexistent headers
7357c5b6 4170 # can be detected and how.
81ecdfbb 4171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4172/* end confdefs.h. */
4173#include <ac_nonexistent.h>
4174_ACEOF
81ecdfbb 4175if ac_fn_c_try_cpp "$LINENO"; then :
7357c5b6
AM
4176 # Broken: success on invalid input.
4177continue
dabbade6 4178else
7357c5b6
AM
4179 # Passes both tests.
4180ac_preproc_ok=:
4181break
4182fi
d0ac1c44 4183rm -f conftest.err conftest.i conftest.$ac_ext
d7040cdb 4184
7357c5b6
AM
4185done
4186# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
d0ac1c44 4187rm -f conftest.i conftest.err conftest.$ac_ext
81ecdfbb
RW
4188if $ac_preproc_ok; then :
4189
4190else
4191 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4192$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
4193as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4194See \`config.log' for more details" "$LINENO" 5; }
81ecdfbb
RW
4195fi
4196
4197ac_ext=c
4198ac_cpp='$CPP $CPPFLAGS'
4199ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4200ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4201ac_compiler_gnu=$ac_cv_c_compiler_gnu
4202
4203
4204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4205$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
d0ac1c44 4206if ${ac_cv_path_GREP+:} false; then :
81ecdfbb
RW
4207 $as_echo_n "(cached) " >&6
4208else
4209 if test -z "$GREP"; then
4210 ac_path_GREP_found=false
4211 # Loop through the user's path and test for each of PROGNAME-LIST
4212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4213for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4214do
4215 IFS=$as_save_IFS
4216 test -z "$as_dir" && as_dir=.
4217 for ac_prog in grep ggrep; do
4218 for ac_exec_ext in '' $ac_executable_extensions; do
4219 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
d0ac1c44 4220 as_fn_executable_p "$ac_path_GREP" || continue
81ecdfbb
RW
4221# Check for GNU ac_path_GREP and select it if it is found.
4222 # Check for GNU $ac_path_GREP
4223case `"$ac_path_GREP" --version 2>&1` in
4224*GNU*)
4225 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4226*)
4227 ac_count=0
4228 $as_echo_n 0123456789 >"conftest.in"
4229 while :
4230 do
4231 cat "conftest.in" "conftest.in" >"conftest.tmp"
4232 mv "conftest.tmp" "conftest.in"
4233 cp "conftest.in" "conftest.nl"
4234 $as_echo 'GREP' >> "conftest.nl"
4235 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4236 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4237 as_fn_arith $ac_count + 1 && ac_count=$as_val
4238 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4239 # Best one so far, save it but keep looking for a better one
4240 ac_cv_path_GREP="$ac_path_GREP"
4241 ac_path_GREP_max=$ac_count
4242 fi
4243 # 10*(2^10) chars as input seems more than enough
4244 test $ac_count -gt 10 && break
4245 done
4246 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4247esac
4248
4249 $ac_path_GREP_found && break 3
4250 done
4251 done
4252 done
4253IFS=$as_save_IFS
4254 if test -z "$ac_cv_path_GREP"; then
d0ac1c44 4255 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
81ecdfbb 4256 fi
dabbade6 4257else
81ecdfbb 4258 ac_cv_path_GREP=$GREP
7357c5b6 4259fi
d7040cdb 4260
81ecdfbb
RW
4261fi
4262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4263$as_echo "$ac_cv_path_GREP" >&6; }
4264 GREP="$ac_cv_path_GREP"
d7040cdb
SE
4265
4266
81ecdfbb
RW
4267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4268$as_echo_n "checking for egrep... " >&6; }
d0ac1c44 4269if ${ac_cv_path_EGREP+:} false; then :
81ecdfbb 4270 $as_echo_n "(cached) " >&6
7357c5b6 4271else
81ecdfbb
RW
4272 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4273 then ac_cv_path_EGREP="$GREP -E"
4274 else
4275 if test -z "$EGREP"; then
4276 ac_path_EGREP_found=false
4277 # Loop through the user's path and test for each of PROGNAME-LIST
4278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4279for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4280do
4281 IFS=$as_save_IFS
4282 test -z "$as_dir" && as_dir=.
4283 for ac_prog in egrep; do
4284 for ac_exec_ext in '' $ac_executable_extensions; do
4285 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
d0ac1c44 4286 as_fn_executable_p "$ac_path_EGREP" || continue
81ecdfbb
RW
4287# Check for GNU ac_path_EGREP and select it if it is found.
4288 # Check for GNU $ac_path_EGREP
4289case `"$ac_path_EGREP" --version 2>&1` in
4290*GNU*)
4291 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4292*)
4293 ac_count=0
4294 $as_echo_n 0123456789 >"conftest.in"
4295 while :
4296 do
4297 cat "conftest.in" "conftest.in" >"conftest.tmp"
4298 mv "conftest.tmp" "conftest.in"
4299 cp "conftest.in" "conftest.nl"
4300 $as_echo 'EGREP' >> "conftest.nl"
4301 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4302 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4303 as_fn_arith $ac_count + 1 && ac_count=$as_val
4304 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4305 # Best one so far, save it but keep looking for a better one
4306 ac_cv_path_EGREP="$ac_path_EGREP"
4307 ac_path_EGREP_max=$ac_count
7357c5b6 4308 fi
81ecdfbb
RW
4309 # 10*(2^10) chars as input seems more than enough
4310 test $ac_count -gt 10 && break
4311 done
4312 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4313esac
4314
4315 $ac_path_EGREP_found && break 3
4316 done
4317 done
4318 done
4319IFS=$as_save_IFS
4320 if test -z "$ac_cv_path_EGREP"; then
d0ac1c44 4321 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
81ecdfbb
RW
4322 fi
4323else
4324 ac_cv_path_EGREP=$EGREP
4325fi
4326
4327 fi
7357c5b6 4328fi
81ecdfbb
RW
4329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4330$as_echo "$ac_cv_path_EGREP" >&6; }
4331 EGREP="$ac_cv_path_EGREP"
d7040cdb
SE
4332
4333
81ecdfbb
RW
4334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4335$as_echo_n "checking for ANSI C header files... " >&6; }
d0ac1c44 4336if ${ac_cv_header_stdc+:} false; then :
81ecdfbb 4337 $as_echo_n "(cached) " >&6
7357c5b6 4338else
81ecdfbb 4339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4340/* end confdefs.h. */
4341#include <stdlib.h>
4342#include <stdarg.h>
4343#include <string.h>
4344#include <float.h>
d7040cdb 4345
7357c5b6
AM
4346int
4347main ()
4348{
d7040cdb 4349
7357c5b6
AM
4350 ;
4351 return 0;
4352}
4353_ACEOF
81ecdfbb 4354if ac_fn_c_try_compile "$LINENO"; then :
7357c5b6
AM
4355 ac_cv_header_stdc=yes
4356else
81ecdfbb 4357 ac_cv_header_stdc=no
7357c5b6 4358fi
81ecdfbb 4359rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d7040cdb 4360
7357c5b6
AM
4361if test $ac_cv_header_stdc = yes; then
4362 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
81ecdfbb 4363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4364/* end confdefs.h. */
4365#include <string.h>
d7040cdb 4366
7357c5b6
AM
4367_ACEOF
4368if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
81ecdfbb
RW
4369 $EGREP "memchr" >/dev/null 2>&1; then :
4370
7357c5b6
AM
4371else
4372 ac_cv_header_stdc=no
4373fi
4374rm -f conftest*
d7040cdb 4375
7357c5b6 4376fi
d7040cdb 4377
7357c5b6
AM
4378if test $ac_cv_header_stdc = yes; then
4379 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
81ecdfbb 4380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4381/* end confdefs.h. */
4382#include <stdlib.h>
d7040cdb 4383
7357c5b6
AM
4384_ACEOF
4385if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
81ecdfbb
RW
4386 $EGREP "free" >/dev/null 2>&1; then :
4387
7357c5b6
AM
4388else
4389 ac_cv_header_stdc=no
4390fi
4391rm -f conftest*
d7040cdb 4392
7357c5b6 4393fi
d7040cdb 4394
7357c5b6
AM
4395if test $ac_cv_header_stdc = yes; then
4396 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
81ecdfbb 4397 if test "$cross_compiling" = yes; then :
7357c5b6
AM
4398 :
4399else
81ecdfbb 4400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4401/* end confdefs.h. */
4402#include <ctype.h>
81ecdfbb 4403#include <stdlib.h>
7357c5b6
AM
4404#if ((' ' & 0x0FF) == 0x020)
4405# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4406# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4407#else
4408# define ISLOWER(c) \
4409 (('a' <= (c) && (c) <= 'i') \
4410 || ('j' <= (c) && (c) <= 'r') \
4411 || ('s' <= (c) && (c) <= 'z'))
4412# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4413#endif
d7040cdb 4414
7357c5b6
AM
4415#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4416int
4417main ()
4418{
4419 int i;
4420 for (i = 0; i < 256; i++)
4421 if (XOR (islower (i), ISLOWER (i))
4422 || toupper (i) != TOUPPER (i))
81ecdfbb
RW
4423 return 2;
4424 return 0;
7357c5b6
AM
4425}
4426_ACEOF
81ecdfbb 4427if ac_fn_c_try_run "$LINENO"; then :
d7040cdb 4428
81ecdfbb
RW
4429else
4430 ac_cv_header_stdc=no
7357c5b6 4431fi
81ecdfbb
RW
4432rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4433 conftest.$ac_objext conftest.beam conftest.$ac_ext
7357c5b6 4434fi
81ecdfbb 4435
7357c5b6
AM
4436fi
4437fi
81ecdfbb
RW
4438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4439$as_echo "$ac_cv_header_stdc" >&6; }
7357c5b6 4440if test $ac_cv_header_stdc = yes; then
d7040cdb 4441
81ecdfbb 4442$as_echo "#define STDC_HEADERS 1" >>confdefs.h
d7040cdb 4443
7357c5b6 4444fi
d7040cdb 4445
7357c5b6 4446# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7357c5b6
AM
4447for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4448 inttypes.h stdint.h unistd.h
81ecdfbb
RW
4449do :
4450 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4451ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4452"
d0ac1c44 4453if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7357c5b6 4454 cat >>confdefs.h <<_ACEOF
81ecdfbb 4455#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7357c5b6 4456_ACEOF
d7040cdb 4457
7357c5b6 4458fi
d7040cdb 4459
7357c5b6 4460done
d7040cdb
SE
4461
4462
4463
81ecdfbb 4464 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
d0ac1c44 4465if test "x$ac_cv_header_minix_config_h" = xyes; then :
7357c5b6
AM
4466 MINIX=yes
4467else
4468 MINIX=
4469fi
d7040cdb
SE
4470
4471
7357c5b6 4472 if test "$MINIX" = yes; then
d7040cdb 4473
81ecdfbb 4474$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
dabbade6 4475
252b5132 4476
81ecdfbb 4477$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
d7040cdb
SE
4478
4479
81ecdfbb 4480$as_echo "#define _MINIX 1" >>confdefs.h
d7040cdb 4481
7357c5b6 4482 fi
d7040cdb
SE
4483
4484
81ecdfbb
RW
4485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4486$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
d0ac1c44 4487if ${ac_cv_safe_to_define___extensions__+:} false; then :
81ecdfbb 4488 $as_echo_n "(cached) " >&6
ac48eca1 4489else
81ecdfbb 4490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6 4491/* end confdefs.h. */
ac48eca1 4492
d0ac1c44
SM
4493# define __EXTENSIONS__ 1
4494 $ac_includes_default
7357c5b6
AM
4495int
4496main ()
4497{
87e6d782 4498
7357c5b6
AM
4499 ;
4500 return 0;
4501}
4502_ACEOF
81ecdfbb 4503if ac_fn_c_try_compile "$LINENO"; then :
7357c5b6
AM
4504 ac_cv_safe_to_define___extensions__=yes
4505else
81ecdfbb 4506 ac_cv_safe_to_define___extensions__=no
7357c5b6 4507fi
81ecdfbb 4508rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7357c5b6 4509fi
81ecdfbb
RW
4510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4511$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
7357c5b6 4512 test $ac_cv_safe_to_define___extensions__ = yes &&
81ecdfbb 4513 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
ac48eca1 4514
81ecdfbb 4515 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
d7040cdb 4516
81ecdfbb
RW
4517 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4518
4519 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4520
4521 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
d7040cdb 4522
ac48eca1 4523
ac48eca1 4524
ac48eca1 4525
87e6d782 4526
7357c5b6
AM
4527if test -n "$ac_tool_prefix"; then
4528 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4529set dummy ${ac_tool_prefix}ar; ac_word=$2
81ecdfbb
RW
4530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4531$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4532if ${ac_cv_prog_AR+:} false; then :
81ecdfbb 4533 $as_echo_n "(cached) " >&6
dabbade6 4534else
7357c5b6
AM
4535 if test -n "$AR"; then
4536 ac_cv_prog_AR="$AR" # Let the user override the test.
4537else
4538as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4539for as_dir in $PATH
4540do
4541 IFS=$as_save_IFS
4542 test -z "$as_dir" && as_dir=.
81ecdfbb 4543 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4544 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7357c5b6 4545 ac_cv_prog_AR="${ac_tool_prefix}ar"
81ecdfbb 4546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357c5b6
AM
4547 break 2
4548 fi
4549done
81ecdfbb
RW
4550 done
4551IFS=$as_save_IFS
ac48eca1 4552
7357c5b6
AM
4553fi
4554fi
4555AR=$ac_cv_prog_AR
4556if test -n "$AR"; then
81ecdfbb
RW
4557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4558$as_echo "$AR" >&6; }
dabbade6 4559else
81ecdfbb
RW
4560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4561$as_echo "no" >&6; }
dabbade6 4562fi
6be7c12c 4563
81ecdfbb 4564
7357c5b6
AM
4565fi
4566if test -z "$ac_cv_prog_AR"; then
4567 ac_ct_AR=$AR
4568 # Extract the first word of "ar", so it can be a program name with args.
4569set dummy ar; ac_word=$2
81ecdfbb
RW
4570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4571$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4572if ${ac_cv_prog_ac_ct_AR+:} false; then :
81ecdfbb 4573 $as_echo_n "(cached) " >&6
7357c5b6
AM
4574else
4575 if test -n "$ac_ct_AR"; then
4576 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4577else
4578as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4579for as_dir in $PATH
4580do
4581 IFS=$as_save_IFS
4582 test -z "$as_dir" && as_dir=.
81ecdfbb 4583 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4584 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7357c5b6 4585 ac_cv_prog_ac_ct_AR="ar"
81ecdfbb 4586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357c5b6
AM
4587 break 2
4588 fi
4589done
81ecdfbb
RW
4590 done
4591IFS=$as_save_IFS
7357c5b6
AM
4592
4593fi
4594fi
4595ac_ct_AR=$ac_cv_prog_ac_ct_AR
4596if test -n "$ac_ct_AR"; then
81ecdfbb
RW
4597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4598$as_echo "$ac_ct_AR" >&6; }
7357c5b6 4599else
81ecdfbb
RW
4600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4601$as_echo "no" >&6; }
7357c5b6
AM
4602fi
4603
81ecdfbb
RW
4604 if test "x$ac_ct_AR" = x; then
4605 AR=""
4606 else
4607 case $cross_compiling:$ac_tool_warned in
4608yes:)
4609{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4610$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4611ac_tool_warned=yes ;;
4612esac
4613 AR=$ac_ct_AR
4614 fi
7357c5b6
AM
4615else
4616 AR="$ac_cv_prog_AR"
4617fi
4618
4619if test -n "$ac_tool_prefix"; then
4620 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4621set dummy ${ac_tool_prefix}ranlib; ac_word=$2
81ecdfbb
RW
4622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4623$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4624if ${ac_cv_prog_RANLIB+:} false; then :
81ecdfbb 4625 $as_echo_n "(cached) " >&6
7357c5b6
AM
4626else
4627 if test -n "$RANLIB"; then
4628 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4629else
4630as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4631for as_dir in $PATH
4632do
4633 IFS=$as_save_IFS
4634 test -z "$as_dir" && as_dir=.
81ecdfbb 4635 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4636 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7357c5b6 4637 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
81ecdfbb 4638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357c5b6
AM
4639 break 2
4640 fi
4641done
81ecdfbb
RW
4642 done
4643IFS=$as_save_IFS
7357c5b6
AM
4644
4645fi
4646fi
4647RANLIB=$ac_cv_prog_RANLIB
4648if test -n "$RANLIB"; then
81ecdfbb
RW
4649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4650$as_echo "$RANLIB" >&6; }
7357c5b6 4651else
81ecdfbb
RW
4652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4653$as_echo "no" >&6; }
7357c5b6
AM
4654fi
4655
81ecdfbb 4656
7357c5b6
AM
4657fi
4658if test -z "$ac_cv_prog_RANLIB"; then
4659 ac_ct_RANLIB=$RANLIB
4660 # Extract the first word of "ranlib", so it can be a program name with args.
4661set dummy ranlib; ac_word=$2
81ecdfbb
RW
4662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4663$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4664if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
81ecdfbb 4665 $as_echo_n "(cached) " >&6
7357c5b6
AM
4666else
4667 if test -n "$ac_ct_RANLIB"; then
4668 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4669else
4670as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4671for as_dir in $PATH
4672do
4673 IFS=$as_save_IFS
4674 test -z "$as_dir" && as_dir=.
81ecdfbb 4675 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4676 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7357c5b6 4677 ac_cv_prog_ac_ct_RANLIB="ranlib"
81ecdfbb 4678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357c5b6
AM
4679 break 2
4680 fi
4681done
81ecdfbb
RW
4682 done
4683IFS=$as_save_IFS
7357c5b6 4684
7357c5b6
AM
4685fi
4686fi
4687ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4688if test -n "$ac_ct_RANLIB"; then
81ecdfbb
RW
4689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4690$as_echo "$ac_ct_RANLIB" >&6; }
7357c5b6 4691else
81ecdfbb
RW
4692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4693$as_echo "no" >&6; }
7357c5b6
AM
4694fi
4695
81ecdfbb
RW
4696 if test "x$ac_ct_RANLIB" = x; then
4697 RANLIB=":"
4698 else
4699 case $cross_compiling:$ac_tool_warned in
4700yes:)
4701{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4702$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4703ac_tool_warned=yes ;;
4704esac
4705 RANLIB=$ac_ct_RANLIB
4706 fi
7357c5b6
AM
4707else
4708 RANLIB="$ac_cv_prog_RANLIB"
4709fi
4710
4711
81ecdfbb
RW
4712# Check whether --enable-shared was given.
4713if test "${enable_shared+set}" = set; then :
4714 enableval=$enable_shared; p=${PACKAGE-default}
7357c5b6
AM
4715 case $enableval in
4716 yes) enable_shared=yes ;;
4717 no) enable_shared=no ;;
4718 *)
4719 enable_shared=no
4720 # Look at the argument we got. We use all the common list separators.
4721 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4722 for pkg in $enableval; do
4723 IFS="$lt_save_ifs"
4724 if test "X$pkg" = "X$p"; then
4725 enable_shared=yes
4726 fi
4727 done
4728 IFS="$lt_save_ifs"
4729 ;;
4730 esac
4731else
4732 enable_shared=no
81ecdfbb
RW
4733fi
4734
7357c5b6
AM
4735
4736
4737
4738
4739
4740
4741
4742
4743
1927a18f
L
4744case `pwd` in
4745 *\ * | *\ *)
81ecdfbb
RW
4746 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4747$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
1927a18f 4748esac
7357c5b6
AM
4749
4750
7357c5b6 4751
3725885a
RW
4752macro_version='2.2.7a'
4753macro_revision='1.3134'
7357c5b6
AM
4754
4755
4756
4757
4758
4759
7357c5b6
AM
4760
4761
4762
4763
4764
4765
4766
1927a18f 4767ltmain="$ac_aux_dir/ltmain.sh"
7357c5b6 4768
3725885a
RW
4769# Backslashify metacharacters that are still active within
4770# double-quoted strings.
4771sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4772
4773# Same as above, but do not quote variable references.
4774double_quote_subst='s/\(["`\\]\)/\\\1/g'
4775
4776# Sed substitution to delay expansion of an escaped shell variable in a
4777# double_quote_subst'ed string.
4778delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4779
4780# Sed substitution to delay expansion of an escaped single quote.
4781delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4782
4783# Sed substitution to avoid accidental globbing in evaled expressions
4784no_glob_subst='s/\*/\\\*/g'
4785
4786ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4787ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4788ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4789
4790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4791$as_echo_n "checking how to print strings... " >&6; }
4792# Test print first, because it will be a builtin if present.
4793if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4794 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4795 ECHO='print -r --'
4796elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4797 ECHO='printf %s\n'
4798else
4799 # Use this function as a fallback that always works.
4800 func_fallback_echo ()
4801 {
4802 eval 'cat <<_LTECHO_EOF
4803$1
4804_LTECHO_EOF'
4805 }
4806 ECHO='func_fallback_echo'
4807fi
4808
4809# func_echo_all arg...
4810# Invoke $ECHO with all args, space-separated.
4811func_echo_all ()
4812{
4813 $ECHO ""
4814}
4815
4816case "$ECHO" in
4817 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4818$as_echo "printf" >&6; } ;;
4819 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4820$as_echo "print -r" >&6; } ;;
4821 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4822$as_echo "cat" >&6; } ;;
4823esac
4824
4825
4826
4827
4828
4829
4830
4831
4832
4833
4834
4835
4836
4837
81ecdfbb
RW
4838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4839$as_echo_n "checking for a sed that does not truncate output... " >&6; }
d0ac1c44 4840if ${ac_cv_path_SED+:} false; then :
81ecdfbb 4841 $as_echo_n "(cached) " >&6
7357c5b6 4842else
81ecdfbb
RW
4843 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4844 for ac_i in 1 2 3 4 5 6 7; do
4845 ac_script="$ac_script$as_nl$ac_script"
4846 done
4847 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4848 { ac_script=; unset ac_script;}
4849 if test -z "$SED"; then
4850 ac_path_SED_found=false
4851 # Loop through the user's path and test for each of PROGNAME-LIST
4852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7357c5b6
AM
4853for as_dir in $PATH
4854do
4855 IFS=$as_save_IFS
4856 test -z "$as_dir" && as_dir=.
81ecdfbb 4857 for ac_prog in sed gsed; do
7357c5b6 4858 for ac_exec_ext in '' $ac_executable_extensions; do
81ecdfbb 4859 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
d0ac1c44 4860 as_fn_executable_p "$ac_path_SED" || continue
81ecdfbb
RW
4861# Check for GNU ac_path_SED and select it if it is found.
4862 # Check for GNU $ac_path_SED
4863case `"$ac_path_SED" --version 2>&1` in
4864*GNU*)
4865 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4866*)
4867 ac_count=0
4868 $as_echo_n 0123456789 >"conftest.in"
4869 while :
4870 do
4871 cat "conftest.in" "conftest.in" >"conftest.tmp"
4872 mv "conftest.tmp" "conftest.in"
4873 cp "conftest.in" "conftest.nl"
4874 $as_echo '' >> "conftest.nl"
4875 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4876 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4877 as_fn_arith $ac_count + 1 && ac_count=$as_val
4878 if test $ac_count -gt ${ac_path_SED_max-0}; then
4879 # Best one so far, save it but keep looking for a better one
4880 ac_cv_path_SED="$ac_path_SED"
4881 ac_path_SED_max=$ac_count
4882 fi
4883 # 10*(2^10) chars as input seems more than enough
4884 test $ac_count -gt 10 && break
4885 done
4886 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4887esac
4888
4889 $ac_path_SED_found && break 3
7357c5b6
AM
4890 done
4891 done
81ecdfbb 4892 done
7357c5b6 4893IFS=$as_save_IFS
81ecdfbb 4894 if test -z "$ac_cv_path_SED"; then
d0ac1c44 4895 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
7357c5b6 4896 fi
81ecdfbb
RW
4897else
4898 ac_cv_path_SED=$SED
7357c5b6
AM
4899fi
4900
81ecdfbb
RW
4901fi
4902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4903$as_echo "$ac_cv_path_SED" >&6; }
4904 SED="$ac_cv_path_SED"
4905 rm -f conftest.sed
7357c5b6
AM
4906
4907test -z "$SED" && SED=sed
4908Xsed="$SED -e 1s/^X//"
4909
4910
4911
4912
4913
4914
4915
4916
4917
4918
4919
81ecdfbb
RW
4920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4921$as_echo_n "checking for fgrep... " >&6; }
d0ac1c44 4922if ${ac_cv_path_FGREP+:} false; then :
81ecdfbb 4923 $as_echo_n "(cached) " >&6
7357c5b6 4924else
81ecdfbb
RW
4925 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4926 then ac_cv_path_FGREP="$GREP -F"
4927 else
4928 if test -z "$FGREP"; then
4929 ac_path_FGREP_found=false
4930 # Loop through the user's path and test for each of PROGNAME-LIST
4931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4932for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4933do
4934 IFS=$as_save_IFS
4935 test -z "$as_dir" && as_dir=.
4936 for ac_prog in fgrep; do
4937 for ac_exec_ext in '' $ac_executable_extensions; do
4938 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
d0ac1c44 4939 as_fn_executable_p "$ac_path_FGREP" || continue
81ecdfbb
RW
4940# Check for GNU ac_path_FGREP and select it if it is found.
4941 # Check for GNU $ac_path_FGREP
4942case `"$ac_path_FGREP" --version 2>&1` in
4943*GNU*)
4944 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4945*)
4946 ac_count=0
4947 $as_echo_n 0123456789 >"conftest.in"
4948 while :
4949 do
4950 cat "conftest.in" "conftest.in" >"conftest.tmp"
4951 mv "conftest.tmp" "conftest.in"
4952 cp "conftest.in" "conftest.nl"
4953 $as_echo 'FGREP' >> "conftest.nl"
4954 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4955 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4956 as_fn_arith $ac_count + 1 && ac_count=$as_val
4957 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4958 # Best one so far, save it but keep looking for a better one
4959 ac_cv_path_FGREP="$ac_path_FGREP"
4960 ac_path_FGREP_max=$ac_count
7357c5b6 4961 fi
81ecdfbb
RW
4962 # 10*(2^10) chars as input seems more than enough
4963 test $ac_count -gt 10 && break
4964 done
4965 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4966esac
4967
4968 $ac_path_FGREP_found && break 3
4969 done
4970 done
4971 done
4972IFS=$as_save_IFS
4973 if test -z "$ac_cv_path_FGREP"; then
d0ac1c44 4974 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
81ecdfbb
RW
4975 fi
4976else
4977 ac_cv_path_FGREP=$FGREP
4978fi
4979
4980 fi
7357c5b6 4981fi
81ecdfbb
RW
4982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4983$as_echo "$ac_cv_path_FGREP" >&6; }
4984 FGREP="$ac_cv_path_FGREP"
7357c5b6
AM
4985
4986
4987test -z "$GREP" && GREP=grep
d7040cdb 4988
d7040cdb 4989
d7040cdb 4990
ac48eca1
AO
4991
4992
4993
ac48eca1 4994
ac48eca1 4995
ac48eca1 4996
ac48eca1 4997
ac48eca1 4998
ac48eca1 4999
ac48eca1 5000
ac48eca1 5001
ac48eca1 5002
ac48eca1 5003
dabbade6
L
5004
5005
5006
81ecdfbb
RW
5007# Check whether --with-gnu-ld was given.
5008if test "${with_gnu_ld+set}" = set; then :
5009 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
dabbade6
L
5010else
5011 with_gnu_ld=no
81ecdfbb
RW
5012fi
5013
dabbade6
L
5014ac_prog=ld
5015if test "$GCC" = yes; then
5016 # Check if gcc -print-prog-name=ld gives a path.
81ecdfbb
RW
5017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5018$as_echo_n "checking for ld used by $CC... " >&6; }
dabbade6
L
5019 case $host in
5020 *-*-mingw*)
5021 # gcc leaves a trailing carriage return which upsets mingw
5022 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5023 *)
5024 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5025 esac
5026 case $ac_prog in
5027 # Accept absolute paths.
5028 [\\/]* | ?:[\\/]*)
5029 re_direlt='/[^/][^/]*/\.\./'
5030 # Canonicalize the pathname of ld
5031 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5032 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5033 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5034 done
5035 test -z "$LD" && LD="$ac_prog"
5036 ;;
5037 "")
5038 # If it fails, then pretend we aren't using GCC.
5039 ac_prog=ld
5040 ;;
5041 *)
5042 # If it is relative, then search for the first ld in PATH.
5043 with_gnu_ld=unknown
5044 ;;
5045 esac
5046elif test "$with_gnu_ld" = yes; then
81ecdfbb
RW
5047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5048$as_echo_n "checking for GNU ld... " >&6; }
dabbade6 5049else
81ecdfbb
RW
5050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5051$as_echo_n "checking for non-GNU ld... " >&6; }
dabbade6 5052fi
d0ac1c44 5053if ${lt_cv_path_LD+:} false; then :
81ecdfbb 5054 $as_echo_n "(cached) " >&6
ac48eca1 5055else
dabbade6
L
5056 if test -z "$LD"; then
5057 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5058 for ac_dir in $PATH; do
5059 IFS="$lt_save_ifs"
5060 test -z "$ac_dir" && ac_dir=.
5061 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5062 lt_cv_path_LD="$ac_dir/$ac_prog"
5063 # Check to see if the program is GNU ld. I'd rather use --version,
5064 # but apparently some variants of GNU ld only accept -v.
5065 # Break only if it was the GNU/non-GNU ld that we prefer.
5066 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5067 *GNU* | *'with BFD'*)
5068 test "$with_gnu_ld" != no && break
5069 ;;
5070 *)
5071 test "$with_gnu_ld" != yes && break
5072 ;;
5073 esac
5074 fi
5075 done
5076 IFS="$lt_save_ifs"
ac48eca1 5077else
dabbade6 5078 lt_cv_path_LD="$LD" # Let the user override the test with a path.
ac48eca1
AO
5079fi
5080fi
dabbade6
L
5081
5082LD="$lt_cv_path_LD"
5083if test -n "$LD"; then
81ecdfbb
RW
5084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5085$as_echo "$LD" >&6; }
ac48eca1 5086else
81ecdfbb
RW
5087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5088$as_echo "no" >&6; }
ac48eca1 5089fi
d0ac1c44 5090test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
81ecdfbb
RW
5091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5092$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
d0ac1c44 5093if ${lt_cv_prog_gnu_ld+:} false; then :
81ecdfbb 5094 $as_echo_n "(cached) " >&6
ac48eca1 5095else
dabbade6
L
5096 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5097case `$LD -v 2>&1 </dev/null` in
5098*GNU* | *'with BFD'*)
5099 lt_cv_prog_gnu_ld=yes
5100 ;;
5101*)
5102 lt_cv_prog_gnu_ld=no
5103 ;;
5104esac
ac48eca1 5105fi
81ecdfbb
RW
5106{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5107$as_echo "$lt_cv_prog_gnu_ld" >&6; }
dabbade6 5108with_gnu_ld=$lt_cv_prog_gnu_ld
d7040cdb
SE
5109
5110
5111
5112
5113
5114
5115
5116
5117
81ecdfbb
RW
5118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5119$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
d0ac1c44 5120if ${lt_cv_path_NM+:} false; then :
81ecdfbb 5121 $as_echo_n "(cached) " >&6
ac48eca1 5122else
dabbade6
L
5123 if test -n "$NM"; then
5124 # Let the user override the test.
5125 lt_cv_path_NM="$NM"
ac48eca1 5126else
dabbade6
L
5127 lt_nm_to_check="${ac_tool_prefix}nm"
5128 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5129 lt_nm_to_check="$lt_nm_to_check nm"
979273e3 5130 fi
dabbade6
L
5131 for lt_tmp_nm in $lt_nm_to_check; do
5132 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5133 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5134 IFS="$lt_save_ifs"
5135 test -z "$ac_dir" && ac_dir=.
5136 tmp_nm="$ac_dir/$lt_tmp_nm"
5137 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5138 # Check to see if the nm accepts a BSD-compat flag.
5139 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5140 # nm: unknown option "B" ignored
5141 # Tru64's nm complains that /dev/null is an invalid object file
5142 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5143 */dev/null* | *'Invalid file or object type'*)
5144 lt_cv_path_NM="$tmp_nm -B"
5145 break
5146 ;;
5147 *)
5148 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5149 */dev/null*)
5150 lt_cv_path_NM="$tmp_nm -p"
5151 break
5152 ;;
5153 *)
5154 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5155 continue # so that we can try to find one that supports BSD flags
5156 ;;
5157 esac
5158 ;;
5159 esac
5160 fi
5161 done
5162 IFS="$lt_save_ifs"
5163 done
5164 : ${lt_cv_path_NM=no}
ac48eca1
AO
5165fi
5166fi
81ecdfbb
RW
5167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5168$as_echo "$lt_cv_path_NM" >&6; }
dabbade6
L
5169if test "$lt_cv_path_NM" != "no"; then
5170 NM="$lt_cv_path_NM"
ac48eca1 5171else
dabbade6 5172 # Didn't find any BSD compatible name lister, look for dumpbin.
3725885a
RW
5173 if test -n "$DUMPBIN"; then :
5174 # Let the user override the test.
5175 else
5176 if test -n "$ac_tool_prefix"; then
5177 for ac_prog in dumpbin "link -dump"
dabbade6
L
5178 do
5179 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5180set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
5181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5182$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5183if ${ac_cv_prog_DUMPBIN+:} false; then :
81ecdfbb 5184 $as_echo_n "(cached) " >&6
ac48eca1 5185else
dabbade6
L
5186 if test -n "$DUMPBIN"; then
5187 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
ac48eca1 5188else
979273e3
NN
5189as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5190for as_dir in $PATH
5191do
5192 IFS=$as_save_IFS
5193 test -z "$as_dir" && as_dir=.
81ecdfbb 5194 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5195 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
dabbade6 5196 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
81ecdfbb 5197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
979273e3
NN
5198 break 2
5199 fi
5200done
81ecdfbb
RW
5201 done
5202IFS=$as_save_IFS
979273e3 5203
ac48eca1
AO
5204fi
5205fi
dabbade6
L
5206DUMPBIN=$ac_cv_prog_DUMPBIN
5207if test -n "$DUMPBIN"; then
81ecdfbb
RW
5208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5209$as_echo "$DUMPBIN" >&6; }
ac48eca1 5210else
81ecdfbb
RW
5211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5212$as_echo "no" >&6; }
ac48eca1
AO
5213fi
5214
81ecdfbb 5215
dabbade6
L
5216 test -n "$DUMPBIN" && break
5217 done
ac48eca1 5218fi
dabbade6
L
5219if test -z "$DUMPBIN"; then
5220 ac_ct_DUMPBIN=$DUMPBIN
3725885a 5221 for ac_prog in dumpbin "link -dump"
dabbade6
L
5222do
5223 # Extract the first word of "$ac_prog", so it can be a program name with args.
5224set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
5225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5226$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5227if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
81ecdfbb 5228 $as_echo_n "(cached) " >&6
ac48eca1 5229else
dabbade6
L
5230 if test -n "$ac_ct_DUMPBIN"; then
5231 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
d7040cdb
SE
5232else
5233as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5234for as_dir in $PATH
5235do
5236 IFS=$as_save_IFS
5237 test -z "$as_dir" && as_dir=.
81ecdfbb 5238 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5239 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
dabbade6 5240 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
81ecdfbb 5241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb 5242 break 2
252b5132 5243 fi
d7040cdb 5244done
81ecdfbb
RW
5245 done
5246IFS=$as_save_IFS
252b5132 5247
d7040cdb
SE
5248fi
5249fi
dabbade6
L
5250ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5251if test -n "$ac_ct_DUMPBIN"; then
81ecdfbb
RW
5252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5253$as_echo "$ac_ct_DUMPBIN" >&6; }
d7040cdb 5254else
81ecdfbb
RW
5255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5256$as_echo "no" >&6; }
d7040cdb 5257fi
4867be41 5258
81ecdfbb 5259
dabbade6 5260 test -n "$ac_ct_DUMPBIN" && break
d7040cdb 5261done
32fba81d 5262
81ecdfbb
RW
5263 if test "x$ac_ct_DUMPBIN" = x; then
5264 DUMPBIN=":"
5265 else
5266 case $cross_compiling:$ac_tool_warned in
5267yes:)
5268{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5269$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5270ac_tool_warned=yes ;;
5271esac
5272 DUMPBIN=$ac_ct_DUMPBIN
5273 fi
d7040cdb 5274fi
979273e3 5275
3725885a
RW
5276 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5277 *COFF*)
5278 DUMPBIN="$DUMPBIN -symbols"
5279 ;;
5280 *)
5281 DUMPBIN=:
5282 ;;
5283 esac
5284 fi
979273e3 5285
dabbade6
L
5286 if test "$DUMPBIN" != ":"; then
5287 NM="$DUMPBIN"
5288 fi
5289fi
5290test -z "$NM" && NM=nm
ac48eca1 5291
252b5132 5292
252b5132 5293
979273e3 5294
ac48eca1 5295
d7040cdb 5296
81ecdfbb
RW
5297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5298$as_echo_n "checking the name lister ($NM) interface... " >&6; }
d0ac1c44 5299if ${lt_cv_nm_interface+:} false; then :
81ecdfbb 5300 $as_echo_n "(cached) " >&6
dabbade6
L
5301else
5302 lt_cv_nm_interface="BSD nm"
5303 echo "int some_variable = 0;" > conftest.$ac_ext
3725885a 5304 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
dabbade6
L
5305 (eval "$ac_compile" 2>conftest.err)
5306 cat conftest.err >&5
3725885a 5307 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
dabbade6
L
5308 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5309 cat conftest.err >&5
3725885a 5310 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
dabbade6
L
5311 cat conftest.out >&5
5312 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5313 lt_cv_nm_interface="MS dumpbin"
5314 fi
5315 rm -f conftest*
5316fi
81ecdfbb
RW
5317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5318$as_echo "$lt_cv_nm_interface" >&6; }
d7040cdb 5319
81ecdfbb
RW
5320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5321$as_echo_n "checking whether ln -s works... " >&6; }
dabbade6
L
5322LN_S=$as_ln_s
5323if test "$LN_S" = "ln -s"; then
81ecdfbb
RW
5324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5325$as_echo "yes" >&6; }
dabbade6 5326else
81ecdfbb
RW
5327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5328$as_echo "no, using $LN_S" >&6; }
dabbade6
L
5329fi
5330
5331# find the maximum length of command line arguments
81ecdfbb
RW
5332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5333$as_echo_n "checking the maximum length of command line arguments... " >&6; }
d0ac1c44 5334if ${lt_cv_sys_max_cmd_len+:} false; then :
81ecdfbb 5335 $as_echo_n "(cached) " >&6
dabbade6
L
5336else
5337 i=0
5338 teststring="ABCD"
5339
5340 case $build_os in
5341 msdosdjgpp*)
5342 # On DJGPP, this test can blow up pretty badly due to problems in libc
5343 # (any single argument exceeding 2000 bytes causes a buffer overrun
5344 # during glob expansion). Even if it were fixed, the result of this
5345 # check would be larger than it should be.
5346 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5347 ;;
5348
5349 gnu*)
5350 # Under GNU Hurd, this test is not required because there is
5351 # no limit to the length of command line arguments.
5352 # Libtool will interpret -1 as no limit whatsoever
5353 lt_cv_sys_max_cmd_len=-1;
5354 ;;
5355
1927a18f 5356 cygwin* | mingw* | cegcc*)
dabbade6
L
5357 # On Win9x/ME, this test blows up -- it succeeds, but takes
5358 # about 5 minutes as the teststring grows exponentially.
5359 # Worse, since 9x/ME are not pre-emptively multitasking,
5360 # you end up with a "frozen" computer, even though with patience
5361 # the test eventually succeeds (with a max line length of 256k).
5362 # Instead, let's just punt: use the minimum linelength reported by
5363 # all of the supported platforms: 8192 (on NT/2K/XP).
5364 lt_cv_sys_max_cmd_len=8192;
5365 ;;
5366
3725885a
RW
5367 mint*)
5368 # On MiNT this can take a long time and run out of memory.
5369 lt_cv_sys_max_cmd_len=8192;
5370 ;;
5371
dabbade6
L
5372 amigaos*)
5373 # On AmigaOS with pdksh, this test takes hours, literally.
5374 # So we just punt and use a minimum line length of 8192.
5375 lt_cv_sys_max_cmd_len=8192;
5376 ;;
5377
5378 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5379 # This has been around since 386BSD, at least. Likely further.
5380 if test -x /sbin/sysctl; then
5381 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5382 elif test -x /usr/sbin/sysctl; then
5383 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5384 else
5385 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5386 fi
5387 # And add a safety zone
5388 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5389 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5390 ;;
5391
5392 interix*)
5393 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5394 lt_cv_sys_max_cmd_len=196608
5395 ;;
5396
5397 osf*)
5398 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5399 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5400 # nice to cause kernel panics so lets avoid the loop below.
5401 # First set a reasonable default.
5402 lt_cv_sys_max_cmd_len=16384
5403 #
5404 if test -x /sbin/sysconfig; then
5405 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5406 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5407 esac
5408 fi
5409 ;;
5410 sco3.2v5*)
5411 lt_cv_sys_max_cmd_len=102400
5412 ;;
5413 sysv5* | sco5v6* | sysv4.2uw2*)
5414 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5415 if test -n "$kargmax"; then
5416 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5417 else
5418 lt_cv_sys_max_cmd_len=32768
5419 fi
d7040cdb
SE
5420 ;;
5421 *)
1927a18f
L
5422 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5423 if test -n "$lt_cv_sys_max_cmd_len"; then
dabbade6
L
5424 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5425 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5426 else
5427 # Make teststring a little bigger before we do anything with it.
5428 # a 1K string should be a reasonable start.
5429 for i in 1 2 3 4 5 6 7 8 ; do
5430 teststring=$teststring$teststring
5431 done
5432 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5433 # If test is not a shell built-in, we'll probably end up computing a
5434 # maximum length that is only half of the actual maximum length, but
5435 # we can't tell.
3725885a
RW
5436 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5437 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
dabbade6
L
5438 test $i != 17 # 1/2 MB should be enough
5439 do
5440 i=`expr $i + 1`
5441 teststring=$teststring$teststring
5442 done
5443 # Only check the string length outside the loop.
5444 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5445 teststring=
5446 # Add a significant safety factor because C++ compilers can tack on
5447 # massive amounts of additional arguments before passing them to the
5448 # linker. It appears as though 1/2 is a usable value.
5449 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5450 fi
d7040cdb
SE
5451 ;;
5452 esac
252b5132 5453
dabbade6 5454fi
252b5132 5455
dabbade6 5456if test -n $lt_cv_sys_max_cmd_len ; then
81ecdfbb
RW
5457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5458$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
dabbade6 5459else
81ecdfbb
RW
5460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5461$as_echo "none" >&6; }
dabbade6
L
5462fi
5463max_cmd_len=$lt_cv_sys_max_cmd_len
252b5132 5464
252b5132 5465
979273e3 5466
979273e3 5467
252b5132 5468
252b5132 5469
dabbade6
L
5470: ${CP="cp -f"}
5471: ${MV="mv -f"}
5472: ${RM="rm -f"}
252b5132 5473
81ecdfbb
RW
5474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5475$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
dabbade6
L
5476# Try some XSI features
5477xsi_shell=no
5478( _lt_dummy="a/b/c"
5479 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
1927a18f
L
5480 = c,a/b,, \
5481 && eval 'test $(( 1 + 1 )) -eq 2 \
5482 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
dabbade6 5483 && xsi_shell=yes
81ecdfbb
RW
5484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5485$as_echo "$xsi_shell" >&6; }
252b5132 5486
252b5132 5487
81ecdfbb
RW
5488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5489$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
dabbade6
L
5490lt_shell_append=no
5491( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5492 >/dev/null 2>&1 \
5493 && lt_shell_append=yes
81ecdfbb
RW
5494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5495$as_echo "$lt_shell_append" >&6; }
252b5132 5496
ac48eca1 5497
dabbade6
L
5498if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5499 lt_unset=unset
5500else
5501 lt_unset=false
5502fi
979273e3
NN
5503
5504
5505
5506
ac48eca1 5507
dabbade6
L
5508# test EBCDIC or ASCII
5509case `echo X|tr X '\101'` in
5510 A) # ASCII based system
5511 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5512 lt_SP2NL='tr \040 \012'
5513 lt_NL2SP='tr \015\012 \040\040'
5514 ;;
5515 *) # EBCDIC based system
5516 lt_SP2NL='tr \100 \n'
5517 lt_NL2SP='tr \r\n \100\100'
5518 ;;
5519esac
9e9b66a9 5520
1ad12f97 5521
1ad12f97 5522
9e9b66a9 5523
1ad12f97 5524
a541e3ce 5525
9e9b66a9 5526
a2d91340
AC
5527
5528
81ecdfbb
RW
5529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5530$as_echo_n "checking for $LD option to reload object files... " >&6; }
d0ac1c44 5531if ${lt_cv_ld_reload_flag+:} false; then :
81ecdfbb 5532 $as_echo_n "(cached) " >&6
dabbade6
L
5533else
5534 lt_cv_ld_reload_flag='-r'
5535fi
81ecdfbb
RW
5536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5537$as_echo "$lt_cv_ld_reload_flag" >&6; }
dabbade6
L
5538reload_flag=$lt_cv_ld_reload_flag
5539case $reload_flag in
5540"" | " "*) ;;
5541*) reload_flag=" $reload_flag" ;;
5542esac
5543reload_cmds='$LD$reload_flag -o $output$reload_objs'
5544case $host_os in
5545 darwin*)
5546 if test "$GCC" = yes; then
5547 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5548 else
5549 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5550 fi
5551 ;;
5552esac
9e9b66a9
AM
5553
5554
5555
252b5132 5556
252b5132 5557
252b5132 5558
252b5132 5559
252b5132 5560
d7040cdb 5561
1927a18f
L
5562if test -n "$ac_tool_prefix"; then
5563 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5564set dummy ${ac_tool_prefix}objdump; ac_word=$2
81ecdfbb
RW
5565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5566$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5567if ${ac_cv_prog_OBJDUMP+:} false; then :
81ecdfbb 5568 $as_echo_n "(cached) " >&6
1927a18f
L
5569else
5570 if test -n "$OBJDUMP"; then
5571 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5572else
5573as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5574for as_dir in $PATH
5575do
5576 IFS=$as_save_IFS
5577 test -z "$as_dir" && as_dir=.
81ecdfbb 5578 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5579 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1927a18f 5580 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
81ecdfbb 5581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1927a18f
L
5582 break 2
5583 fi
5584done
81ecdfbb
RW
5585 done
5586IFS=$as_save_IFS
1927a18f
L
5587
5588fi
5589fi
5590OBJDUMP=$ac_cv_prog_OBJDUMP
5591if test -n "$OBJDUMP"; then
81ecdfbb
RW
5592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5593$as_echo "$OBJDUMP" >&6; }
1927a18f 5594else
81ecdfbb
RW
5595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5596$as_echo "no" >&6; }
1927a18f
L
5597fi
5598
81ecdfbb 5599
1927a18f
L
5600fi
5601if test -z "$ac_cv_prog_OBJDUMP"; then
5602 ac_ct_OBJDUMP=$OBJDUMP
5603 # Extract the first word of "objdump", so it can be a program name with args.
5604set dummy objdump; ac_word=$2
81ecdfbb
RW
5605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5606$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5607if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
81ecdfbb 5608 $as_echo_n "(cached) " >&6
1927a18f
L
5609else
5610 if test -n "$ac_ct_OBJDUMP"; then
5611 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5612else
5613as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5614for as_dir in $PATH
5615do
5616 IFS=$as_save_IFS
5617 test -z "$as_dir" && as_dir=.
81ecdfbb 5618 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5619 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1927a18f 5620 ac_cv_prog_ac_ct_OBJDUMP="objdump"
81ecdfbb 5621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1927a18f
L
5622 break 2
5623 fi
5624done
81ecdfbb
RW
5625 done
5626IFS=$as_save_IFS
1927a18f 5627
1927a18f
L
5628fi
5629fi
5630ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5631if test -n "$ac_ct_OBJDUMP"; then
81ecdfbb
RW
5632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5633$as_echo "$ac_ct_OBJDUMP" >&6; }
1927a18f 5634else
81ecdfbb
RW
5635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5636$as_echo "no" >&6; }
1927a18f
L
5637fi
5638
81ecdfbb
RW
5639 if test "x$ac_ct_OBJDUMP" = x; then
5640 OBJDUMP="false"
5641 else
5642 case $cross_compiling:$ac_tool_warned in
5643yes:)
5644{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5645$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5646ac_tool_warned=yes ;;
5647esac
5648 OBJDUMP=$ac_ct_OBJDUMP
5649 fi
1927a18f
L
5650else
5651 OBJDUMP="$ac_cv_prog_OBJDUMP"
5652fi
5653
5654test -z "$OBJDUMP" && OBJDUMP=objdump
5655
5656
5657
5658
5659
5660
5661
5662
d7040cdb 5663
81ecdfbb
RW
5664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5665$as_echo_n "checking how to recognize dependent libraries... " >&6; }
d0ac1c44 5666if ${lt_cv_deplibs_check_method+:} false; then :
81ecdfbb 5667 $as_echo_n "(cached) " >&6
252b5132 5668else
dabbade6
L
5669 lt_cv_file_magic_cmd='$MAGIC_CMD'
5670lt_cv_file_magic_test_file=
5671lt_cv_deplibs_check_method='unknown'
5672# Need to set the preceding variable on all platforms that support
5673# interlibrary dependencies.
5674# 'none' -- dependencies not supported.
5675# `unknown' -- same as none, but documents that we really don't know.
5676# 'pass_all' -- all dependencies passed with no checks.
5677# 'test_compile' -- check by making test program.
5678# 'file_magic [[regex]]' -- check by looking for files in library path
5679# which responds to the $file_magic_cmd with a given extended regex.
5680# If you have `file' or equivalent on your system and you're not sure
5681# whether `pass_all' will *always* work, you probably want this one.
8ae85421 5682
dabbade6 5683case $host_os in
50e7d84b 5684aix[4-9]*)
dabbade6
L
5685 lt_cv_deplibs_check_method=pass_all
5686 ;;
979273e3 5687
dabbade6
L
5688beos*)
5689 lt_cv_deplibs_check_method=pass_all
5690 ;;
24443139 5691
dabbade6
L
5692bsdi[45]*)
5693 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5694 lt_cv_file_magic_cmd='/usr/bin/file -L'
5695 lt_cv_file_magic_test_file=/shlib/libc.so
d7040cdb 5696 ;;
dabbade6
L
5697
5698cygwin*)
5699 # func_win32_libid is a shell function defined in ltmain.sh
5700 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5701 lt_cv_file_magic_cmd='func_win32_libid'
d7040cdb 5702 ;;
dabbade6
L
5703
5704mingw* | pw32*)
5705 # Base MSYS/MinGW do not provide the 'file' command needed by
5706 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5707 # unless we find 'file', for example because we are cross-compiling.
3725885a
RW
5708 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5709 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
dabbade6
L
5710 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5711 lt_cv_file_magic_cmd='func_win32_libid'
5712 else
5713 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5714 lt_cv_file_magic_cmd='$OBJDUMP -f'
d7040cdb
SE
5715 fi
5716 ;;
dabbade6 5717
3725885a 5718cegcc*)
1927a18f
L
5719 # use the weaker test based on 'objdump'. See mingw*.
5720 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5721 lt_cv_file_magic_cmd='$OBJDUMP -f'
5722 ;;
5723
dabbade6
L
5724darwin* | rhapsody*)
5725 lt_cv_deplibs_check_method=pass_all
d7040cdb 5726 ;;
dabbade6
L
5727
5728freebsd* | dragonfly*)
5729 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5730 case $host_cpu in
5731 i*86 )
5732 # Not sure whether the presence of OpenBSD here was a mistake.
5733 # Let's accept both of them until this is cleared up.
5734 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5735 lt_cv_file_magic_cmd=/usr/bin/file
5736 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5737 ;;
5738 esac
5739 else
5740 lt_cv_deplibs_check_method=pass_all
5741 fi
d7040cdb 5742 ;;
dabbade6
L
5743
5744gnu*)
5745 lt_cv_deplibs_check_method=pass_all
d7040cdb 5746 ;;
dabbade6 5747
3725885a
RW
5748haiku*)
5749 lt_cv_deplibs_check_method=pass_all
5750 ;;
5751
dabbade6
L
5752hpux10.20* | hpux11*)
5753 lt_cv_file_magic_cmd=/usr/bin/file
5754 case $host_cpu in
5755 ia64*)
5756 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5757 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5758 ;;
5759 hppa*64*)
3725885a 5760 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]'
dabbade6
L
5761 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5762 ;;
5763 *)
3725885a 5764 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
dabbade6
L
5765 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5766 ;;
5767 esac
d7040cdb 5768 ;;
24443139 5769
dabbade6
L
5770interix[3-9]*)
5771 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5772 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5773 ;;
24443139 5774
dabbade6
L
5775irix5* | irix6* | nonstopux*)
5776 case $LD in
5777 *-32|*"-32 ") libmagic=32-bit;;
5778 *-n32|*"-n32 ") libmagic=N32;;
5779 *-64|*"-64 ") libmagic=64-bit;;
5780 *) libmagic=never-match;;
5781 esac
5782 lt_cv_deplibs_check_method=pass_all
5783 ;;
8ae85421 5784
dabbade6 5785# This must be Linux ELF.
58e24671 5786linux* | k*bsd*-gnu | kopensolaris*-gnu)
dabbade6
L
5787 lt_cv_deplibs_check_method=pass_all
5788 ;;
24443139 5789
dabbade6
L
5790netbsd*)
5791 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5792 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5793 else
5794 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5795 fi
d7040cdb 5796 ;;
24443139 5797
dabbade6
L
5798newos6*)
5799 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5800 lt_cv_file_magic_cmd=/usr/bin/file
5801 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5802 ;;
d7040cdb 5803
dabbade6
L
5804*nto* | *qnx*)
5805 lt_cv_deplibs_check_method=pass_all
5806 ;;
d7040cdb 5807
dabbade6
L
5808openbsd*)
5809 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5810 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
d7040cdb 5811 else
dabbade6 5812 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
d7040cdb 5813 fi
dabbade6 5814 ;;
24443139 5815
dabbade6
L
5816osf3* | osf4* | osf5*)
5817 lt_cv_deplibs_check_method=pass_all
5818 ;;
24443139 5819
dabbade6
L
5820rdos*)
5821 lt_cv_deplibs_check_method=pass_all
5822 ;;
81172ff2 5823
dabbade6
L
5824solaris*)
5825 lt_cv_deplibs_check_method=pass_all
5826 ;;
81172ff2 5827
dabbade6
L
5828sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5829 lt_cv_deplibs_check_method=pass_all
5830 ;;
252b5132 5831
dabbade6
L
5832sysv4 | sysv4.3*)
5833 case $host_vendor in
5834 motorola)
5835 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]'
5836 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5837 ;;
5838 ncr)
5839 lt_cv_deplibs_check_method=pass_all
5840 ;;
5841 sequent)
5842 lt_cv_file_magic_cmd='/bin/file'
5843 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5844 ;;
5845 sni)
5846 lt_cv_file_magic_cmd='/bin/file'
5847 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5848 lt_cv_file_magic_test_file=/lib/libc.so
5849 ;;
5850 siemens)
5851 lt_cv_deplibs_check_method=pass_all
5852 ;;
5853 pc)
5854 lt_cv_deplibs_check_method=pass_all
5855 ;;
5856 esac
5857 ;;
252b5132 5858
dabbade6
L
5859tpf*)
5860 lt_cv_deplibs_check_method=pass_all
5861 ;;
5862esac
979273e3 5863
dabbade6 5864fi
81ecdfbb
RW
5865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5866$as_echo "$lt_cv_deplibs_check_method" >&6; }
dabbade6
L
5867file_magic_cmd=$lt_cv_file_magic_cmd
5868deplibs_check_method=$lt_cv_deplibs_check_method
5869test -z "$deplibs_check_method" && deplibs_check_method=unknown
d7040cdb 5870
979273e3 5871
979273e3 5872
dabbade6
L
5873
5874
5875
5876
5877
5878
5879
5880
5881
a4966cd9
L
5882plugin_option=
5883plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
5884for plugin in $plugin_names; do
5885 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
5886 if test x$plugin_so = x$plugin; then
5887 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
5888 fi
5889 if test x$plugin_so != x$plugin; then
5890 plugin_option="--plugin $plugin_so"
5891 break
5892 fi
5893done
5894
dabbade6
L
5895if test -n "$ac_tool_prefix"; then
5896 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5897set dummy ${ac_tool_prefix}ar; ac_word=$2
81ecdfbb
RW
5898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5899$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5900if ${ac_cv_prog_AR+:} false; then :
81ecdfbb 5901 $as_echo_n "(cached) " >&6
dabbade6
L
5902else
5903 if test -n "$AR"; then
5904 ac_cv_prog_AR="$AR" # Let the user override the test.
5905else
5906as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5907for as_dir in $PATH
5908do
5909 IFS=$as_save_IFS
5910 test -z "$as_dir" && as_dir=.
81ecdfbb 5911 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5912 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
dabbade6 5913 ac_cv_prog_AR="${ac_tool_prefix}ar"
81ecdfbb 5914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
dabbade6 5915 break 2
252b5132 5916 fi
979273e3 5917done
81ecdfbb
RW
5918 done
5919IFS=$as_save_IFS
979273e3 5920
dabbade6
L
5921fi
5922fi
5923AR=$ac_cv_prog_AR
5924if test -n "$AR"; then
81ecdfbb
RW
5925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5926$as_echo "$AR" >&6; }
dabbade6 5927else
81ecdfbb
RW
5928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5929$as_echo "no" >&6; }
979273e3 5930fi
d7040cdb 5931
81ecdfbb 5932
252b5132 5933fi
dabbade6
L
5934if test -z "$ac_cv_prog_AR"; then
5935 ac_ct_AR=$AR
5936 # Extract the first word of "ar", so it can be a program name with args.
5937set dummy ar; ac_word=$2
81ecdfbb
RW
5938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5939$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5940if ${ac_cv_prog_ac_ct_AR+:} false; then :
81ecdfbb 5941 $as_echo_n "(cached) " >&6
979273e3 5942else
dabbade6
L
5943 if test -n "$ac_ct_AR"; then
5944 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5945else
5946as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5947for as_dir in $PATH
5948do
5949 IFS=$as_save_IFS
5950 test -z "$as_dir" && as_dir=.
81ecdfbb 5951 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5952 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
dabbade6 5953 ac_cv_prog_ac_ct_AR="ar"
81ecdfbb 5954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
dabbade6
L
5955 break 2
5956 fi
5957done
81ecdfbb
RW
5958 done
5959IFS=$as_save_IFS
dabbade6 5960
dabbade6
L
5961fi
5962fi
5963ac_ct_AR=$ac_cv_prog_ac_ct_AR
5964if test -n "$ac_ct_AR"; then
81ecdfbb
RW
5965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5966$as_echo "$ac_ct_AR" >&6; }
dabbade6 5967else
81ecdfbb
RW
5968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5969$as_echo "no" >&6; }
252b5132
RH
5970fi
5971
81ecdfbb
RW
5972 if test "x$ac_ct_AR" = x; then
5973 AR="false"
5974 else
5975 case $cross_compiling:$ac_tool_warned in
5976yes:)
5977{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5978$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5979ac_tool_warned=yes ;;
5980esac
5981 AR=$ac_ct_AR
5982 fi
dabbade6
L
5983else
5984 AR="$ac_cv_prog_AR"
5985fi
252b5132 5986
dabbade6 5987test -z "$AR" && AR=ar
a4966cd9
L
5988if test -n "$plugin_option"; then
5989 if $AR --help 2>&1 | grep -q "\--plugin"; then
83b33c6c
L
5990 touch conftest.c
5991 $AR $plugin_option rc conftest.a conftest.c
5992 if test "$?" != 0; then
5993 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
5994$as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
5995 else
5996 AR="$AR $plugin_option"
5997 fi
5998 rm -f conftest.*
a4966cd9
L
5999 fi
6000fi
dabbade6 6001test -z "$AR_FLAGS" && AR_FLAGS=cru
252b5132 6002
979273e3 6003
979273e3 6004
979273e3 6005
252b5132 6006
979273e3 6007
979273e3 6008
252b5132 6009
979273e3 6010
979273e3 6011
979273e3 6012
dabbade6
L
6013if test -n "$ac_tool_prefix"; then
6014 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6015set dummy ${ac_tool_prefix}strip; ac_word=$2
81ecdfbb
RW
6016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6017$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6018if ${ac_cv_prog_STRIP+:} false; then :
81ecdfbb 6019 $as_echo_n "(cached) " >&6
dabbade6
L
6020else
6021 if test -n "$STRIP"; then
6022 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6023else
6024as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6025for as_dir in $PATH
6026do
6027 IFS=$as_save_IFS
6028 test -z "$as_dir" && as_dir=.
81ecdfbb 6029 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6030 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
dabbade6 6031 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
81ecdfbb 6032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
dabbade6
L
6033 break 2
6034 fi
6035done
81ecdfbb
RW
6036 done
6037IFS=$as_save_IFS
979273e3 6038
dabbade6
L
6039fi
6040fi
6041STRIP=$ac_cv_prog_STRIP
6042if test -n "$STRIP"; then
81ecdfbb
RW
6043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6044$as_echo "$STRIP" >&6; }
dabbade6 6045else
81ecdfbb
RW
6046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6047$as_echo "no" >&6; }
dabbade6 6048fi
979273e3 6049
81ecdfbb 6050
dabbade6
L
6051fi
6052if test -z "$ac_cv_prog_STRIP"; then
6053 ac_ct_STRIP=$STRIP
6054 # Extract the first word of "strip", so it can be a program name with args.
6055set dummy strip; ac_word=$2
81ecdfbb
RW
6056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6057$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6058if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
81ecdfbb 6059 $as_echo_n "(cached) " >&6
dabbade6
L
6060else
6061 if test -n "$ac_ct_STRIP"; then
6062 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6063else
6064as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6065for as_dir in $PATH
6066do
6067 IFS=$as_save_IFS
6068 test -z "$as_dir" && as_dir=.
81ecdfbb 6069 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6070 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
dabbade6 6071 ac_cv_prog_ac_ct_STRIP="strip"
81ecdfbb 6072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
dabbade6
L
6073 break 2
6074 fi
6075done
81ecdfbb
RW
6076 done
6077IFS=$as_save_IFS
979273e3 6078
dabbade6
L
6079fi
6080fi
6081ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6082if test -n "$ac_ct_STRIP"; then
81ecdfbb
RW
6083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6084$as_echo "$ac_ct_STRIP" >&6; }
dabbade6 6085else
81ecdfbb
RW
6086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6087$as_echo "no" >&6; }
dabbade6 6088fi
979273e3 6089
81ecdfbb
RW
6090 if test "x$ac_ct_STRIP" = x; then
6091 STRIP=":"
6092 else
6093 case $cross_compiling:$ac_tool_warned in
6094yes:)
6095{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6096$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6097ac_tool_warned=yes ;;
6098esac
6099 STRIP=$ac_ct_STRIP
6100 fi
dabbade6
L
6101else
6102 STRIP="$ac_cv_prog_STRIP"
6103fi
979273e3 6104
dabbade6 6105test -z "$STRIP" && STRIP=:
979273e3 6106
d7040cdb 6107
979273e3 6108
d7040cdb 6109
979273e3 6110
979273e3 6111
dabbade6
L
6112if test -n "$ac_tool_prefix"; then
6113 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6114set dummy ${ac_tool_prefix}ranlib; ac_word=$2
81ecdfbb
RW
6115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6116$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6117if ${ac_cv_prog_RANLIB+:} false; then :
81ecdfbb 6118 $as_echo_n "(cached) " >&6
979273e3 6119else
dabbade6
L
6120 if test -n "$RANLIB"; then
6121 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6122else
6123as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6124for as_dir in $PATH
6125do
6126 IFS=$as_save_IFS
6127 test -z "$as_dir" && as_dir=.
81ecdfbb 6128 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6129 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
dabbade6 6130 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
81ecdfbb 6131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
dabbade6
L
6132 break 2
6133 fi
6134done
81ecdfbb
RW
6135 done
6136IFS=$as_save_IFS
979273e3 6137
979273e3 6138fi
979273e3 6139fi
dabbade6
L
6140RANLIB=$ac_cv_prog_RANLIB
6141if test -n "$RANLIB"; then
81ecdfbb
RW
6142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6143$as_echo "$RANLIB" >&6; }
dabbade6 6144else
81ecdfbb
RW
6145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6146$as_echo "no" >&6; }
dabbade6 6147fi
d7040cdb 6148
81ecdfbb 6149
d7040cdb 6150fi
dabbade6
L
6151if test -z "$ac_cv_prog_RANLIB"; then
6152 ac_ct_RANLIB=$RANLIB
6153 # Extract the first word of "ranlib", so it can be a program name with args.
6154set dummy ranlib; ac_word=$2
81ecdfbb
RW
6155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6156$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6157if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
81ecdfbb 6158 $as_echo_n "(cached) " >&6
979273e3 6159else
dabbade6
L
6160 if test -n "$ac_ct_RANLIB"; then
6161 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6162else
6163as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6164for as_dir in $PATH
d7040cdb 6165do
dabbade6
L
6166 IFS=$as_save_IFS
6167 test -z "$as_dir" && as_dir=.
81ecdfbb 6168 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6169 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
dabbade6 6170 ac_cv_prog_ac_ct_RANLIB="ranlib"
81ecdfbb 6171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
dabbade6 6172 break 2
979273e3 6173 fi
dabbade6 6174done
81ecdfbb
RW
6175 done
6176IFS=$as_save_IFS
dabbade6 6177
979273e3 6178fi
dabbade6
L
6179fi
6180ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6181if test -n "$ac_ct_RANLIB"; then
81ecdfbb
RW
6182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6183$as_echo "$ac_ct_RANLIB" >&6; }
979273e3 6184else
81ecdfbb
RW
6185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6186$as_echo "no" >&6; }
d7040cdb 6187fi
d7040cdb 6188
81ecdfbb
RW
6189 if test "x$ac_ct_RANLIB" = x; then
6190 RANLIB=":"
6191 else
6192 case $cross_compiling:$ac_tool_warned in
6193yes:)
6194{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6195$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6196ac_tool_warned=yes ;;
6197esac
6198 RANLIB=$ac_ct_RANLIB
6199 fi
d7040cdb 6200else
dabbade6 6201 RANLIB="$ac_cv_prog_RANLIB"
d7040cdb 6202fi
979273e3 6203
dabbade6 6204test -z "$RANLIB" && RANLIB=:
a4966cd9
L
6205if test -n "$plugin_option" && test "$RANLIB" != ":"; then
6206 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
6207 RANLIB="$RANLIB $plugin_option"
6208 fi
6209fi
979273e3 6210
252b5132 6211
252b5132 6212
d7040cdb 6213
d7040cdb 6214
d7040cdb 6215
dabbade6 6216# Determine commands to create old-style static archives.
1927a18f 6217old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
dabbade6
L
6218old_postinstall_cmds='chmod 644 $oldlib'
6219old_postuninstall_cmds=
d7040cdb 6220
dabbade6
L
6221if test -n "$RANLIB"; then
6222 case $host_os in
6223 openbsd*)
6224 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6225 ;;
6226 *)
6227 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6228 ;;
6229 esac
6230 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
d7040cdb
SE
6231fi
6232
3725885a
RW
6233case $host_os in
6234 darwin*)
6235 lock_old_archive_extraction=yes ;;
6236 *)
6237 lock_old_archive_extraction=no ;;
6238esac
6239
6240
6241
6242
6243
6244
d7040cdb
SE
6245
6246
d7040cdb 6247
d7040cdb 6248
252b5132 6249
d7040cdb 6250
d7040cdb 6251
d7040cdb
SE
6252
6253
6254
d7040cdb 6255
d7040cdb 6256
d7040cdb 6257
252b5132 6258
d7040cdb
SE
6259
6260
6261
d7040cdb 6262
d7040cdb
SE
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
dabbade6
L
6278# If no C compiler was specified, use CC.
6279LTCC=${LTCC-"$CC"}
d7040cdb 6280
dabbade6
L
6281# If no C compiler flags were specified, use CFLAGS.
6282LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
d7040cdb 6283
dabbade6
L
6284# Allow CC to be a program name with arguments.
6285compiler=$CC
d7040cdb
SE
6286
6287
dabbade6 6288# Check for command to grab the raw symbol name followed by C symbol from nm.
81ecdfbb
RW
6289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6290$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
d0ac1c44 6291if ${lt_cv_sys_global_symbol_pipe+:} false; then :
81ecdfbb 6292 $as_echo_n "(cached) " >&6
dabbade6 6293else
d7040cdb 6294
dabbade6
L
6295# These are sane defaults that work on at least a few old systems.
6296# [They come from Ultrix. What could be older than Ultrix?!! ;)]
d7040cdb 6297
dabbade6
L
6298# Character class describing NM global symbol codes.
6299symcode='[BCDEGRST]'
d7040cdb 6300
dabbade6
L
6301# Regexp to match symbols that can be accessed directly from C.
6302sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
d7040cdb 6303
dabbade6
L
6304# Define system-specific variables.
6305case $host_os in
6306aix*)
6307 symcode='[BCDT]'
6308 ;;
1927a18f 6309cygwin* | mingw* | pw32* | cegcc*)
dabbade6
L
6310 symcode='[ABCDGISTW]'
6311 ;;
6312hpux*)
6313 if test "$host_cpu" = ia64; then
6314 symcode='[ABCDEGRST]'
6315 fi
6316 ;;
6317irix* | nonstopux*)
6318 symcode='[BCDEGRST]'
6319 ;;
6320osf*)
6321 symcode='[BCDEGQRST]'
6322 ;;
6323solaris*)
6324 symcode='[BDRT]'
6325 ;;
6326sco3.2v5*)
6327 symcode='[DT]'
6328 ;;
6329sysv4.2uw2*)
6330 symcode='[DT]'
6331 ;;
6332sysv5* | sco5v6* | unixware* | OpenUNIX*)
6333 symcode='[ABDT]'
6334 ;;
6335sysv4)
6336 symcode='[DFNSTU]'
6337 ;;
6338esac
6339
6340# If we're using GNU nm, then use its standard symbol codes.
6341case `$NM -V 2>&1` in
6342*GNU* | *'with BFD'*)
6343 symcode='[ABCDGIRSTW]' ;;
6344esac
d7040cdb 6345
dabbade6
L
6346# Transform an extracted symbol line into a proper C declaration.
6347# Some systems (esp. on ia64) link data and code symbols differently,
6348# so use this general approach.
6349lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
d7040cdb 6350
dabbade6 6351# Transform an extracted symbol line into symbol name and symbol address
7357c5b6 6352lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
1927a18f 6353lt_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 6354
7357c5b6
AM
6355# Handle CRLF in mingw tool chain
6356opt_cr=
6357case $build_os in
6358mingw*)
6359 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6360 ;;
6361esac
d7040cdb 6362
7357c5b6
AM
6363# Try without a prefix underscore, then with it.
6364for ac_symprfx in "" "_"; do
d7040cdb 6365
7357c5b6
AM
6366 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6367 symxfrm="\\1 $ac_symprfx\\2 \\2"
d7040cdb 6368
7357c5b6
AM
6369 # Write the raw and C identifiers.
6370 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6371 # Fake it for dumpbin and say T for any non-static function
6372 # and D for any global variable.
6373 # Also find C++ and __fastcall symbols from MSVC++,
6374 # which start with @ or ?.
6375 lt_cv_sys_global_symbol_pipe="$AWK '"\
6376" {last_section=section; section=\$ 3};"\
6377" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6378" \$ 0!~/External *\|/{next};"\
6379" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6380" {if(hide[section]) next};"\
6381" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6382" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6383" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6384" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6385" ' prfx=^$ac_symprfx"
6386 else
6387 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6388 fi
d7040cdb 6389
7357c5b6
AM
6390 # Check to see that the pipe works correctly.
6391 pipe_works=no
d7040cdb 6392
7357c5b6
AM
6393 rm -f conftest*
6394 cat > conftest.$ac_ext <<_LT_EOF
6395#ifdef __cplusplus
6396extern "C" {
6397#endif
6398char nm_test_var;
6399void nm_test_func(void);
6400void nm_test_func(void){}
6401#ifdef __cplusplus
dabbade6 6402}
7357c5b6
AM
6403#endif
6404int main(){nm_test_var='a';nm_test_func();return(0);}
6405_LT_EOF
6406
81ecdfbb 6407 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6 6408 (eval $ac_compile) 2>&5
dabbade6 6409 ac_status=$?
81ecdfbb
RW
6410 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6411 test $ac_status = 0; }; then
7357c5b6
AM
6412 # Now try to grab the symbols.
6413 nlist=conftest.nm
3725885a
RW
6414 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6415 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
dabbade6 6416 ac_status=$?
81ecdfbb
RW
6417 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6418 test $ac_status = 0; } && test -s "$nlist"; then
7357c5b6
AM
6419 # Try sorting and uniquifying the output.
6420 if sort "$nlist" | uniq > "$nlist"T; then
6421 mv -f "$nlist"T "$nlist"
6422 else
6423 rm -f "$nlist"T
6424 fi
d7040cdb 6425
7357c5b6
AM
6426 # Make sure that we snagged all the symbols we need.
6427 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6428 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6429 cat <<_LT_EOF > conftest.$ac_ext
6430#ifdef __cplusplus
6431extern "C" {
6432#endif
d7040cdb 6433
7357c5b6
AM
6434_LT_EOF
6435 # Now generate the symbol file.
6436 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
d7040cdb 6437
7357c5b6 6438 cat <<_LT_EOF >> conftest.$ac_ext
d7040cdb 6439
7357c5b6
AM
6440/* The mapping between symbol names and symbols. */
6441const struct {
6442 const char *name;
6443 void *address;
6444}
6445lt__PROGRAM__LTX_preloaded_symbols[] =
6446{
6447 { "@PROGRAM@", (void *) 0 },
6448_LT_EOF
6449 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6450 cat <<\_LT_EOF >> conftest.$ac_ext
6451 {0, (void *) 0}
6452};
d7040cdb 6453
7357c5b6
AM
6454/* This works around a problem in FreeBSD linker */
6455#ifdef FREEBSD_WORKAROUND
6456static const void *lt_preloaded_setup() {
6457 return lt__PROGRAM__LTX_preloaded_symbols;
6458}
dabbade6 6459#endif
d7040cdb 6460
7357c5b6 6461#ifdef __cplusplus
dabbade6 6462}
7357c5b6
AM
6463#endif
6464_LT_EOF
6465 # Now try linking the two files.
6466 mv conftest.$ac_objext conftstm.$ac_objext
6467 lt_save_LIBS="$LIBS"
6468 lt_save_CFLAGS="$CFLAGS"
6469 LIBS="conftstm.$ac_objext"
6470 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
81ecdfbb 6471 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
dabbade6
L
6472 (eval $ac_link) 2>&5
6473 ac_status=$?
81ecdfbb
RW
6474 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6475 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7357c5b6
AM
6476 pipe_works=yes
6477 fi
6478 LIBS="$lt_save_LIBS"
6479 CFLAGS="$lt_save_CFLAGS"
6480 else
6481 echo "cannot find nm_test_func in $nlist" >&5
6482 fi
6483 else
6484 echo "cannot find nm_test_var in $nlist" >&5
6485 fi
6486 else
6487 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6488 fi
6489 else
6490 echo "$progname: failed program was:" >&5
6491 cat conftest.$ac_ext >&5
6492 fi
1927a18f 6493 rm -rf conftest* conftst*
7357c5b6
AM
6494
6495 # Do not use the global_symbol_pipe unless it works.
6496 if test "$pipe_works" = yes; then
6497 break
6498 else
6499 lt_cv_sys_global_symbol_pipe=
6500 fi
6501done
d7040cdb 6502
dabbade6 6503fi
7357c5b6
AM
6504
6505if test -z "$lt_cv_sys_global_symbol_pipe"; then
6506 lt_cv_sys_global_symbol_to_cdecl=
dabbade6 6507fi
7357c5b6 6508if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
81ecdfbb
RW
6509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6510$as_echo "failed" >&6; }
7357c5b6 6511else
81ecdfbb
RW
6512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6513$as_echo "ok" >&6; }
dabbade6 6514fi
d7040cdb 6515
d7040cdb 6516
d7040cdb 6517
d7040cdb 6518
d7040cdb 6519
d7040cdb 6520
d7040cdb 6521
d7040cdb 6522
d7040cdb 6523
d7040cdb 6524
d7040cdb 6525
d7040cdb 6526
7357c5b6
AM
6527
6528
6529
1927a18f
L
6530
6531
6532
6533
6534
7357c5b6
AM
6535
6536
81ecdfbb
RW
6537# Check whether --enable-libtool-lock was given.
6538if test "${enable_libtool_lock+set}" = set; then :
6539 enableval=$enable_libtool_lock;
6540fi
7357c5b6 6541
7357c5b6
AM
6542test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6543
6544# Some flags need to be propagated to the compiler or linker for good
6545# libtool support.
6546case $host in
6547ia64-*-hpux*)
6548 # Find out which ABI we are using.
6549 echo 'int i;' > conftest.$ac_ext
81ecdfbb 6550 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6
AM
6551 (eval $ac_compile) 2>&5
6552 ac_status=$?
81ecdfbb
RW
6553 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6554 test $ac_status = 0; }; then
7357c5b6
AM
6555 case `/usr/bin/file conftest.$ac_objext` in
6556 *ELF-32*)
6557 HPUX_IA64_MODE="32"
6558 ;;
6559 *ELF-64*)
6560 HPUX_IA64_MODE="64"
6561 ;;
6562 esac
6563 fi
6564 rm -rf conftest*
6565 ;;
6566*-*-irix6*)
6567 # Find out which ABI we are using.
3725885a 6568 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
81ecdfbb 6569 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6
AM
6570 (eval $ac_compile) 2>&5
6571 ac_status=$?
81ecdfbb
RW
6572 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6573 test $ac_status = 0; }; then
7357c5b6
AM
6574 if test "$lt_cv_prog_gnu_ld" = yes; then
6575 case `/usr/bin/file conftest.$ac_objext` in
6576 *32-bit*)
6577 LD="${LD-ld} -melf32bsmip"
6578 ;;
6579 *N32*)
6580 LD="${LD-ld} -melf32bmipn32"
6581 ;;
6582 *64-bit*)
6583 LD="${LD-ld} -melf64bmip"
6584 ;;
6585 esac
6586 else
6587 case `/usr/bin/file conftest.$ac_objext` in
6588 *32-bit*)
6589 LD="${LD-ld} -32"
6590 ;;
6591 *N32*)
6592 LD="${LD-ld} -n32"
6593 ;;
6594 *64-bit*)
6595 LD="${LD-ld} -64"
6596 ;;
6597 esac
6598 fi
6599 fi
6600 rm -rf conftest*
6601 ;;
6602
cc9afea3 6603x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7357c5b6
AM
6604s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6605 # Find out which ABI we are using.
6606 echo 'int i;' > conftest.$ac_ext
81ecdfbb 6607 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6
AM
6608 (eval $ac_compile) 2>&5
6609 ac_status=$?
81ecdfbb
RW
6610 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6611 test $ac_status = 0; }; then
7357c5b6
AM
6612 case `/usr/bin/file conftest.o` in
6613 *32-bit*)
6614 case $host in
6615 x86_64-*kfreebsd*-gnu)
6616 LD="${LD-ld} -m elf_i386_fbsd"
6617 ;;
6618 x86_64-*linux*)
6d2920c8
L
6619 case `/usr/bin/file conftest.o` in
6620 *x86-64*)
6621 LD="${LD-ld} -m elf32_x86_64"
6622 ;;
6623 *)
6624 LD="${LD-ld} -m elf_i386"
6625 ;;
6626 esac
7357c5b6 6627 ;;
cc9afea3
AM
6628 powerpc64le-*linux*)
6629 LD="${LD-ld} -m elf32lppclinux"
6630 ;;
6631 powerpc64-*linux*)
7357c5b6
AM
6632 LD="${LD-ld} -m elf32ppclinux"
6633 ;;
6634 s390x-*linux*)
6635 LD="${LD-ld} -m elf_s390"
6636 ;;
6637 sparc64-*linux*)
6638 LD="${LD-ld} -m elf32_sparc"
6639 ;;
6640 esac
6641 ;;
6642 *64-bit*)
6643 case $host in
6644 x86_64-*kfreebsd*-gnu)
6645 LD="${LD-ld} -m elf_x86_64_fbsd"
6646 ;;
6647 x86_64-*linux*)
6648 LD="${LD-ld} -m elf_x86_64"
6649 ;;
cc9afea3
AM
6650 powerpcle-*linux*)
6651 LD="${LD-ld} -m elf64lppc"
6652 ;;
6653 powerpc-*linux*)
7357c5b6
AM
6654 LD="${LD-ld} -m elf64ppc"
6655 ;;
6656 s390*-*linux*|s390*-*tpf*)
6657 LD="${LD-ld} -m elf64_s390"
6658 ;;
6659 sparc*-*linux*)
6660 LD="${LD-ld} -m elf64_sparc"
6661 ;;
6662 esac
6663 ;;
6664 esac
6665 fi
6666 rm -rf conftest*
6667 ;;
6668
6669*-*-sco3.2v5*)
6670 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6671 SAVE_CFLAGS="$CFLAGS"
6672 CFLAGS="$CFLAGS -belf"
81ecdfbb
RW
6673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6674$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
d0ac1c44 6675if ${lt_cv_cc_needs_belf+:} false; then :
81ecdfbb 6676 $as_echo_n "(cached) " >&6
dabbade6 6677else
7357c5b6
AM
6678 ac_ext=c
6679ac_cpp='$CPP $CPPFLAGS'
6680ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6681ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6682ac_compiler_gnu=$ac_cv_c_compiler_gnu
6683
81ecdfbb 6684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
dabbade6 6685/* end confdefs.h. */
d7040cdb 6686
7357c5b6
AM
6687int
6688main ()
6689{
6690
6691 ;
6692 return 0;
6693}
dabbade6 6694_ACEOF
81ecdfbb 6695if ac_fn_c_try_link "$LINENO"; then :
7357c5b6 6696 lt_cv_cc_needs_belf=yes
dabbade6 6697else
81ecdfbb 6698 lt_cv_cc_needs_belf=no
dabbade6 6699fi
81ecdfbb
RW
6700rm -f core conftest.err conftest.$ac_objext \
6701 conftest$ac_exeext conftest.$ac_ext
7357c5b6
AM
6702 ac_ext=c
6703ac_cpp='$CPP $CPPFLAGS'
6704ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6705ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6706ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb 6707
dabbade6 6708fi
81ecdfbb
RW
6709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6710$as_echo "$lt_cv_cc_needs_belf" >&6; }
7357c5b6
AM
6711 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6712 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6713 CFLAGS="$SAVE_CFLAGS"
6714 fi
6715 ;;
6716sparc*-*solaris*)
6717 # Find out which ABI we are using.
6718 echo 'int i;' > conftest.$ac_ext
81ecdfbb 6719 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6
AM
6720 (eval $ac_compile) 2>&5
6721 ac_status=$?
81ecdfbb
RW
6722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6723 test $ac_status = 0; }; then
7357c5b6
AM
6724 case `/usr/bin/file conftest.o` in
6725 *64-bit*)
6726 case $lt_cv_prog_gnu_ld in
6727 yes*) LD="${LD-ld} -m elf64_sparc" ;;
1927a18f
L
6728 *)
6729 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6730 LD="${LD-ld} -64"
6731 fi
6732 ;;
7357c5b6
AM
6733 esac
6734 ;;
6735 esac
6736 fi
6737 rm -rf conftest*
6738 ;;
6739esac
d7040cdb 6740
7357c5b6 6741need_locks="$enable_libtool_lock"
d7040cdb 6742
d7040cdb 6743
1927a18f
L
6744 case $host_os in
6745 rhapsody* | darwin*)
6746 if test -n "$ac_tool_prefix"; then
6747 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6748set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
81ecdfbb
RW
6749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6750$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6751if ${ac_cv_prog_DSYMUTIL+:} false; then :
81ecdfbb 6752 $as_echo_n "(cached) " >&6
1927a18f
L
6753else
6754 if test -n "$DSYMUTIL"; then
6755 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6756else
6757as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6758for as_dir in $PATH
6759do
6760 IFS=$as_save_IFS
6761 test -z "$as_dir" && as_dir=.
81ecdfbb 6762 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6763 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1927a18f 6764 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
81ecdfbb 6765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1927a18f
L
6766 break 2
6767 fi
6768done
81ecdfbb
RW
6769 done
6770IFS=$as_save_IFS
1927a18f
L
6771
6772fi
6773fi
6774DSYMUTIL=$ac_cv_prog_DSYMUTIL
6775if test -n "$DSYMUTIL"; then
81ecdfbb
RW
6776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6777$as_echo "$DSYMUTIL" >&6; }
1927a18f 6778else
81ecdfbb
RW
6779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6780$as_echo "no" >&6; }
1927a18f
L
6781fi
6782
81ecdfbb 6783
1927a18f
L
6784fi
6785if test -z "$ac_cv_prog_DSYMUTIL"; then
6786 ac_ct_DSYMUTIL=$DSYMUTIL
6787 # Extract the first word of "dsymutil", so it can be a program name with args.
6788set dummy dsymutil; ac_word=$2
81ecdfbb
RW
6789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6790$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6791if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
81ecdfbb 6792 $as_echo_n "(cached) " >&6
1927a18f
L
6793else
6794 if test -n "$ac_ct_DSYMUTIL"; then
6795 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6796else
6797as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6798for as_dir in $PATH
6799do
6800 IFS=$as_save_IFS
6801 test -z "$as_dir" && as_dir=.
81ecdfbb 6802 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6803 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1927a18f 6804 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
81ecdfbb 6805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1927a18f
L
6806 break 2
6807 fi
6808done
81ecdfbb
RW
6809 done
6810IFS=$as_save_IFS
1927a18f 6811
1927a18f
L
6812fi
6813fi
6814ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6815if test -n "$ac_ct_DSYMUTIL"; then
81ecdfbb
RW
6816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6817$as_echo "$ac_ct_DSYMUTIL" >&6; }
1927a18f 6818else
81ecdfbb
RW
6819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6820$as_echo "no" >&6; }
1927a18f
L
6821fi
6822
81ecdfbb
RW
6823 if test "x$ac_ct_DSYMUTIL" = x; then
6824 DSYMUTIL=":"
6825 else
6826 case $cross_compiling:$ac_tool_warned in
6827yes:)
6828{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6829$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6830ac_tool_warned=yes ;;
6831esac
6832 DSYMUTIL=$ac_ct_DSYMUTIL
6833 fi
1927a18f
L
6834else
6835 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6836fi
6837
6838 if test -n "$ac_tool_prefix"; then
6839 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6840set dummy ${ac_tool_prefix}nmedit; ac_word=$2
81ecdfbb
RW
6841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6842$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6843if ${ac_cv_prog_NMEDIT+:} false; then :
81ecdfbb 6844 $as_echo_n "(cached) " >&6
1927a18f
L
6845else
6846 if test -n "$NMEDIT"; then
6847 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6848else
6849as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6850for as_dir in $PATH
6851do
6852 IFS=$as_save_IFS
6853 test -z "$as_dir" && as_dir=.
81ecdfbb 6854 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6855 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1927a18f 6856 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
81ecdfbb 6857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1927a18f
L
6858 break 2
6859 fi
6860done
81ecdfbb
RW
6861 done
6862IFS=$as_save_IFS
1927a18f
L
6863
6864fi
6865fi
6866NMEDIT=$ac_cv_prog_NMEDIT
6867if test -n "$NMEDIT"; then
81ecdfbb
RW
6868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6869$as_echo "$NMEDIT" >&6; }
1927a18f 6870else
81ecdfbb
RW
6871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6872$as_echo "no" >&6; }
1927a18f
L
6873fi
6874
81ecdfbb 6875
1927a18f
L
6876fi
6877if test -z "$ac_cv_prog_NMEDIT"; then
6878 ac_ct_NMEDIT=$NMEDIT
6879 # Extract the first word of "nmedit", so it can be a program name with args.
6880set dummy nmedit; ac_word=$2
81ecdfbb
RW
6881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6882$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6883if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
81ecdfbb 6884 $as_echo_n "(cached) " >&6
1927a18f
L
6885else
6886 if test -n "$ac_ct_NMEDIT"; then
6887 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6888else
6889as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6890for as_dir in $PATH
6891do
6892 IFS=$as_save_IFS
6893 test -z "$as_dir" && as_dir=.
81ecdfbb 6894 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6895 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1927a18f 6896 ac_cv_prog_ac_ct_NMEDIT="nmedit"
81ecdfbb 6897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1927a18f
L
6898 break 2
6899 fi
6900done
81ecdfbb
RW
6901 done
6902IFS=$as_save_IFS
1927a18f 6903
1927a18f
L
6904fi
6905fi
6906ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6907if test -n "$ac_ct_NMEDIT"; then
81ecdfbb
RW
6908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6909$as_echo "$ac_ct_NMEDIT" >&6; }
1927a18f 6910else
81ecdfbb
RW
6911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6912$as_echo "no" >&6; }
1927a18f
L
6913fi
6914
81ecdfbb
RW
6915 if test "x$ac_ct_NMEDIT" = x; then
6916 NMEDIT=":"
6917 else
6918 case $cross_compiling:$ac_tool_warned in
6919yes:)
6920{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6921$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6922ac_tool_warned=yes ;;
6923esac
6924 NMEDIT=$ac_ct_NMEDIT
6925 fi
1927a18f
L
6926else
6927 NMEDIT="$ac_cv_prog_NMEDIT"
6928fi
6929
6930 if test -n "$ac_tool_prefix"; then
6931 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6932set dummy ${ac_tool_prefix}lipo; ac_word=$2
81ecdfbb
RW
6933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6934$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6935if ${ac_cv_prog_LIPO+:} false; then :
81ecdfbb 6936 $as_echo_n "(cached) " >&6
1927a18f
L
6937else
6938 if test -n "$LIPO"; then
6939 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6940else
6941as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6942for as_dir in $PATH
6943do
6944 IFS=$as_save_IFS
6945 test -z "$as_dir" && as_dir=.
81ecdfbb 6946 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6947 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1927a18f 6948 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
81ecdfbb 6949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1927a18f
L
6950 break 2
6951 fi
6952done
81ecdfbb
RW
6953 done
6954IFS=$as_save_IFS
1927a18f
L
6955
6956fi
6957fi
6958LIPO=$ac_cv_prog_LIPO
6959if test -n "$LIPO"; then
81ecdfbb
RW
6960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6961$as_echo "$LIPO" >&6; }
1927a18f 6962else
81ecdfbb
RW
6963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6964$as_echo "no" >&6; }
1927a18f
L
6965fi
6966
81ecdfbb 6967
1927a18f
L
6968fi
6969if test -z "$ac_cv_prog_LIPO"; then
6970 ac_ct_LIPO=$LIPO
6971 # Extract the first word of "lipo", so it can be a program name with args.
6972set dummy lipo; ac_word=$2
81ecdfbb
RW
6973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6974$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6975if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
81ecdfbb 6976 $as_echo_n "(cached) " >&6
1927a18f
L
6977else
6978 if test -n "$ac_ct_LIPO"; then
6979 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6980else
6981as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6982for as_dir in $PATH
6983do
6984 IFS=$as_save_IFS
6985 test -z "$as_dir" && as_dir=.
81ecdfbb 6986 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6987 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1927a18f 6988 ac_cv_prog_ac_ct_LIPO="lipo"
81ecdfbb 6989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1927a18f
L
6990 break 2
6991 fi
6992done
81ecdfbb
RW
6993 done
6994IFS=$as_save_IFS
1927a18f 6995
1927a18f
L
6996fi
6997fi
6998ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6999if test -n "$ac_ct_LIPO"; then
81ecdfbb
RW
7000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7001$as_echo "$ac_ct_LIPO" >&6; }
1927a18f 7002else
81ecdfbb
RW
7003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7004$as_echo "no" >&6; }
1927a18f
L
7005fi
7006
81ecdfbb
RW
7007 if test "x$ac_ct_LIPO" = x; then
7008 LIPO=":"
7009 else
7010 case $cross_compiling:$ac_tool_warned in
7011yes:)
7012{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7013$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7014ac_tool_warned=yes ;;
7015esac
7016 LIPO=$ac_ct_LIPO
7017 fi
1927a18f
L
7018else
7019 LIPO="$ac_cv_prog_LIPO"
7020fi
7021
7022 if test -n "$ac_tool_prefix"; then
7023 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7024set dummy ${ac_tool_prefix}otool; ac_word=$2
81ecdfbb
RW
7025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7026$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 7027if ${ac_cv_prog_OTOOL+:} false; then :
81ecdfbb 7028 $as_echo_n "(cached) " >&6
1927a18f
L
7029else
7030 if test -n "$OTOOL"; then
7031 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7032else
7033as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7034for as_dir in $PATH
7035do
7036 IFS=$as_save_IFS
7037 test -z "$as_dir" && as_dir=.
81ecdfbb 7038 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 7039 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1927a18f 7040 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
81ecdfbb 7041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1927a18f
L
7042 break 2
7043 fi
7044done
81ecdfbb
RW
7045 done
7046IFS=$as_save_IFS
1927a18f
L
7047
7048fi
7049fi
7050OTOOL=$ac_cv_prog_OTOOL
7051if test -n "$OTOOL"; then
81ecdfbb
RW
7052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7053$as_echo "$OTOOL" >&6; }
1927a18f 7054else
81ecdfbb
RW
7055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7056$as_echo "no" >&6; }
1927a18f
L
7057fi
7058
81ecdfbb 7059
1927a18f
L
7060fi
7061if test -z "$ac_cv_prog_OTOOL"; then
7062 ac_ct_OTOOL=$OTOOL
7063 # Extract the first word of "otool", so it can be a program name with args.
7064set dummy otool; ac_word=$2
81ecdfbb
RW
7065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7066$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 7067if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
81ecdfbb 7068 $as_echo_n "(cached) " >&6
1927a18f
L
7069else
7070 if test -n "$ac_ct_OTOOL"; then
7071 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7072else
7073as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7074for as_dir in $PATH
7075do
7076 IFS=$as_save_IFS
7077 test -z "$as_dir" && as_dir=.
81ecdfbb 7078 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 7079 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1927a18f 7080 ac_cv_prog_ac_ct_OTOOL="otool"
81ecdfbb 7081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1927a18f
L
7082 break 2
7083 fi
7084done
81ecdfbb
RW
7085 done
7086IFS=$as_save_IFS
1927a18f 7087
1927a18f
L
7088fi
7089fi
7090ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7091if test -n "$ac_ct_OTOOL"; then
81ecdfbb
RW
7092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7093$as_echo "$ac_ct_OTOOL" >&6; }
1927a18f 7094else
81ecdfbb
RW
7095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7096$as_echo "no" >&6; }
1927a18f
L
7097fi
7098
81ecdfbb
RW
7099 if test "x$ac_ct_OTOOL" = x; then
7100 OTOOL=":"
7101 else
7102 case $cross_compiling:$ac_tool_warned in
7103yes:)
7104{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7105$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7106ac_tool_warned=yes ;;
7107esac
7108 OTOOL=$ac_ct_OTOOL
7109 fi
1927a18f
L
7110else
7111 OTOOL="$ac_cv_prog_OTOOL"
7112fi
7113
7114 if test -n "$ac_tool_prefix"; then
7115 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7116set dummy ${ac_tool_prefix}otool64; ac_word=$2
81ecdfbb
RW
7117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7118$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 7119if ${ac_cv_prog_OTOOL64+:} false; then :
81ecdfbb 7120 $as_echo_n "(cached) " >&6
1927a18f
L
7121else
7122 if test -n "$OTOOL64"; then
7123 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7124else
7125as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7126for as_dir in $PATH
7127do
7128 IFS=$as_save_IFS
7129 test -z "$as_dir" && as_dir=.
81ecdfbb 7130 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 7131 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1927a18f 7132 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
81ecdfbb 7133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1927a18f
L
7134 break 2
7135 fi
7136done
81ecdfbb
RW
7137 done
7138IFS=$as_save_IFS
1927a18f
L
7139
7140fi
7141fi
7142OTOOL64=$ac_cv_prog_OTOOL64
7143if test -n "$OTOOL64"; then
81ecdfbb
RW
7144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7145$as_echo "$OTOOL64" >&6; }
1927a18f 7146else
81ecdfbb
RW
7147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7148$as_echo "no" >&6; }
1927a18f
L
7149fi
7150
81ecdfbb 7151
1927a18f
L
7152fi
7153if test -z "$ac_cv_prog_OTOOL64"; then
7154 ac_ct_OTOOL64=$OTOOL64
7155 # Extract the first word of "otool64", so it can be a program name with args.
7156set dummy otool64; ac_word=$2
81ecdfbb
RW
7157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7158$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 7159if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
81ecdfbb 7160 $as_echo_n "(cached) " >&6
1927a18f
L
7161else
7162 if test -n "$ac_ct_OTOOL64"; then
7163 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7164else
7165as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7166for as_dir in $PATH
7167do
7168 IFS=$as_save_IFS
7169 test -z "$as_dir" && as_dir=.
81ecdfbb 7170 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 7171 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1927a18f 7172 ac_cv_prog_ac_ct_OTOOL64="otool64"
81ecdfbb 7173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1927a18f
L
7174 break 2
7175 fi
7176done
81ecdfbb
RW
7177 done
7178IFS=$as_save_IFS
1927a18f 7179
1927a18f
L
7180fi
7181fi
7182ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7183if test -n "$ac_ct_OTOOL64"; then
81ecdfbb
RW
7184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7185$as_echo "$ac_ct_OTOOL64" >&6; }
1927a18f 7186else
81ecdfbb
RW
7187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7188$as_echo "no" >&6; }
1927a18f
L
7189fi
7190
81ecdfbb
RW
7191 if test "x$ac_ct_OTOOL64" = x; then
7192 OTOOL64=":"
7193 else
7194 case $cross_compiling:$ac_tool_warned in
7195yes:)
7196{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7197$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7198ac_tool_warned=yes ;;
7199esac
7200 OTOOL64=$ac_ct_OTOOL64
7201 fi
1927a18f
L
7202else
7203 OTOOL64="$ac_cv_prog_OTOOL64"
7204fi
7205
7206
7207
7208
7209
7210
7211
7212
7213
7214
7215
7216
7217
7218
7219
7220
7221
7222
7223
7224
7225
7226
7227
7228
7229
7230
7231
81ecdfbb
RW
7232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7233$as_echo_n "checking for -single_module linker flag... " >&6; }
d0ac1c44 7234if ${lt_cv_apple_cc_single_mod+:} false; then :
81ecdfbb 7235 $as_echo_n "(cached) " >&6
1927a18f
L
7236else
7237 lt_cv_apple_cc_single_mod=no
7238 if test -z "${LT_MULTI_MODULE}"; then
7239 # By default we will add the -single_module flag. You can override
7240 # by either setting the environment variable LT_MULTI_MODULE
7241 # non-empty at configure time, or by adding -multi_module to the
7242 # link flags.
7243 rm -rf libconftest.dylib*
7244 echo "int foo(void){return 1;}" > conftest.c
7245 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7246-dynamiclib -Wl,-single_module conftest.c" >&5
7247 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7248 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7249 _lt_result=$?
7250 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7251 lt_cv_apple_cc_single_mod=yes
7252 else
7253 cat conftest.err >&5
7254 fi
7255 rm -rf libconftest.dylib*
7256 rm -f conftest.*
7257 fi
7258fi
81ecdfbb
RW
7259{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7260$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7262$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
d0ac1c44 7263if ${lt_cv_ld_exported_symbols_list+:} false; then :
81ecdfbb 7264 $as_echo_n "(cached) " >&6
1927a18f
L
7265else
7266 lt_cv_ld_exported_symbols_list=no
7267 save_LDFLAGS=$LDFLAGS
7268 echo "_main" > conftest.sym
7269 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
81ecdfbb 7270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1927a18f
L
7271/* end confdefs.h. */
7272
7273int
7274main ()
7275{
7276
7277 ;
7278 return 0;
7279}
7280_ACEOF
81ecdfbb 7281if ac_fn_c_try_link "$LINENO"; then :
1927a18f
L
7282 lt_cv_ld_exported_symbols_list=yes
7283else
81ecdfbb 7284 lt_cv_ld_exported_symbols_list=no
1927a18f 7285fi
81ecdfbb
RW
7286rm -f core conftest.err conftest.$ac_objext \
7287 conftest$ac_exeext conftest.$ac_ext
1927a18f
L
7288 LDFLAGS="$save_LDFLAGS"
7289
7290fi
81ecdfbb
RW
7291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7292$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
3725885a
RW
7293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7294$as_echo_n "checking for -force_load linker flag... " >&6; }
d0ac1c44 7295if ${lt_cv_ld_force_load+:} false; then :
3725885a
RW
7296 $as_echo_n "(cached) " >&6
7297else
7298 lt_cv_ld_force_load=no
7299 cat > conftest.c << _LT_EOF
7300int forced_loaded() { return 2;}
7301_LT_EOF
7302 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7303 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7304 echo "$AR cru libconftest.a conftest.o" >&5
7305 $AR cru libconftest.a conftest.o 2>&5
7306 cat > conftest.c << _LT_EOF
7307int main() { return 0;}
7308_LT_EOF
7309 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7310 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7311 _lt_result=$?
7312 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7313 lt_cv_ld_force_load=yes
7314 else
7315 cat conftest.err >&5
7316 fi
7317 rm -f conftest.err libconftest.a conftest conftest.c
7318 rm -rf conftest.dSYM
7319
7320fi
7321{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7322$as_echo "$lt_cv_ld_force_load" >&6; }
1927a18f
L
7323 case $host_os in
7324 rhapsody* | darwin1.[012])
7325 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7326 darwin1.*)
7327 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7328 darwin*) # darwin 5.x on
7329 # if running on 10.5 or later, the deployment target defaults
7330 # to the OS version, if on x86, and 10.4, the deployment
7331 # target defaults to 10.4. Don't you love it?
7332 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7333 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7334 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6e733cce 7335 10.[012][,.]*)
1927a18f
L
7336 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7337 10.*)
7338 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7339 esac
7340 ;;
7341 esac
7342 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7343 _lt_dar_single_mod='$single_module'
7344 fi
7345 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7346 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7347 else
7348 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7349 fi
3725885a 7350 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
1927a18f
L
7351 _lt_dsymutil='~$DSYMUTIL $lib || :'
7352 else
7353 _lt_dsymutil=
7354 fi
7355 ;;
7356 esac
7357
dabbade6 7358for ac_header in dlfcn.h
81ecdfbb
RW
7359do :
7360 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7361"
d0ac1c44 7362if test "x$ac_cv_header_dlfcn_h" = xyes; then :
dabbade6 7363 cat >>confdefs.h <<_ACEOF
81ecdfbb 7364#define HAVE_DLFCN_H 1
dabbade6 7365_ACEOF
d7040cdb 7366
dabbade6 7367fi
d7040cdb 7368
dabbade6 7369done
d7040cdb 7370
d7040cdb 7371
d7040cdb 7372
3725885a
RW
7373
7374
1927a18f
L
7375# Set options
7376
7377
7378
7379 enable_dlopen=no
7380
7381
7382 enable_win32_dll=no
7383
7384
7385
81ecdfbb
RW
7386 # Check whether --enable-static was given.
7387if test "${enable_static+set}" = set; then :
7388 enableval=$enable_static; p=${PACKAGE-default}
1927a18f
L
7389 case $enableval in
7390 yes) enable_static=yes ;;
7391 no) enable_static=no ;;
7392 *)
7393 enable_static=no
7394 # Look at the argument we got. We use all the common list separators.
7395 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7396 for pkg in $enableval; do
7397 IFS="$lt_save_ifs"
7398 if test "X$pkg" = "X$p"; then
7399 enable_static=yes
7400 fi
7401 done
7402 IFS="$lt_save_ifs"
7403 ;;
7404 esac
7405else
7406 enable_static=yes
81ecdfbb 7407fi
1927a18f
L
7408
7409
7410
7411
7412
7413
7414
7415
7416
81ecdfbb
RW
7417
7418# Check whether --with-pic was given.
7419if test "${with_pic+set}" = set; then :
7420 withval=$with_pic; pic_mode="$withval"
1927a18f
L
7421else
7422 pic_mode=default
81ecdfbb
RW
7423fi
7424
1927a18f
L
7425
7426test -z "$pic_mode" && pic_mode=default
7427
7428
7429
7430
7431
7432
7433
81ecdfbb
RW
7434 # Check whether --enable-fast-install was given.
7435if test "${enable_fast_install+set}" = set; then :
7436 enableval=$enable_fast_install; p=${PACKAGE-default}
1927a18f
L
7437 case $enableval in
7438 yes) enable_fast_install=yes ;;
7439 no) enable_fast_install=no ;;
7440 *)
7441 enable_fast_install=no
7442 # Look at the argument we got. We use all the common list separators.
7443 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7444 for pkg in $enableval; do
7445 IFS="$lt_save_ifs"
7446 if test "X$pkg" = "X$p"; then
7447 enable_fast_install=yes
7448 fi
7449 done
7450 IFS="$lt_save_ifs"
7451 ;;
7452 esac
7453else
7454 enable_fast_install=yes
81ecdfbb
RW
7455fi
7456
1927a18f
L
7457
7458
7459
7460
7461
7462
7463
7464
7465
7466
dabbade6
L
7467# This can be used to rebuild libtool when needed
7468LIBTOOL_DEPS="$ltmain"
d7040cdb 7469
dabbade6
L
7470# Always use our own libtool.
7471LIBTOOL='$(SHELL) $(top_builddir)/libtool'
d7040cdb 7472
d7040cdb 7473
d7040cdb 7474
d7040cdb
SE
7475
7476
7477
7478
7479
7480
d7040cdb 7481
d7040cdb 7482
d7040cdb 7483
d7040cdb
SE
7484
7485
7486
7487
7488
7489
d7040cdb 7490
d7040cdb 7491
d7040cdb
SE
7492
7493
7494
3725885a 7495
d7040cdb
SE
7496
7497
dabbade6 7498test -z "$LN_S" && LN_S="ln -s"
d7040cdb
SE
7499
7500
d7040cdb 7501
d7040cdb 7502
d7040cdb
SE
7503
7504
7505
7506
7507
7508
dabbade6
L
7509
7510
7511
7512
7513if test -n "${ZSH_VERSION+set}" ; then
7514 setopt NO_GLOB_SUBST
7515fi
7516
81ecdfbb
RW
7517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7518$as_echo_n "checking for objdir... " >&6; }
d0ac1c44 7519if ${lt_cv_objdir+:} false; then :
81ecdfbb 7520 $as_echo_n "(cached) " >&6
d7040cdb 7521else
dabbade6
L
7522 rm -f .libs 2>/dev/null
7523mkdir .libs 2>/dev/null
7524if test -d .libs; then
7525 lt_cv_objdir=.libs
7526else
7527 # MS-DOS does not allow filenames that begin with a dot.
7528 lt_cv_objdir=_libs
d7040cdb 7529fi
dabbade6
L
7530rmdir .libs 2>/dev/null
7531fi
81ecdfbb
RW
7532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7533$as_echo "$lt_cv_objdir" >&6; }
dabbade6 7534objdir=$lt_cv_objdir
d7040cdb
SE
7535
7536
7537
7538
d7040cdb 7539
dabbade6
L
7540cat >>confdefs.h <<_ACEOF
7541#define LT_OBJDIR "$lt_cv_objdir/"
7542_ACEOF
d7040cdb
SE
7543
7544
7545
7546
dabbade6
L
7547case $host_os in
7548aix3*)
7549 # AIX sometimes has problems with the GCC collect2 program. For some
7550 # reason, if we set the COLLECT_NAMES environment variable, the problems
7551 # vanish in a puff of smoke.
7552 if test "X${COLLECT_NAMES+set}" != Xset; then
7553 COLLECT_NAMES=
7554 export COLLECT_NAMES
7555 fi
7556 ;;
7557esac
d7040cdb 7558
dabbade6
L
7559# Global variables:
7560ofile=libtool
7561can_build_shared=yes
d7040cdb 7562
dabbade6
L
7563# All known linkers require a `.a' archive for static linking (except MSVC,
7564# which needs '.lib').
7565libext=a
d7040cdb 7566
dabbade6 7567with_gnu_ld="$lt_cv_prog_gnu_ld"
d7040cdb 7568
dabbade6
L
7569old_CC="$CC"
7570old_CFLAGS="$CFLAGS"
d7040cdb 7571
dabbade6
L
7572# Set sane defaults for various variables
7573test -z "$CC" && CC=cc
7574test -z "$LTCC" && LTCC=$CC
7575test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7576test -z "$LD" && LD=ld
7577test -z "$ac_objext" && ac_objext=o
7578
7579for cc_temp in $compiler""; do
7580 case $cc_temp in
7581 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7582 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7583 \-*) ;;
7584 *) break;;
7585 esac
7586done
3725885a 7587cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
dabbade6
L
7588
7589
7590# Only perform the check for file, if the check method requires it
7591test -z "$MAGIC_CMD" && MAGIC_CMD=file
7592case $deplibs_check_method in
7593file_magic*)
7594 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
81ecdfbb
RW
7595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7596$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
d0ac1c44 7597if ${lt_cv_path_MAGIC_CMD+:} false; then :
81ecdfbb 7598 $as_echo_n "(cached) " >&6
dabbade6
L
7599else
7600 case $MAGIC_CMD in
7601[\\/*] | ?:[\\/]*)
7602 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7603 ;;
7604*)
7605 lt_save_MAGIC_CMD="$MAGIC_CMD"
7606 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7607 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7608 for ac_dir in $ac_dummy; do
7609 IFS="$lt_save_ifs"
7610 test -z "$ac_dir" && ac_dir=.
7611 if test -f $ac_dir/${ac_tool_prefix}file; then
7612 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7613 if test -n "$file_magic_test_file"; then
7614 case $deplibs_check_method in
7615 "file_magic "*)
7616 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7617 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7618 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7619 $EGREP "$file_magic_regex" > /dev/null; then
7620 :
d7040cdb 7621 else
dabbade6 7622 cat <<_LT_EOF 1>&2
d7040cdb 7623
dabbade6
L
7624*** Warning: the command libtool uses to detect shared libraries,
7625*** $file_magic_cmd, produces output that libtool cannot recognize.
7626*** The result is that libtool may fail to recognize shared libraries
7627*** as such. This will affect the creation of libtool libraries that
7628*** depend on shared libraries, but programs linked with such libtool
7629*** libraries will work regardless of this problem. Nevertheless, you
7630*** may want to report the problem to your system manager and/or to
7631*** bug-libtool@gnu.org
d7040cdb 7632
dabbade6
L
7633_LT_EOF
7634 fi ;;
7635 esac
d7040cdb 7636 fi
dabbade6 7637 break
d7040cdb 7638 fi
dabbade6
L
7639 done
7640 IFS="$lt_save_ifs"
7641 MAGIC_CMD="$lt_save_MAGIC_CMD"
7642 ;;
7643esac
7644fi
d7040cdb 7645
dabbade6
L
7646MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7647if test -n "$MAGIC_CMD"; then
81ecdfbb
RW
7648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7649$as_echo "$MAGIC_CMD" >&6; }
dabbade6 7650else
81ecdfbb
RW
7651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7652$as_echo "no" >&6; }
dabbade6 7653fi
d7040cdb 7654
d7040cdb 7655
d7040cdb 7656
d7040cdb 7657
d7040cdb 7658
dabbade6
L
7659if test -z "$lt_cv_path_MAGIC_CMD"; then
7660 if test -n "$ac_tool_prefix"; then
81ecdfbb
RW
7661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7662$as_echo_n "checking for file... " >&6; }
d0ac1c44 7663if ${lt_cv_path_MAGIC_CMD+:} false; then :
81ecdfbb 7664 $as_echo_n "(cached) " >&6
dabbade6
L
7665else
7666 case $MAGIC_CMD in
7667[\\/*] | ?:[\\/]*)
7668 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7669 ;;
7670*)
7671 lt_save_MAGIC_CMD="$MAGIC_CMD"
7672 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7673 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7674 for ac_dir in $ac_dummy; do
7675 IFS="$lt_save_ifs"
7676 test -z "$ac_dir" && ac_dir=.
7677 if test -f $ac_dir/file; then
7678 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7679 if test -n "$file_magic_test_file"; then
7680 case $deplibs_check_method in
7681 "file_magic "*)
7682 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7683 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7684 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7685 $EGREP "$file_magic_regex" > /dev/null; then
7686 :
d7040cdb 7687 else
dabbade6 7688 cat <<_LT_EOF 1>&2
d7040cdb 7689
dabbade6
L
7690*** Warning: the command libtool uses to detect shared libraries,
7691*** $file_magic_cmd, produces output that libtool cannot recognize.
7692*** The result is that libtool may fail to recognize shared libraries
7693*** as such. This will affect the creation of libtool libraries that
7694*** depend on shared libraries, but programs linked with such libtool
7695*** libraries will work regardless of this problem. Nevertheless, you
7696*** may want to report the problem to your system manager and/or to
7697*** bug-libtool@gnu.org
d7040cdb 7698
dabbade6
L
7699_LT_EOF
7700 fi ;;
7701 esac
7702 fi
7703 break
7704 fi
7705 done
7706 IFS="$lt_save_ifs"
7707 MAGIC_CMD="$lt_save_MAGIC_CMD"
7708 ;;
7709esac
d7040cdb 7710fi
dabbade6
L
7711
7712MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7713if test -n "$MAGIC_CMD"; then
81ecdfbb
RW
7714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7715$as_echo "$MAGIC_CMD" >&6; }
d7040cdb 7716else
81ecdfbb
RW
7717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7718$as_echo "no" >&6; }
dabbade6
L
7719fi
7720
d7040cdb 7721
dabbade6
L
7722 else
7723 MAGIC_CMD=:
7724 fi
d7040cdb 7725fi
d7040cdb 7726
dabbade6
L
7727 fi
7728 ;;
7729esac
d7040cdb 7730
dabbade6 7731# Use C for the default configuration in the libtool script
d7040cdb 7732
dabbade6
L
7733lt_save_CC="$CC"
7734ac_ext=c
7735ac_cpp='$CPP $CPPFLAGS'
7736ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7737ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7738ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb 7739
d7040cdb 7740
dabbade6
L
7741# Source file extension for C test sources.
7742ac_ext=c
d7040cdb 7743
dabbade6
L
7744# Object file extension for compiled C test sources.
7745objext=o
7746objext=$objext
7747
7748# Code to be used in simple compile tests
7749lt_simple_compile_test_code="int some_variable = 0;"
7750
7751# Code to be used in simple link tests
7752lt_simple_link_test_code='int main(){return(0);}'
7753
7754
7755
7756
7757
7758
7759
7760# If no C compiler was specified, use CC.
7761LTCC=${LTCC-"$CC"}
7762
7763# If no C compiler flags were specified, use CFLAGS.
7764LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7765
7766# Allow CC to be a program name with arguments.
7767compiler=$CC
7768
7769# Save the default compiler, since it gets overwritten when the other
7770# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7771compiler_DEFAULT=$CC
7772
7773# save warnings/boilerplate of simple test code
7774ac_outfile=conftest.$ac_objext
7775echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7776eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7777_lt_compiler_boilerplate=`cat conftest.err`
7778$RM conftest*
7779
7780ac_outfile=conftest.$ac_objext
7781echo "$lt_simple_link_test_code" >conftest.$ac_ext
7782eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7783_lt_linker_boilerplate=`cat conftest.err`
1927a18f 7784$RM -r conftest*
dabbade6
L
7785
7786
7787## CAVEAT EMPTOR:
7788## There is no encapsulation within the following macros, do not change
7789## the running order or otherwise move them around unless you know exactly
7790## what you are doing...
7791if test -n "$compiler"; then
7792
7793lt_prog_compiler_no_builtin_flag=
7794
7795if test "$GCC" = yes; then
3725885a
RW
7796 case $cc_basename in
7797 nvcc*)
7798 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7799 *)
7800 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7801 esac
dabbade6 7802
81ecdfbb
RW
7803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7804$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
d0ac1c44 7805if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
81ecdfbb 7806 $as_echo_n "(cached) " >&6
dabbade6
L
7807else
7808 lt_cv_prog_compiler_rtti_exceptions=no
7809 ac_outfile=conftest.$ac_objext
7810 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7811 lt_compiler_flag="-fno-rtti -fno-exceptions"
7812 # Insert the option either (1) after the last *FLAGS variable, or
7813 # (2) before a word containing "conftest.", or (3) at the end.
7814 # Note that $ac_compile itself does not contain backslashes and begins
7815 # with a dollar sign (not a hyphen), so the echo should work correctly.
7816 # The option is referenced via a variable to avoid confusing sed.
7817 lt_compile=`echo "$ac_compile" | $SED \
7818 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7819 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7820 -e 's:$: $lt_compiler_flag:'`
3725885a 7821 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
dabbade6
L
7822 (eval "$lt_compile" 2>conftest.err)
7823 ac_status=$?
7824 cat conftest.err >&5
3725885a 7825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dabbade6
L
7826 if (exit $ac_status) && test -s "$ac_outfile"; then
7827 # The compiler can only warn and ignore the option if not recognized
7828 # So say no if there are warnings other than the usual output.
3725885a 7829 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
dabbade6
L
7830 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7831 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7832 lt_cv_prog_compiler_rtti_exceptions=yes
7833 fi
7834 fi
7835 $RM conftest*
7836
7837fi
81ecdfbb
RW
7838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7839$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
dabbade6
L
7840
7841if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7842 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7843else
7844 :
7845fi
7846
7847fi
7848
7849
7850
7851
7852
7853
7854 lt_prog_compiler_wl=
7855lt_prog_compiler_pic=
7856lt_prog_compiler_static=
7857
81ecdfbb
RW
7858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7859$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
dabbade6
L
7860
7861 if test "$GCC" = yes; then
7862 lt_prog_compiler_wl='-Wl,'
7863 lt_prog_compiler_static='-static'
7864
7865 case $host_os in
7866 aix*)
7867 # All AIX code is PIC.
7868 if test "$host_cpu" = ia64; then
7869 # AIX 5 now supports IA64 processor
7870 lt_prog_compiler_static='-Bstatic'
7871 fi
b132a67d 7872 lt_prog_compiler_pic='-fPIC'
dabbade6 7873 ;;
d7040cdb
SE
7874
7875 amigaos*)
1927a18f
L
7876 case $host_cpu in
7877 powerpc)
7878 # see comment about AmigaOS4 .so support
7879 lt_prog_compiler_pic='-fPIC'
7880 ;;
7881 m68k)
7882 # FIXME: we need at least 68020 code to build shared libraries, but
7883 # adding the `-m68020' flag to GCC prevents building anything better,
7884 # like `-m68040'.
7885 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7886 ;;
7887 esac
d7040cdb
SE
7888 ;;
7889
dabbade6
L
7890 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7891 # PIC is the default for these OSes.
d7040cdb
SE
7892 ;;
7893
1927a18f 7894 mingw* | cygwin* | pw32* | os2* | cegcc*)
dabbade6
L
7895 # This hack is so that the source file can tell whether it is being
7896 # built for inclusion in a dll (and should export symbols for example).
7897 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7898 # (--disable-auto-import) libraries
7899 lt_prog_compiler_pic='-DDLL_EXPORT'
d7040cdb
SE
7900 ;;
7901
7902 darwin* | rhapsody*)
dabbade6
L
7903 # PIC is the default on this platform
7904 # Common symbols not allowed in MH_DYLIB files
7905 lt_prog_compiler_pic='-fno-common'
7906 ;;
7907
3725885a
RW
7908 haiku*)
7909 # PIC is the default for Haiku.
7910 # The "-static" flag exists, but is broken.
7911 lt_prog_compiler_static=
7912 ;;
7913
dabbade6 7914 hpux*)
1927a18f
L
7915 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7916 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7917 # sets the default TLS model and affects inlining.
dabbade6 7918 case $host_cpu in
1927a18f 7919 hppa*64*)
dabbade6 7920 # +Z the default
d7040cdb 7921 ;;
dabbade6
L
7922 *)
7923 lt_prog_compiler_pic='-fPIC'
d7040cdb
SE
7924 ;;
7925 esac
dabbade6 7926 ;;
d7040cdb 7927
dabbade6
L
7928 interix[3-9]*)
7929 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7930 # Instead, we relocate shared libraries at runtime.
d7040cdb
SE
7931 ;;
7932
dabbade6
L
7933 msdosdjgpp*)
7934 # Just because we use GCC doesn't mean we suddenly get shared libraries
7935 # on systems that don't support them.
7936 lt_prog_compiler_can_build_shared=no
7937 enable_shared=no
d7040cdb
SE
7938 ;;
7939
dabbade6
L
7940 *nto* | *qnx*)
7941 # QNX uses GNU C++, but need to define -shared option too, otherwise
7942 # it will coredump.
7943 lt_prog_compiler_pic='-fPIC -shared'
d7040cdb
SE
7944 ;;
7945
dabbade6
L
7946 sysv4*MP*)
7947 if test -d /usr/nec; then
7948 lt_prog_compiler_pic=-Kconform_pic
7949 fi
d7040cdb
SE
7950 ;;
7951
dabbade6
L
7952 *)
7953 lt_prog_compiler_pic='-fPIC'
d7040cdb 7954 ;;
dabbade6 7955 esac
3725885a
RW
7956
7957 case $cc_basename in
7958 nvcc*) # Cuda Compiler Driver 2.2
7959 lt_prog_compiler_wl='-Xlinker '
7960 lt_prog_compiler_pic='-Xcompiler -fPIC'
7961 ;;
7962 esac
dabbade6
L
7963 else
7964 # PORTME Check for flag to pass linker flags through the system compiler.
7965 case $host_os in
7966 aix*)
7967 lt_prog_compiler_wl='-Wl,'
7968 if test "$host_cpu" = ia64; then
7969 # AIX 5 now supports IA64 processor
7970 lt_prog_compiler_static='-Bstatic'
d7040cdb 7971 else
dabbade6 7972 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
d7040cdb 7973 fi
dabbade6 7974 ;;
d7040cdb 7975
1927a18f 7976 mingw* | cygwin* | pw32* | os2* | cegcc*)
dabbade6
L
7977 # This hack is so that the source file can tell whether it is being
7978 # built for inclusion in a dll (and should export symbols for example).
7979 lt_prog_compiler_pic='-DDLL_EXPORT'
d7040cdb
SE
7980 ;;
7981
dabbade6
L
7982 hpux9* | hpux10* | hpux11*)
7983 lt_prog_compiler_wl='-Wl,'
7984 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7985 # not for PA HP-UX.
7986 case $host_cpu in
7987 hppa*64*|ia64*)
7988 # +Z the default
7989 ;;
7990 *)
7991 lt_prog_compiler_pic='+Z'
7992 ;;
7993 esac
7994 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7995 lt_prog_compiler_static='${wl}-a ${wl}archive'
d7040cdb
SE
7996 ;;
7997
dabbade6
L
7998 irix5* | irix6* | nonstopux*)
7999 lt_prog_compiler_wl='-Wl,'
8000 # PIC (with -KPIC) is the default.
8001 lt_prog_compiler_static='-non_shared'
8002 ;;
d7040cdb 8003
58e24671 8004 linux* | k*bsd*-gnu | kopensolaris*-gnu)
dabbade6 8005 case $cc_basename in
1927a18f
L
8006 # old Intel for x86_64 which still supported -KPIC.
8007 ecc*)
dabbade6
L
8008 lt_prog_compiler_wl='-Wl,'
8009 lt_prog_compiler_pic='-KPIC'
8010 lt_prog_compiler_static='-static'
8011 ;;
1927a18f
L
8012 # icc used to be incompatible with GCC.
8013 # ICC 10 doesn't accept -KPIC any more.
8014 icc* | ifort*)
8015 lt_prog_compiler_wl='-Wl,'
8016 lt_prog_compiler_pic='-fPIC'
8017 lt_prog_compiler_static='-static'
8018 ;;
8019 # Lahey Fortran 8.1.
8020 lf95*)
8021 lt_prog_compiler_wl='-Wl,'
8022 lt_prog_compiler_pic='--shared'
8023 lt_prog_compiler_static='--static'
8024 ;;
3725885a 8025 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
dabbade6
L
8026 # Portland Group compilers (*not* the Pentium gcc compiler,
8027 # which looks to be a dead project)
8028 lt_prog_compiler_wl='-Wl,'
8029 lt_prog_compiler_pic='-fpic'
8030 lt_prog_compiler_static='-Bstatic'
8031 ;;
8032 ccc*)
8033 lt_prog_compiler_wl='-Wl,'
8034 # All Alpha code is PIC.
8035 lt_prog_compiler_static='-non_shared'
8036 ;;
3725885a
RW
8037 xl* | bgxl* | bgf* | mpixl*)
8038 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
1927a18f
L
8039 lt_prog_compiler_wl='-Wl,'
8040 lt_prog_compiler_pic='-qpic'
8041 lt_prog_compiler_static='-qstaticlink'
8042 ;;
dabbade6
L
8043 *)
8044 case `$CC -V 2>&1 | sed 5q` in
3725885a
RW
8045 *Sun\ F* | *Sun*Fortran*)
8046 # Sun Fortran 8.3 passes all unrecognized flags to the linker
dabbade6
L
8047 lt_prog_compiler_pic='-KPIC'
8048 lt_prog_compiler_static='-Bstatic'
3725885a 8049 lt_prog_compiler_wl=''
d7040cdb 8050 ;;
3725885a
RW
8051 *Sun\ C*)
8052 # Sun C 5.9
dabbade6
L
8053 lt_prog_compiler_pic='-KPIC'
8054 lt_prog_compiler_static='-Bstatic'
3725885a 8055 lt_prog_compiler_wl='-Wl,'
d7040cdb
SE
8056 ;;
8057 esac
dabbade6
L
8058 ;;
8059 esac
d7040cdb
SE
8060 ;;
8061
dabbade6
L
8062 newsos6)
8063 lt_prog_compiler_pic='-KPIC'
8064 lt_prog_compiler_static='-Bstatic'
d7040cdb
SE
8065 ;;
8066
dabbade6
L
8067 *nto* | *qnx*)
8068 # QNX uses GNU C++, but need to define -shared option too, otherwise
8069 # it will coredump.
8070 lt_prog_compiler_pic='-fPIC -shared'
d7040cdb
SE
8071 ;;
8072
dabbade6
L
8073 osf3* | osf4* | osf5*)
8074 lt_prog_compiler_wl='-Wl,'
8075 # All OSF/1 code is PIC.
8076 lt_prog_compiler_static='-non_shared'
d7040cdb
SE
8077 ;;
8078
dabbade6
L
8079 rdos*)
8080 lt_prog_compiler_static='-non_shared'
d7040cdb
SE
8081 ;;
8082
8083 solaris*)
dabbade6
L
8084 lt_prog_compiler_pic='-KPIC'
8085 lt_prog_compiler_static='-Bstatic'
8086 case $cc_basename in
8087 f77* | f90* | f95*)
8088 lt_prog_compiler_wl='-Qoption ld ';;
d7040cdb 8089 *)
dabbade6 8090 lt_prog_compiler_wl='-Wl,';;
d7040cdb 8091 esac
d7040cdb
SE
8092 ;;
8093
8094 sunos4*)
dabbade6
L
8095 lt_prog_compiler_wl='-Qoption ld '
8096 lt_prog_compiler_pic='-PIC'
8097 lt_prog_compiler_static='-Bstatic'
d7040cdb
SE
8098 ;;
8099
dabbade6
L
8100 sysv4 | sysv4.2uw2* | sysv4.3*)
8101 lt_prog_compiler_wl='-Wl,'
8102 lt_prog_compiler_pic='-KPIC'
8103 lt_prog_compiler_static='-Bstatic'
d7040cdb
SE
8104 ;;
8105
8106 sysv4*MP*)
dabbade6
L
8107 if test -d /usr/nec ;then
8108 lt_prog_compiler_pic='-Kconform_pic'
8109 lt_prog_compiler_static='-Bstatic'
d7040cdb
SE
8110 fi
8111 ;;
8112
dabbade6
L
8113 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8114 lt_prog_compiler_wl='-Wl,'
8115 lt_prog_compiler_pic='-KPIC'
8116 lt_prog_compiler_static='-Bstatic'
d7040cdb
SE
8117 ;;
8118
dabbade6
L
8119 unicos*)
8120 lt_prog_compiler_wl='-Wl,'
8121 lt_prog_compiler_can_build_shared=no
d7040cdb
SE
8122 ;;
8123
8124 uts4*)
dabbade6
L
8125 lt_prog_compiler_pic='-pic'
8126 lt_prog_compiler_static='-Bstatic'
d7040cdb
SE
8127 ;;
8128
8129 *)
dabbade6 8130 lt_prog_compiler_can_build_shared=no
d7040cdb
SE
8131 ;;
8132 esac
d7040cdb
SE
8133 fi
8134
dabbade6
L
8135case $host_os in
8136 # For platforms which do not support PIC, -DPIC is meaningless:
8137 *djgpp*)
8138 lt_prog_compiler_pic=
8139 ;;
8140 *)
8141 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8142 ;;
8143esac
81ecdfbb
RW
8144{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8145$as_echo "$lt_prog_compiler_pic" >&6; }
d7040cdb
SE
8146
8147
8148
8149
8150
8151
8152#
dabbade6 8153# Check to make sure the PIC flag actually works.
d7040cdb 8154#
dabbade6 8155if test -n "$lt_prog_compiler_pic"; then
81ecdfbb
RW
8156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8157$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
d0ac1c44 8158if ${lt_cv_prog_compiler_pic_works+:} false; then :
81ecdfbb 8159 $as_echo_n "(cached) " >&6
dabbade6 8160else
1927a18f 8161 lt_cv_prog_compiler_pic_works=no
dabbade6
L
8162 ac_outfile=conftest.$ac_objext
8163 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8164 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8165 # Insert the option either (1) after the last *FLAGS variable, or
8166 # (2) before a word containing "conftest.", or (3) at the end.
8167 # Note that $ac_compile itself does not contain backslashes and begins
8168 # with a dollar sign (not a hyphen), so the echo should work correctly.
8169 # The option is referenced via a variable to avoid confusing sed.
8170 lt_compile=`echo "$ac_compile" | $SED \
8171 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8172 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8173 -e 's:$: $lt_compiler_flag:'`
3725885a 8174 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
dabbade6
L
8175 (eval "$lt_compile" 2>conftest.err)
8176 ac_status=$?
8177 cat conftest.err >&5
3725885a 8178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dabbade6
L
8179 if (exit $ac_status) && test -s "$ac_outfile"; then
8180 # The compiler can only warn and ignore the option if not recognized
8181 # So say no if there are warnings other than the usual output.
3725885a 8182 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
dabbade6
L
8183 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8184 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
1927a18f 8185 lt_cv_prog_compiler_pic_works=yes
dabbade6
L
8186 fi
8187 fi
8188 $RM conftest*
d7040cdb 8189
dabbade6 8190fi
81ecdfbb
RW
8191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8192$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
d7040cdb 8193
1927a18f 8194if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
dabbade6
L
8195 case $lt_prog_compiler_pic in
8196 "" | " "*) ;;
8197 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8198 esac
8199else
8200 lt_prog_compiler_pic=
8201 lt_prog_compiler_can_build_shared=no
8202fi
d7040cdb 8203
dabbade6 8204fi
d7040cdb
SE
8205
8206
8207
8208
8209
8210
dabbade6
L
8211#
8212# Check to make sure the static flag actually works.
8213#
8214wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
81ecdfbb
RW
8215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8216$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
d0ac1c44 8217if ${lt_cv_prog_compiler_static_works+:} false; then :
81ecdfbb 8218 $as_echo_n "(cached) " >&6
dabbade6 8219else
1927a18f 8220 lt_cv_prog_compiler_static_works=no
dabbade6
L
8221 save_LDFLAGS="$LDFLAGS"
8222 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8223 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8224 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8225 # The linker can only warn and ignore the option if not recognized
8226 # So say no if there are warnings
8227 if test -s conftest.err; then
8228 # Append any errors to the config.log.
8229 cat conftest.err 1>&5
3725885a 8230 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
dabbade6
L
8231 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8232 if diff conftest.exp conftest.er2 >/dev/null; then
1927a18f 8233 lt_cv_prog_compiler_static_works=yes
dabbade6
L
8234 fi
8235 else
1927a18f 8236 lt_cv_prog_compiler_static_works=yes
dabbade6
L
8237 fi
8238 fi
1927a18f 8239 $RM -r conftest*
dabbade6 8240 LDFLAGS="$save_LDFLAGS"
d7040cdb 8241
dabbade6 8242fi
81ecdfbb
RW
8243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8244$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
d7040cdb 8245
1927a18f 8246if test x"$lt_cv_prog_compiler_static_works" = xyes; then
dabbade6
L
8247 :
8248else
8249 lt_prog_compiler_static=
8250fi
d7040cdb
SE
8251
8252
8253
8254
8255
8256
8257
81ecdfbb
RW
8258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8259$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
d0ac1c44 8260if ${lt_cv_prog_compiler_c_o+:} false; then :
81ecdfbb 8261 $as_echo_n "(cached) " >&6
dabbade6
L
8262else
8263 lt_cv_prog_compiler_c_o=no
8264 $RM -r conftest 2>/dev/null
8265 mkdir conftest
8266 cd conftest
8267 mkdir out
8268 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d7040cdb 8269
dabbade6
L
8270 lt_compiler_flag="-o out/conftest2.$ac_objext"
8271 # Insert the option either (1) after the last *FLAGS variable, or
8272 # (2) before a word containing "conftest.", or (3) at the end.
8273 # Note that $ac_compile itself does not contain backslashes and begins
8274 # with a dollar sign (not a hyphen), so the echo should work correctly.
8275 lt_compile=`echo "$ac_compile" | $SED \
8276 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8277 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8278 -e 's:$: $lt_compiler_flag:'`
3725885a 8279 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
dabbade6
L
8280 (eval "$lt_compile" 2>out/conftest.err)
8281 ac_status=$?
8282 cat out/conftest.err >&5
3725885a 8283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dabbade6
L
8284 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8285 then
8286 # The compiler can only warn and ignore the option if not recognized
8287 # So say no if there are warnings
3725885a 8288 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
dabbade6
L
8289 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8290 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8291 lt_cv_prog_compiler_c_o=yes
8292 fi
8293 fi
8294 chmod u+w . 2>&5
8295 $RM conftest*
8296 # SGI C++ compiler will create directory out/ii_files/ for
8297 # template instantiation
8298 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8299 $RM out/* && rmdir out
8300 cd ..
8301 $RM -r conftest
8302 $RM conftest*
d7040cdb 8303
dabbade6 8304fi
81ecdfbb
RW
8305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8306$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
d7040cdb
SE
8307
8308
8309
8310
8311
8312
81ecdfbb
RW
8313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8314$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
d0ac1c44 8315if ${lt_cv_prog_compiler_c_o+:} false; then :
81ecdfbb 8316 $as_echo_n "(cached) " >&6
dabbade6
L
8317else
8318 lt_cv_prog_compiler_c_o=no
8319 $RM -r conftest 2>/dev/null
8320 mkdir conftest
8321 cd conftest
8322 mkdir out
8323 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d7040cdb 8324
dabbade6
L
8325 lt_compiler_flag="-o out/conftest2.$ac_objext"
8326 # Insert the option either (1) after the last *FLAGS variable, or
8327 # (2) before a word containing "conftest.", or (3) at the end.
8328 # Note that $ac_compile itself does not contain backslashes and begins
8329 # with a dollar sign (not a hyphen), so the echo should work correctly.
8330 lt_compile=`echo "$ac_compile" | $SED \
8331 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8332 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8333 -e 's:$: $lt_compiler_flag:'`
3725885a 8334 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
dabbade6
L
8335 (eval "$lt_compile" 2>out/conftest.err)
8336 ac_status=$?
8337 cat out/conftest.err >&5
3725885a 8338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dabbade6
L
8339 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8340 then
8341 # The compiler can only warn and ignore the option if not recognized
8342 # So say no if there are warnings
3725885a 8343 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
dabbade6
L
8344 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8345 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8346 lt_cv_prog_compiler_c_o=yes
8347 fi
8348 fi
8349 chmod u+w . 2>&5
8350 $RM conftest*
8351 # SGI C++ compiler will create directory out/ii_files/ for
8352 # template instantiation
8353 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8354 $RM out/* && rmdir out
8355 cd ..
8356 $RM -r conftest
8357 $RM conftest*
d7040cdb 8358
dabbade6 8359fi
81ecdfbb
RW
8360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8361$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
d7040cdb
SE
8362
8363
8364
8365
dabbade6
L
8366hard_links="nottested"
8367if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8368 # do not overwrite the value of need_locks provided by the user
81ecdfbb
RW
8369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8370$as_echo_n "checking if we can lock with hard links... " >&6; }
dabbade6
L
8371 hard_links=yes
8372 $RM conftest*
8373 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8374 touch conftest.a
8375 ln conftest.a conftest.b 2>&5 || hard_links=no
8376 ln conftest.a conftest.b 2>/dev/null && hard_links=no
81ecdfbb
RW
8377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8378$as_echo "$hard_links" >&6; }
dabbade6 8379 if test "$hard_links" = no; then
81ecdfbb
RW
8380 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8381$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
dabbade6
L
8382 need_locks=warn
8383 fi
8384else
8385 need_locks=no
8386fi
d7040cdb
SE
8387
8388
8389
8390
8391
8392
81ecdfbb
RW
8393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8394$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
d7040cdb 8395
dabbade6
L
8396 runpath_var=
8397 allow_undefined_flag=
8398 always_export_symbols=no
8399 archive_cmds=
8400 archive_expsym_cmds=
8401 compiler_needs_object=no
8402 enable_shared_with_static_runtimes=no
8403 export_dynamic_flag_spec=
8404 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8405 hardcode_automatic=no
8406 hardcode_direct=no
8407 hardcode_direct_absolute=no
8408 hardcode_libdir_flag_spec=
8409 hardcode_libdir_flag_spec_ld=
8410 hardcode_libdir_separator=
8411 hardcode_minus_L=no
8412 hardcode_shlibpath_var=unsupported
8413 inherit_rpath=no
8414 link_all_deplibs=unknown
8415 module_cmds=
8416 module_expsym_cmds=
8417 old_archive_from_new_cmds=
8418 old_archive_from_expsyms_cmds=
8419 thread_safe_flag_spec=
8420 whole_archive_flag_spec=
8421 # include_expsyms should be a list of space-separated symbols to be *always*
8422 # included in the symbol list
8423 include_expsyms=
8424 # exclude_expsyms can be an extended regexp of symbols to exclude
8425 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8426 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8427 # as well as any symbol that contains `d'.
1927a18f 8428 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
dabbade6
L
8429 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8430 # platforms (ab)use it in PIC code, but their linkers get confused if
8431 # the symbol is explicitly referenced. Since portable code cannot
8432 # rely on this symbol name, it's probably fine to never include it in
8433 # preloaded symbol tables.
1927a18f 8434 # Exclude shared library initialization/finalization symbols.
dabbade6 8435 extract_expsyms_cmds=
d7040cdb 8436
dabbade6 8437 case $host_os in
1927a18f 8438 cygwin* | mingw* | pw32* | cegcc*)
dabbade6
L
8439 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8440 # When not using gcc, we currently assume that we are using
8441 # Microsoft Visual C++.
8442 if test "$GCC" != yes; then
8443 with_gnu_ld=no
8444 fi
8445 ;;
8446 interix*)
8447 # we just hope/assume this is gcc and not c89 (= MSVC++)
8448 with_gnu_ld=yes
8449 ;;
8450 openbsd*)
8451 with_gnu_ld=no
8452 ;;
8453 esac
d7040cdb 8454
dabbade6 8455 ld_shlibs=yes
3725885a
RW
8456
8457 # On some targets, GNU ld is compatible enough with the native linker
8458 # that we're better off using the native interface for both.
8459 lt_use_gnu_ld_interface=no
dabbade6 8460 if test "$with_gnu_ld" = yes; then
3725885a
RW
8461 case $host_os in
8462 aix*)
8463 # The AIX port of GNU ld has always aspired to compatibility
8464 # with the native linker. However, as the warning in the GNU ld
8465 # block says, versions before 2.19.5* couldn't really create working
8466 # shared libraries, regardless of the interface used.
8467 case `$LD -v 2>&1` in
8468 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8469 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8470 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8471 *)
8472 lt_use_gnu_ld_interface=yes
8473 ;;
8474 esac
8475 ;;
8476 *)
8477 lt_use_gnu_ld_interface=yes
8478 ;;
8479 esac
8480 fi
8481
8482 if test "$lt_use_gnu_ld_interface" = yes; then
dabbade6
L
8483 # If archive_cmds runs LD, not CC, wlarc should be empty
8484 wlarc='${wl}'
d7040cdb 8485
dabbade6
L
8486 # Set some defaults for GNU ld with shared library support. These
8487 # are reset later if shared libraries are not supported. Putting them
8488 # here allows them to be overridden if necessary.
8489 runpath_var=LD_RUN_PATH
8490 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8491 export_dynamic_flag_spec='${wl}--export-dynamic'
8492 # ancient GNU ld didn't support --whole-archive et. al.
8493 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8494 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8495 else
8496 whole_archive_flag_spec=
8497 fi
8498 supports_anon_versioning=no
8499 case `$LD -v 2>&1` in
3725885a 8500 *GNU\ gold*) supports_anon_versioning=yes ;;
dabbade6
L
8501 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8502 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8503 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8504 *\ 2.11.*) ;; # other 2.11 versions
8505 *) supports_anon_versioning=yes ;;
8506 esac
d7040cdb 8507
dabbade6
L
8508 # See if GNU ld supports shared libraries.
8509 case $host_os in
50e7d84b 8510 aix[3-9]*)
dabbade6
L
8511 # On AIX/PPC, the GNU linker is very broken
8512 if test "$host_cpu" != ia64; then
8513 ld_shlibs=no
8514 cat <<_LT_EOF 1>&2
d7040cdb 8515
3725885a 8516*** Warning: the GNU linker, at least up to release 2.19, is reported
dabbade6
L
8517*** to be unable to reliably create shared libraries on AIX.
8518*** Therefore, libtool is disabling shared libraries support. If you
3725885a
RW
8519*** really care for shared libraries, you may want to install binutils
8520*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8521*** You will then need to restart the configuration process.
d7040cdb 8522
dabbade6
L
8523_LT_EOF
8524 fi
8525 ;;
d7040cdb 8526
dabbade6 8527 amigaos*)
1927a18f
L
8528 case $host_cpu in
8529 powerpc)
8530 # see comment about AmigaOS4 .so support
8531 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8532 archive_expsym_cmds=''
8533 ;;
8534 m68k)
8535 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)'
8536 hardcode_libdir_flag_spec='-L$libdir'
8537 hardcode_minus_L=yes
8538 ;;
8539 esac
dabbade6 8540 ;;
d7040cdb 8541
dabbade6
L
8542 beos*)
8543 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8544 allow_undefined_flag=unsupported
8545 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8546 # support --undefined. This deserves some investigation. FIXME
8547 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8548 else
8549 ld_shlibs=no
8550 fi
8551 ;;
d7040cdb 8552
1927a18f 8553 cygwin* | mingw* | pw32* | cegcc*)
dabbade6
L
8554 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8555 # as there is no search path for DLLs.
8556 hardcode_libdir_flag_spec='-L$libdir'
3725885a 8557 export_dynamic_flag_spec='${wl}--export-all-symbols'
dabbade6
L
8558 allow_undefined_flag=unsupported
8559 always_export_symbols=no
8560 enable_shared_with_static_runtimes=yes
8561 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
d7040cdb 8562
dabbade6
L
8563 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8564 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8565 # If the export-symbols file already is a .def file (1st line
8566 # is EXPORTS), use it as is; otherwise, prepend...
8567 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8568 cp $export_symbols $output_objdir/$soname.def;
8569 else
8570 echo EXPORTS > $output_objdir/$soname.def;
8571 cat $export_symbols >> $output_objdir/$soname.def;
8572 fi~
8573 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8574 else
8575 ld_shlibs=no
8576 fi
8577 ;;
d7040cdb 8578
3725885a
RW
8579 haiku*)
8580 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8581 link_all_deplibs=yes
8582 ;;
8583
dabbade6
L
8584 interix[3-9]*)
8585 hardcode_direct=no
8586 hardcode_shlibpath_var=no
8587 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8588 export_dynamic_flag_spec='${wl}-E'
8589 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8590 # Instead, shared libraries are loaded at an image base (0x10000000 by
8591 # default) and relocated if they conflict, which is a slow very memory
8592 # consuming and fragmenting process. To avoid this, we pick a random,
8593 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8594 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8595 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8596 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'
8597 ;;
d7040cdb 8598
58e24671 8599 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
dabbade6
L
8600 tmp_diet=no
8601 if test "$host_os" = linux-dietlibc; then
8602 case $cc_basename in
8603 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8604 esac
8605 fi
8606 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8607 && test "$tmp_diet" = no
8608 then
6e733cce 8609 tmp_addflag=' $pic_flag'
1927a18f 8610 tmp_sharedflag='-shared'
dabbade6
L
8611 case $cc_basename,$host_cpu in
8612 pgcc*) # Portland Group C compiler
3725885a 8613 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'
dabbade6
L
8614 tmp_addflag=' $pic_flag'
8615 ;;
3725885a
RW
8616 pgf77* | pgf90* | pgf95* | pgfortran*)
8617 # Portland Group f77 and f90 compilers
8618 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'
dabbade6
L
8619 tmp_addflag=' $pic_flag -Mnomain' ;;
8620 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8621 tmp_addflag=' -i_dynamic' ;;
8622 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8623 tmp_addflag=' -i_dynamic -nofor_main' ;;
8624 ifc* | ifort*) # Intel Fortran compiler
8625 tmp_addflag=' -nofor_main' ;;
1927a18f
L
8626 lf95*) # Lahey Fortran 8.1
8627 whole_archive_flag_spec=
8628 tmp_sharedflag='--shared' ;;
3725885a 8629 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
1927a18f
L
8630 tmp_sharedflag='-qmkshrobj'
8631 tmp_addflag= ;;
3725885a
RW
8632 nvcc*) # Cuda Compiler Driver 2.2
8633 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'
8634 compiler_needs_object=yes
8635 ;;
dabbade6
L
8636 esac
8637 case `$CC -V 2>&1 | sed 5q` in
8638 *Sun\ C*) # Sun C 5.9
3725885a 8639 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'
dabbade6
L
8640 compiler_needs_object=yes
8641 tmp_sharedflag='-G' ;;
8642 *Sun\ F*) # Sun Fortran 8.3
8643 tmp_sharedflag='-G' ;;
dabbade6
L
8644 esac
8645 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
d7040cdb 8646
dabbade6
L
8647 if test "x$supports_anon_versioning" = xyes; then
8648 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8649 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8650 echo "local: *; };" >> $output_objdir/$libname.ver~
8651 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8652 fi
1927a18f
L
8653
8654 case $cc_basename in
3725885a 8655 xlf* | bgf* | bgxlf* | mpixlf*)
1927a18f
L
8656 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8657 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8658 hardcode_libdir_flag_spec=
8659 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8660 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8661 if test "x$supports_anon_versioning" = xyes; then
8662 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8663 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8664 echo "local: *; };" >> $output_objdir/$libname.ver~
8665 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8666 fi
8667 ;;
8668 esac
dabbade6
L
8669 else
8670 ld_shlibs=no
8671 fi
8672 ;;
d7040cdb 8673
dabbade6
L
8674 netbsd*)
8675 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8676 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8677 wlarc=
8678 else
8679 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8680 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8681 fi
8682 ;;
d7040cdb 8683
dabbade6
L
8684 solaris*)
8685 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8686 ld_shlibs=no
8687 cat <<_LT_EOF 1>&2
d7040cdb 8688
dabbade6
L
8689*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8690*** create shared libraries on Solaris systems. Therefore, libtool
8691*** is disabling shared libraries support. We urge you to upgrade GNU
8692*** binutils to release 2.9.1 or newer. Another option is to modify
8693*** your PATH or compiler configuration so that the native linker is
8694*** used, and then restart.
d7040cdb 8695
dabbade6
L
8696_LT_EOF
8697 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8698 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8699 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8700 else
8701 ld_shlibs=no
8702 fi
8703 ;;
d7040cdb 8704
dabbade6
L
8705 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8706 case `$LD -v 2>&1` in
8707 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8708 ld_shlibs=no
8709 cat <<_LT_EOF 1>&2
d7040cdb 8710
dabbade6
L
8711*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8712*** reliably create shared libraries on SCO systems. Therefore, libtool
8713*** is disabling shared libraries support. We urge you to upgrade GNU
8714*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8715*** your PATH or compiler configuration so that the native linker is
8716*** used, and then restart.
d7040cdb 8717
dabbade6
L
8718_LT_EOF
8719 ;;
8720 *)
8721 # For security reasons, it is highly recommended that you always
8722 # use absolute paths for naming shared libraries, and exclude the
8723 # DT_RUNPATH tag from executables and libraries. But doing so
8724 # requires that you compile everything twice, which is a pain.
8725 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8726 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8727 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8728 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8729 else
8730 ld_shlibs=no
8731 fi
8732 ;;
8733 esac
8734 ;;
d7040cdb 8735
dabbade6
L
8736 sunos4*)
8737 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8738 wlarc=
8739 hardcode_direct=yes
8740 hardcode_shlibpath_var=no
8741 ;;
d7040cdb 8742
dabbade6
L
8743 *)
8744 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8745 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8746 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8747 else
8748 ld_shlibs=no
8749 fi
8750 ;;
8751 esac
d7040cdb 8752
dabbade6
L
8753 if test "$ld_shlibs" = no; then
8754 runpath_var=
8755 hardcode_libdir_flag_spec=
8756 export_dynamic_flag_spec=
8757 whole_archive_flag_spec=
8758 fi
8759 else
8760 # PORTME fill in a description of your system's linker (not GNU ld)
8761 case $host_os in
8762 aix3*)
8763 allow_undefined_flag=unsupported
8764 always_export_symbols=yes
8765 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'
8766 # Note: this linker hardcodes the directories in LIBPATH if there
8767 # are no directories specified by -L.
8768 hardcode_minus_L=yes
8769 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8770 # Neither direct hardcoding nor static linking is supported with a
8771 # broken collect2.
8772 hardcode_direct=unsupported
8773 fi
8774 ;;
d7040cdb 8775
50e7d84b 8776 aix[4-9]*)
dabbade6
L
8777 if test "$host_cpu" = ia64; then
8778 # On IA64, the linker does run time linking by default, so we don't
8779 # have to do anything special.
8780 aix_use_runtimelinking=no
8781 exp_sym_flag='-Bexport'
8782 no_entry_flag=""
8783 else
8784 # If we're using GNU nm, then we don't want the "-C" option.
8785 # -C means demangle to AIX nm, but means don't demangle with GNU nm
3725885a
RW
8786 # Also, AIX nm treats weak defined symbols like other global
8787 # defined symbols, whereas GNU nm marks them as "W".
dabbade6 8788 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
3725885a 8789 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'
dabbade6 8790 else
5c14705f 8791 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'
dabbade6
L
8792 fi
8793 aix_use_runtimelinking=no
d7040cdb 8794
dabbade6
L
8795 # Test if we are trying to use run time linking or normal
8796 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8797 # need to do runtime linking.
50e7d84b 8798 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
dabbade6
L
8799 for ld_flag in $LDFLAGS; do
8800 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8801 aix_use_runtimelinking=yes
8802 break
8803 fi
8804 done
8805 ;;
8806 esac
d7040cdb 8807
dabbade6
L
8808 exp_sym_flag='-bexport'
8809 no_entry_flag='-bnoentry'
8810 fi
d7040cdb 8811
dabbade6
L
8812 # When large executables or shared objects are built, AIX ld can
8813 # have problems creating the table of contents. If linking a library
8814 # or program results in "error TOC overflow" add -mminimal-toc to
8815 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8816 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
d7040cdb 8817
dabbade6
L
8818 archive_cmds=''
8819 hardcode_direct=yes
8820 hardcode_direct_absolute=yes
8821 hardcode_libdir_separator=':'
8822 link_all_deplibs=yes
8823 file_list_spec='${wl}-f,'
d7040cdb 8824
dabbade6
L
8825 if test "$GCC" = yes; then
8826 case $host_os in aix4.[012]|aix4.[012].*)
8827 # We only want to do this on AIX 4.2 and lower, the check
8828 # below for broken collect2 doesn't work under 4.3+
8829 collect2name=`${CC} -print-prog-name=collect2`
8830 if test -f "$collect2name" &&
8831 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8832 then
8833 # We have reworked collect2
8834 :
8835 else
8836 # We have old collect2
8837 hardcode_direct=unsupported
8838 # It fails to find uninstalled libraries when the uninstalled
8839 # path is not listed in the libpath. Setting hardcode_minus_L
8840 # to unsupported forces relinking
8841 hardcode_minus_L=yes
8842 hardcode_libdir_flag_spec='-L$libdir'
8843 hardcode_libdir_separator=
8844 fi
8845 ;;
8846 esac
8847 shared_flag='-shared'
8848 if test "$aix_use_runtimelinking" = yes; then
8849 shared_flag="$shared_flag "'${wl}-G'
8850 fi
8851 else
8852 # not using gcc
8853 if test "$host_cpu" = ia64; then
8854 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8855 # chokes on -Wl,-G. The following line is correct:
8856 shared_flag='-G'
8857 else
8858 if test "$aix_use_runtimelinking" = yes; then
8859 shared_flag='${wl}-G'
8860 else
8861 shared_flag='${wl}-bM:SRE'
8862 fi
8863 fi
8864 fi
d7040cdb 8865
1927a18f 8866 export_dynamic_flag_spec='${wl}-bexpall'
dabbade6
L
8867 # It seems that -bexpall does not export symbols beginning with
8868 # underscore (_), so it is better to generate a list of symbols to export.
8869 always_export_symbols=yes
8870 if test "$aix_use_runtimelinking" = yes; then
8871 # Warning - without using the other runtime loading flags (-brtl),
8872 # -berok will link without error, but may produce a broken library.
8873 allow_undefined_flag='-berok'
8874 # Determine the default libpath from the value encoded in an
8875 # empty executable.
81ecdfbb 8876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
dabbade6 8877/* end confdefs.h. */
d7040cdb 8878
dabbade6
L
8879int
8880main ()
8881{
d7040cdb 8882
dabbade6
L
8883 ;
8884 return 0;
8885}
8886_ACEOF
81ecdfbb 8887if ac_fn_c_try_link "$LINENO"; then :
d7040cdb 8888
dabbade6
L
8889lt_aix_libpath_sed='
8890 /Import File Strings/,/^$/ {
8891 /^0/ {
8892 s/^0 *\(.*\)$/\1/
8893 p
8894 }
8895 }'
8896aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8897# Check for a 64-bit object if we didn't find anything.
8898if test -z "$aix_libpath"; then
8899 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8900fi
dabbade6 8901fi
81ecdfbb
RW
8902rm -f core conftest.err conftest.$ac_objext \
8903 conftest$ac_exeext conftest.$ac_ext
dabbade6 8904if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
d7040cdb 8905
dabbade6 8906 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
3725885a 8907 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"
dabbade6
L
8908 else
8909 if test "$host_cpu" = ia64; then
8910 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8911 allow_undefined_flag="-z nodefs"
8912 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"
8913 else
8914 # Determine the default libpath from the value encoded in an
8915 # empty executable.
81ecdfbb 8916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
dabbade6 8917/* end confdefs.h. */
d7040cdb 8918
dabbade6
L
8919int
8920main ()
8921{
d7040cdb 8922
dabbade6
L
8923 ;
8924 return 0;
8925}
8926_ACEOF
81ecdfbb 8927if ac_fn_c_try_link "$LINENO"; then :
d7040cdb 8928
dabbade6
L
8929lt_aix_libpath_sed='
8930 /Import File Strings/,/^$/ {
8931 /^0/ {
8932 s/^0 *\(.*\)$/\1/
8933 p
8934 }
8935 }'
8936aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8937# Check for a 64-bit object if we didn't find anything.
8938if test -z "$aix_libpath"; then
8939 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8940fi
dabbade6 8941fi
81ecdfbb
RW
8942rm -f core conftest.err conftest.$ac_objext \
8943 conftest$ac_exeext conftest.$ac_ext
dabbade6 8944if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
d7040cdb 8945
dabbade6
L
8946 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8947 # Warning - without using the other run time loading flags,
8948 # -berok will link without error, but may produce a broken library.
8949 no_undefined_flag=' ${wl}-bernotok'
8950 allow_undefined_flag=' ${wl}-berok'
3725885a
RW
8951 if test "$with_gnu_ld" = yes; then
8952 # We only use this code for GNU lds that support --whole-archive.
8953 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8954 else
8955 # Exported symbols can be pulled into shared objects from archives
8956 whole_archive_flag_spec='$convenience'
8957 fi
dabbade6
L
8958 archive_cmds_need_lc=yes
8959 # This is similar to how AIX traditionally builds its shared libraries.
8960 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'
8961 fi
8962 fi
8963 ;;
d7040cdb 8964
dabbade6 8965 amigaos*)
1927a18f
L
8966 case $host_cpu in
8967 powerpc)
8968 # see comment about AmigaOS4 .so support
8969 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8970 archive_expsym_cmds=''
8971 ;;
8972 m68k)
8973 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)'
8974 hardcode_libdir_flag_spec='-L$libdir'
8975 hardcode_minus_L=yes
8976 ;;
8977 esac
dabbade6 8978 ;;
d7040cdb 8979
dabbade6
L
8980 bsdi[45]*)
8981 export_dynamic_flag_spec=-rdynamic
8982 ;;
d7040cdb 8983
1927a18f 8984 cygwin* | mingw* | pw32* | cegcc*)
dabbade6
L
8985 # When not using gcc, we currently assume that we are using
8986 # Microsoft Visual C++.
8987 # hardcode_libdir_flag_spec is actually meaningless, as there is
8988 # no search path for DLLs.
8989 hardcode_libdir_flag_spec=' '
8990 allow_undefined_flag=unsupported
8991 # Tell ltmain to make .lib files, not .a files.
8992 libext=lib
8993 # Tell ltmain to make .dll files, not .so files.
8994 shrext_cmds=".dll"
8995 # FIXME: Setting linknames here is a bad hack.
3725885a 8996 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
dabbade6
L
8997 # The linker will automatically build a .lib file if we build a DLL.
8998 old_archive_from_new_cmds='true'
8999 # FIXME: Should let the user specify the lib program.
9000 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9001 fix_srcfile_path='`cygpath -w "$srcfile"`'
9002 enable_shared_with_static_runtimes=yes
9003 ;;
d7040cdb 9004
dabbade6 9005 darwin* | rhapsody*)
d7040cdb 9006
1927a18f
L
9007
9008 archive_cmds_need_lc=no
9009 hardcode_direct=no
9010 hardcode_automatic=yes
9011 hardcode_shlibpath_var=unsupported
3725885a
RW
9012 if test "$lt_cv_ld_force_load" = "yes"; then
9013 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\"`'
9014 else
9015 whole_archive_flag_spec=''
9016 fi
1927a18f
L
9017 link_all_deplibs=yes
9018 allow_undefined_flag="$_lt_dar_allow_undefined"
9019 case $cc_basename in
9020 ifort*) _lt_dar_can_shared=yes ;;
9021 *) _lt_dar_can_shared=$GCC ;;
9022 esac
9023 if test "$_lt_dar_can_shared" = "yes"; then
3725885a 9024 output_verbose_link_cmd=func_echo_all
1927a18f
L
9025 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9026 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9027 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}"
9028 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}"
9029
9030 else
9031 ld_shlibs=no
9032 fi
9033
dabbade6 9034 ;;
d7040cdb 9035
dabbade6
L
9036 dgux*)
9037 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9038 hardcode_libdir_flag_spec='-L$libdir'
9039 hardcode_shlibpath_var=no
9040 ;;
d7040cdb 9041
dabbade6
L
9042 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9043 # support. Future versions do this automatically, but an explicit c++rt0.o
9044 # does not break anything, and helps significantly (at the cost of a little
9045 # extra space).
9046 freebsd2.2*)
9047 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9048 hardcode_libdir_flag_spec='-R$libdir'
9049 hardcode_direct=yes
9050 hardcode_shlibpath_var=no
9051 ;;
d7040cdb 9052
dabbade6 9053 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6d2920c8 9054 freebsd2.*)
dabbade6
L
9055 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9056 hardcode_direct=yes
9057 hardcode_minus_L=yes
9058 hardcode_shlibpath_var=no
9059 ;;
d7040cdb 9060
dabbade6
L
9061 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9062 freebsd* | dragonfly*)
9063 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9064 hardcode_libdir_flag_spec='-R$libdir'
9065 hardcode_direct=yes
9066 hardcode_shlibpath_var=no
9067 ;;
d7040cdb 9068
dabbade6
L
9069 hpux9*)
9070 if test "$GCC" = yes; then
9071 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'
9072 else
9073 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'
9074 fi
9075 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9076 hardcode_libdir_separator=:
9077 hardcode_direct=yes
d7040cdb 9078
dabbade6
L
9079 # hardcode_minus_L: Not really in the search PATH,
9080 # but as the default location of the library.
9081 hardcode_minus_L=yes
9082 export_dynamic_flag_spec='${wl}-E'
9083 ;;
d7040cdb 9084
dabbade6 9085 hpux10*)
3725885a 9086 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
dabbade6
L
9087 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9088 else
9089 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9090 fi
9091 if test "$with_gnu_ld" = no; then
9092 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9093 hardcode_libdir_flag_spec_ld='+b $libdir'
9094 hardcode_libdir_separator=:
9095 hardcode_direct=yes
9096 hardcode_direct_absolute=yes
9097 export_dynamic_flag_spec='${wl}-E'
9098 # hardcode_minus_L: Not really in the search PATH,
9099 # but as the default location of the library.
9100 hardcode_minus_L=yes
9101 fi
9102 ;;
d7040cdb 9103
dabbade6 9104 hpux11*)
3725885a 9105 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
dabbade6
L
9106 case $host_cpu in
9107 hppa*64*)
9108 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9109 ;;
9110 ia64*)
1927a18f 9111 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
dabbade6
L
9112 ;;
9113 *)
9114 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9115 ;;
9116 esac
9117 else
9118 case $host_cpu in
9119 hppa*64*)
9120 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9121 ;;
9122 ia64*)
9123 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9124 ;;
9125 *)
3725885a
RW
9126
9127 # Older versions of the 11.00 compiler do not understand -b yet
9128 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9130$as_echo_n "checking if $CC understands -b... " >&6; }
d0ac1c44 9131if ${lt_cv_prog_compiler__b+:} false; then :
3725885a
RW
9132 $as_echo_n "(cached) " >&6
9133else
9134 lt_cv_prog_compiler__b=no
9135 save_LDFLAGS="$LDFLAGS"
9136 LDFLAGS="$LDFLAGS -b"
9137 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9138 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9139 # The linker can only warn and ignore the option if not recognized
9140 # So say no if there are warnings
9141 if test -s conftest.err; then
9142 # Append any errors to the config.log.
9143 cat conftest.err 1>&5
9144 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9145 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9146 if diff conftest.exp conftest.er2 >/dev/null; then
9147 lt_cv_prog_compiler__b=yes
9148 fi
9149 else
9150 lt_cv_prog_compiler__b=yes
9151 fi
9152 fi
9153 $RM -r conftest*
9154 LDFLAGS="$save_LDFLAGS"
9155
9156fi
9157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9158$as_echo "$lt_cv_prog_compiler__b" >&6; }
9159
9160if test x"$lt_cv_prog_compiler__b" = xyes; then
9161 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9162else
9163 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9164fi
9165
dabbade6
L
9166 ;;
9167 esac
9168 fi
9169 if test "$with_gnu_ld" = no; then
9170 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9171 hardcode_libdir_separator=:
d7040cdb 9172
dabbade6
L
9173 case $host_cpu in
9174 hppa*64*|ia64*)
9175 hardcode_direct=no
9176 hardcode_shlibpath_var=no
9177 ;;
9178 *)
9179 hardcode_direct=yes
9180 hardcode_direct_absolute=yes
9181 export_dynamic_flag_spec='${wl}-E'
d7040cdb 9182
dabbade6
L
9183 # hardcode_minus_L: Not really in the search PATH,
9184 # but as the default location of the library.
9185 hardcode_minus_L=yes
9186 ;;
9187 esac
9188 fi
9189 ;;
d7040cdb 9190
dabbade6
L
9191 irix5* | irix6* | nonstopux*)
9192 if test "$GCC" = yes; then
3725885a 9193 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'
dabbade6
L
9194 # Try to use the -exported_symbol ld option, if it does not
9195 # work, assume that -exports_file does not work either and
9196 # implicitly export all symbols.
9197 save_LDFLAGS="$LDFLAGS"
9198 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
81ecdfbb
RW
9199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9200/* end confdefs.h. */
dabbade6
L
9201int foo(void) {}
9202_ACEOF
81ecdfbb 9203if ac_fn_c_try_link "$LINENO"; then :
3725885a 9204 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'
d7040cdb 9205
d7040cdb 9206fi
81ecdfbb
RW
9207rm -f core conftest.err conftest.$ac_objext \
9208 conftest$ac_exeext conftest.$ac_ext
dabbade6
L
9209 LDFLAGS="$save_LDFLAGS"
9210 else
3725885a
RW
9211 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'
9212 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'
dabbade6
L
9213 fi
9214 archive_cmds_need_lc='no'
9215 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9216 hardcode_libdir_separator=:
9217 inherit_rpath=yes
9218 link_all_deplibs=yes
9219 ;;
d7040cdb 9220
dabbade6
L
9221 netbsd*)
9222 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9223 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9224 else
9225 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9226 fi
9227 hardcode_libdir_flag_spec='-R$libdir'
9228 hardcode_direct=yes
9229 hardcode_shlibpath_var=no
9230 ;;
d7040cdb 9231
dabbade6
L
9232 newsos6)
9233 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9234 hardcode_direct=yes
9235 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9236 hardcode_libdir_separator=:
9237 hardcode_shlibpath_var=no
9238 ;;
d7040cdb 9239
dabbade6
L
9240 *nto* | *qnx*)
9241 ;;
d7040cdb 9242
dabbade6 9243 openbsd*)
1927a18f
L
9244 if test -f /usr/libexec/ld.so; then
9245 hardcode_direct=yes
9246 hardcode_shlibpath_var=no
9247 hardcode_direct_absolute=yes
9248 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
dabbade6 9249 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
1927a18f 9250 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
dabbade6 9251 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
1927a18f
L
9252 export_dynamic_flag_spec='${wl}-E'
9253 else
9254 case $host_os in
9255 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9256 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9257 hardcode_libdir_flag_spec='-R$libdir'
9258 ;;
9259 *)
9260 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9261 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9262 ;;
9263 esac
9264 fi
9265 else
9266 ld_shlibs=no
d7040cdb
SE
9267 fi
9268 ;;
d7040cdb 9269
dabbade6
L
9270 os2*)
9271 hardcode_libdir_flag_spec='-L$libdir'
9272 hardcode_minus_L=yes
9273 allow_undefined_flag=unsupported
3725885a 9274 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'
dabbade6
L
9275 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9276 ;;
d7040cdb 9277
dabbade6
L
9278 osf3*)
9279 if test "$GCC" = yes; then
9280 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
3725885a 9281 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'
dabbade6
L
9282 else
9283 allow_undefined_flag=' -expect_unresolved \*'
3725885a 9284 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'
dabbade6
L
9285 fi
9286 archive_cmds_need_lc='no'
9287 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9288 hardcode_libdir_separator=:
9289 ;;
d7040cdb 9290
dabbade6
L
9291 osf4* | osf5*) # as osf3* with the addition of -msym flag
9292 if test "$GCC" = yes; then
9293 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
3725885a 9294 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'
dabbade6
L
9295 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9296 else
9297 allow_undefined_flag=' -expect_unresolved \*'
3725885a 9298 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'
dabbade6 9299 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 9300 $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'
d7040cdb 9301
dabbade6
L
9302 # Both c and cxx compiler support -rpath directly
9303 hardcode_libdir_flag_spec='-rpath $libdir'
9304 fi
9305 archive_cmds_need_lc='no'
9306 hardcode_libdir_separator=:
9307 ;;
d7040cdb 9308
dabbade6
L
9309 solaris*)
9310 no_undefined_flag=' -z defs'
9311 if test "$GCC" = yes; then
9312 wlarc='${wl}'
9313 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9314 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9315 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9316 else
9317 case `$CC -V 2>&1` in
9318 *"Compilers 5.0"*)
9319 wlarc=''
9320 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9321 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9322 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9323 ;;
9324 *)
9325 wlarc='${wl}'
9326 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9327 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9328 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9329 ;;
9330 esac
9331 fi
9332 hardcode_libdir_flag_spec='-R$libdir'
9333 hardcode_shlibpath_var=no
9334 case $host_os in
9335 solaris2.[0-5] | solaris2.[0-5].*) ;;
9336 *)
9337 # The compiler driver will combine and reorder linker options,
9338 # but understands `-z linker_flag'. GCC discards it without `$wl',
9339 # but is careful enough not to reorder.
9340 # Supported since Solaris 2.6 (maybe 2.5.1?)
9341 if test "$GCC" = yes; then
9342 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9343 else
9344 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9345 fi
9346 ;;
9347 esac
9348 link_all_deplibs=yes
d7040cdb 9349 ;;
dabbade6
L
9350
9351 sunos4*)
9352 if test "x$host_vendor" = xsequent; then
9353 # Use $CC to link under sequent, because it throws in some extra .o
9354 # files that make .init and .fini sections work.
9355 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
d7040cdb 9356 else
dabbade6 9357 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
d7040cdb 9358 fi
dabbade6
L
9359 hardcode_libdir_flag_spec='-L$libdir'
9360 hardcode_direct=yes
9361 hardcode_minus_L=yes
9362 hardcode_shlibpath_var=no
d7040cdb 9363 ;;
dabbade6
L
9364
9365 sysv4)
9366 case $host_vendor in
9367 sni)
9368 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9369 hardcode_direct=yes # is this really true???
9370 ;;
9371 siemens)
9372 ## LD is ld it makes a PLAMLIB
9373 ## CC just makes a GrossModule.
9374 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9375 reload_cmds='$CC -r -o $output$reload_objs'
9376 hardcode_direct=no
9377 ;;
9378 motorola)
9379 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9380 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9381 ;;
9382 esac
9383 runpath_var='LD_RUN_PATH'
9384 hardcode_shlibpath_var=no
d7040cdb 9385 ;;
d7040cdb 9386
dabbade6
L
9387 sysv4.3*)
9388 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9389 hardcode_shlibpath_var=no
9390 export_dynamic_flag_spec='-Bexport'
9391 ;;
d7040cdb 9392
dabbade6
L
9393 sysv4*MP*)
9394 if test -d /usr/nec; then
9395 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9396 hardcode_shlibpath_var=no
9397 runpath_var=LD_RUN_PATH
9398 hardcode_runpath_var=yes
9399 ld_shlibs=yes
9400 fi
9401 ;;
d7040cdb 9402
dabbade6
L
9403 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9404 no_undefined_flag='${wl}-z,text'
9405 archive_cmds_need_lc=no
9406 hardcode_shlibpath_var=no
9407 runpath_var='LD_RUN_PATH'
d7040cdb 9408
dabbade6
L
9409 if test "$GCC" = yes; then
9410 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9411 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9412 else
9413 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9414 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9415 fi
9416 ;;
d7040cdb 9417
dabbade6
L
9418 sysv5* | sco3.2v5* | sco5v6*)
9419 # Note: We can NOT use -z defs as we might desire, because we do not
9420 # link with -lc, and that would cause any symbols used from libc to
9421 # always be unresolved, which means just about no library would
9422 # ever link correctly. If we're not using GNU ld we use -z text
9423 # though, which does catch some bad symbols but isn't as heavy-handed
9424 # as -z defs.
9425 no_undefined_flag='${wl}-z,text'
9426 allow_undefined_flag='${wl}-z,nodefs'
9427 archive_cmds_need_lc=no
9428 hardcode_shlibpath_var=no
9429 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9430 hardcode_libdir_separator=':'
9431 link_all_deplibs=yes
9432 export_dynamic_flag_spec='${wl}-Bexport'
9433 runpath_var='LD_RUN_PATH'
d7040cdb 9434
dabbade6
L
9435 if test "$GCC" = yes; then
9436 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9437 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9438 else
9439 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9440 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9441 fi
d7040cdb 9442 ;;
d7040cdb 9443
dabbade6
L
9444 uts4*)
9445 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9446 hardcode_libdir_flag_spec='-L$libdir'
9447 hardcode_shlibpath_var=no
9448 ;;
d7040cdb 9449
dabbade6
L
9450 *)
9451 ld_shlibs=no
9452 ;;
9453 esac
9454
9455 if test x$host_vendor = xsni; then
9456 case $host in
9457 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9458 export_dynamic_flag_spec='${wl}-Blargedynsym'
9459 ;;
9460 esac
d7040cdb 9461 fi
dabbade6 9462 fi
d7040cdb 9463
81ecdfbb
RW
9464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9465$as_echo "$ld_shlibs" >&6; }
dabbade6 9466test "$ld_shlibs" = no && can_build_shared=no
d7040cdb 9467
dabbade6 9468with_gnu_ld=$with_gnu_ld
d7040cdb 9469
d7040cdb 9470
d7040cdb 9471
d7040cdb 9472
d7040cdb 9473
d7040cdb 9474
d7040cdb 9475
d7040cdb 9476
d7040cdb 9477
d7040cdb 9478
d7040cdb 9479
d7040cdb 9480
d7040cdb 9481
d7040cdb 9482
d7040cdb 9483
dabbade6
L
9484#
9485# Do we need to explicitly link libc?
9486#
9487case "x$archive_cmds_need_lc" in
9488x|xyes)
9489 # Assume -lc should be added
9490 archive_cmds_need_lc=yes
d7040cdb 9491
dabbade6
L
9492 if test "$enable_shared" = yes && test "$GCC" = yes; then
9493 case $archive_cmds in
9494 *'~'*)
9495 # FIXME: we may have to deal with multi-command sequences.
9496 ;;
9497 '$CC '*)
9498 # Test whether the compiler implicitly links with -lc since on some
9499 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9500 # to ld, don't add -lc before -lgcc.
81ecdfbb
RW
9501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9502$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
d0ac1c44 9503if ${lt_cv_archive_cmds_need_lc+:} false; then :
81ecdfbb 9504 $as_echo_n "(cached) " >&6
39144654
RW
9505else
9506 $RM conftest*
9507 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d7040cdb 9508
81ecdfbb 9509 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
dabbade6
L
9510 (eval $ac_compile) 2>&5
9511 ac_status=$?
81ecdfbb
RW
9512 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9513 test $ac_status = 0; } 2>conftest.err; then
39144654
RW
9514 soname=conftest
9515 lib=conftest
9516 libobjs=conftest.$ac_objext
9517 deplibs=
9518 wl=$lt_prog_compiler_wl
9519 pic_flag=$lt_prog_compiler_pic
9520 compiler_flags=-v
9521 linker_flags=-v
9522 verstring=
9523 output_objdir=.
9524 libname=conftest
9525 lt_save_allow_undefined_flag=$allow_undefined_flag
9526 allow_undefined_flag=
81ecdfbb 9527 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
dabbade6
L
9528 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9529 ac_status=$?
81ecdfbb
RW
9530 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9531 test $ac_status = 0; }
39144654
RW
9532 then
9533 lt_cv_archive_cmds_need_lc=no
9534 else
9535 lt_cv_archive_cmds_need_lc=yes
9536 fi
9537 allow_undefined_flag=$lt_save_allow_undefined_flag
9538 else
9539 cat conftest.err 1>&5
9540 fi
9541 $RM conftest*
9542
9543fi
81ecdfbb
RW
9544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9545$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
39144654 9546 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
dabbade6
L
9547 ;;
9548 esac
d7040cdb 9549 fi
d7040cdb 9550 ;;
dabbade6 9551esac
d7040cdb 9552
d7040cdb 9553
d7040cdb 9554
d7040cdb 9555
d7040cdb 9556
d7040cdb 9557
d7040cdb 9558
d7040cdb
SE
9559
9560
9561
9562
9563
9564
9565
9566
9567
9568
9569
9570
9571
9572
9573
9574
9575
9576
9577
9578
9579
9580
9581
9582
9583
9584
9585
9586
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
d7040cdb 9646
d7040cdb 9647
d7040cdb
SE
9648
9649
9650
9651
9652
9653
d7040cdb 9654
d7040cdb 9655
d7040cdb 9656
d7040cdb 9657
d7040cdb 9658
d7040cdb 9659
d7040cdb 9660
d7040cdb 9661
d7040cdb 9662
d7040cdb 9663
d7040cdb 9664
d7040cdb 9665
d7040cdb 9666
d7040cdb 9667
d7040cdb 9668
d7040cdb 9669
d7040cdb 9670
d7040cdb 9671
d7040cdb 9672
d7040cdb 9673
d7040cdb 9674
d7040cdb 9675
d7040cdb 9676
d7040cdb 9677
dabbade6
L
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
81ecdfbb
RW
9709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9710$as_echo_n "checking dynamic linker characteristics... " >&6; }
1927a18f
L
9711
9712if test "$GCC" = yes; then
dabbade6
L
9713 case $host_os in
9714 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9715 *) lt_awk_arg="/^libraries:/" ;;
9716 esac
3725885a
RW
9717 case $host_os in
9718 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9719 *) lt_sed_strip_eq="s,=/,/,g" ;;
9720 esac
9721 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9722 case $lt_search_path_spec in
9723 *\;*)
dabbade6
L
9724 # if the path contains ";" then we assume it to be the separator
9725 # otherwise default to the standard path separator (i.e. ":") - it is
9726 # assumed that no part of a normal pathname contains ";" but that should
9727 # okay in the real world where ";" in dirpaths is itself problematic.
3725885a
RW
9728 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9729 ;;
9730 *)
9731 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9732 ;;
9733 esac
dabbade6
L
9734 # Ok, now we have the path, separated by spaces, we can step through it
9735 # and add multilib dir if necessary.
9736 lt_tmp_lt_search_path_spec=
9737 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9738 for lt_sys_path in $lt_search_path_spec; do
9739 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9740 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9741 else
9742 test -d "$lt_sys_path" && \
9743 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9744 fi
9745 done
3725885a 9746 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
dabbade6
L
9747BEGIN {RS=" "; FS="/|\n";} {
9748 lt_foo="";
9749 lt_count=0;
9750 for (lt_i = NF; lt_i > 0; lt_i--) {
9751 if ($lt_i != "" && $lt_i != ".") {
9752 if ($lt_i == "..") {
9753 lt_count++;
9754 } else {
9755 if (lt_count == 0) {
9756 lt_foo="/" $lt_i lt_foo;
9757 } else {
9758 lt_count--;
9759 }
9760 }
9761 }
9762 }
9763 if (lt_foo != "") { lt_freq[lt_foo]++; }
9764 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9765}'`
3725885a
RW
9766 # AWK program above erroneously prepends '/' to C:/dos/paths
9767 # for these hosts.
9768 case $host_os in
9769 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9770 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9771 esac
9772 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
d7040cdb 9773else
dabbade6
L
9774 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9775fi
9776library_names_spec=
9777libname_spec='lib$name'
9778soname_spec=
9779shrext_cmds=".so"
9780postinstall_cmds=
9781postuninstall_cmds=
9782finish_cmds=
9783finish_eval=
9784shlibpath_var=
9785shlibpath_overrides_runpath=unknown
9786version_type=none
9787dynamic_linker="$host_os ld.so"
9788sys_lib_dlsearch_path_spec="/lib /usr/lib"
9789need_lib_prefix=unknown
9790hardcode_into_libs=no
9791
9792# when you set need_version to no, make sure it does not cause -set_version
9793# flags to be left without arguments
9794need_version=unknown
9795
9796case $host_os in
9797aix3*)
9798 version_type=linux
9799 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9800 shlibpath_var=LIBPATH
9801
9802 # AIX 3 has no versioning support, so we append a major version to the name.
9803 soname_spec='${libname}${release}${shared_ext}$major'
9804 ;;
9805
50e7d84b 9806aix[4-9]*)
dabbade6
L
9807 version_type=linux
9808 need_lib_prefix=no
9809 need_version=no
9810 hardcode_into_libs=yes
9811 if test "$host_cpu" = ia64; then
9812 # AIX 5 supports IA64
9813 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9814 shlibpath_var=LD_LIBRARY_PATH
9815 else
9816 # With GCC up to 2.95.x, collect2 would create an import file
9817 # for dependence libraries. The import file would start with
9818 # the line `#! .'. This would cause the generated library to
9819 # depend on `.', always an invalid library. This was fixed in
9820 # development snapshots of GCC prior to 3.0.
9821 case $host_os in
9822 aix4 | aix4.[01] | aix4.[01].*)
9823 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9824 echo ' yes '
9825 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9826 :
9827 else
9828 can_build_shared=no
9829 fi
9830 ;;
9831 esac
9832 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9833 # soname into executable. Probably we can add versioning support to
9834 # collect2, so additional links can be useful in future.
9835 if test "$aix_use_runtimelinking" = yes; then
9836 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9837 # instead of lib<name>.a to let people know that these are not
9838 # typical AIX shared libraries.
9839 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9840 else
9841 # We preserve .a as extension for shared libraries through AIX4.2
9842 # and later when we are not doing run time linking.
9843 library_names_spec='${libname}${release}.a $libname.a'
9844 soname_spec='${libname}${release}${shared_ext}$major'
9845 fi
9846 shlibpath_var=LIBPATH
9847 fi
9848 ;;
9849
9850amigaos*)
1927a18f
L
9851 case $host_cpu in
9852 powerpc)
9853 # Since July 2007 AmigaOS4 officially supports .so libraries.
9854 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9856 ;;
9857 m68k)
dabbade6
L
9858 library_names_spec='$libname.ixlibrary $libname.a'
9859 # Create ${libname}_ixlibrary.a entries in /sys/libs.
3725885a 9860 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'
1927a18f
L
9861 ;;
9862 esac
dabbade6
L
9863 ;;
9864
9865beos*)
9866 library_names_spec='${libname}${shared_ext}'
9867 dynamic_linker="$host_os ld.so"
9868 shlibpath_var=LIBRARY_PATH
9869 ;;
9870
9871bsdi[45]*)
9872 version_type=linux
9873 need_version=no
9874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9875 soname_spec='${libname}${release}${shared_ext}$major'
9876 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9877 shlibpath_var=LD_LIBRARY_PATH
9878 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9879 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9880 # the default ld.so.conf also contains /usr/contrib/lib and
9881 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9882 # libtool to hard-code these into programs
9883 ;;
9884
1927a18f 9885cygwin* | mingw* | pw32* | cegcc*)
dabbade6
L
9886 version_type=windows
9887 shrext_cmds=".dll"
9888 need_version=no
9889 need_lib_prefix=no
9890
1927a18f
L
9891 case $GCC,$host_os in
9892 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
dabbade6
L
9893 library_names_spec='$libname.dll.a'
9894 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9895 postinstall_cmds='base_file=`basename \${file}`~
9896 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9897 dldir=$destdir/`dirname \$dlpath`~
9898 test -d \$dldir || mkdir -p \$dldir~
9899 $install_prog $dir/$dlname \$dldir/$dlname~
9900 chmod a+x \$dldir/$dlname~
9901 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9902 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9903 fi'
9904 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9905 dlpath=$dir/\$dldll~
9906 $RM \$dlpath'
9907 shlibpath_overrides_runpath=yes
9908
9909 case $host_os in
9910 cygwin*)
9911 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9912 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
3725885a
RW
9913
9914 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
dabbade6 9915 ;;
1927a18f 9916 mingw* | cegcc*)
dabbade6
L
9917 # MinGW DLLs use traditional 'lib' prefix
9918 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
dabbade6
L
9919 ;;
9920 pw32*)
9921 # pw32 DLLs use 'pw' prefix rather than 'lib'
9922 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9923 ;;
9924 esac
9925 ;;
9926
9927 *)
9928 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9929 ;;
9930 esac
9931 dynamic_linker='Win32 ld.exe'
9932 # FIXME: first we should search . and the directory the executable is in
9933 shlibpath_var=PATH
9934 ;;
9935
9936darwin* | rhapsody*)
9937 dynamic_linker="$host_os dyld"
9938 version_type=darwin
9939 need_lib_prefix=no
9940 need_version=no
9941 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9942 soname_spec='${libname}${release}${major}$shared_ext'
9943 shlibpath_overrides_runpath=yes
9944 shlibpath_var=DYLD_LIBRARY_PATH
9945 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9946
9947 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9948 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9949 ;;
9950
9951dgux*)
9952 version_type=linux
9953 need_lib_prefix=no
9954 need_version=no
9955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9956 soname_spec='${libname}${release}${shared_ext}$major'
9957 shlibpath_var=LD_LIBRARY_PATH
9958 ;;
9959
dabbade6
L
9960freebsd* | dragonfly*)
9961 # DragonFly does not have aout. When/if they implement a new
9962 # versioning mechanism, adjust this.
9963 if test -x /usr/bin/objformat; then
9964 objformat=`/usr/bin/objformat`
9965 else
9966 case $host_os in
6d2920c8 9967 freebsd[23].*) objformat=aout ;;
dabbade6
L
9968 *) objformat=elf ;;
9969 esac
9970 fi
9971 version_type=freebsd-$objformat
9972 case $version_type in
9973 freebsd-elf*)
9974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9975 need_version=no
9976 need_lib_prefix=no
9977 ;;
9978 freebsd-*)
9979 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9980 need_version=yes
9981 ;;
9982 esac
9983 shlibpath_var=LD_LIBRARY_PATH
9984 case $host_os in
6d2920c8 9985 freebsd2.*)
dabbade6
L
9986 shlibpath_overrides_runpath=yes
9987 ;;
9988 freebsd3.[01]* | freebsdelf3.[01]*)
9989 shlibpath_overrides_runpath=yes
9990 hardcode_into_libs=yes
9991 ;;
9992 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9993 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9994 shlibpath_overrides_runpath=no
9995 hardcode_into_libs=yes
9996 ;;
9997 *) # from 4.6 on, and DragonFly
9998 shlibpath_overrides_runpath=yes
9999 hardcode_into_libs=yes
10000 ;;
10001 esac
10002 ;;
10003
3725885a
RW
10004haiku*)
10005 version_type=linux
10006 need_lib_prefix=no
10007 need_version=no
10008 dynamic_linker="$host_os runtime_loader"
10009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10010 soname_spec='${libname}${release}${shared_ext}$major'
10011 shlibpath_var=LIBRARY_PATH
10012 shlibpath_overrides_runpath=yes
10013 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10014 hardcode_into_libs=yes
10015 ;;
10016
dabbade6
L
10017hpux9* | hpux10* | hpux11*)
10018 # Give a soname corresponding to the major version so that dld.sl refuses to
10019 # link against other versions.
10020 version_type=sunos
10021 need_lib_prefix=no
10022 need_version=no
10023 case $host_cpu in
10024 ia64*)
10025 shrext_cmds='.so'
10026 hardcode_into_libs=yes
10027 dynamic_linker="$host_os dld.so"
10028 shlibpath_var=LD_LIBRARY_PATH
10029 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10031 soname_spec='${libname}${release}${shared_ext}$major'
10032 if test "X$HPUX_IA64_MODE" = X32; then
10033 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10034 else
10035 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10036 fi
10037 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10038 ;;
10039 hppa*64*)
10040 shrext_cmds='.sl'
10041 hardcode_into_libs=yes
10042 dynamic_linker="$host_os dld.sl"
10043 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10044 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10045 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10046 soname_spec='${libname}${release}${shared_ext}$major'
10047 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10048 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10049 ;;
10050 *)
10051 shrext_cmds='.sl'
10052 dynamic_linker="$host_os dld.sl"
10053 shlibpath_var=SHLIB_PATH
10054 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10056 soname_spec='${libname}${release}${shared_ext}$major'
10057 ;;
10058 esac
3725885a 10059 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
dabbade6 10060 postinstall_cmds='chmod 555 $lib'
3725885a
RW
10061 # or fails outright, so override atomically:
10062 install_override_mode=555
dabbade6
L
10063 ;;
10064
10065interix[3-9]*)
10066 version_type=linux
10067 need_lib_prefix=no
10068 need_version=no
10069 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10070 soname_spec='${libname}${release}${shared_ext}$major'
10071 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10072 shlibpath_var=LD_LIBRARY_PATH
10073 shlibpath_overrides_runpath=no
10074 hardcode_into_libs=yes
10075 ;;
10076
10077irix5* | irix6* | nonstopux*)
10078 case $host_os in
10079 nonstopux*) version_type=nonstopux ;;
10080 *)
10081 if test "$lt_cv_prog_gnu_ld" = yes; then
10082 version_type=linux
10083 else
10084 version_type=irix
10085 fi ;;
10086 esac
10087 need_lib_prefix=no
10088 need_version=no
10089 soname_spec='${libname}${release}${shared_ext}$major'
10090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10091 case $host_os in
10092 irix5* | nonstopux*)
10093 libsuff= shlibsuff=
10094 ;;
10095 *)
10096 case $LD in # libtool.m4 will add one of these switches to LD
10097 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10098 libsuff= shlibsuff= libmagic=32-bit;;
10099 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10100 libsuff=32 shlibsuff=N32 libmagic=N32;;
10101 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10102 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10103 *) libsuff= shlibsuff= libmagic=never-match;;
10104 esac
10105 ;;
10106 esac
10107 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10108 shlibpath_overrides_runpath=no
10109 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10110 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10111 hardcode_into_libs=yes
10112 ;;
10113
10114# No shared lib support for Linux oldld, aout, or coff.
10115linux*oldld* | linux*aout* | linux*coff*)
10116 dynamic_linker=no
10117 ;;
10118
10119# This must be Linux ELF.
f4782128 10120linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
dabbade6
L
10121 version_type=linux
10122 need_lib_prefix=no
10123 need_version=no
10124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10125 soname_spec='${libname}${release}${shared_ext}$major'
10126 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10127 shlibpath_var=LD_LIBRARY_PATH
10128 shlibpath_overrides_runpath=no
39144654 10129
dabbade6 10130 # Some binutils ld are patched to set DT_RUNPATH
d0ac1c44 10131 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
81ecdfbb 10132 $as_echo_n "(cached) " >&6
39144654
RW
10133else
10134 lt_cv_shlibpath_overrides_runpath=no
10135 save_LDFLAGS=$LDFLAGS
10136 save_libdir=$libdir
10137 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10138 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
81ecdfbb 10139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb
SE
10140/* end confdefs.h. */
10141
d7040cdb
SE
10142int
10143main ()
10144{
dabbade6 10145
d7040cdb
SE
10146 ;
10147 return 0;
10148}
10149_ACEOF
81ecdfbb
RW
10150if ac_fn_c_try_link "$LINENO"; then :
10151 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
39144654 10152 lt_cv_shlibpath_overrides_runpath=yes
dabbade6 10153fi
d7040cdb 10154fi
81ecdfbb
RW
10155rm -f core conftest.err conftest.$ac_objext \
10156 conftest$ac_exeext conftest.$ac_ext
39144654
RW
10157 LDFLAGS=$save_LDFLAGS
10158 libdir=$save_libdir
10159
10160fi
10161
10162 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
dabbade6
L
10163
10164 # This implies no fast_install, which is unacceptable.
10165 # Some rework will be needed to allow for fast_install
10166 # before this can be enabled.
10167 hardcode_into_libs=yes
10168
10169 # Append ld.so.conf contents to the search path
10170 if test -f /etc/ld.so.conf; then
3725885a 10171 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' ' '`
dabbade6
L
10172 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10173 fi
10174
10175 # We used to test for /lib/ld.so.1 and disable shared libraries on
10176 # powerpc, because MkLinux only supported shared libraries with the
10177 # GNU dynamic linker. Since this was broken with cross compilers,
10178 # most powerpc-linux boxes support dynamic linking these days and
10179 # people can always --disable-shared, the test was removed, and we
10180 # assume the GNU/Linux dynamic linker is in use.
10181 dynamic_linker='GNU/Linux ld.so'
10182 ;;
10183
10184netbsd*)
10185 version_type=sunos
10186 need_lib_prefix=no
10187 need_version=no
10188 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10189 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10190 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10191 dynamic_linker='NetBSD (a.out) ld.so'
10192 else
10193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10194 soname_spec='${libname}${release}${shared_ext}$major'
10195 dynamic_linker='NetBSD ld.elf_so'
10196 fi
10197 shlibpath_var=LD_LIBRARY_PATH
10198 shlibpath_overrides_runpath=yes
10199 hardcode_into_libs=yes
10200 ;;
10201
10202newsos6)
10203 version_type=linux
10204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10205 shlibpath_var=LD_LIBRARY_PATH
10206 shlibpath_overrides_runpath=yes
10207 ;;
10208
10209*nto* | *qnx*)
10210 version_type=qnx
10211 need_lib_prefix=no
10212 need_version=no
10213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10214 soname_spec='${libname}${release}${shared_ext}$major'
10215 shlibpath_var=LD_LIBRARY_PATH
10216 shlibpath_overrides_runpath=no
10217 hardcode_into_libs=yes
10218 dynamic_linker='ldqnx.so'
10219 ;;
10220
10221openbsd*)
10222 version_type=sunos
10223 sys_lib_dlsearch_path_spec="/usr/lib"
10224 need_lib_prefix=no
10225 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10226 case $host_os in
10227 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10228 *) need_version=no ;;
10229 esac
10230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10231 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10232 shlibpath_var=LD_LIBRARY_PATH
10233 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10234 case $host_os in
10235 openbsd2.[89] | openbsd2.[89].*)
10236 shlibpath_overrides_runpath=no
10237 ;;
10238 *)
10239 shlibpath_overrides_runpath=yes
10240 ;;
10241 esac
10242 else
10243 shlibpath_overrides_runpath=yes
10244 fi
10245 ;;
10246
10247os2*)
10248 libname_spec='$name'
10249 shrext_cmds=".dll"
10250 need_lib_prefix=no
10251 library_names_spec='$libname${shared_ext} $libname.a'
10252 dynamic_linker='OS/2 ld.exe'
10253 shlibpath_var=LIBPATH
10254 ;;
10255
10256osf3* | osf4* | osf5*)
10257 version_type=osf
10258 need_lib_prefix=no
10259 need_version=no
10260 soname_spec='${libname}${release}${shared_ext}$major'
10261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10262 shlibpath_var=LD_LIBRARY_PATH
10263 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10264 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10265 ;;
10266
10267rdos*)
10268 dynamic_linker=no
10269 ;;
10270
10271solaris*)
10272 version_type=linux
10273 need_lib_prefix=no
10274 need_version=no
10275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10276 soname_spec='${libname}${release}${shared_ext}$major'
10277 shlibpath_var=LD_LIBRARY_PATH
10278 shlibpath_overrides_runpath=yes
10279 hardcode_into_libs=yes
10280 # ldd complains unless libraries are executable
10281 postinstall_cmds='chmod +x $lib'
10282 ;;
10283
10284sunos4*)
10285 version_type=sunos
10286 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10287 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10288 shlibpath_var=LD_LIBRARY_PATH
10289 shlibpath_overrides_runpath=yes
10290 if test "$with_gnu_ld" = yes; then
10291 need_lib_prefix=no
10292 fi
10293 need_version=yes
10294 ;;
10295
10296sysv4 | sysv4.3*)
10297 version_type=linux
10298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10299 soname_spec='${libname}${release}${shared_ext}$major'
10300 shlibpath_var=LD_LIBRARY_PATH
10301 case $host_vendor in
10302 sni)
10303 shlibpath_overrides_runpath=no
10304 need_lib_prefix=no
10305 runpath_var=LD_RUN_PATH
10306 ;;
10307 siemens)
10308 need_lib_prefix=no
10309 ;;
10310 motorola)
10311 need_lib_prefix=no
10312 need_version=no
10313 shlibpath_overrides_runpath=no
10314 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10315 ;;
10316 esac
10317 ;;
10318
10319sysv4*MP*)
10320 if test -d /usr/nec ;then
10321 version_type=linux
10322 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10323 soname_spec='$libname${shared_ext}.$major'
10324 shlibpath_var=LD_LIBRARY_PATH
10325 fi
10326 ;;
10327
10328sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10329 version_type=freebsd-elf
10330 need_lib_prefix=no
10331 need_version=no
10332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10333 soname_spec='${libname}${release}${shared_ext}$major'
10334 shlibpath_var=LD_LIBRARY_PATH
10335 shlibpath_overrides_runpath=yes
10336 hardcode_into_libs=yes
10337 if test "$with_gnu_ld" = yes; then
10338 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10339 else
10340 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10341 case $host_os in
10342 sco3.2v5*)
10343 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10344 ;;
10345 esac
10346 fi
10347 sys_lib_dlsearch_path_spec='/usr/lib'
10348 ;;
10349
10350tpf*)
10351 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10352 version_type=linux
10353 need_lib_prefix=no
10354 need_version=no
1927a18f 10355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
dabbade6
L
10356 shlibpath_var=LD_LIBRARY_PATH
10357 shlibpath_overrides_runpath=no
10358 hardcode_into_libs=yes
10359 ;;
10360
10361uts4*)
10362 version_type=linux
10363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10364 soname_spec='${libname}${release}${shared_ext}$major'
10365 shlibpath_var=LD_LIBRARY_PATH
10366 ;;
d7040cdb 10367
dabbade6
L
10368*)
10369 dynamic_linker=no
10370 ;;
10371esac
81ecdfbb
RW
10372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10373$as_echo "$dynamic_linker" >&6; }
dabbade6 10374test "$dynamic_linker" = no && can_build_shared=no
d7040cdb 10375
dabbade6
L
10376variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10377if test "$GCC" = yes; then
10378 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
d7040cdb 10379fi
d7040cdb 10380
1927a18f
L
10381if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10382 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10383fi
10384if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10385 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10386fi
10387
d7040cdb 10388
d7040cdb
SE
10389
10390
d7040cdb
SE
10391
10392
d7040cdb
SE
10393
10394
d7040cdb
SE
10395
10396
d7040cdb
SE
10397
10398
d7040cdb 10399
d7040cdb 10400
d7040cdb 10401
d7040cdb 10402
d7040cdb 10403
d7040cdb 10404
d7040cdb 10405
d7040cdb 10406
d7040cdb 10407
d7040cdb 10408
d7040cdb 10409
d7040cdb 10410
d7040cdb 10411
d7040cdb 10412
d7040cdb
SE
10413
10414
d7040cdb 10415
d7040cdb 10416
d7040cdb 10417
d7040cdb 10418
d7040cdb 10419
d7040cdb 10420
d7040cdb 10421
d7040cdb 10422
d7040cdb 10423
d7040cdb
SE
10424
10425
d7040cdb 10426
d7040cdb 10427
d7040cdb 10428
d7040cdb
SE
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
d7040cdb
SE
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
d7040cdb 10458
d7040cdb 10459
dabbade6
L
10460
10461
10462
10463
10464
10465
10466
10467
3725885a
RW
10468
10469
10470
10471
10472
dabbade6
L
10473
10474
10475
10476
10477
10478
81ecdfbb
RW
10479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10480$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
dabbade6
L
10481hardcode_action=
10482if test -n "$hardcode_libdir_flag_spec" ||
10483 test -n "$runpath_var" ||
10484 test "X$hardcode_automatic" = "Xyes" ; then
10485
10486 # We can hardcode non-existent directories.
10487 if test "$hardcode_direct" != no &&
10488 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10489 # have to relink, otherwise we might link with an installed library
10490 # when we should be linking with a yet-to-be-installed one
10491 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10492 test "$hardcode_minus_L" != no; then
10493 # Linking always hardcodes the temporary library directory.
10494 hardcode_action=relink
10495 else
10496 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10497 hardcode_action=immediate
10498 fi
10499else
10500 # We cannot hardcode anything, or else we can only hardcode existing
10501 # directories.
10502 hardcode_action=unsupported
10503fi
81ecdfbb
RW
10504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10505$as_echo "$hardcode_action" >&6; }
dabbade6
L
10506
10507if test "$hardcode_action" = relink ||
10508 test "$inherit_rpath" = yes; then
10509 # Fast installation is not supported
10510 enable_fast_install=no
10511elif test "$shlibpath_overrides_runpath" = yes ||
10512 test "$enable_shared" = no; then
10513 # Fast installation is not necessary
10514 enable_fast_install=needless
10515fi
10516
10517
10518
10519
10520
10521
10522 if test "x$enable_dlopen" != xyes; then
10523 enable_dlopen=unknown
10524 enable_dlopen_self=unknown
10525 enable_dlopen_self_static=unknown
10526else
10527 lt_cv_dlopen=no
10528 lt_cv_dlopen_libs=
10529
d7040cdb 10530 case $host_os in
dabbade6
L
10531 beos*)
10532 lt_cv_dlopen="load_add_on"
10533 lt_cv_dlopen_libs=
10534 lt_cv_dlopen_self=yes
d7040cdb
SE
10535 ;;
10536
1927a18f 10537 mingw* | pw32* | cegcc*)
dabbade6
L
10538 lt_cv_dlopen="LoadLibrary"
10539 lt_cv_dlopen_libs=
d7040cdb 10540 ;;
d7040cdb 10541
dabbade6
L
10542 cygwin*)
10543 lt_cv_dlopen="dlopen"
10544 lt_cv_dlopen_libs=
10545 ;;
d7040cdb 10546
dabbade6
L
10547 darwin*)
10548 # if libdl is installed we need to link against it
81ecdfbb
RW
10549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10550$as_echo_n "checking for dlopen in -ldl... " >&6; }
d0ac1c44 10551if ${ac_cv_lib_dl_dlopen+:} false; then :
81ecdfbb 10552 $as_echo_n "(cached) " >&6
dabbade6
L
10553else
10554 ac_check_lib_save_LIBS=$LIBS
10555LIBS="-ldl $LIBS"
81ecdfbb 10556cat confdefs.h - <<_ACEOF >conftest.$ac_ext
dabbade6 10557/* end confdefs.h. */
d7040cdb 10558
81ecdfbb
RW
10559/* Override any GCC internal prototype to avoid an error.
10560 Use char because int might match the return type of a GCC
10561 builtin and then its argument prototype would still apply. */
dabbade6
L
10562#ifdef __cplusplus
10563extern "C"
10564#endif
dabbade6
L
10565char dlopen ();
10566int
10567main ()
10568{
81ecdfbb 10569return dlopen ();
dabbade6
L
10570 ;
10571 return 0;
10572}
10573_ACEOF
81ecdfbb 10574if ac_fn_c_try_link "$LINENO"; then :
dabbade6
L
10575 ac_cv_lib_dl_dlopen=yes
10576else
81ecdfbb 10577 ac_cv_lib_dl_dlopen=no
d7040cdb 10578fi
81ecdfbb
RW
10579rm -f core conftest.err conftest.$ac_objext \
10580 conftest$ac_exeext conftest.$ac_ext
dabbade6
L
10581LIBS=$ac_check_lib_save_LIBS
10582fi
81ecdfbb
RW
10583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10584$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
d0ac1c44 10585if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
dabbade6
L
10586 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10587else
d7040cdb 10588
dabbade6
L
10589 lt_cv_dlopen="dyld"
10590 lt_cv_dlopen_libs=
10591 lt_cv_dlopen_self=yes
d7040cdb 10592
81ecdfbb 10593fi
d7040cdb 10594
81ecdfbb
RW
10595 ;;
10596
10597 *)
10598 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
d0ac1c44 10599if test "x$ac_cv_func_shl_load" = xyes; then :
81ecdfbb
RW
10600 lt_cv_dlopen="shl_load"
10601else
10602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10603$as_echo_n "checking for shl_load in -ldld... " >&6; }
d0ac1c44 10604if ${ac_cv_lib_dld_shl_load+:} false; then :
81ecdfbb
RW
10605 $as_echo_n "(cached) " >&6
10606else
10607 ac_check_lib_save_LIBS=$LIBS
10608LIBS="-ldld $LIBS"
10609cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10610/* end confdefs.h. */
10611
10612/* Override any GCC internal prototype to avoid an error.
10613 Use char because int might match the return type of a GCC
dabbade6 10614 builtin and then its argument prototype would still apply. */
dabbade6 10615#ifdef __cplusplus
81ecdfbb 10616extern "C"
dabbade6 10617#endif
81ecdfbb 10618char shl_load ();
dabbade6
L
10619int
10620main ()
10621{
81ecdfbb 10622return shl_load ();
dabbade6
L
10623 ;
10624 return 0;
10625}
10626_ACEOF
81ecdfbb
RW
10627if ac_fn_c_try_link "$LINENO"; then :
10628 ac_cv_lib_dld_shl_load=yes
dabbade6 10629else
81ecdfbb 10630 ac_cv_lib_dld_shl_load=no
dabbade6 10631fi
81ecdfbb
RW
10632rm -f core conftest.err conftest.$ac_objext \
10633 conftest$ac_exeext conftest.$ac_ext
10634LIBS=$ac_check_lib_save_LIBS
dabbade6 10635fi
81ecdfbb
RW
10636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10637$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
d0ac1c44 10638if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
81ecdfbb
RW
10639 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10640else
10641 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
d0ac1c44 10642if test "x$ac_cv_func_dlopen" = xyes; then :
dabbade6
L
10643 lt_cv_dlopen="dlopen"
10644else
81ecdfbb
RW
10645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10646$as_echo_n "checking for dlopen in -ldl... " >&6; }
d0ac1c44 10647if ${ac_cv_lib_dl_dlopen+:} false; then :
81ecdfbb 10648 $as_echo_n "(cached) " >&6
dabbade6
L
10649else
10650 ac_check_lib_save_LIBS=$LIBS
10651LIBS="-ldl $LIBS"
81ecdfbb 10652cat confdefs.h - <<_ACEOF >conftest.$ac_ext
dabbade6 10653/* end confdefs.h. */
d7040cdb 10654
81ecdfbb
RW
10655/* Override any GCC internal prototype to avoid an error.
10656 Use char because int might match the return type of a GCC
10657 builtin and then its argument prototype would still apply. */
dabbade6
L
10658#ifdef __cplusplus
10659extern "C"
10660#endif
dabbade6
L
10661char dlopen ();
10662int
10663main ()
10664{
81ecdfbb 10665return dlopen ();
dabbade6
L
10666 ;
10667 return 0;
10668}
10669_ACEOF
81ecdfbb 10670if ac_fn_c_try_link "$LINENO"; then :
dabbade6
L
10671 ac_cv_lib_dl_dlopen=yes
10672else
81ecdfbb 10673 ac_cv_lib_dl_dlopen=no
dabbade6 10674fi
81ecdfbb
RW
10675rm -f core conftest.err conftest.$ac_objext \
10676 conftest$ac_exeext conftest.$ac_ext
dabbade6
L
10677LIBS=$ac_check_lib_save_LIBS
10678fi
81ecdfbb
RW
10679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10680$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
d0ac1c44 10681if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
dabbade6
L
10682 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10683else
81ecdfbb
RW
10684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10685$as_echo_n "checking for dlopen in -lsvld... " >&6; }
d0ac1c44 10686if ${ac_cv_lib_svld_dlopen+:} false; then :
81ecdfbb 10687 $as_echo_n "(cached) " >&6
dabbade6
L
10688else
10689 ac_check_lib_save_LIBS=$LIBS
10690LIBS="-lsvld $LIBS"
81ecdfbb 10691cat confdefs.h - <<_ACEOF >conftest.$ac_ext
dabbade6 10692/* end confdefs.h. */
d7040cdb 10693
81ecdfbb
RW
10694/* Override any GCC internal prototype to avoid an error.
10695 Use char because int might match the return type of a GCC
10696 builtin and then its argument prototype would still apply. */
dabbade6
L
10697#ifdef __cplusplus
10698extern "C"
10699#endif
dabbade6
L
10700char dlopen ();
10701int
10702main ()
10703{
81ecdfbb 10704return dlopen ();
dabbade6
L
10705 ;
10706 return 0;
10707}
10708_ACEOF
81ecdfbb 10709if ac_fn_c_try_link "$LINENO"; then :
dabbade6
L
10710 ac_cv_lib_svld_dlopen=yes
10711else
81ecdfbb 10712 ac_cv_lib_svld_dlopen=no
dabbade6 10713fi
81ecdfbb
RW
10714rm -f core conftest.err conftest.$ac_objext \
10715 conftest$ac_exeext conftest.$ac_ext
dabbade6
L
10716LIBS=$ac_check_lib_save_LIBS
10717fi
81ecdfbb
RW
10718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10719$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
d0ac1c44 10720if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
dabbade6
L
10721 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10722else
81ecdfbb
RW
10723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10724$as_echo_n "checking for dld_link in -ldld... " >&6; }
d0ac1c44 10725if ${ac_cv_lib_dld_dld_link+:} false; then :
81ecdfbb 10726 $as_echo_n "(cached) " >&6
dabbade6
L
10727else
10728 ac_check_lib_save_LIBS=$LIBS
10729LIBS="-ldld $LIBS"
81ecdfbb 10730cat confdefs.h - <<_ACEOF >conftest.$ac_ext
dabbade6 10731/* end confdefs.h. */
d7040cdb 10732
81ecdfbb
RW
10733/* Override any GCC internal prototype to avoid an error.
10734 Use char because int might match the return type of a GCC
10735 builtin and then its argument prototype would still apply. */
dabbade6
L
10736#ifdef __cplusplus
10737extern "C"
10738#endif
dabbade6
L
10739char dld_link ();
10740int
10741main ()
10742{
81ecdfbb 10743return dld_link ();
dabbade6
L
10744 ;
10745 return 0;
10746}
10747_ACEOF
81ecdfbb 10748if ac_fn_c_try_link "$LINENO"; then :
dabbade6
L
10749 ac_cv_lib_dld_dld_link=yes
10750else
81ecdfbb 10751 ac_cv_lib_dld_dld_link=no
d7040cdb 10752fi
81ecdfbb
RW
10753rm -f core conftest.err conftest.$ac_objext \
10754 conftest$ac_exeext conftest.$ac_ext
dabbade6 10755LIBS=$ac_check_lib_save_LIBS
d7040cdb 10756fi
81ecdfbb
RW
10757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10758$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
d0ac1c44 10759if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
1927a18f 10760 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
d7040cdb
SE
10761fi
10762
d7040cdb 10763
d7040cdb
SE
10764fi
10765
10766
dabbade6 10767fi
d7040cdb
SE
10768
10769
dabbade6 10770fi
d7040cdb
SE
10771
10772
d7040cdb
SE
10773fi
10774
979273e3 10775
252b5132 10776fi
252b5132 10777
dabbade6
L
10778 ;;
10779 esac
252b5132 10780
dabbade6
L
10781 if test "x$lt_cv_dlopen" != xno; then
10782 enable_dlopen=yes
10783 else
10784 enable_dlopen=no
10785 fi
1c0d3aa6 10786
dabbade6
L
10787 case $lt_cv_dlopen in
10788 dlopen)
10789 save_CPPFLAGS="$CPPFLAGS"
10790 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
20e95c23 10791
dabbade6
L
10792 save_LDFLAGS="$LDFLAGS"
10793 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
20e95c23 10794
dabbade6
L
10795 save_LIBS="$LIBS"
10796 LIBS="$lt_cv_dlopen_libs $LIBS"
20e95c23 10797
81ecdfbb
RW
10798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10799$as_echo_n "checking whether a program can dlopen itself... " >&6; }
d0ac1c44 10800if ${lt_cv_dlopen_self+:} false; then :
81ecdfbb 10801 $as_echo_n "(cached) " >&6
d7040cdb 10802else
dabbade6
L
10803 if test "$cross_compiling" = yes; then :
10804 lt_cv_dlopen_self=cross
d7040cdb 10805else
dabbade6
L
10806 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10807 lt_status=$lt_dlunknown
10808 cat > conftest.$ac_ext <<_LT_EOF
ab2af25e 10809#line 10809 "configure"
dabbade6 10810#include "confdefs.h"
20e95c23 10811
dabbade6
L
10812#if HAVE_DLFCN_H
10813#include <dlfcn.h>
10814#endif
20e95c23 10815
dabbade6 10816#include <stdio.h>
20e95c23 10817
dabbade6
L
10818#ifdef RTLD_GLOBAL
10819# define LT_DLGLOBAL RTLD_GLOBAL
10820#else
10821# ifdef DL_GLOBAL
10822# define LT_DLGLOBAL DL_GLOBAL
10823# else
10824# define LT_DLGLOBAL 0
10825# endif
10826#endif
20e95c23 10827
dabbade6
L
10828/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10829 find out it does not work in some platform. */
10830#ifndef LT_DLLAZY_OR_NOW
10831# ifdef RTLD_LAZY
10832# define LT_DLLAZY_OR_NOW RTLD_LAZY
10833# else
10834# ifdef DL_LAZY
10835# define LT_DLLAZY_OR_NOW DL_LAZY
10836# else
10837# ifdef RTLD_NOW
10838# define LT_DLLAZY_OR_NOW RTLD_NOW
10839# else
10840# ifdef DL_NOW
10841# define LT_DLLAZY_OR_NOW DL_NOW
10842# else
10843# define LT_DLLAZY_OR_NOW 0
10844# endif
10845# endif
10846# endif
10847# endif
10848#endif
20e95c23 10849
3725885a
RW
10850/* When -fvisbility=hidden is used, assume the code has been annotated
10851 correspondingly for the symbols needed. */
10852#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10853void fnord () __attribute__((visibility("default")));
10854#endif
10855
10856void fnord () { int i=42; }
dabbade6
L
10857int main ()
10858{
10859 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10860 int status = $lt_dlunknown;
20e95c23 10861
dabbade6
L
10862 if (self)
10863 {
10864 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
3725885a
RW
10865 else
10866 {
10867 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10868 else puts (dlerror ());
10869 }
dabbade6
L
10870 /* dlclose (self); */
10871 }
10872 else
10873 puts (dlerror ());
d7040cdb 10874
1927a18f 10875 return status;
dabbade6
L
10876}
10877_LT_EOF
81ecdfbb 10878 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
dabbade6
L
10879 (eval $ac_link) 2>&5
10880 ac_status=$?
81ecdfbb
RW
10881 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10882 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
dabbade6
L
10883 (./conftest; exit; ) >&5 2>/dev/null
10884 lt_status=$?
10885 case x$lt_status in
10886 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10887 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10888 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10889 esac
10890 else :
10891 # compilation failed
10892 lt_cv_dlopen_self=no
10893 fi
d7040cdb 10894fi
dabbade6
L
10895rm -fr conftest*
10896
252b5132 10897
d7040cdb 10898fi
81ecdfbb
RW
10899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10900$as_echo "$lt_cv_dlopen_self" >&6; }
d7040cdb 10901
dabbade6
L
10902 if test "x$lt_cv_dlopen_self" = xyes; then
10903 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
81ecdfbb
RW
10904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10905$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
d0ac1c44 10906if ${lt_cv_dlopen_self_static+:} false; then :
81ecdfbb 10907 $as_echo_n "(cached) " >&6
252b5132 10908else
dabbade6
L
10909 if test "$cross_compiling" = yes; then :
10910 lt_cv_dlopen_self_static=cross
d7040cdb 10911else
dabbade6
L
10912 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10913 lt_status=$lt_dlunknown
10914 cat > conftest.$ac_ext <<_LT_EOF
ab2af25e 10915#line 10915 "configure"
dabbade6 10916#include "confdefs.h"
252b5132 10917
dabbade6
L
10918#if HAVE_DLFCN_H
10919#include <dlfcn.h>
10920#endif
252b5132 10921
dabbade6 10922#include <stdio.h>
d7040cdb 10923
dabbade6
L
10924#ifdef RTLD_GLOBAL
10925# define LT_DLGLOBAL RTLD_GLOBAL
10926#else
10927# ifdef DL_GLOBAL
10928# define LT_DLGLOBAL DL_GLOBAL
10929# else
10930# define LT_DLGLOBAL 0
10931# endif
10932#endif
20e95c23 10933
dabbade6
L
10934/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10935 find out it does not work in some platform. */
10936#ifndef LT_DLLAZY_OR_NOW
10937# ifdef RTLD_LAZY
10938# define LT_DLLAZY_OR_NOW RTLD_LAZY
10939# else
10940# ifdef DL_LAZY
10941# define LT_DLLAZY_OR_NOW DL_LAZY
10942# else
10943# ifdef RTLD_NOW
10944# define LT_DLLAZY_OR_NOW RTLD_NOW
10945# else
10946# ifdef DL_NOW
10947# define LT_DLLAZY_OR_NOW DL_NOW
10948# else
10949# define LT_DLLAZY_OR_NOW 0
10950# endif
10951# endif
10952# endif
10953# endif
10954#endif
979273e3 10955
3725885a
RW
10956/* When -fvisbility=hidden is used, assume the code has been annotated
10957 correspondingly for the symbols needed. */
10958#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10959void fnord () __attribute__((visibility("default")));
10960#endif
10961
10962void fnord () { int i=42; }
dabbade6
L
10963int main ()
10964{
10965 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10966 int status = $lt_dlunknown;
d7040cdb 10967
dabbade6
L
10968 if (self)
10969 {
10970 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
3725885a
RW
10971 else
10972 {
10973 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10974 else puts (dlerror ());
10975 }
dabbade6
L
10976 /* dlclose (self); */
10977 }
10978 else
10979 puts (dlerror ());
d7040cdb 10980
1927a18f 10981 return status;
dabbade6
L
10982}
10983_LT_EOF
81ecdfbb 10984 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
dabbade6
L
10985 (eval $ac_link) 2>&5
10986 ac_status=$?
81ecdfbb
RW
10987 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10988 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
dabbade6
L
10989 (./conftest; exit; ) >&5 2>/dev/null
10990 lt_status=$?
10991 case x$lt_status in
10992 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10993 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10994 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10995 esac
10996 else :
10997 # compilation failed
10998 lt_cv_dlopen_self_static=no
10999 fi
20e95c23 11000fi
dabbade6 11001rm -fr conftest*
979273e3 11002
d7040cdb
SE
11003
11004fi
81ecdfbb
RW
11005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11006$as_echo "$lt_cv_dlopen_self_static" >&6; }
dabbade6
L
11007 fi
11008
11009 CPPFLAGS="$save_CPPFLAGS"
11010 LDFLAGS="$save_LDFLAGS"
11011 LIBS="$save_LIBS"
11012 ;;
11013 esac
11014
11015 case $lt_cv_dlopen_self in
11016 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11017 *) enable_dlopen_self=unknown ;;
11018 esac
11019
11020 case $lt_cv_dlopen_self_static in
11021 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11022 *) enable_dlopen_self_static=unknown ;;
11023 esac
d7040cdb 11024fi
dabbade6
L
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042striplib=
11043old_striplib=
81ecdfbb
RW
11044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11045$as_echo_n "checking whether stripping libraries is possible... " >&6; }
dabbade6
L
11046if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11047 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11048 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
81ecdfbb
RW
11049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11050$as_echo "yes" >&6; }
d7040cdb 11051else
dabbade6
L
11052# FIXME - insert some real tests, host_os isn't really good enough
11053 case $host_os in
11054 darwin*)
11055 if test -n "$STRIP" ; then
11056 striplib="$STRIP -x"
11057 old_striplib="$STRIP -S"
81ecdfbb
RW
11058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11059$as_echo "yes" >&6; }
dabbade6 11060 else
81ecdfbb
RW
11061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11062$as_echo "no" >&6; }
dabbade6
L
11063 fi
11064 ;;
11065 *)
81ecdfbb
RW
11066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11067$as_echo "no" >&6; }
dabbade6
L
11068 ;;
11069 esac
d7040cdb 11070fi
20e95c23 11071
979273e3 11072
dabbade6
L
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083 # Report which library types will actually be built
81ecdfbb
RW
11084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11085$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11087$as_echo "$can_build_shared" >&6; }
dabbade6 11088
81ecdfbb
RW
11089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11090$as_echo_n "checking whether to build shared libraries... " >&6; }
dabbade6
L
11091 test "$can_build_shared" = "no" && enable_shared=no
11092
11093 # On AIX, shared libraries and static libraries use the same namespace, and
11094 # are all built from PIC.
11095 case $host_os in
11096 aix3*)
11097 test "$enable_shared" = yes && enable_static=no
11098 if test -n "$RANLIB"; then
11099 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11100 postinstall_cmds='$RANLIB $lib'
11101 fi
11102 ;;
11103
50e7d84b 11104 aix[4-9]*)
dabbade6
L
11105 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11106 test "$enable_shared" = yes && enable_static=no
11107 fi
11108 ;;
11109 esac
81ecdfbb
RW
11110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11111$as_echo "$enable_shared" >&6; }
dabbade6 11112
81ecdfbb
RW
11113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11114$as_echo_n "checking whether to build static libraries... " >&6; }
dabbade6
L
11115 # Make sure either enable_shared or enable_static is yes.
11116 test "$enable_shared" = yes || enable_static=yes
81ecdfbb
RW
11117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11118$as_echo "$enable_static" >&6; }
dabbade6
L
11119
11120
11121
d7040cdb 11122
252b5132 11123fi
dabbade6
L
11124ac_ext=c
11125ac_cpp='$CPP $CPPFLAGS'
11126ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11127ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11128ac_compiler_gnu=$ac_cv_c_compiler_gnu
20e95c23 11129
dabbade6 11130CC="$lt_save_CC"
20e95c23 11131
20e95c23 11132
d7040cdb 11133
d7040cdb 11134
d7040cdb 11135
20e95c23 11136
dabbade6
L
11137
11138
11139
11140
11141
11142
11143
81ecdfbb 11144 ac_config_commands="$ac_config_commands libtool"
dabbade6
L
11145
11146
11147
11148
11149# Only expand once:
11150
11151
11152
81ecdfbb
RW
11153# Check whether --enable-targets was given.
11154if test "${enable_targets+set}" = set; then :
11155 enableval=$enable_targets; case "${enableval}" in
d0ac1c44 11156 yes | "") as_fn_error $? "enable-targets option must specify target names or 'all'" "$LINENO" 5
dabbade6
L
11157 ;;
11158 no) enable_targets= ;;
11159 *) enable_targets=$enableval ;;
11160esac
81ecdfbb
RW
11161fi
11162
dabbade6 11163
270c9937
JB
11164# Set the 'development' global.
11165. $srcdir/../bfd/development.sh
11166
c5da1932
VZ
11167# Set acp_cpp_for_build variable
11168ac_cpp_for_build="$CC_FOR_BUILD -E $CPPFLAGS_FOR_BUILD"
11169
9780e045 11170# Default set of GCC warnings to enable.
397841b5 11171GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
c5da1932 11172GCC_WARN_CFLAGS_FOR_BUILD="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
9780e045
NC
11173
11174# Add -Wshadow if the compiler is a sufficiently recent version of GCC.
397841b5
AM
11175cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11176/* end confdefs.h. */
11177__GNUC__
11178_ACEOF
11179if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3107326d 11180 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then :
397841b5
AM
11181
11182else
11183 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wshadow"
11184fi
11185rm -f conftest*
11186
dabbade6 11187
9780e045
NC
11188# Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
11189cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11190/* end confdefs.h. */
11191__GNUC__
11192_ACEOF
11193if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3107326d 11194 $EGREP "(^[0-4]$|^__GNUC__$)" >/dev/null 2>&1; then :
9780e045
NC
11195
11196else
11197 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wstack-usage=262144"
11198fi
11199rm -f conftest*
11200
11201
6757cf57
TS
11202# Set WARN_WRITE_STRINGS if the compiler supports -Wwrite-strings.
11203WARN_WRITE_STRINGS=""
11204cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11205/* end confdefs.h. */
11206__GNUC__
11207_ACEOF
11208if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3107326d 11209 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then :
6757cf57
TS
11210
11211else
11212 WARN_WRITE_STRINGS="-Wwrite-strings"
11213fi
11214rm -f conftest*
11215
9780e045 11216
96fe4562 11217# Verify CC_FOR_BUILD to be compatible with warning flags
c5da1932
VZ
11218
11219# Add -Wshadow if the compiler is a sufficiently recent version of GCC.
11220cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11221/* end confdefs.h. */
11222__GNUC__
11223_ACEOF
11224if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
3107326d 11225 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then :
c5da1932
VZ
11226
11227else
11228 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wshadow"
11229fi
11230rm -f conftest*
11231
11232
11233# Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
11234cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11235/* end confdefs.h. */
11236__GNUC__
11237_ACEOF
11238if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
3107326d 11239 $EGREP "(^[0-4]$|^__GNUC__$)" >/dev/null 2>&1; then :
c5da1932
VZ
11240
11241else
11242 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wstack-usage=262144"
11243fi
11244rm -f conftest*
11245
11246
81ecdfbb
RW
11247# Check whether --enable-werror was given.
11248if test "${enable_werror+set}" = set; then :
11249 enableval=$enable_werror; case "${enableval}" in
dabbade6
L
11250 yes | y) ERROR_ON_WARNING="yes" ;;
11251 no | n) ERROR_ON_WARNING="no" ;;
d0ac1c44 11252 *) as_fn_error $? "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
dabbade6 11253 esac
81ecdfbb
RW
11254fi
11255
dabbade6 11256
397841b5 11257# Disable -Wformat by default when using gcc on mingw
bb8541b9
L
11258case "${host}" in
11259 *-*-mingw32*)
11260 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
11261 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
c5da1932 11262 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wno-format"
bb8541b9
L
11263 fi
11264 ;;
11265 *) ;;
11266esac
11267
270c9937
JB
11268# Enable -Werror by default when using gcc. Turn it off for releases.
11269if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" -a "$development" = true ; then
dabbade6 11270 ERROR_ON_WARNING=yes
d7040cdb 11271fi
20e95c23 11272
dabbade6
L
11273NO_WERROR=
11274if test "${ERROR_ON_WARNING}" = yes ; then
9780e045 11275 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
c5da1932 11276 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Werror"
dabbade6 11277 NO_WERROR="-Wno-error"
20e95c23 11278fi
d7040cdb 11279
dabbade6
L
11280if test "${GCC}" = yes ; then
11281 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
c5da1932 11282 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD}"
dabbade6 11283fi
d7040cdb 11284
81ecdfbb
RW
11285# Check whether --enable-build-warnings was given.
11286if test "${enable_build_warnings+set}" = set; then :
11287 enableval=$enable_build_warnings; case "${enableval}" in
c5da1932
VZ
11288 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}"
11289 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD}";;
dabbade6
L
11290 no) if test "${GCC}" = yes ; then
11291 WARN_CFLAGS="-w"
c5da1932 11292 WARN_CFLAGS_FOR_BUILD="-w"
dabbade6
L
11293 fi;;
11294 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
c5da1932
VZ
11295 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}"
11296 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD} ${t}";;
dabbade6 11297 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
c5da1932
VZ
11298 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}"
11299 WARN_CFLAGS_FOR_BUILD="${t} ${GCC_WARN_CFLAGS_FOR_BUILD}";;
11300 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`
11301 WARN_CFLAGS_FOR_BUILD=`echo "${enableval}" | sed -e "s/,/ /g"`;;
dabbade6 11302esac
81ecdfbb
RW
11303fi
11304
979273e3 11305
dabbade6
L
11306if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
11307 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
d7040cdb 11308fi
dabbade6
L
11309
11310
11311
11312
6757cf57 11313
c5da1932 11314
dabbade6 11315
81ecdfbb 11316ac_config_headers="$ac_config_headers config.h:config.in"
dabbade6
L
11317
11318
df7b86aa
NC
11319# PR 14072
11320
11321
dabbade6 11322if test -z "$target" ; then
d0ac1c44 11323 as_fn_error $? "Unrecognized target system type; please check config.sub." "$LINENO" 5
d7040cdb 11324fi
dabbade6 11325
81ecdfbb
RW
11326
11327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
11328$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
11329 # Check whether --enable-maintainer-mode was given.
11330if test "${enable_maintainer_mode+set}" = set; then :
11331 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
d7040cdb 11332else
dabbade6 11333 USE_MAINTAINER_MODE=no
81ecdfbb 11334fi
d7040cdb 11335
81ecdfbb
RW
11336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
11337$as_echo "$USE_MAINTAINER_MODE" >&6; }
11338 if test $USE_MAINTAINER_MODE = yes; then
dabbade6
L
11339 MAINTAINER_MODE_TRUE=
11340 MAINTAINER_MODE_FALSE='#'
252b5132 11341else
dabbade6
L
11342 MAINTAINER_MODE_TRUE='#'
11343 MAINTAINER_MODE_FALSE=
252b5132 11344fi
d7040cdb 11345
dabbade6
L
11346 MAINT=$MAINTAINER_MODE_TRUE
11347
11348
11349 case ${build_alias} in
11350 "") build_noncanonical=${build} ;;
11351 *) build_noncanonical=${build_alias} ;;
11352esac
11353
11354 case ${host_alias} in
11355 "") host_noncanonical=${build_noncanonical} ;;
11356 *) host_noncanonical=${host_alias} ;;
11357esac
979273e3 11358
dabbade6
L
11359 case ${target_alias} in
11360 "") target_noncanonical=${host_noncanonical} ;;
11361 *) target_noncanonical=${target_alias} ;;
d7040cdb 11362esac
252b5132 11363
81ecdfbb
RW
11364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install libbfd" >&5
11365$as_echo_n "checking whether to install libbfd... " >&6; }
11366 # Check whether --enable-install-libbfd was given.
11367if test "${enable_install_libbfd+set}" = set; then :
11368 enableval=$enable_install_libbfd; install_libbfd_p=$enableval
979273e3 11369else
dabbade6
L
11370 if test "${host}" = "${target}" || test "$enable_shared" = "yes"; then
11371 install_libbfd_p=yes
11372 else
11373 install_libbfd_p=no
11374 fi
81ecdfbb 11375fi
d7040cdb 11376
81ecdfbb
RW
11377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $install_libbfd_p" >&5
11378$as_echo "$install_libbfd_p" >&6; }
11379 if test $install_libbfd_p = yes; then
dabbade6
L
11380 INSTALL_LIBBFD_TRUE=
11381 INSTALL_LIBBFD_FALSE='#'
11382else
11383 INSTALL_LIBBFD_TRUE='#'
11384 INSTALL_LIBBFD_FALSE=
d7040cdb
SE
11385fi
11386
dabbade6 11387 # Need _noncanonical variables for this.
979273e3 11388
d7040cdb
SE
11389
11390
dabbade6
L
11391
11392 # libbfd.a is a host library containing target dependent code
11393 bfdlibdir='$(libdir)'
11394 bfdincludedir='$(includedir)'
11395 if test "${host}" != "${target}"; then
11396 bfdlibdir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/lib'
11397 bfdincludedir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/include'
11398 fi
11399
11400
11401
11402
11403
11404
573e8a1c
RW
11405
11406
dabbade6
L
11407# host-specific stuff:
11408
e184813f 11409ALL_LINGUAS="da de es fi fr ga id it nl pt_BR ro sr sv tr uk vi zh_CN"
d7040cdb
SE
11410# If we haven't got the data from the intl directory,
11411# assume NLS is disabled.
11412USE_NLS=no
11413LIBINTL=
11414LIBINTL_DEP=
11415INCINTL=
11416XGETTEXT=
11417GMSGFMT=
11418POSUB=
11419
11420if test -f ../intl/config.intl; then
11421 . ../intl/config.intl
11422fi
81ecdfbb
RW
11423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11424$as_echo_n "checking whether NLS is requested... " >&6; }
d7040cdb 11425if test x"$USE_NLS" != xyes; then
81ecdfbb
RW
11426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11427$as_echo "no" >&6; }
d7040cdb 11428else
81ecdfbb
RW
11429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11430$as_echo "yes" >&6; }
d7040cdb 11431
81ecdfbb 11432$as_echo "#define ENABLE_NLS 1" >>confdefs.h
d7040cdb
SE
11433
11434
81ecdfbb
RW
11435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11436$as_echo_n "checking for catalogs to be installed... " >&6; }
d7040cdb
SE
11437 # Look for .po and .gmo files in the source directory.
11438 CATALOGS=
11439 XLINGUAS=
11440 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11441 # If there aren't any .gmo files the shell will give us the
11442 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11443 # weeded out.
11444 case "$cat" in *\**)
11445 continue;;
11446 esac
11447 # The quadruple backslash is collapsed to a double backslash
11448 # by the backticks, then collapsed again by the double quotes,
11449 # leaving us with one backslash in the sed expression (right
11450 # before the dot that mustn't act as a wildcard).
11451 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11452 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
11453 # The user is allowed to set LINGUAS to a list of languages to
11454 # install catalogs for. If it's empty that means "all of them."
11455 if test "x$LINGUAS" = x; then
11456 CATALOGS="$CATALOGS $cat"
11457 XLINGUAS="$XLINGUAS $lang"
11458 else
11459 case "$LINGUAS" in *$lang*)
11460 CATALOGS="$CATALOGS $cat"
11461 XLINGUAS="$XLINGUAS $lang"
11462 ;;
11463 esac
11464 fi
11465 done
11466 LINGUAS="$XLINGUAS"
81ecdfbb
RW
11467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11468$as_echo "$LINGUAS" >&6; }
d7040cdb
SE
11469
11470
11471 DATADIRNAME=share
11472
11473 INSTOBJEXT=.mo
11474
11475 GENCAT=gencat
11476
11477 CATOBJEXT=.gmo
11478
11479fi
11480
11481 MKINSTALLDIRS=
11482 if test -n "$ac_aux_dir"; then
11483 case "$ac_aux_dir" in
11484 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
11485 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
11486 esac
11487 fi
11488 if test -z "$MKINSTALLDIRS"; then
11489 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
11490 fi
11491
11492
11493
81ecdfbb
RW
11494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11495$as_echo_n "checking whether NLS is requested... " >&6; }
11496 # Check whether --enable-nls was given.
11497if test "${enable_nls+set}" = set; then :
11498 enableval=$enable_nls; USE_NLS=$enableval
d7040cdb
SE
11499else
11500 USE_NLS=yes
81ecdfbb
RW
11501fi
11502
11503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
11504$as_echo "$USE_NLS" >&6; }
d7040cdb
SE
11505
11506
11507
11508
11509
11510
11511# Prepare PATH_SEPARATOR.
11512# The user is always right.
11513if test "${PATH_SEPARATOR+set}" != set; then
11514 echo "#! /bin/sh" >conf$$.sh
11515 echo "exit 0" >>conf$$.sh
11516 chmod +x conf$$.sh
11517 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11518 PATH_SEPARATOR=';'
11519 else
11520 PATH_SEPARATOR=:
11521 fi
11522 rm -f conf$$.sh
11523fi
979273e3 11524
d7040cdb
SE
11525# Find out how to test for executable files. Don't use a zero-byte file,
11526# as systems may use methods other than mode bits to determine executability.
11527cat >conf$$.file <<_ASEOF
11528#! /bin/sh
11529exit 0
11530_ASEOF
11531chmod +x conf$$.file
11532if test -x conf$$.file >/dev/null 2>&1; then
11533 ac_executable_p="test -x"
252b5132 11534else
d7040cdb 11535 ac_executable_p="test -f"
252b5132 11536fi
d7040cdb 11537rm -f conf$$.file
252b5132 11538
d7040cdb
SE
11539# Extract the first word of "msgfmt", so it can be a program name with args.
11540set dummy msgfmt; ac_word=$2
81ecdfbb
RW
11541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11542$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11543if ${ac_cv_path_MSGFMT+:} false; then :
81ecdfbb 11544 $as_echo_n "(cached) " >&6
252b5132 11545else
d7040cdb
SE
11546 case "$MSGFMT" in
11547 [\\/]* | ?:[\\/]*)
11548 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
11549 ;;
11550 *)
11551 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11552 for ac_dir in $PATH; do
11553 IFS="$ac_save_IFS"
11554 test -z "$ac_dir" && ac_dir=.
11555 for ac_exec_ext in '' $ac_executable_extensions; do
11556 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11557 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
11558 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11559 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
11560 break 2
11561 fi
11562 fi
11563 done
11564 done
11565 IFS="$ac_save_IFS"
11566 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
11567 ;;
11568esac
11569fi
11570MSGFMT="$ac_cv_path_MSGFMT"
11571if test "$MSGFMT" != ":"; then
81ecdfbb
RW
11572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
11573$as_echo "$MSGFMT" >&6; }
d7040cdb 11574else
81ecdfbb
RW
11575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11576$as_echo "no" >&6; }
252b5132
RH
11577fi
11578
d7040cdb
SE
11579 # Extract the first word of "gmsgfmt", so it can be a program name with args.
11580set dummy gmsgfmt; ac_word=$2
81ecdfbb
RW
11581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11582$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11583if ${ac_cv_path_GMSGFMT+:} false; then :
81ecdfbb 11584 $as_echo_n "(cached) " >&6
20e95c23 11585else
d7040cdb
SE
11586 case $GMSGFMT in
11587 [\\/]* | ?:[\\/]*)
11588 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
11589 ;;
11590 *)
11591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11592for as_dir in $PATH
11593do
11594 IFS=$as_save_IFS
11595 test -z "$as_dir" && as_dir=.
81ecdfbb 11596 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11597 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d7040cdb 11598 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb
SE
11600 break 2
11601 fi
11602done
81ecdfbb
RW
11603 done
11604IFS=$as_save_IFS
252b5132 11605
d7040cdb
SE
11606 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
11607 ;;
11608esac
11609fi
11610GMSGFMT=$ac_cv_path_GMSGFMT
d7040cdb 11611if test -n "$GMSGFMT"; then
81ecdfbb
RW
11612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
11613$as_echo "$GMSGFMT" >&6; }
252b5132 11614else
81ecdfbb
RW
11615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11616$as_echo "no" >&6; }
252b5132
RH
11617fi
11618
11619
20e95c23 11620
81ecdfbb 11621
d7040cdb
SE
11622# Prepare PATH_SEPARATOR.
11623# The user is always right.
11624if test "${PATH_SEPARATOR+set}" != set; then
11625 echo "#! /bin/sh" >conf$$.sh
11626 echo "exit 0" >>conf$$.sh
11627 chmod +x conf$$.sh
11628 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11629 PATH_SEPARATOR=';'
11630 else
11631 PATH_SEPARATOR=:
11632 fi
11633 rm -f conf$$.sh
252b5132
RH
11634fi
11635
d7040cdb
SE
11636# Find out how to test for executable files. Don't use a zero-byte file,
11637# as systems may use methods other than mode bits to determine executability.
11638cat >conf$$.file <<_ASEOF
11639#! /bin/sh
11640exit 0
11641_ASEOF
11642chmod +x conf$$.file
11643if test -x conf$$.file >/dev/null 2>&1; then
11644 ac_executable_p="test -x"
11645else
11646 ac_executable_p="test -f"
11647fi
11648rm -f conf$$.file
20e95c23 11649
d7040cdb
SE
11650# Extract the first word of "xgettext", so it can be a program name with args.
11651set dummy xgettext; ac_word=$2
81ecdfbb
RW
11652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11653$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11654if ${ac_cv_path_XGETTEXT+:} false; then :
81ecdfbb 11655 $as_echo_n "(cached) " >&6
252b5132 11656else
d7040cdb
SE
11657 case "$XGETTEXT" in
11658 [\\/]* | ?:[\\/]*)
11659 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
11660 ;;
11661 *)
11662 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11663 for ac_dir in $PATH; do
11664 IFS="$ac_save_IFS"
11665 test -z "$ac_dir" && ac_dir=.
11666 for ac_exec_ext in '' $ac_executable_extensions; do
11667 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11668 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
11669 (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
11670 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
11671 break 2
11672 fi
11673 fi
11674 done
11675 done
11676 IFS="$ac_save_IFS"
11677 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
11678 ;;
11679esac
20e95c23 11680fi
d7040cdb
SE
11681XGETTEXT="$ac_cv_path_XGETTEXT"
11682if test "$XGETTEXT" != ":"; then
81ecdfbb
RW
11683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
11684$as_echo "$XGETTEXT" >&6; }
d7040cdb 11685else
81ecdfbb
RW
11686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11687$as_echo "no" >&6; }
d7040cdb
SE
11688fi
11689
11690 rm -f messages.po
11691
979273e3 11692
d7040cdb
SE
11693# Prepare PATH_SEPARATOR.
11694# The user is always right.
11695if test "${PATH_SEPARATOR+set}" != set; then
11696 echo "#! /bin/sh" >conf$$.sh
11697 echo "exit 0" >>conf$$.sh
11698 chmod +x conf$$.sh
11699 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11700 PATH_SEPARATOR=';'
11701 else
11702 PATH_SEPARATOR=:
11703 fi
11704 rm -f conf$$.sh
252b5132 11705fi
979273e3 11706
d7040cdb
SE
11707# Find out how to test for executable files. Don't use a zero-byte file,
11708# as systems may use methods other than mode bits to determine executability.
11709cat >conf$$.file <<_ASEOF
11710#! /bin/sh
11711exit 0
11712_ASEOF
11713chmod +x conf$$.file
11714if test -x conf$$.file >/dev/null 2>&1; then
11715 ac_executable_p="test -x"
252b5132 11716else
d7040cdb
SE
11717 ac_executable_p="test -f"
11718fi
11719rm -f conf$$.file
252b5132 11720
d7040cdb
SE
11721# Extract the first word of "msgmerge", so it can be a program name with args.
11722set dummy msgmerge; ac_word=$2
81ecdfbb
RW
11723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11724$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11725if ${ac_cv_path_MSGMERGE+:} false; then :
81ecdfbb 11726 $as_echo_n "(cached) " >&6
252b5132 11727else
d7040cdb
SE
11728 case "$MSGMERGE" in
11729 [\\/]* | ?:[\\/]*)
11730 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
11731 ;;
11732 *)
11733 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11734 for ac_dir in $PATH; do
11735 IFS="$ac_save_IFS"
11736 test -z "$ac_dir" && ac_dir=.
11737 for ac_exec_ext in '' $ac_executable_extensions; do
11738 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11739 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
11740 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
11741 break 2
11742 fi
11743 fi
11744 done
11745 done
11746 IFS="$ac_save_IFS"
11747 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
11748 ;;
11749esac
20e95c23 11750fi
d7040cdb
SE
11751MSGMERGE="$ac_cv_path_MSGMERGE"
11752if test "$MSGMERGE" != ":"; then
81ecdfbb
RW
11753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
11754$as_echo "$MSGMERGE" >&6; }
d7040cdb 11755else
81ecdfbb
RW
11756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11757$as_echo "no" >&6; }
20e95c23 11758fi
252b5132 11759
979273e3 11760
d7040cdb
SE
11761 if test "$GMSGFMT" != ":"; then
11762 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
11763 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11764 : ;
11765 else
11766 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
81ecdfbb
RW
11767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
11768$as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
d7040cdb
SE
11769 GMSGFMT=":"
11770 fi
11771 fi
979273e3 11772
d7040cdb
SE
11773 if test "$XGETTEXT" != ":"; then
11774 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
11775 (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
11776 : ;
11777 else
81ecdfbb
RW
11778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
11779$as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
d7040cdb
SE
11780 XGETTEXT=":"
11781 fi
11782 rm -f messages.po
11783 fi
979273e3 11784
81ecdfbb 11785 ac_config_commands="$ac_config_commands default-1"
979273e3 11786
979273e3 11787
979273e3 11788
81ecdfbb 11789. ${srcdir}/../bfd/configure.host
252b5132 11790
81ecdfbb
RW
11791# Put a plausible default for CC_FOR_BUILD in Makefile.
11792if test -z "$CC_FOR_BUILD"; then
11793 if test "x$cross_compiling" = "xno"; then
11794 CC_FOR_BUILD='$(CC)'
11795 else
11796 CC_FOR_BUILD=gcc
11797 fi
11798fi
252b5132 11799
81ecdfbb
RW
11800# Also set EXEEXT_FOR_BUILD.
11801if test "x$cross_compiling" = "xno"; then
11802 EXEEXT_FOR_BUILD='$(EXEEXT)'
4bd60896 11803else
81ecdfbb
RW
11804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build system executable suffix" >&5
11805$as_echo_n "checking for build system executable suffix... " >&6; }
d0ac1c44 11806if ${bfd_cv_build_exeext+:} false; then :
81ecdfbb 11807 $as_echo_n "(cached) " >&6
4bd60896 11808else
81ecdfbb
RW
11809 rm -f conftest*
11810 echo 'int main () { return 0; }' > conftest.c
11811 bfd_cv_build_exeext=
11812 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
11813 for file in conftest.*; do
11814 case $file in
11815 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
11816 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
11817 esac
11818 done
11819 rm -f conftest*
11820 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
4bd60896 11821fi
81ecdfbb
RW
11822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_build_exeext" >&5
11823$as_echo "$bfd_cv_build_exeext" >&6; }
11824 EXEEXT_FOR_BUILD=""
11825 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
4bd60896 11826fi
4bd60896 11827
4bd60896
JG
11828
11829
81ecdfbb
RW
11830
11831
81ecdfbb 11832ac_fn_c_check_decl "$LINENO" "basename" "ac_cv_have_decl_basename" "$ac_includes_default"
d0ac1c44 11833if test "x$ac_cv_have_decl_basename" = xyes; then :
81ecdfbb
RW
11834 ac_have_decl=1
11835else
11836 ac_have_decl=0
dabbade6 11837fi
dabbade6
L
11838
11839cat >>confdefs.h <<_ACEOF
81ecdfbb 11840#define HAVE_DECL_BASENAME $ac_have_decl
dabbade6 11841_ACEOF
81ecdfbb 11842ac_fn_c_check_decl "$LINENO" "stpcpy" "ac_cv_have_decl_stpcpy" "$ac_includes_default"
d0ac1c44 11843if test "x$ac_cv_have_decl_stpcpy" = xyes; then :
81ecdfbb 11844 ac_have_decl=1
dabbade6 11845else
81ecdfbb 11846 ac_have_decl=0
4bd60896
JG
11847fi
11848
81ecdfbb
RW
11849cat >>confdefs.h <<_ACEOF
11850#define HAVE_DECL_STPCPY $ac_have_decl
11851_ACEOF
4bd60896
JG
11852
11853
8df14d78
L
11854# Check if sigsetjmp is available. Using AC_CHECK_FUNCS won't do
11855# since sigsetjmp might only be defined as a macro.
11856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
11857$as_echo_n "checking for sigsetjmp... " >&6; }
d0ac1c44 11858if ${gdb_cv_func_sigsetjmp+:} false; then :
8df14d78
L
11859 $as_echo_n "(cached) " >&6
11860else
11861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11862/* end confdefs.h. */
11863
11864#include <setjmp.h>
11865
11866int
11867main ()
11868{
11869sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
11870 ;
11871 return 0;
11872}
11873_ACEOF
11874if ac_fn_c_try_compile "$LINENO"; then :
11875 bfd_cv_func_sigsetjmp=yes
11876else
11877 bfd_cv_func_sigsetjmp=no
11878fi
11879rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11880fi
11881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5
11882$as_echo "$gdb_cv_func_sigsetjmp" >&6; }
11883if test $bfd_cv_func_sigsetjmp = yes; then
11884
11885$as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
11886
11887fi
11888
6e31aea3
BE
11889cgen_maint=no
11890cgendir='$(srcdir)/../cgen'
11891
81ecdfbb
RW
11892# Check whether --enable-cgen-maint was given.
11893if test "${enable_cgen_maint+set}" = set; then :
11894 enableval=$enable_cgen_maint; case "${enableval}" in
6e31aea3
BE
11895 yes) cgen_maint=yes ;;
11896 no) cgen_maint=no ;;
11897 *)
7fb45a68
AB
11898 # Argument is a directory where cgen can be found. In some
11899 # future world cgen could be installable, but right now this
11900 # is not the case. Instead we assume the directory is a path
11901 # to the cgen source tree.
6e31aea3 11902 cgen_maint=yes
7fb45a68
AB
11903 if test -r ${enableval}/iformat.scm; then
11904 # This looks like a cgen source tree.
11905 cgendir=${enableval}
11906 else
11907 as_fn_error $? "${enableval} doesn't look like a cgen source tree" "$LINENO" 5
11908 fi
6e31aea3
BE
11909 ;;
11910esac
81ecdfbb
RW
11911fi
11912 if test x${cgen_maint} = xyes; then
6e31aea3
BE
11913 CGEN_MAINT_TRUE=
11914 CGEN_MAINT_FALSE='#'
11915else
11916 CGEN_MAINT_TRUE='#'
11917 CGEN_MAINT_FALSE=
11918fi
11919
252b5132 11920
8ae85421 11921
252b5132
RH
11922using_cgen=no
11923
51dec227 11924# Check if linker supports --as-needed and --no-as-needed options
81ecdfbb
RW
11925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
11926$as_echo_n "checking linker --as-needed support... " >&6; }
d0ac1c44 11927if ${bfd_cv_ld_as_needed+:} false; then :
81ecdfbb 11928 $as_echo_n "(cached) " >&6
51dec227
AM
11929else
11930 bfd_cv_ld_as_needed=no
11931 if $LD --help 2>/dev/null | grep as-needed > /dev/null; then
11932 bfd_cv_ld_as_needed=yes
11933 fi
11934
11935fi
81ecdfbb
RW
11936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_ld_as_needed" >&5
11937$as_echo "$bfd_cv_ld_as_needed" >&6; }
51dec227
AM
11938
11939LIBM=
11940case $host in
3725885a 11941*-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
51dec227
AM
11942 # These system don't have libm, or don't need it
11943 ;;
11944*-ncr-sysv4.3*)
81ecdfbb
RW
11945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mwvalidcheckl in -lmw" >&5
11946$as_echo_n "checking for _mwvalidcheckl in -lmw... " >&6; }
d0ac1c44 11947if ${ac_cv_lib_mw__mwvalidcheckl+:} false; then :
81ecdfbb 11948 $as_echo_n "(cached) " >&6
51dec227
AM
11949else
11950 ac_check_lib_save_LIBS=$LIBS
11951LIBS="-lmw $LIBS"
81ecdfbb 11952cat confdefs.h - <<_ACEOF >conftest.$ac_ext
51dec227
AM
11953/* end confdefs.h. */
11954
81ecdfbb
RW
11955/* Override any GCC internal prototype to avoid an error.
11956 Use char because int might match the return type of a GCC
11957 builtin and then its argument prototype would still apply. */
51dec227
AM
11958#ifdef __cplusplus
11959extern "C"
11960#endif
51dec227
AM
11961char _mwvalidcheckl ();
11962int
11963main ()
11964{
81ecdfbb 11965return _mwvalidcheckl ();
51dec227
AM
11966 ;
11967 return 0;
11968}
11969_ACEOF
81ecdfbb 11970if ac_fn_c_try_link "$LINENO"; then :
51dec227
AM
11971 ac_cv_lib_mw__mwvalidcheckl=yes
11972else
81ecdfbb 11973 ac_cv_lib_mw__mwvalidcheckl=no
51dec227 11974fi
81ecdfbb
RW
11975rm -f core conftest.err conftest.$ac_objext \
11976 conftest$ac_exeext conftest.$ac_ext
51dec227
AM
11977LIBS=$ac_check_lib_save_LIBS
11978fi
81ecdfbb
RW
11979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
11980$as_echo "$ac_cv_lib_mw__mwvalidcheckl" >&6; }
d0ac1c44 11981if test "x$ac_cv_lib_mw__mwvalidcheckl" = xyes; then :
51dec227
AM
11982 LIBM="-lmw"
11983fi
11984
81ecdfbb
RW
11985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
11986$as_echo_n "checking for cos in -lm... " >&6; }
d0ac1c44 11987if ${ac_cv_lib_m_cos+:} false; then :
81ecdfbb 11988 $as_echo_n "(cached) " >&6
51dec227
AM
11989else
11990 ac_check_lib_save_LIBS=$LIBS
11991LIBS="-lm $LIBS"
81ecdfbb 11992cat confdefs.h - <<_ACEOF >conftest.$ac_ext
51dec227
AM
11993/* end confdefs.h. */
11994
81ecdfbb
RW
11995/* Override any GCC internal prototype to avoid an error.
11996 Use char because int might match the return type of a GCC
11997 builtin and then its argument prototype would still apply. */
51dec227
AM
11998#ifdef __cplusplus
11999extern "C"
12000#endif
51dec227
AM
12001char cos ();
12002int
12003main ()
12004{
81ecdfbb 12005return cos ();
51dec227
AM
12006 ;
12007 return 0;
12008}
12009_ACEOF
81ecdfbb 12010if ac_fn_c_try_link "$LINENO"; then :
51dec227
AM
12011 ac_cv_lib_m_cos=yes
12012else
81ecdfbb 12013 ac_cv_lib_m_cos=no
51dec227 12014fi
81ecdfbb
RW
12015rm -f core conftest.err conftest.$ac_objext \
12016 conftest$ac_exeext conftest.$ac_ext
51dec227
AM
12017LIBS=$ac_check_lib_save_LIBS
12018fi
81ecdfbb
RW
12019{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
12020$as_echo "$ac_cv_lib_m_cos" >&6; }
d0ac1c44 12021if test "x$ac_cv_lib_m_cos" = xyes; then :
51dec227
AM
12022 LIBM="$LIBM -lm"
12023fi
12024
12025 ;;
12026*)
81ecdfbb
RW
12027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
12028$as_echo_n "checking for cos in -lm... " >&6; }
d0ac1c44 12029if ${ac_cv_lib_m_cos+:} false; then :
81ecdfbb 12030 $as_echo_n "(cached) " >&6
51dec227
AM
12031else
12032 ac_check_lib_save_LIBS=$LIBS
12033LIBS="-lm $LIBS"
81ecdfbb 12034cat confdefs.h - <<_ACEOF >conftest.$ac_ext
51dec227
AM
12035/* end confdefs.h. */
12036
81ecdfbb
RW
12037/* Override any GCC internal prototype to avoid an error.
12038 Use char because int might match the return type of a GCC
12039 builtin and then its argument prototype would still apply. */
51dec227
AM
12040#ifdef __cplusplus
12041extern "C"
12042#endif
51dec227
AM
12043char cos ();
12044int
12045main ()
12046{
81ecdfbb 12047return cos ();
51dec227
AM
12048 ;
12049 return 0;
12050}
12051_ACEOF
81ecdfbb 12052if ac_fn_c_try_link "$LINENO"; then :
51dec227
AM
12053 ac_cv_lib_m_cos=yes
12054else
81ecdfbb 12055 ac_cv_lib_m_cos=no
51dec227 12056fi
81ecdfbb
RW
12057rm -f core conftest.err conftest.$ac_objext \
12058 conftest$ac_exeext conftest.$ac_ext
51dec227
AM
12059LIBS=$ac_check_lib_save_LIBS
12060fi
81ecdfbb
RW
12061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
12062$as_echo "$ac_cv_lib_m_cos" >&6; }
d0ac1c44 12063if test "x$ac_cv_lib_m_cos" = xyes; then :
51dec227
AM
12064 LIBM="-lm"
12065fi
12066
12067 ;;
12068esac
12069
12070
12071
2eee5593
AM
12072#Libs for generator progs
12073if test "x$cross_compiling" = "xno"; then
12074 BUILD_LIBS=../libiberty/libiberty.a
12075 BUILD_LIB_DEPS=$BUILD_LIBS
12076else
12077 # if cross-compiling, assume that the system provides -liberty
12078 # and that the version is compatible with new headers.
12079 BUILD_LIBS=-liberty
12080 BUILD_LIB_DEPS=
12081fi
12082BUILD_LIBS="$BUILD_LIBS $LIBINTL"
12083BUILD_LIB_DEPS="$BUILD_LIB_DEPS $LIBINTL_DEP"
12084
12085
12086
12087
45d42143
NC
12088# Horrible hacks to build DLLs on Windows and a shared library elsewhere.
12089SHARED_LDFLAGS=
12090SHARED_LIBADD=
12091SHARED_DEPENDENCIES=
12092if test "$enable_shared" = "yes"; then
29670fb9
AM
12093# When building a shared libopcodes, link against the pic version of libiberty
12094# so that apps that use libopcodes won't need libiberty just to satisfy any
12095# libopcodes references.
12096# We can't do that if a pic libiberty is unavailable since including non-pic
12097# code would insert text relocations into libopcodes.
12098# Note that linking against libbfd as we do here, which is itself linked
12099# against libiberty, may not satisfy all the libopcodes libiberty references
12100# since libbfd may not pull in the entirety of libiberty.
95148614
NA
12101# Also, jam libintl into the right place in all of this: after libiberty,
12102# which uses it, but before -lcygwin, which it uses.
29670fb9
AM
12103 x=`sed -n -e 's/^[ ]*PICFLAG[ ]*=[ ]*//p' < ../libiberty/Makefile | sed -n '$p'`
12104 if test -n "$x"; then
12105 SHARED_LIBADD="-L`pwd`/../libiberty/pic -liberty"
12106 fi
95148614
NA
12107fi
12108
12109SHARED_LIBADD="$SHARED_LIBADD $LIBINTL"
29670fb9 12110
95148614 12111if test "$enable_shared" = "yes"; then
45d42143
NC
12112 case "${host}" in
12113 *-*-cygwin*)
12114 SHARED_LDFLAGS="-no-undefined"
95148614 12115 SHARED_LIBADD="-L`pwd`/../bfd -lbfd -L`pwd`/../libiberty -liberty $SHARED_LIBADD"
45d42143 12116 ;;
0e336180 12117 *-*-darwin*)
29670fb9 12118 SHARED_LIBADD="-Wl,`pwd`/../bfd/.libs/libbfd.dylib ${SHARED_LIBADD}"
0e336180
NC
12119 SHARED_DEPENDENCIES="../bfd/libbfd.la"
12120 ;;
45d42143 12121 *)
0e336180
NC
12122 case "$host_vendor" in
12123 hp)
29670fb9 12124 SHARED_LIBADD="-Wl,`pwd`/../bfd/.libs/libbfd.sl ${SHARED_LIBADD}"
0e336180
NC
12125 ;;
12126 *)
29670fb9 12127 SHARED_LIBADD="-Wl,`pwd`/../bfd/.libs/libbfd.so ${SHARED_LIBADD}"
0e336180
NC
12128 ;;
12129 esac
4267b19f 12130 SHARED_DEPENDENCIES="../bfd/libbfd.la"
45d42143
NC
12131 ;;
12132 esac
51dec227
AM
12133
12134 if test -n "$SHARED_LIBADD"; then
12135 if test -n "$LIBM"; then
12136 if test x"$bfd_cv_ld_as_needed" = xyes; then
12137 # Link against libm only when needed. Put -lc, -lm inside -Wl
12138 # to stop libtool reordering these options.
12139 SHARED_LIBADD="$SHARED_LIBADD -Wl,-lc,--as-needed,`echo $LIBM | sed 's/ /,/g'`,--no-as-needed"
12140 else
12141 SHARED_LIBADD="$SHARED_LIBADD $LIBM"
12142 fi
12143 fi
12144 fi
45d42143
NC
12145fi
12146
252b5132
RH
12147
12148
12149
12150# target-specific stuff:
12151
12152# Canonicalize the secondary target names.
12153if test -n "$enable_targets" ; then
12154 for targ in `echo $enable_targets | sed 's/,/ /g'`
12155 do
6d83c84b 12156 result=`$ac_config_sub $targ 2>/dev/null`
252b5132
RH
12157 if test -n "$result" ; then
12158 canon_targets="$canon_targets $result"
12159 else
12160 # Allow targets that config.sub doesn't recognize, like "all".
12161 canon_targets="$canon_targets $targ"
12162 fi
12163 done
12164fi
12165
12166all_targets=false
12167selarchs=
12168for targ in $target $canon_targets
12169do
12170 if test "x$targ" = "xall" ; then
12171 all_targets=true
12172 else
12173 . $srcdir/../bfd/config.bfd
12174 selarchs="$selarchs $targ_archs"
12175 fi
979273e3 12176done
252b5132
RH
12177
12178# Utility var, documents generic cgen support files.
12179
3609e0fe 12180cgen_files="cgen-opc.lo cgen-asm.lo cgen-dis.lo cgen-bitset.lo"
252b5132
RH
12181
12182# We don't do any links based on the target system, just makefile config.
12183
12184if test x${all_targets} = xfalse ; then
12185
12186 # Target architecture .o files.
12187 ta=
12188
12189 for arch in $selarchs
12190 do
12191 ad=`echo $arch | sed -e s/bfd_//g -e s/_arch//g`
12192 archdefs="$archdefs -DARCH_$ad"
12193 case "$arch" in
a06ea964 12194 bfd_aarch64_arch) ta="$ta aarch64-asm.lo aarch64-dis.lo aarch64-opc.lo aarch64-asm-2.lo aarch64-dis-2.lo aarch64-opc-2.lo" ;;
252b5132 12195 bfd_alpha_arch) ta="$ta alpha-dis.lo alpha-opc.lo" ;;
0d2bcfaf 12196 bfd_arc_arch) ta="$ta arc-dis.lo arc-opc.lo arc-ext.lo" ;;
252b5132 12197 bfd_arm_arch) ta="$ta arm-dis.lo" ;;
adde6300 12198 bfd_avr_arch) ta="$ta avr-dis.lo" ;;
4b7f6baa 12199 bfd_bfin_arch) ta="$ta bfin-dis.lo" ;;
3843081d 12200 bfd_cr16_arch) ta="$ta cr16-dis.lo cr16-opc.lo" ;;
3609e0fe 12201 bfd_cris_arch) ta="$ta cris-dis.lo cris-opc.lo cgen-bitset.lo" ;;
3843081d 12202 bfd_crx_arch) ta="$ta crx-dis.lo crx-opc.lo" ;;
b8891f8d 12203 bfd_csky_arch) ta="$ta csky-dis.lo" ;;
252b5132
RH
12204 bfd_d10v_arch) ta="$ta d10v-dis.lo d10v-opc.lo" ;;
12205 bfd_d30v_arch) ta="$ta d30v-dis.lo d30v-opc.lo" ;;
d172d4ba 12206 bfd_dlx_arch) ta="$ta dlx-dis.lo" ;;
3843081d
JBG
12207 bfd_fr30_arch) ta="$ta fr30-asm.lo fr30-desc.lo fr30-dis.lo fr30-ibld.lo fr30-opc.lo" using_cgen=yes ;;
12208 bfd_frv_arch) ta="$ta frv-asm.lo frv-desc.lo frv-dis.lo frv-ibld.lo frv-opc.lo" using_cgen=yes ;;
3f8107ab 12209 bfd_ft32_arch) ta="$ta ft32-opc.lo ft32-dis.lo" ;;
20135e4c 12210 bfd_moxie_arch) ta="$ta moxie-dis.lo moxie-opc.lo" ;;
252b5132 12211 bfd_h8300_arch) ta="$ta h8300-dis.lo" ;;
252b5132 12212 bfd_hppa_arch) ta="$ta hppa-dis.lo" ;;
7b6d09fb 12213 bfd_i386_arch|bfd_iamcu_arch|bfd_l1om_arch|bfd_k1om_arch)
8a9036a4 12214 ta="$ta i386-dis.lo i386-opc.lo" ;;
800eeca4 12215 bfd_ia64_arch) ta="$ta ia64-dis.lo ia64-opc.lo" ;;
a40cbfa3 12216 bfd_ip2k_arch) ta="$ta ip2k-asm.lo ip2k-desc.lo ip2k-dis.lo ip2k-ibld.lo ip2k-opc.lo" using_cgen=yes ;;
48891606 12217 bfd_epiphany_arch) ta="$ta epiphany-asm.lo epiphany-desc.lo epiphany-dis.lo epiphany-ibld.lo epiphany-opc.lo" using_cgen=yes ;;
3843081d
JBG
12218 bfd_iq2000_arch) ta="$ta iq2000-asm.lo iq2000-desc.lo iq2000-dis.lo iq2000-ibld.lo iq2000-opc.lo" using_cgen=yes ;;
12219 bfd_lm32_arch) ta="$ta lm32-asm.lo lm32-desc.lo lm32-dis.lo lm32-ibld.lo lm32-opc.lo lm32-opinst.lo" using_cgen=yes ;;
c5f5f1f4 12220 bfd_m32c_arch) ta="$ta m32c-asm.lo m32c-desc.lo m32c-dis.lo m32c-ibld.lo m32c-opc.lo" using_cgen=yes ;;
252b5132 12221 bfd_m32r_arch) ta="$ta m32r-asm.lo m32r-desc.lo m32r-dis.lo m32r-ibld.lo m32r-opc.lo m32r-opinst.lo" using_cgen=yes ;;
60bcf0fa
NC
12222 bfd_m68hc11_arch) ta="$ta m68hc11-dis.lo m68hc11-opc.lo" ;;
12223 bfd_m68hc12_arch) ta="$ta m68hc11-dis.lo m68hc11-opc.lo" ;;
48891606 12224 bfd_m9s12x_arch) ta="$ta m68hc11-dis.lo m68hc11-opc.lo" ;;
6927f982 12225 bfd_m9s12xg_arch) ta="$ta m68hc11-dis.lo m68hc11-opc.lo" ;;
7e9ca91e 12226 bfd_s12z_arch) ta="$ta s12z-dis.lo s12z-opc.lo" ;;
252b5132 12227 bfd_m68k_arch) ta="$ta m68k-dis.lo m68k-opc.lo" ;;
252b5132 12228 bfd_mcore_arch) ta="$ta mcore-dis.lo" ;;
bd2f2e55 12229 bfd_mep_arch) ta="$ta mep-asm.lo mep-desc.lo mep-dis.lo mep-ibld.lo mep-opc.lo" using_cgen=yes ;;
a3c62988 12230 bfd_metag_arch) ta="$ta metag-dis.lo" ;;
7ba29e2a 12231 bfd_microblaze_arch) ta="$ta microblaze-dis.lo" ;;
df58fc94 12232 bfd_mips_arch) ta="$ta mips-dis.lo mips-opc.lo mips16-opc.lo micromips-opc.lo" ;;
3c3bdf30 12233 bfd_mmix_arch) ta="$ta mmix-dis.lo mmix-opc.lo" ;;
252b5132
RH
12234 bfd_mn10200_arch) ta="$ta m10200-dis.lo m10200-opc.lo" ;;
12235 bfd_mn10300_arch) ta="$ta m10300-dis.lo m10300-opc.lo" ;;
d031aafb 12236 bfd_mt_arch) ta="$ta mt-asm.lo mt-desc.lo mt-dis.lo mt-ibld.lo mt-opc.lo" using_cgen=yes ;;
34c911a4 12237 bfd_msp430_arch) ta="$ta msp430-dis.lo msp430-decode.lo" ;;
35c08157 12238 bfd_nds32_arch) ta="$ta nds32-asm.lo nds32-dis.lo" ;;
fe944acf 12239 bfd_nfp_arch) ta="$ta nfp-dis.lo" ;;
36591ba1 12240 bfd_nios2_arch) ta="$ta nios2-dis.lo nios2-opc.lo" ;;
252b5132 12241 bfd_ns32k_arch) ta="$ta ns32k-dis.lo" ;;
73589c9d 12242 bfd_or1k_arch) ta="$ta or1k-asm.lo or1k-desc.lo or1k-dis.lo or1k-ibld.lo or1k-opc.lo" using_cgen=yes ;;
e135f41b 12243 bfd_pdp11_arch) ta="$ta pdp11-dis.lo pdp11-opc.lo" ;;
3843081d 12244 bfd_pj_arch) ta="$ta pj-dis.lo pj-opc.lo" ;;
252b5132 12245 bfd_powerpc_arch) ta="$ta ppc-dis.lo ppc-opc.lo" ;;
a85d7ed0 12246 bfd_powerpc_64_arch) ta="$ta ppc-dis.lo ppc-opc.lo" ;;
11146849 12247 bfd_pru_arch) ta="$ta pru-dis.lo pru-opc.lo" ;;
5dd0794d 12248 bfd_pyramid_arch) ;;
252b5132 12249 bfd_romp_arch) ;;
e23eba97 12250 bfd_riscv_arch) ta="$ta riscv-dis.lo riscv-opc.lo" ;;
252b5132 12251 bfd_rs6000_arch) ta="$ta ppc-dis.lo ppc-opc.lo" ;;
99c513f6 12252 bfd_rl78_arch) ta="$ta rl78-dis.lo rl78-decode.lo";;
c7927a3c 12253 bfd_rx_arch) ta="$ta rx-dis.lo rx-decode.lo";;
a85d7ed0 12254 bfd_s390_arch) ta="$ta s390-dis.lo s390-opc.lo" ;;
3843081d 12255 bfd_score_arch) ta="$ta score-dis.lo score7-dis.lo" ;;
211dc24b 12256 bfd_sh_arch) ta="$ta sh-dis.lo cgen-bitset.lo" ;;
252b5132 12257 bfd_sparc_arch) ta="$ta sparc-dis.lo sparc-opc.lo" ;;
e9f53129 12258 bfd_spu_arch) ta="$ta spu-dis.lo spu-opc.lo" ;;
252b5132 12259 bfd_tic30_arch) ta="$ta tic30-dis.lo" ;;
3843081d 12260 bfd_tic4x_arch) ta="$ta tic4x-dis.lo" ;;
5c84d377 12261 bfd_tic54x_arch) ta="$ta tic54x-dis.lo tic54x-opc.lo" ;;
40b36596 12262 bfd_tic6x_arch) ta="$ta tic6x-dis.lo" ;;
aa137e4d
NC
12263 bfd_tilegx_arch) ta="$ta tilegx-dis.lo tilegx-opc.lo" ;;
12264 bfd_tilepro_arch) ta="$ta tilepro-dis.lo tilepro-opc.lo" ;;
252b5132
RH
12265 bfd_v850_arch) ta="$ta v850-opc.lo v850-dis.lo" ;;
12266 bfd_v850e_arch) ta="$ta v850-opc.lo v850-dis.lo" ;;
12267 bfd_v850ea_arch) ta="$ta v850-opc.lo v850-dis.lo" ;;
de863c74 12268 bfd_v850_rh850_arch) ta="$ta v850-opc.lo v850-dis.lo" ;;
252b5132 12269 bfd_vax_arch) ta="$ta vax-dis.lo" ;;
1945cfa5 12270 bfd_visium_arch) ta="$ta visium-dis.lo visium-opc.lo" ;;
62ecb94c 12271 bfd_wasm32_arch) ta="$ta wasm32-dis.lo" ;;
3843081d
JBG
12272 bfd_xc16x_arch) ta="$ta xc16x-asm.lo xc16x-desc.lo xc16x-dis.lo xc16x-ibld.lo xc16x-opc.lo" using_cgen=yes ;;
12273 bfd_xgate_arch) ta="$ta xgate-dis.lo xgate-opc.lo" ;;
93fbbb04 12274 bfd_xstormy16_arch) ta="$ta xstormy16-asm.lo xstormy16-desc.lo xstormy16-dis.lo xstormy16-ibld.lo xstormy16-opc.lo" using_cgen=yes ;;
e0001a05 12275 bfd_xtensa_arch) ta="$ta xtensa-dis.lo" ;;
3c9b82ba 12276 bfd_z80_arch) ta="$ta z80-dis.lo" ;;
252b5132 12277 bfd_z8k_arch) ta="$ta z8k-dis.lo" ;;
79472b45 12278 bfd_bpf_arch) ta="$ta bpf-asm.lo bpf-desc.lo bpf-dis.lo bpf-ibld.lo bpf-opc.lo" using_cgen=yes ;;
252b5132
RH
12279
12280 "") ;;
d0ac1c44 12281 *) as_fn_error $? "*** unknown target architecture $arch" "$LINENO" 5 ;;
252b5132
RH
12282 esac
12283 done
12284
12285 if test $using_cgen = yes ; then
12286 ta="$ta $cgen_files"
12287 fi
12288
12289 # Weed out duplicate .o files.
12290 f=""
12291 for i in $ta ; do
12292 case " $f " in
12293 *" $i "*) ;;
12294 *) f="$f $i" ;;
12295 esac
12296 done
12297 ta="$f"
12298
12299 # And duplicate -D flags.
12300 f=""
12301 for i in $archdefs ; do
12302 case " $f " in
12303 *" $i "*) ;;
12304 *) f="$f $i" ;;
12305 esac
12306 done
12307 archdefs="$f"
12308
12309 BFD_MACHINES="$ta"
12310
12311else # all_targets is true
12312 archdefs=-DARCH_all
12313 BFD_MACHINES='$(ALL_MACHINES)'
12314fi
12315
12316
12317
12318
81ecdfbb 12319ac_config_files="$ac_config_files Makefile po/Makefile.in:po/Make-in"
979273e3 12320
979273e3 12321cat >confcache <<\_ACEOF
252b5132
RH
12322# This file is a shell script that caches the results of configure
12323# tests run on this system so they can be shared between configure
979273e3
NN
12324# scripts and configure runs, see configure's option --config-cache.
12325# It is not useful on other systems. If it contains results you don't
12326# want to keep, you may remove or edit it.
252b5132 12327#
979273e3
NN
12328# config.status only pays attention to the cache file if you give it
12329# the --recheck option to rerun configure.
252b5132 12330#
979273e3
NN
12331# `ac_cv_env_foo' variables (set or unset) will be overridden when
12332# loading this file, other *unset* `ac_cv_foo' will be assigned the
12333# following values.
12334
12335_ACEOF
12336
252b5132
RH
12337# The following way of writing the cache mishandles newlines in values,
12338# but we know of no workaround that is simple, portable, and efficient.
81ecdfbb 12339# So, we kill variables containing newlines.
252b5132
RH
12340# Ultrix sh set writes to stderr and can't be redirected directly,
12341# and sets the high bit in the cache file unless we assign to the vars.
81ecdfbb
RW
12342(
12343 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12344 eval ac_val=\$$ac_var
12345 case $ac_val in #(
12346 *${as_nl}*)
12347 case $ac_var in #(
12348 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12349$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12350 esac
12351 case $ac_var in #(
12352 _ | IFS | as_nl) ;; #(
12353 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12354 *) { eval $ac_var=; unset $ac_var;} ;;
12355 esac ;;
12356 esac
12357 done
12358
979273e3 12359 (set) 2>&1 |
81ecdfbb
RW
12360 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12361 *${as_nl}ac_space=\ *)
12362 # `set' does not quote correctly, so add quotes: double-quote
12363 # substitution turns \\\\ into \\, and sed turns \\ into \.
979273e3
NN
12364 sed -n \
12365 "s/'/'\\\\''/g;
12366 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
81ecdfbb 12367 ;; #(
979273e3
NN
12368 *)
12369 # `set' quotes correctly as required by POSIX, so do not add quotes.
81ecdfbb 12370 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
979273e3 12371 ;;
81ecdfbb
RW
12372 esac |
12373 sort
12374) |
979273e3 12375 sed '
81ecdfbb 12376 /^ac_cv_env_/b end
979273e3 12377 t clear
81ecdfbb 12378 :clear
979273e3
NN
12379 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12380 t end
81ecdfbb
RW
12381 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12382 :end' >>confcache
12383if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12384 if test -w "$cache_file"; then
d0ac1c44 12385 if test "x$cache_file" != "x/dev/null"; then
81ecdfbb
RW
12386 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12387$as_echo "$as_me: updating cache $cache_file" >&6;}
d0ac1c44
SM
12388 if test ! -f "$cache_file" || test -h "$cache_file"; then
12389 cat confcache >"$cache_file"
12390 else
12391 case $cache_file in #(
12392 */* | ?:*)
12393 mv -f confcache "$cache_file"$$ &&
12394 mv -f "$cache_file"$$ "$cache_file" ;; #(
12395 *)
12396 mv -f confcache "$cache_file" ;;
12397 esac
12398 fi
12399 fi
252b5132 12400 else
81ecdfbb
RW
12401 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12402$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
252b5132
RH
12403 fi
12404fi
12405rm -f confcache
12406
252b5132
RH
12407test "x$prefix" = xNONE && prefix=$ac_default_prefix
12408# Let make expand exec_prefix.
12409test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12410
252b5132
RH
12411DEFS=-DHAVE_CONFIG_H
12412
979273e3
NN
12413ac_libobjs=
12414ac_ltlibobjs=
d0ac1c44 12415U=
979273e3
NN
12416for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12417 # 1. Remove the extension, and $U if already installed.
81ecdfbb
RW
12418 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12419 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12420 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12421 # will be set to the directory where LIBOBJS objects are built.
12422 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12423 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
979273e3
NN
12424done
12425LIBOBJS=$ac_libobjs
252b5132 12426
979273e3
NN
12427LTLIBOBJS=$ac_ltlibobjs
12428
12429
d0ac1c44
SM
12430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
12431$as_echo_n "checking that generated files are newer than configure... " >&6; }
12432 if test -n "$am_sleep_pid"; then
12433 # Hide warnings about reused PIDs.
12434 wait $am_sleep_pid 2>/dev/null
12435 fi
12436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
12437$as_echo "done" >&6; }
81ecdfbb
RW
12438 if test -n "$EXEEXT"; then
12439 am__EXEEXT_TRUE=
12440 am__EXEEXT_FALSE='#'
12441else
12442 am__EXEEXT_TRUE='#'
12443 am__EXEEXT_FALSE=
8ae85421 12444fi
81ecdfbb 12445
ab2af25e
AM
12446if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12447 as_fn_error $? "conditional \"AMDEP\" was never defined.
12448Usually this means the macro was only invoked conditionally." "$LINENO" 5
12449fi
12450if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12451 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12452Usually this means the macro was only invoked conditionally." "$LINENO" 5
12453fi
8ae85421 12454if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
d0ac1c44 12455 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
81ecdfbb 12456Usually this means the macro was only invoked conditionally." "$LINENO" 5
8ae85421
AM
12457fi
12458if test -z "${INSTALL_LIBBFD_TRUE}" && test -z "${INSTALL_LIBBFD_FALSE}"; then
d0ac1c44 12459 as_fn_error $? "conditional \"INSTALL_LIBBFD\" was never defined.
81ecdfbb 12460Usually this means the macro was only invoked conditionally." "$LINENO" 5
8ae85421
AM
12461fi
12462if test -z "${CGEN_MAINT_TRUE}" && test -z "${CGEN_MAINT_FALSE}"; then
d0ac1c44 12463 as_fn_error $? "conditional \"CGEN_MAINT\" was never defined.
81ecdfbb 12464Usually this means the macro was only invoked conditionally." "$LINENO" 5
8ae85421 12465fi
979273e3 12466
d0ac1c44 12467: "${CONFIG_STATUS=./config.status}"
81ecdfbb 12468ac_write_fail=0
979273e3
NN
12469ac_clean_files_save=$ac_clean_files
12470ac_clean_files="$ac_clean_files $CONFIG_STATUS"
81ecdfbb
RW
12471{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12472$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12473as_write_fail=0
12474cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
979273e3
NN
12475#! $SHELL
12476# Generated by $as_me.
252b5132 12477# Run this file to recreate the current configuration.
252b5132 12478# Compiler output produced by configure, useful for debugging
979273e3 12479# configure, is in config.log if it exists.
252b5132 12480
979273e3
NN
12481debug=false
12482ac_cs_recheck=false
12483ac_cs_silent=false
979273e3 12484
81ecdfbb
RW
12485SHELL=\${CONFIG_SHELL-$SHELL}
12486export SHELL
12487_ASEOF
12488cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12489## -------------------- ##
12490## M4sh Initialization. ##
12491## -------------------- ##
979273e3 12492
81ecdfbb
RW
12493# Be more Bourne compatible
12494DUALCASE=1; export DUALCASE # for MKS sh
12495if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
979273e3
NN
12496 emulate sh
12497 NULLCMD=:
81ecdfbb 12498 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
979273e3
NN
12499 # is contrary to our usage. Disable this feature.
12500 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
12501 setopt NO_GLOB_SUBST
12502else
12503 case `(set -o) 2>/dev/null` in #(
12504 *posix*) :
12505 set -o posix ;; #(
12506 *) :
12507 ;;
12508esac
979273e3 12509fi
979273e3 12510
81ecdfbb
RW
12511
12512as_nl='
12513'
12514export as_nl
12515# Printing a long string crashes Solaris 7 /usr/bin/printf.
12516as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12517as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12518as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12519# Prefer a ksh shell builtin over an external printf program on Solaris,
12520# but without wasting forks for bash or zsh.
12521if test -z "$BASH_VERSION$ZSH_VERSION" \
12522 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12523 as_echo='print -r --'
12524 as_echo_n='print -rn --'
12525elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12526 as_echo='printf %s\n'
12527 as_echo_n='printf %s'
12528else
12529 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12530 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12531 as_echo_n='/usr/ucb/echo -n'
12532 else
12533 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12534 as_echo_n_body='eval
12535 arg=$1;
12536 case $arg in #(
12537 *"$as_nl"*)
12538 expr "X$arg" : "X\\(.*\\)$as_nl";
12539 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12540 esac;
12541 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12542 '
12543 export as_echo_n_body
12544 as_echo_n='sh -c $as_echo_n_body as_echo'
12545 fi
12546 export as_echo_body
12547 as_echo='sh -c $as_echo_body as_echo'
12548fi
12549
12550# The user is always right.
12551if test "${PATH_SEPARATOR+set}" != set; then
12552 PATH_SEPARATOR=:
12553 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12554 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12555 PATH_SEPARATOR=';'
12556 }
979273e3
NN
12557fi
12558
12559
81ecdfbb
RW
12560# IFS
12561# We need space, tab and new line, in precisely that order. Quoting is
12562# there to prevent editors from complaining about space-tab.
12563# (If _AS_PATH_WALK were called with IFS unset, it would disable word
12564# splitting by setting IFS to empty value.)
12565IFS=" "" $as_nl"
12566
12567# Find who we are. Look in the path if we contain no directory separator.
d0ac1c44 12568as_myself=
81ecdfbb
RW
12569case $0 in #((
12570 *[\\/]* ) as_myself=$0 ;;
12571 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12572for as_dir in $PATH
12573do
12574 IFS=$as_save_IFS
12575 test -z "$as_dir" && as_dir=.
12576 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12577 done
12578IFS=$as_save_IFS
12579
12580 ;;
12581esac
12582# We did not find ourselves, most probably we were run as `sh COMMAND'
12583# in which case we are not to be found in the path.
12584if test "x$as_myself" = x; then
12585 as_myself=$0
12586fi
12587if test ! -f "$as_myself"; then
12588 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12589 exit 1
12590fi
12591
12592# Unset variables that we do not need and which cause bugs (e.g. in
12593# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12594# suppresses any "Segmentation fault" message there. '((' could
12595# trigger a bug in pdksh 5.2.14.
12596for as_var in BASH_ENV ENV MAIL MAILPATH
12597do eval test x\${$as_var+set} = xset \
12598 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12599done
979273e3
NN
12600PS1='$ '
12601PS2='> '
12602PS4='+ '
12603
12604# NLS nuisances.
81ecdfbb
RW
12605LC_ALL=C
12606export LC_ALL
12607LANGUAGE=C
12608export LANGUAGE
12609
12610# CDPATH.
12611(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12612
12613
d0ac1c44
SM
12614# as_fn_error STATUS ERROR [LINENO LOG_FD]
12615# ----------------------------------------
81ecdfbb
RW
12616# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12617# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
d0ac1c44 12618# script with STATUS, using 1 if that was 0.
81ecdfbb
RW
12619as_fn_error ()
12620{
d0ac1c44
SM
12621 as_status=$1; test $as_status -eq 0 && as_status=1
12622 if test "$4"; then
12623 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12624 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
979273e3 12625 fi
d0ac1c44 12626 $as_echo "$as_me: error: $2" >&2
81ecdfbb
RW
12627 as_fn_exit $as_status
12628} # as_fn_error
12629
12630
12631# as_fn_set_status STATUS
12632# -----------------------
12633# Set $? to STATUS, without forking.
12634as_fn_set_status ()
12635{
12636 return $1
12637} # as_fn_set_status
12638
12639# as_fn_exit STATUS
12640# -----------------
12641# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12642as_fn_exit ()
12643{
12644 set +e
12645 as_fn_set_status $1
12646 exit $1
12647} # as_fn_exit
12648
12649# as_fn_unset VAR
12650# ---------------
12651# Portably unset VAR.
12652as_fn_unset ()
12653{
12654 { eval $1=; unset $1;}
12655}
12656as_unset=as_fn_unset
12657# as_fn_append VAR VALUE
12658# ----------------------
12659# Append the text in VALUE to the end of the definition contained in VAR. Take
12660# advantage of any shell optimizations that allow amortized linear growth over
12661# repeated appends, instead of the typical quadratic growth present in naive
12662# implementations.
12663if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12664 eval 'as_fn_append ()
12665 {
12666 eval $1+=\$2
12667 }'
12668else
12669 as_fn_append ()
12670 {
12671 eval $1=\$$1\$2
12672 }
12673fi # as_fn_append
12674
12675# as_fn_arith ARG...
12676# ------------------
12677# Perform arithmetic evaluation on the ARGs, and store the result in the
12678# global $as_val. Take advantage of shells that can avoid forks. The arguments
12679# must be portable across $(()) and expr.
12680if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12681 eval 'as_fn_arith ()
12682 {
12683 as_val=$(( $* ))
12684 }'
12685else
12686 as_fn_arith ()
12687 {
12688 as_val=`expr "$@" || test $? -eq 1`
12689 }
12690fi # as_fn_arith
12691
252b5132 12692
81ecdfbb
RW
12693if expr a : '\(a\)' >/dev/null 2>&1 &&
12694 test "X`expr 00001 : '.*\(...\)'`" = X001; then
979273e3
NN
12695 as_expr=expr
12696else
12697 as_expr=false
12698fi
12699
81ecdfbb 12700if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
979273e3
NN
12701 as_basename=basename
12702else
12703 as_basename=false
12704fi
252b5132 12705
81ecdfbb
RW
12706if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12707 as_dirname=dirname
12708else
12709 as_dirname=false
12710fi
252b5132 12711
81ecdfbb 12712as_me=`$as_basename -- "$0" ||
979273e3
NN
12713$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12714 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
12715 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12716$as_echo X/"$0" |
12717 sed '/^.*\/\([^/][^/]*\)\/*$/{
12718 s//\1/
12719 q
12720 }
12721 /^X\/\(\/\/\)$/{
12722 s//\1/
12723 q
12724 }
12725 /^X\/\(\/\).*/{
12726 s//\1/
12727 q
12728 }
12729 s/.*/./; q'`
252b5132 12730
979273e3
NN
12731# Avoid depending upon Character Ranges.
12732as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12733as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12734as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12735as_cr_digits='0123456789'
12736as_cr_alnum=$as_cr_Letters$as_cr_digits
12737
81ecdfbb
RW
12738ECHO_C= ECHO_N= ECHO_T=
12739case `echo -n x` in #(((((
12740-n*)
12741 case `echo 'xy\c'` in
12742 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12743 xy) ECHO_C='\c';;
12744 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12745 ECHO_T=' ';;
12746 esac;;
12747*)
12748 ECHO_N='-n';;
979273e3
NN
12749esac
12750
81ecdfbb
RW
12751rm -f conf$$ conf$$.exe conf$$.file
12752if test -d conf$$.dir; then
12753 rm -f conf$$.dir/conf$$.file
979273e3 12754else
81ecdfbb
RW
12755 rm -f conf$$.dir
12756 mkdir conf$$.dir 2>/dev/null
979273e3 12757fi
81ecdfbb
RW
12758if (echo >conf$$.file) 2>/dev/null; then
12759 if ln -s conf$$.file conf$$ 2>/dev/null; then
979273e3 12760 as_ln_s='ln -s'
81ecdfbb
RW
12761 # ... but there are two gotchas:
12762 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12763 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
d0ac1c44 12764 # In both cases, we have to default to `cp -pR'.
81ecdfbb 12765 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
d0ac1c44 12766 as_ln_s='cp -pR'
81ecdfbb
RW
12767 elif ln conf$$.file conf$$ 2>/dev/null; then
12768 as_ln_s=ln
12769 else
d0ac1c44 12770 as_ln_s='cp -pR'
252b5132 12771 fi
979273e3 12772else
d0ac1c44 12773 as_ln_s='cp -pR'
979273e3 12774fi
81ecdfbb
RW
12775rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12776rmdir conf$$.dir 2>/dev/null
12777
12778
12779# as_fn_mkdir_p
12780# -------------
12781# Create "$as_dir" as a directory, including parents if necessary.
12782as_fn_mkdir_p ()
12783{
12784
12785 case $as_dir in #(
12786 -*) as_dir=./$as_dir;;
12787 esac
12788 test -d "$as_dir" || eval $as_mkdir_p || {
12789 as_dirs=
12790 while :; do
12791 case $as_dir in #(
12792 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12793 *) as_qdir=$as_dir;;
12794 esac
12795 as_dirs="'$as_qdir' $as_dirs"
12796 as_dir=`$as_dirname -- "$as_dir" ||
12797$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12798 X"$as_dir" : 'X\(//\)[^/]' \| \
12799 X"$as_dir" : 'X\(//\)$' \| \
12800 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12801$as_echo X"$as_dir" |
12802 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12803 s//\1/
12804 q
12805 }
12806 /^X\(\/\/\)[^/].*/{
12807 s//\1/
12808 q
12809 }
12810 /^X\(\/\/\)$/{
12811 s//\1/
12812 q
12813 }
12814 /^X\(\/\).*/{
12815 s//\1/
12816 q
12817 }
12818 s/.*/./; q'`
12819 test -d "$as_dir" && break
12820 done
12821 test -z "$as_dirs" || eval "mkdir $as_dirs"
d0ac1c44 12822 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
979273e3 12823
81ecdfbb
RW
12824
12825} # as_fn_mkdir_p
979273e3 12826if mkdir -p . 2>/dev/null; then
81ecdfbb 12827 as_mkdir_p='mkdir -p "$as_dir"'
979273e3
NN
12828else
12829 test -d ./-p && rmdir ./-p
12830 as_mkdir_p=false
12831fi
12832
d0ac1c44
SM
12833
12834# as_fn_executable_p FILE
12835# -----------------------
12836# Test if FILE is an executable regular file.
12837as_fn_executable_p ()
12838{
12839 test -f "$1" && test -x "$1"
12840} # as_fn_executable_p
12841as_test_x='test -x'
12842as_executable_p=as_fn_executable_p
979273e3
NN
12843
12844# Sed expression to map a string onto a valid CPP name.
12845as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12846
12847# Sed expression to map a string onto a valid variable name.
12848as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12849
12850
979273e3 12851exec 6>&1
81ecdfbb
RW
12852## ----------------------------------- ##
12853## Main body of $CONFIG_STATUS script. ##
12854## ----------------------------------- ##
12855_ASEOF
12856test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
979273e3 12857
81ecdfbb
RW
12858cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12859# Save the log message, to keep $0 and so on meaningful, and to
979273e3 12860# report actual input values of CONFIG_FILES etc. instead of their
81ecdfbb
RW
12861# values after options handling.
12862ac_log="
573fe3fb 12863This file was extended by opcodes $as_me 2.36.50, which was
d0ac1c44 12864generated by GNU Autoconf 2.69. Invocation command line was
979273e3
NN
12865
12866 CONFIG_FILES = $CONFIG_FILES
12867 CONFIG_HEADERS = $CONFIG_HEADERS
12868 CONFIG_LINKS = $CONFIG_LINKS
12869 CONFIG_COMMANDS = $CONFIG_COMMANDS
12870 $ $0 $@
12871
81ecdfbb
RW
12872on `(hostname || uname -n) 2>/dev/null | sed 1q`
12873"
12874
979273e3
NN
12875_ACEOF
12876
81ecdfbb
RW
12877case $ac_config_files in *"
12878"*) set x $ac_config_files; shift; ac_config_files=$*;;
12879esac
979273e3 12880
81ecdfbb
RW
12881case $ac_config_headers in *"
12882"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12883esac
979273e3 12884
979273e3 12885
81ecdfbb
RW
12886cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12887# Files that config.status was made for.
12888config_files="$ac_config_files"
12889config_headers="$ac_config_headers"
12890config_commands="$ac_config_commands"
979273e3 12891
81ecdfbb 12892_ACEOF
979273e3 12893
81ecdfbb 12894cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
979273e3 12895ac_cs_usage="\
81ecdfbb
RW
12896\`$as_me' instantiates files and other configuration actions
12897from templates according to the current configuration. Unless the files
12898and actions are specified as TAGs, all are instantiated by default.
979273e3 12899
81ecdfbb 12900Usage: $0 [OPTION]... [TAG]...
979273e3
NN
12901
12902 -h, --help print this help, then exit
81ecdfbb 12903 -V, --version print version number and configuration settings, then exit
d0ac1c44 12904 --config print configuration, then exit
81ecdfbb
RW
12905 -q, --quiet, --silent
12906 do not print progress messages
979273e3
NN
12907 -d, --debug don't remove temporary files
12908 --recheck update $as_me by reconfiguring in the same conditions
81ecdfbb
RW
12909 --file=FILE[:TEMPLATE]
12910 instantiate the configuration file FILE
12911 --header=FILE[:TEMPLATE]
12912 instantiate the configuration header FILE
979273e3
NN
12913
12914Configuration files:
12915$config_files
12916
12917Configuration headers:
12918$config_headers
12919
12920Configuration commands:
12921$config_commands
12922
81ecdfbb 12923Report bugs to the package provider."
979273e3 12924
81ecdfbb
RW
12925_ACEOF
12926cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
d0ac1c44 12927ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
979273e3 12928ac_cs_version="\\
573fe3fb 12929opcodes config.status 2.36.50
d0ac1c44
SM
12930configured by $0, generated by GNU Autoconf 2.69,
12931 with options \\"\$ac_cs_config\\"
979273e3 12932
d0ac1c44 12933Copyright (C) 2012 Free Software Foundation, Inc.
979273e3
NN
12934This config.status script is free software; the Free Software Foundation
12935gives unlimited permission to copy, distribute and modify it."
81ecdfbb
RW
12936
12937ac_pwd='$ac_pwd'
12938srcdir='$srcdir'
12939INSTALL='$INSTALL'
12940MKDIR_P='$MKDIR_P'
12941AWK='$AWK'
12942test -n "\$AWK" || AWK=awk
979273e3
NN
12943_ACEOF
12944
81ecdfbb
RW
12945cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12946# The default lists apply if the user does not specify any file.
979273e3
NN
12947ac_need_defaults=:
12948while test $# != 0
12949do
12950 case $1 in
d0ac1c44 12951 --*=?*)
81ecdfbb
RW
12952 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12953 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
979273e3
NN
12954 ac_shift=:
12955 ;;
d0ac1c44
SM
12956 --*=)
12957 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12958 ac_optarg=
12959 ac_shift=:
12960 ;;
81ecdfbb 12961 *)
979273e3
NN
12962 ac_option=$1
12963 ac_optarg=$2
12964 ac_shift=shift
12965 ;;
979273e3
NN
12966 esac
12967
12968 case $ac_option in
12969 # Handling of the options.
979273e3
NN
12970 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12971 ac_cs_recheck=: ;;
81ecdfbb
RW
12972 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12973 $as_echo "$ac_cs_version"; exit ;;
d0ac1c44
SM
12974 --config | --confi | --conf | --con | --co | --c )
12975 $as_echo "$ac_cs_config"; exit ;;
81ecdfbb 12976 --debug | --debu | --deb | --de | --d | -d )
979273e3
NN
12977 debug=: ;;
12978 --file | --fil | --fi | --f )
12979 $ac_shift
81ecdfbb
RW
12980 case $ac_optarg in
12981 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
d0ac1c44 12982 '') as_fn_error $? "missing file argument" ;;
81ecdfbb
RW
12983 esac
12984 as_fn_append CONFIG_FILES " '$ac_optarg'"
979273e3
NN
12985 ac_need_defaults=false;;
12986 --header | --heade | --head | --hea )
12987 $ac_shift
81ecdfbb
RW
12988 case $ac_optarg in
12989 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12990 esac
12991 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
979273e3 12992 ac_need_defaults=false;;
81ecdfbb
RW
12993 --he | --h)
12994 # Conflict between --help and --header
d0ac1c44 12995 as_fn_error $? "ambiguous option: \`$1'
81ecdfbb
RW
12996Try \`$0 --help' for more information.";;
12997 --help | --hel | -h )
12998 $as_echo "$ac_cs_usage"; exit ;;
979273e3
NN
12999 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13000 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13001 ac_cs_silent=: ;;
13002
13003 # This is an error.
d0ac1c44 13004 -*) as_fn_error $? "unrecognized option: \`$1'
81ecdfbb 13005Try \`$0 --help' for more information." ;;
979273e3 13006
81ecdfbb
RW
13007 *) as_fn_append ac_config_targets " $1"
13008 ac_need_defaults=false ;;
979273e3
NN
13009
13010 esac
13011 shift
252b5132 13012done
979273e3
NN
13013
13014ac_configure_extra_args=
13015
13016if $ac_cs_silent; then
13017 exec 6>/dev/null
13018 ac_configure_extra_args="$ac_configure_extra_args --silent"
252b5132 13019fi
252b5132 13020
979273e3 13021_ACEOF
81ecdfbb 13022cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
979273e3 13023if \$ac_cs_recheck; then
d0ac1c44 13024 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
81ecdfbb
RW
13025 shift
13026 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13027 CONFIG_SHELL='$SHELL'
13028 export CONFIG_SHELL
13029 exec "\$@"
979273e3 13030fi
252b5132 13031
979273e3 13032_ACEOF
81ecdfbb
RW
13033cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13034exec 5>>config.log
13035{
13036 echo
13037 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13038## Running $as_me. ##
13039_ASBOX
13040 $as_echo "$ac_log"
13041} >&5
979273e3 13042
81ecdfbb
RW
13043_ACEOF
13044cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
979273e3 13045#
81ecdfbb 13046# INIT-COMMANDS
979273e3 13047#
8ae85421 13048AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
d7040cdb
SE
13049
13050
13051# The HP-UX ksh and POSIX shell print the target directory to stdout
13052# if CDPATH is set.
13053(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13054
13055sed_quote_subst='$sed_quote_subst'
13056double_quote_subst='$double_quote_subst'
13057delay_variable_subst='$delay_variable_subst'
3725885a
RW
13058enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13059macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13060macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13061enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13062pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13063enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13064SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13065ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13066host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13067host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13068host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13069build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13070build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13071build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13072SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13073Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13074GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13075EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13076FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13077LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13078NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13079LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13080max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13081ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13082exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13083lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13084lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13085lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13086reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13087reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13088OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13089deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13090file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13091AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13092AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13093STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13094RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13095old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13096old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13097old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13098lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13099CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13100CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13101compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13102GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13103lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13104lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13105lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13106lt_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"`'
13107objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13108MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13109lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13110lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13111lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13112lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13113lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13114need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13115DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13116NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13117LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13118OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13119OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13120libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13121shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13122extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13123archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13124enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13125export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13126whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13127compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13128old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13129old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13130archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13131archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13132module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13133module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13134with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13135allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13136no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13137hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13138hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
13139hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13140hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13141hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13142hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13143hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13144hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13145inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13146link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13147fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
13148always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13149export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13150exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13151include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13152prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13153file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13154variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13155need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13156need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13157version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13158runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13159shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13160shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13161libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13162library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13163soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13164install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13165postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13166postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13167finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13168finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13169hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13170sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13171sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13172hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13173enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13174enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13175enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13176old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13177striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
d7040cdb
SE
13178
13179LTCC='$LTCC'
13180LTCFLAGS='$LTCFLAGS'
13181compiler='$compiler_DEFAULT'
13182
3725885a
RW
13183# A function that is used when there is no print builtin or printf.
13184func_fallback_echo ()
13185{
13186 eval 'cat <<_LTECHO_EOF
13187\$1
13188_LTECHO_EOF'
13189}
13190
d7040cdb 13191# Quote evaled strings.
3725885a
RW
13192for var in SHELL \
13193ECHO \
13194SED \
d7040cdb
SE
13195GREP \
13196EGREP \
13197FGREP \
13198LD \
13199NM \
13200LN_S \
13201lt_SP2NL \
13202lt_NL2SP \
13203reload_flag \
1927a18f 13204OBJDUMP \
d7040cdb
SE
13205deplibs_check_method \
13206file_magic_cmd \
13207AR \
13208AR_FLAGS \
13209STRIP \
13210RANLIB \
13211CC \
13212CFLAGS \
13213compiler \
13214lt_cv_sys_global_symbol_pipe \
13215lt_cv_sys_global_symbol_to_cdecl \
13216lt_cv_sys_global_symbol_to_c_name_address \
1927a18f 13217lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
d7040cdb
SE
13218lt_prog_compiler_no_builtin_flag \
13219lt_prog_compiler_wl \
13220lt_prog_compiler_pic \
13221lt_prog_compiler_static \
13222lt_cv_prog_compiler_c_o \
13223need_locks \
1927a18f
L
13224DSYMUTIL \
13225NMEDIT \
13226LIPO \
13227OTOOL \
13228OTOOL64 \
d7040cdb
SE
13229shrext_cmds \
13230export_dynamic_flag_spec \
13231whole_archive_flag_spec \
13232compiler_needs_object \
13233with_gnu_ld \
13234allow_undefined_flag \
13235no_undefined_flag \
13236hardcode_libdir_flag_spec \
13237hardcode_libdir_flag_spec_ld \
13238hardcode_libdir_separator \
13239fix_srcfile_path \
13240exclude_expsyms \
13241include_expsyms \
13242file_list_spec \
13243variables_saved_for_relink \
13244libname_spec \
13245library_names_spec \
13246soname_spec \
3725885a 13247install_override_mode \
d7040cdb
SE
13248finish_eval \
13249old_striplib \
13250striplib; do
3725885a 13251 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
d7040cdb 13252 *[\\\\\\\`\\"\\\$]*)
3725885a 13253 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
d7040cdb
SE
13254 ;;
13255 *)
13256 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13257 ;;
13258 esac
13259done
13260
13261# Double-quote double-evaled strings.
13262for var in reload_cmds \
13263old_postinstall_cmds \
13264old_postuninstall_cmds \
13265old_archive_cmds \
13266extract_expsyms_cmds \
13267old_archive_from_new_cmds \
13268old_archive_from_expsyms_cmds \
13269archive_cmds \
13270archive_expsym_cmds \
13271module_cmds \
13272module_expsym_cmds \
13273export_symbols_cmds \
13274prelink_cmds \
13275postinstall_cmds \
13276postuninstall_cmds \
13277finish_cmds \
13278sys_lib_search_path_spec \
13279sys_lib_dlsearch_path_spec; do
3725885a 13280 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
d7040cdb 13281 *[\\\\\\\`\\"\\\$]*)
3725885a 13282 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
d7040cdb
SE
13283 ;;
13284 *)
13285 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13286 ;;
13287 esac
13288done
13289
d7040cdb
SE
13290ac_aux_dir='$ac_aux_dir'
13291xsi_shell='$xsi_shell'
13292lt_shell_append='$lt_shell_append'
13293
13294# See if we are running on zsh, and set the options which allow our
13295# commands through without removal of \ escapes INIT.
13296if test -n "\${ZSH_VERSION+set}" ; then
13297 setopt NO_GLOB_SUBST
13298fi
13299
13300
13301 PACKAGE='$PACKAGE'
13302 VERSION='$VERSION'
13303 TIMESTAMP='$TIMESTAMP'
13304 RM='$RM'
13305 ofile='$ofile'
13306
13307
13308
20e95c23
DJ
13309# Capture the value of obsolete ALL_LINGUAS because we need it to compute
13310 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
13311 # from automake.
13312 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
13313 # Capture the value of LINGUAS because we need it to compute CATALOGS.
13314 LINGUAS="${LINGUAS-%UNSET%}"
979273e3
NN
13315
13316
13317_ACEOF
13318
81ecdfbb 13319cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
979273e3 13320
81ecdfbb 13321# Handling of arguments.
979273e3
NN
13322for ac_config_target in $ac_config_targets
13323do
81ecdfbb
RW
13324 case $ac_config_target in
13325 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13326 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13327 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
13328 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
13329 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13330 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
13331
d0ac1c44 13332 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
252b5132 13333 esac
979273e3 13334done
252b5132 13335
81ecdfbb 13336
979273e3
NN
13337# If the user did not use the arguments to specify the items to instantiate,
13338# then the envvar interface is used. Set only those that are not.
13339# We use the long form for the default assignment because of an extremely
13340# bizarre bug on SunOS 4.1.3.
13341if $ac_need_defaults; then
13342 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13343 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13344 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13345fi
13346
13347# Have a temporary directory for convenience. Make it in the build tree
81ecdfbb 13348# simply because there is no reason against having it here, and in addition,
979273e3 13349# creating and moving files from /tmp can sometimes cause problems.
81ecdfbb
RW
13350# Hook for its removal unless debugging.
13351# Note that there is a small window in which the directory will not be cleaned:
13352# after its creation but before its name has been assigned to `$tmp'.
979273e3
NN
13353$debug ||
13354{
d0ac1c44 13355 tmp= ac_tmp=
81ecdfbb 13356 trap 'exit_status=$?
d0ac1c44
SM
13357 : "${ac_tmp:=$tmp}"
13358 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
81ecdfbb
RW
13359' 0
13360 trap 'as_fn_exit 1' 1 2 13 15
979273e3 13361}
979273e3
NN
13362# Create a (secure) tmp directory for tmp files.
13363
13364{
81ecdfbb 13365 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
d0ac1c44 13366 test -d "$tmp"
979273e3
NN
13367} ||
13368{
81ecdfbb
RW
13369 tmp=./conf$$-$RANDOM
13370 (umask 077 && mkdir "$tmp")
d0ac1c44
SM
13371} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13372ac_tmp=$tmp
81ecdfbb
RW
13373
13374# Set up the scripts for CONFIG_FILES section.
13375# No need to generate them if there are no CONFIG_FILES.
13376# This happens for instance with `./config.status config.h'.
13377if test -n "$CONFIG_FILES"; then
13378
13379
13380ac_cr=`echo X | tr X '\015'`
13381# On cygwin, bash can eat \r inside `` if the user requested igncr.
13382# But we know of no other shell where ac_cr would be empty at this
13383# point, so we can use a bashism as a fallback.
13384if test "x$ac_cr" = x; then
13385 eval ac_cr=\$\'\\r\'
13386fi
13387ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13388if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
d0ac1c44 13389 ac_cs_awk_cr='\\r'
81ecdfbb
RW
13390else
13391 ac_cs_awk_cr=$ac_cr
13392fi
13393
d0ac1c44 13394echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
81ecdfbb
RW
13395_ACEOF
13396
13397
13398{
13399 echo "cat >conf$$subs.awk <<_ACEOF" &&
13400 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13401 echo "_ACEOF"
13402} >conf$$subs.sh ||
d0ac1c44
SM
13403 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13404ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
81ecdfbb
RW
13405ac_delim='%!_!# '
13406for ac_last_try in false false false false false :; do
13407 . ./conf$$subs.sh ||
d0ac1c44 13408 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
81ecdfbb
RW
13409
13410 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13411 if test $ac_delim_n = $ac_delim_num; then
13412 break
13413 elif $ac_last_try; then
d0ac1c44 13414 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
81ecdfbb
RW
13415 else
13416 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13417 fi
13418done
13419rm -f conf$$subs.sh
13420
13421cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
d0ac1c44 13422cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
81ecdfbb
RW
13423_ACEOF
13424sed -n '
13425h
13426s/^/S["/; s/!.*/"]=/
13427p
13428g
13429s/^[^!]*!//
13430:repl
13431t repl
13432s/'"$ac_delim"'$//
13433t delim
13434:nl
13435h
d0ac1c44 13436s/\(.\{148\}\)..*/\1/
81ecdfbb
RW
13437t more1
13438s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13439p
13440n
13441b repl
13442:more1
13443s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13444p
13445g
13446s/.\{148\}//
13447t nl
13448:delim
13449h
d0ac1c44 13450s/\(.\{148\}\)..*/\1/
81ecdfbb
RW
13451t more2
13452s/["\\]/\\&/g; s/^/"/; s/$/"/
13453p
13454b
13455:more2
13456s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13457p
13458g
13459s/.\{148\}//
13460t delim
13461' <conf$$subs.awk | sed '
13462/^[^""]/{
13463 N
13464 s/\n//
13465}
13466' >>$CONFIG_STATUS || ac_write_fail=1
13467rm -f conf$$subs.awk
13468cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13469_ACAWK
d0ac1c44 13470cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
81ecdfbb
RW
13471 for (key in S) S_is_set[key] = 1
13472 FS = "\a"
13473
13474}
979273e3 13475{
81ecdfbb
RW
13476 line = $ 0
13477 nfields = split(line, field, "@")
13478 substed = 0
13479 len = length(field[1])
13480 for (i = 2; i < nfields; i++) {
13481 key = field[i]
13482 keylen = length(key)
13483 if (S_is_set[key]) {
13484 value = S[key]
13485 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13486 len += length(value) + length(field[++i])
13487 substed = 1
13488 } else
13489 len += 1 + keylen
13490 }
13491
13492 print line
979273e3
NN
13493}
13494
81ecdfbb
RW
13495_ACAWK
13496_ACEOF
13497cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13498if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13499 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13500else
13501 cat
d0ac1c44
SM
13502fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13503 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
979273e3
NN
13504_ACEOF
13505
d0ac1c44
SM
13506# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13507# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
81ecdfbb
RW
13508# trailing colons and then remove the whole line if VPATH becomes empty
13509# (actually we leave an empty line to preserve line numbers).
13510if test "x$srcdir" = x.; then
d0ac1c44
SM
13511 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
13512h
13513s///
13514s/^/:/
13515s/[ ]*$/:/
13516s/:\$(srcdir):/:/g
13517s/:\${srcdir}:/:/g
13518s/:@srcdir@:/:/g
13519s/^:*//
81ecdfbb 13520s/:*$//
d0ac1c44
SM
13521x
13522s/\(=[ ]*\).*/\1/
13523G
13524s/\n//
81ecdfbb
RW
13525s/^[^=]*=[ ]*$//
13526}'
13527fi
13528
13529cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13530fi # test -n "$CONFIG_FILES"
979273e3 13531
81ecdfbb
RW
13532# Set up the scripts for CONFIG_HEADERS section.
13533# No need to generate them if there are no CONFIG_HEADERS.
13534# This happens for instance with `./config.status Makefile'.
13535if test -n "$CONFIG_HEADERS"; then
d0ac1c44 13536cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
81ecdfbb
RW
13537BEGIN {
13538_ACEOF
979273e3 13539
81ecdfbb
RW
13540# Transform confdefs.h into an awk script `defines.awk', embedded as
13541# here-document in config.status, that substitutes the proper values into
13542# config.h.in to produce config.h.
979273e3 13543
81ecdfbb
RW
13544# Create a delimiter string that does not exist in confdefs.h, to ease
13545# handling of long lines.
13546ac_delim='%!_!# '
13547for ac_last_try in false false :; do
d0ac1c44
SM
13548 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13549 if test -z "$ac_tt"; then
81ecdfbb
RW
13550 break
13551 elif $ac_last_try; then
d0ac1c44 13552 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
81ecdfbb
RW
13553 else
13554 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13555 fi
13556done
13557
13558# For the awk script, D is an array of macro values keyed by name,
13559# likewise P contains macro parameters if any. Preserve backslash
13560# newline sequences.
13561
13562ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13563sed -n '
13564s/.\{148\}/&'"$ac_delim"'/g
13565t rset
13566:rset
13567s/^[ ]*#[ ]*define[ ][ ]*/ /
13568t def
13569d
13570:def
13571s/\\$//
13572t bsnl
13573s/["\\]/\\&/g
13574s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13575D["\1"]=" \3"/p
13576s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13577d
13578:bsnl
13579s/["\\]/\\&/g
13580s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13581D["\1"]=" \3\\\\\\n"\\/p
13582t cont
13583s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13584t cont
13585d
13586:cont
13587n
13588s/.\{148\}/&'"$ac_delim"'/g
13589t clear
13590:clear
13591s/\\$//
13592t bsnlc
13593s/["\\]/\\&/g; s/^/"/; s/$/"/p
13594d
13595:bsnlc
13596s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13597b cont
13598' <confdefs.h | sed '
13599s/'"$ac_delim"'/"\\\
13600"/g' >>$CONFIG_STATUS || ac_write_fail=1
13601
13602cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13603 for (key in D) D_is_set[key] = 1
13604 FS = "\a"
13605}
13606/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13607 line = \$ 0
13608 split(line, arg, " ")
13609 if (arg[1] == "#") {
13610 defundef = arg[2]
13611 mac1 = arg[3]
13612 } else {
13613 defundef = substr(arg[1], 2)
13614 mac1 = arg[2]
13615 }
13616 split(mac1, mac2, "(") #)
13617 macro = mac2[1]
13618 prefix = substr(line, 1, index(line, defundef) - 1)
13619 if (D_is_set[macro]) {
13620 # Preserve the white space surrounding the "#".
13621 print prefix "define", macro P[macro] D[macro]
13622 next
13623 } else {
13624 # Replace #undef with comments. This is necessary, for example,
13625 # in the case of _POSIX_SOURCE, which is predefined and required
13626 # on some systems where configure will not decide to define it.
13627 if (defundef == "undef") {
13628 print "/*", prefix defundef, macro, "*/"
13629 next
13630 }
13631 }
13632}
13633{ print }
13634_ACAWK
979273e3 13635_ACEOF
81ecdfbb 13636cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
d0ac1c44 13637 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
81ecdfbb 13638fi # test -n "$CONFIG_HEADERS"
979273e3 13639
81ecdfbb
RW
13640
13641eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13642shift
13643for ac_tag
13644do
13645 case $ac_tag in
13646 :[FHLC]) ac_mode=$ac_tag; continue;;
13647 esac
13648 case $ac_mode$ac_tag in
13649 :[FHL]*:*);;
d0ac1c44 13650 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
81ecdfbb
RW
13651 :[FH]-) ac_tag=-:-;;
13652 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13653 esac
13654 ac_save_IFS=$IFS
13655 IFS=:
13656 set x $ac_tag
13657 IFS=$ac_save_IFS
13658 shift
13659 ac_file=$1
13660 shift
13661
13662 case $ac_mode in
13663 :L) ac_source=$1;;
13664 :[FH])
13665 ac_file_inputs=
13666 for ac_f
13667 do
13668 case $ac_f in
d0ac1c44 13669 -) ac_f="$ac_tmp/stdin";;
81ecdfbb
RW
13670 *) # Look for the file first in the build tree, then in the source tree
13671 # (if the path is not absolute). The absolute path cannot be DOS-style,
13672 # because $ac_f cannot contain `:'.
13673 test -f "$ac_f" ||
13674 case $ac_f in
13675 [\\/$]*) false;;
13676 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13677 esac ||
d0ac1c44 13678 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
81ecdfbb
RW
13679 esac
13680 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13681 as_fn_append ac_file_inputs " '$ac_f'"
13682 done
13683
13684 # Let's still pretend it is `configure' which instantiates (i.e., don't
13685 # use $as_me), people would be surprised to read:
13686 # /* config.h. Generated by config.status. */
13687 configure_input='Generated from '`
13688 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13689 `' by configure.'
13690 if test x"$ac_file" != x-; then
13691 configure_input="$ac_file. $configure_input"
13692 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13693$as_echo "$as_me: creating $ac_file" >&6;}
979273e3 13694 fi
81ecdfbb
RW
13695 # Neutralize special characters interpreted by sed in replacement strings.
13696 case $configure_input in #(
13697 *\&* | *\|* | *\\* )
13698 ac_sed_conf_input=`$as_echo "$configure_input" |
13699 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13700 *) ac_sed_conf_input=$configure_input;;
13701 esac
252b5132 13702
81ecdfbb 13703 case $ac_tag in
d0ac1c44
SM
13704 *:-:* | *:-) cat >"$ac_tmp/stdin" \
13705 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
81ecdfbb
RW
13706 esac
13707 ;;
252b5132
RH
13708 esac
13709
81ecdfbb 13710 ac_dir=`$as_dirname -- "$ac_file" ||
979273e3
NN
13711$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13712 X"$ac_file" : 'X\(//\)[^/]' \| \
13713 X"$ac_file" : 'X\(//\)$' \| \
81ecdfbb
RW
13714 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13715$as_echo X"$ac_file" |
13716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13717 s//\1/
13718 q
13719 }
13720 /^X\(\/\/\)[^/].*/{
13721 s//\1/
13722 q
13723 }
13724 /^X\(\/\/\)$/{
13725 s//\1/
13726 q
13727 }
13728 /^X\(\/\).*/{
13729 s//\1/
13730 q
13731 }
13732 s/.*/./; q'`
13733 as_dir="$ac_dir"; as_fn_mkdir_p
979273e3
NN
13734 ac_builddir=.
13735
81ecdfbb
RW
13736case "$ac_dir" in
13737.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13738*)
13739 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13740 # A ".." for each directory in $ac_dir_suffix.
13741 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13742 case $ac_top_builddir_sub in
13743 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13744 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13745 esac ;;
13746esac
13747ac_abs_top_builddir=$ac_pwd
13748ac_abs_builddir=$ac_pwd$ac_dir_suffix
13749# for backward compatibility:
13750ac_top_builddir=$ac_top_build_prefix
979273e3
NN
13751
13752case $srcdir in
81ecdfbb 13753 .) # We are building in place.
979273e3 13754 ac_srcdir=.
81ecdfbb
RW
13755 ac_top_srcdir=$ac_top_builddir_sub
13756 ac_abs_top_srcdir=$ac_pwd ;;
13757 [\\/]* | ?:[\\/]* ) # Absolute name.
979273e3 13758 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
13759 ac_top_srcdir=$srcdir
13760 ac_abs_top_srcdir=$srcdir ;;
13761 *) # Relative name.
13762 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13763 ac_top_srcdir=$ac_top_build_prefix$srcdir
13764 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
979273e3 13765esac
81ecdfbb 13766ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
979273e3 13767
252b5132 13768
81ecdfbb
RW
13769 case $ac_mode in
13770 :F)
13771 #
13772 # CONFIG_FILE
13773 #
979273e3
NN
13774
13775 case $INSTALL in
13776 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
81ecdfbb
RW
13777 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13778 esac
13779 ac_MKDIR_P=$MKDIR_P
13780 case $MKDIR_P in
13781 [\\/$]* | ?:[\\/]* ) ;;
13782 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
252b5132 13783 esac
81ecdfbb 13784_ACEOF
252b5132 13785
81ecdfbb
RW
13786cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13787# If the template does not know about datarootdir, expand it.
13788# FIXME: This hack should be removed a few years after 2.60.
13789ac_datarootdir_hack=; ac_datarootdir_seen=
13790ac_sed_dataroot='
13791/datarootdir/ {
13792 p
13793 q
13794}
13795/@datadir@/p
13796/@docdir@/p
13797/@infodir@/p
13798/@localedir@/p
13799/@mandir@/p'
13800case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13801*datarootdir*) ac_datarootdir_seen=yes;;
13802*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13803 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13804$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13805_ACEOF
13806cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13807 ac_datarootdir_hack='
13808 s&@datadir@&$datadir&g
13809 s&@docdir@&$docdir&g
13810 s&@infodir@&$infodir&g
13811 s&@localedir@&$localedir&g
13812 s&@mandir@&$mandir&g
13813 s&\\\${datarootdir}&$datarootdir&g' ;;
13814esac
979273e3 13815_ACEOF
81ecdfbb
RW
13816
13817# Neutralize VPATH when `$srcdir' = `.'.
13818# Shell code in configure.ac might set extrasub.
13819# FIXME: do we really want to maintain this feature?
13820cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13821ac_sed_extra="$ac_vpsub
979273e3
NN
13822$extrasub
13823_ACEOF
81ecdfbb 13824cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
979273e3
NN
13825:t
13826/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
81ecdfbb
RW
13827s|@configure_input@|$ac_sed_conf_input|;t t
13828s&@top_builddir@&$ac_top_builddir_sub&;t t
13829s&@top_build_prefix@&$ac_top_build_prefix&;t t
13830s&@srcdir@&$ac_srcdir&;t t
13831s&@abs_srcdir@&$ac_abs_srcdir&;t t
13832s&@top_srcdir@&$ac_top_srcdir&;t t
13833s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13834s&@builddir@&$ac_builddir&;t t
13835s&@abs_builddir@&$ac_abs_builddir&;t t
13836s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13837s&@INSTALL@&$ac_INSTALL&;t t
13838s&@MKDIR_P@&$ac_MKDIR_P&;t t
13839$ac_datarootdir_hack
13840"
d0ac1c44
SM
13841eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13842 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
81ecdfbb
RW
13843
13844test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
d0ac1c44
SM
13845 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13846 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
13847 "$ac_tmp/out"`; test -z "$ac_out"; } &&
81ecdfbb 13848 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
d0ac1c44 13849which seems to be undefined. Please make sure it is defined" >&5
81ecdfbb 13850$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
d0ac1c44 13851which seems to be undefined. Please make sure it is defined" >&2;}
81ecdfbb 13852
d0ac1c44 13853 rm -f "$ac_tmp/stdin"
979273e3 13854 case $ac_file in
d0ac1c44
SM
13855 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13856 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
81ecdfbb 13857 esac \
d0ac1c44 13858 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
81ecdfbb
RW
13859 ;;
13860 :H)
13861 #
13862 # CONFIG_HEADER
13863 #
979273e3 13864 if test x"$ac_file" != x-; then
81ecdfbb
RW
13865 {
13866 $as_echo "/* $configure_input */" \
d0ac1c44
SM
13867 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13868 } >"$ac_tmp/config.h" \
13869 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13870 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
81ecdfbb
RW
13871 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13872$as_echo "$as_me: $ac_file is unchanged" >&6;}
979273e3 13873 else
81ecdfbb 13874 rm -f "$ac_file"
d0ac1c44
SM
13875 mv "$ac_tmp/config.h" "$ac_file" \
13876 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
252b5132 13877 fi
979273e3 13878 else
81ecdfbb 13879 $as_echo "/* $configure_input */" \
d0ac1c44
SM
13880 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13881 || as_fn_error $? "could not create -" "$LINENO" 5
252b5132 13882 fi
81ecdfbb
RW
13883# Compute "$ac_file"'s index in $config_headers.
13884_am_arg="$ac_file"
8ae85421
AM
13885_am_stamp_count=1
13886for _am_header in $config_headers :; do
13887 case $_am_header in
81ecdfbb 13888 $_am_arg | $_am_arg:* )
8ae85421
AM
13889 break ;;
13890 * )
13891 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13892 esac
13893done
81ecdfbb
RW
13894echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13895$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13896 X"$_am_arg" : 'X\(//\)[^/]' \| \
13897 X"$_am_arg" : 'X\(//\)$' \| \
13898 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13899$as_echo X"$_am_arg" |
13900 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13901 s//\1/
13902 q
13903 }
13904 /^X\(\/\/\)[^/].*/{
13905 s//\1/
13906 q
13907 }
13908 /^X\(\/\/\)$/{
13909 s//\1/
13910 q
13911 }
13912 /^X\(\/\).*/{
13913 s//\1/
13914 q
13915 }
13916 s/.*/./; q'`/stamp-h$_am_stamp_count
13917 ;;
979273e3 13918
81ecdfbb
RW
13919 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13920$as_echo "$as_me: executing $ac_file commands" >&6;}
13921 ;;
13922 esac
979273e3
NN
13923
13924
81ecdfbb
RW
13925 case $ac_file$ac_mode in
13926 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
d0ac1c44 13927 # Older Autoconf quotes --file arguments for eval, but not when files
81ecdfbb
RW
13928 # are listed without --file. Let's play safe and only enable the eval
13929 # if we detect the quoting.
13930 case $CONFIG_FILES in
13931 *\'*) eval set x "$CONFIG_FILES" ;;
13932 *) set x $CONFIG_FILES ;;
13933 esac
13934 shift
13935 for mf
13936 do
13937 # Strip MF so we end up with the name of the file.
13938 mf=`echo "$mf" | sed -e 's/:.*$//'`
13939 # Check whether this is an Automake generated Makefile or not.
d0ac1c44 13940 # We used to match only the files named 'Makefile.in', but
81ecdfbb
RW
13941 # some people rename them; so instead we look at the file content.
13942 # Grep'ing the first line is not enough: some people post-process
13943 # each Makefile.in and add a new line on top of each file to say so.
13944 # Grep'ing the whole file is not good either: AIX grep has a line
13945 # limit of 2048, but all sed's we know have understand at least 4000.
13946 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
13947 dirpart=`$as_dirname -- "$mf" ||
8ae85421
AM
13948$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13949 X"$mf" : 'X\(//\)[^/]' \| \
13950 X"$mf" : 'X\(//\)$' \| \
81ecdfbb
RW
13951 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
13952$as_echo X"$mf" |
13953 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13954 s//\1/
13955 q
13956 }
13957 /^X\(\/\/\)[^/].*/{
13958 s//\1/
13959 q
13960 }
13961 /^X\(\/\/\)$/{
13962 s//\1/
13963 q
13964 }
13965 /^X\(\/\).*/{
13966 s//\1/
13967 q
13968 }
13969 s/.*/./; q'`
13970 else
13971 continue
13972 fi
13973 # Extract the definition of DEPDIR, am__include, and am__quote
d0ac1c44 13974 # from the Makefile without running 'make'.
81ecdfbb
RW
13975 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13976 test -z "$DEPDIR" && continue
13977 am__include=`sed -n 's/^am__include = //p' < "$mf"`
d0ac1c44 13978 test -z "$am__include" && continue
81ecdfbb 13979 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
81ecdfbb
RW
13980 # Find all dependency output files, they are included files with
13981 # $(DEPDIR) in their names. We invoke sed twice because it is the
13982 # simplest approach to changing $(DEPDIR) to its actual value in the
13983 # expansion.
13984 for file in `sed -n "
13985 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
d0ac1c44 13986 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
81ecdfbb
RW
13987 # Make sure the directory exists.
13988 test -f "$dirpart/$file" && continue
13989 fdir=`$as_dirname -- "$file" ||
8ae85421
AM
13990$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13991 X"$file" : 'X\(//\)[^/]' \| \
13992 X"$file" : 'X\(//\)$' \| \
81ecdfbb
RW
13993 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
13994$as_echo X"$file" |
13995 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13996 s//\1/
13997 q
13998 }
13999 /^X\(\/\/\)[^/].*/{
14000 s//\1/
14001 q
14002 }
14003 /^X\(\/\/\)$/{
14004 s//\1/
14005 q
14006 }
14007 /^X\(\/\).*/{
14008 s//\1/
14009 q
14010 }
14011 s/.*/./; q'`
14012 as_dir=$dirpart/$fdir; as_fn_mkdir_p
14013 # echo "creating $dirpart/$file"
14014 echo '# dummy' > "$dirpart/$file"
8ae85421 14015 done
8ae85421 14016 done
81ecdfbb 14017}
d7040cdb 14018 ;;
81ecdfbb 14019 "libtool":C)
d7040cdb
SE
14020
14021 # See if we are running on zsh, and set the options which allow our
14022 # commands through without removal of \ escapes.
14023 if test -n "${ZSH_VERSION+set}" ; then
14024 setopt NO_GLOB_SUBST
14025 fi
14026
14027 cfgfile="${ofile}T"
14028 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14029 $RM "$cfgfile"
14030
14031 cat <<_LT_EOF >> "$cfgfile"
14032#! $SHELL
14033
14034# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
1927a18f 14035# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
d7040cdb
SE
14036# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14037# NOTE: Changes made to this file will be lost: look at ltmain.sh.
14038#
1927a18f 14039# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
3725885a 14040# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
1927a18f 14041# Written by Gordon Matzigkeit, 1996
d7040cdb 14042#
1927a18f 14043# This file is part of GNU Libtool.
d7040cdb 14044#
1927a18f
L
14045# GNU Libtool is free software; you can redistribute it and/or
14046# modify it under the terms of the GNU General Public License as
14047# published by the Free Software Foundation; either version 2 of
14048# the License, or (at your option) any later version.
d7040cdb 14049#
1927a18f
L
14050# As a special exception to the GNU General Public License,
14051# if you distribute this file as part of a program or library that
14052# is built using GNU Libtool, you may include this file under the
14053# same distribution terms that you use for the rest of that program.
d7040cdb 14054#
1927a18f
L
14055# GNU Libtool is distributed in the hope that it will be useful,
14056# but WITHOUT ANY WARRANTY; without even the implied warranty of
14057# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14058# GNU General Public License for more details.
d7040cdb 14059#
1927a18f
L
14060# You should have received a copy of the GNU General Public License
14061# along with GNU Libtool; see the file COPYING. If not, a copy
14062# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14063# obtained by writing to the Free Software Foundation, Inc.,
14064# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
d7040cdb
SE
14065
14066
14067# The names of the tagged configurations supported by this script.
14068available_tags=""
14069
14070# ### BEGIN LIBTOOL CONFIG
14071
14072# Whether or not to build shared libraries.
14073build_libtool_libs=$enable_shared
14074
14075# Which release of libtool.m4 was used?
14076macro_version=$macro_version
14077macro_revision=$macro_revision
14078
14079# Whether or not to build static libraries.
14080build_old_libs=$enable_static
14081
14082# What type of objects to build.
14083pic_mode=$pic_mode
14084
14085# Whether or not to optimize for fast installation.
14086fast_install=$enable_fast_install
14087
3725885a
RW
14088# Shell to use when invoking shell scripts.
14089SHELL=$lt_SHELL
14090
14091# An echo program that protects backslashes.
14092ECHO=$lt_ECHO
14093
d7040cdb
SE
14094# The host system.
14095host_alias=$host_alias
14096host=$host
14097host_os=$host_os
14098
14099# The build system.
14100build_alias=$build_alias
14101build=$build
14102build_os=$build_os
14103
14104# A sed program that does not truncate output.
14105SED=$lt_SED
14106
14107# Sed that helps us avoid accidentally triggering echo(1) options like -n.
14108Xsed="\$SED -e 1s/^X//"
14109
14110# A grep program that handles long lines.
14111GREP=$lt_GREP
14112
14113# An ERE matcher.
14114EGREP=$lt_EGREP
14115
14116# A literal string matcher.
14117FGREP=$lt_FGREP
14118
14119# A BSD- or MS-compatible name lister.
14120NM=$lt_NM
14121
14122# Whether we need soft or hard links.
14123LN_S=$lt_LN_S
14124
14125# What is the maximum length of a command?
14126max_cmd_len=$max_cmd_len
14127
14128# Object file suffix (normally "o").
14129objext=$ac_objext
14130
14131# Executable file suffix (normally "").
14132exeext=$exeext
14133
14134# whether the shell understands "unset".
14135lt_unset=$lt_unset
14136
14137# turn spaces into newlines.
14138SP2NL=$lt_lt_SP2NL
14139
14140# turn newlines into spaces.
14141NL2SP=$lt_lt_NL2SP
14142
1927a18f
L
14143# An object symbol dumper.
14144OBJDUMP=$lt_OBJDUMP
14145
d7040cdb
SE
14146# Method to check whether dependent libraries are shared objects.
14147deplibs_check_method=$lt_deplibs_check_method
14148
14149# Command to use when deplibs_check_method == "file_magic".
14150file_magic_cmd=$lt_file_magic_cmd
14151
14152# The archiver.
14153AR=$lt_AR
14154AR_FLAGS=$lt_AR_FLAGS
14155
14156# A symbol stripping program.
14157STRIP=$lt_STRIP
14158
14159# Commands used to install an old-style archive.
14160RANLIB=$lt_RANLIB
14161old_postinstall_cmds=$lt_old_postinstall_cmds
14162old_postuninstall_cmds=$lt_old_postuninstall_cmds
14163
3725885a
RW
14164# Whether to use a lock for old archive extraction.
14165lock_old_archive_extraction=$lock_old_archive_extraction
14166
d7040cdb
SE
14167# A C compiler.
14168LTCC=$lt_CC
14169
14170# LTCC compiler flags.
14171LTCFLAGS=$lt_CFLAGS
14172
14173# Take the output of nm and produce a listing of raw symbols and C names.
14174global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14175
14176# Transform the output of nm in a proper C declaration.
14177global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14178
14179# Transform the output of nm in a C name address pair.
14180global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14181
1927a18f
L
14182# Transform the output of nm in a C name address pair when lib prefix is needed.
14183global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14184
d7040cdb
SE
14185# The name of the directory that contains temporary libtool files.
14186objdir=$objdir
14187
d7040cdb
SE
14188# Used to examine libraries when file_magic_cmd begins with "file".
14189MAGIC_CMD=$MAGIC_CMD
14190
14191# Must we lock files when doing compilation?
14192need_locks=$lt_need_locks
14193
1927a18f
L
14194# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14195DSYMUTIL=$lt_DSYMUTIL
14196
14197# Tool to change global to local symbols on Mac OS X.
14198NMEDIT=$lt_NMEDIT
14199
14200# Tool to manipulate fat objects and archives on Mac OS X.
14201LIPO=$lt_LIPO
14202
14203# ldd/readelf like tool for Mach-O binaries on Mac OS X.
14204OTOOL=$lt_OTOOL
14205
14206# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14207OTOOL64=$lt_OTOOL64
14208
d7040cdb
SE
14209# Old archive suffix (normally "a").
14210libext=$libext
14211
14212# Shared library suffix (normally ".so").
14213shrext_cmds=$lt_shrext_cmds
14214
14215# The commands to extract the exported symbol list from a shared archive.
14216extract_expsyms_cmds=$lt_extract_expsyms_cmds
14217
14218# Variables whose values should be saved in libtool wrapper scripts and
14219# restored at link time.
14220variables_saved_for_relink=$lt_variables_saved_for_relink
14221
14222# Do we need the "lib" prefix for modules?
14223need_lib_prefix=$need_lib_prefix
14224
14225# Do we need a version for libraries?
14226need_version=$need_version
14227
14228# Library versioning type.
14229version_type=$version_type
14230
14231# Shared library runtime path variable.
14232runpath_var=$runpath_var
14233
14234# Shared library path variable.
14235shlibpath_var=$shlibpath_var
14236
14237# Is shlibpath searched before the hard-coded library search path?
14238shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14239
14240# Format of library name prefix.
14241libname_spec=$lt_libname_spec
14242
14243# List of archive names. First name is the real one, the rest are links.
14244# The last name is the one that the linker finds with -lNAME
14245library_names_spec=$lt_library_names_spec
14246
14247# The coded name of the library, if different from the real name.
14248soname_spec=$lt_soname_spec
14249
3725885a
RW
14250# Permission mode override for installation of shared libraries.
14251install_override_mode=$lt_install_override_mode
14252
d7040cdb
SE
14253# Command to use after installation of a shared archive.
14254postinstall_cmds=$lt_postinstall_cmds
14255
14256# Command to use after uninstallation of a shared archive.
14257postuninstall_cmds=$lt_postuninstall_cmds
14258
14259# Commands used to finish a libtool library installation in a directory.
14260finish_cmds=$lt_finish_cmds
14261
14262# As "finish_cmds", except a single script fragment to be evaled but
14263# not shown.
14264finish_eval=$lt_finish_eval
14265
14266# Whether we should hardcode library paths into libraries.
14267hardcode_into_libs=$hardcode_into_libs
14268
14269# Compile-time system search path for libraries.
14270sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14271
14272# Run-time system search path for libraries.
14273sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14274
14275# Whether dlopen is supported.
14276dlopen_support=$enable_dlopen
14277
14278# Whether dlopen of programs is supported.
14279dlopen_self=$enable_dlopen_self
14280
14281# Whether dlopen of statically linked programs is supported.
14282dlopen_self_static=$enable_dlopen_self_static
14283
14284# Commands to strip libraries.
14285old_striplib=$lt_old_striplib
14286striplib=$lt_striplib
14287
14288
14289# The linker used to build libraries.
14290LD=$lt_LD
14291
3725885a
RW
14292# How to create reloadable object files.
14293reload_flag=$lt_reload_flag
14294reload_cmds=$lt_reload_cmds
14295
d7040cdb
SE
14296# Commands used to build an old-style archive.
14297old_archive_cmds=$lt_old_archive_cmds
14298
14299# A language specific compiler.
14300CC=$lt_compiler
14301
14302# Is the compiler the GNU compiler?
14303with_gcc=$GCC
14304
14305# Compiler flag to turn off builtin functions.
14306no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14307
14308# How to pass a linker flag through the compiler.
14309wl=$lt_lt_prog_compiler_wl
14310
14311# Additional compiler flags for building library objects.
14312pic_flag=$lt_lt_prog_compiler_pic
14313
14314# Compiler flag to prevent dynamic linking.
14315link_static_flag=$lt_lt_prog_compiler_static
14316
14317# Does compiler simultaneously support -c and -o options?
14318compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14319
14320# Whether or not to add -lc for building shared libraries.
14321build_libtool_need_lc=$archive_cmds_need_lc
14322
14323# Whether or not to disallow shared libs when runtime libs are static.
14324allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14325
14326# Compiler flag to allow reflexive dlopens.
14327export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14328
14329# Compiler flag to generate shared objects directly from archives.
14330whole_archive_flag_spec=$lt_whole_archive_flag_spec
14331
14332# Whether the compiler copes with passing no objects directly.
14333compiler_needs_object=$lt_compiler_needs_object
14334
14335# Create an old-style archive from a shared archive.
14336old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14337
14338# Create a temporary old-style archive to link instead of a shared archive.
14339old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14340
14341# Commands used to build a shared archive.
14342archive_cmds=$lt_archive_cmds
14343archive_expsym_cmds=$lt_archive_expsym_cmds
14344
14345# Commands used to build a loadable module if different from building
14346# a shared archive.
14347module_cmds=$lt_module_cmds
14348module_expsym_cmds=$lt_module_expsym_cmds
14349
14350# Whether we are building with GNU ld or not.
14351with_gnu_ld=$lt_with_gnu_ld
14352
14353# Flag that allows shared libraries with undefined symbols to be built.
14354allow_undefined_flag=$lt_allow_undefined_flag
14355
14356# Flag that enforces no undefined symbols.
14357no_undefined_flag=$lt_no_undefined_flag
14358
14359# Flag to hardcode \$libdir into a binary during linking.
14360# This must work even if \$libdir does not exist
14361hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14362
14363# If ld is used when linking, flag to hardcode \$libdir into a binary
14364# during linking. This must work even if \$libdir does not exist.
14365hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14366
14367# Whether we need a single "-rpath" flag with a separated argument.
14368hardcode_libdir_separator=$lt_hardcode_libdir_separator
14369
14370# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14371# DIR into the resulting binary.
14372hardcode_direct=$hardcode_direct
14373
14374# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14375# DIR into the resulting binary and the resulting library dependency is
14376# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14377# library is relocated.
14378hardcode_direct_absolute=$hardcode_direct_absolute
14379
14380# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14381# into the resulting binary.
14382hardcode_minus_L=$hardcode_minus_L
14383
14384# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14385# into the resulting binary.
14386hardcode_shlibpath_var=$hardcode_shlibpath_var
14387
14388# Set to "yes" if building a shared library automatically hardcodes DIR
14389# into the library and all subsequent libraries and executables linked
14390# against it.
14391hardcode_automatic=$hardcode_automatic
14392
14393# Set to yes if linker adds runtime paths of dependent libraries
14394# to runtime path list.
14395inherit_rpath=$inherit_rpath
14396
14397# Whether libtool must link a program against all its dependency libraries.
14398link_all_deplibs=$link_all_deplibs
14399
14400# Fix the shell variable \$srcfile for the compiler.
14401fix_srcfile_path=$lt_fix_srcfile_path
14402
14403# Set to "yes" if exported symbols are required.
14404always_export_symbols=$always_export_symbols
14405
14406# The commands to list exported symbols.
14407export_symbols_cmds=$lt_export_symbols_cmds
14408
14409# Symbols that should not be listed in the preloaded symbols.
14410exclude_expsyms=$lt_exclude_expsyms
14411
14412# Symbols that must always be exported.
14413include_expsyms=$lt_include_expsyms
14414
14415# Commands necessary for linking programs (against libraries) with templates.
14416prelink_cmds=$lt_prelink_cmds
14417
14418# Specify filename containing input files.
14419file_list_spec=$lt_file_list_spec
14420
14421# How to hardcode a shared library path into an executable.
14422hardcode_action=$hardcode_action
14423
14424# ### END LIBTOOL CONFIG
14425
14426_LT_EOF
14427
14428 case $host_os in
14429 aix3*)
14430 cat <<\_LT_EOF >> "$cfgfile"
14431# AIX sometimes has problems with the GCC collect2 program. For some
14432# reason, if we set the COLLECT_NAMES environment variable, the problems
14433# vanish in a puff of smoke.
14434if test "X${COLLECT_NAMES+set}" != Xset; then
14435 COLLECT_NAMES=
14436 export COLLECT_NAMES
14437fi
14438_LT_EOF
14439 ;;
14440 esac
14441
14442
14443ltmain="$ac_aux_dir/ltmain.sh"
14444
14445
14446 # We use sed instead of cat because bash on DJGPP gets confused if
14447 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14448 # text mode, it properly converts lines to CR/LF. This bash problem
14449 # is reportedly fixed, but why not run on old versions too?
14450 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
14451 || (rm -f "$cfgfile"; exit 1)
14452
14453 case $xsi_shell in
14454 yes)
14455 cat << \_LT_EOF >> "$cfgfile"
1927a18f 14456
d7040cdb
SE
14457# func_dirname file append nondir_replacement
14458# Compute the dirname of FILE. If nonempty, add APPEND to the result,
14459# otherwise set result to NONDIR_REPLACEMENT.
14460func_dirname ()
14461{
14462 case ${1} in
14463 */*) func_dirname_result="${1%/*}${2}" ;;
14464 * ) func_dirname_result="${3}" ;;
14465 esac
14466}
14467
14468# func_basename file
14469func_basename ()
14470{
14471 func_basename_result="${1##*/}"
14472}
14473
1927a18f
L
14474# func_dirname_and_basename file append nondir_replacement
14475# perform func_basename and func_dirname in a single function
14476# call:
14477# dirname: Compute the dirname of FILE. If nonempty,
14478# add APPEND to the result, otherwise set result
14479# to NONDIR_REPLACEMENT.
14480# value returned in "$func_dirname_result"
14481# basename: Compute filename of FILE.
14482# value retuned in "$func_basename_result"
14483# Implementation must be kept synchronized with func_dirname
14484# and func_basename. For efficiency, we do not delegate to
14485# those functions but instead duplicate the functionality here.
14486func_dirname_and_basename ()
14487{
14488 case ${1} in
14489 */*) func_dirname_result="${1%/*}${2}" ;;
14490 * ) func_dirname_result="${3}" ;;
14491 esac
14492 func_basename_result="${1##*/}"
14493}
14494
d7040cdb
SE
14495# func_stripname prefix suffix name
14496# strip PREFIX and SUFFIX off of NAME.
14497# PREFIX and SUFFIX must not contain globbing or regex special
14498# characters, hashes, percent signs, but SUFFIX may contain a leading
14499# dot (in which case that matches only a dot).
14500func_stripname ()
14501{
14502 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
14503 # positional parameters, so assign one to ordinary parameter first.
14504 func_stripname_result=${3}
14505 func_stripname_result=${func_stripname_result#"${1}"}
14506 func_stripname_result=${func_stripname_result%"${2}"}
14507}
14508
14509# func_opt_split
14510func_opt_split ()
14511{
14512 func_opt_split_opt=${1%%=*}
14513 func_opt_split_arg=${1#*=}
14514}
14515
14516# func_lo2o object
14517func_lo2o ()
14518{
14519 case ${1} in
14520 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
14521 *) func_lo2o_result=${1} ;;
14522 esac
14523}
1927a18f
L
14524
14525# func_xform libobj-or-source
14526func_xform ()
14527{
14528 func_xform_result=${1%.*}.lo
14529}
14530
14531# func_arith arithmetic-term...
14532func_arith ()
14533{
14534 func_arith_result=$(( $* ))
14535}
14536
14537# func_len string
14538# STRING may not start with a hyphen.
14539func_len ()
14540{
14541 func_len_result=${#1}
14542}
14543
d7040cdb
SE
14544_LT_EOF
14545 ;;
14546 *) # Bourne compatible functions.
14547 cat << \_LT_EOF >> "$cfgfile"
1927a18f 14548
d7040cdb
SE
14549# func_dirname file append nondir_replacement
14550# Compute the dirname of FILE. If nonempty, add APPEND to the result,
14551# otherwise set result to NONDIR_REPLACEMENT.
14552func_dirname ()
14553{
14554 # Extract subdirectory from the argument.
3725885a 14555 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
d7040cdb
SE
14556 if test "X$func_dirname_result" = "X${1}"; then
14557 func_dirname_result="${3}"
14558 else
14559 func_dirname_result="$func_dirname_result${2}"
14560 fi
14561}
14562
14563# func_basename file
14564func_basename ()
14565{
3725885a 14566 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
d7040cdb
SE
14567}
14568
1927a18f 14569
d7040cdb
SE
14570# func_stripname prefix suffix name
14571# strip PREFIX and SUFFIX off of NAME.
14572# PREFIX and SUFFIX must not contain globbing or regex special
14573# characters, hashes, percent signs, but SUFFIX may contain a leading
14574# dot (in which case that matches only a dot).
14575# func_strip_suffix prefix name
14576func_stripname ()
14577{
14578 case ${2} in
3725885a
RW
14579 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
14580 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
d7040cdb
SE
14581 esac
14582}
14583
14584# sed scripts:
14585my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
14586my_sed_long_arg='1s/^-[^=]*=//'
14587
14588# func_opt_split
14589func_opt_split ()
14590{
3725885a
RW
14591 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
14592 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
d7040cdb
SE
14593}
14594
14595# func_lo2o object
14596func_lo2o ()
14597{
3725885a 14598 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
d7040cdb 14599}
1927a18f
L
14600
14601# func_xform libobj-or-source
14602func_xform ()
14603{
3725885a 14604 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
1927a18f
L
14605}
14606
14607# func_arith arithmetic-term...
14608func_arith ()
14609{
14610 func_arith_result=`expr "$@"`
14611}
14612
14613# func_len string
14614# STRING may not start with a hyphen.
14615func_len ()
14616{
14617 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
14618}
14619
d7040cdb
SE
14620_LT_EOF
14621esac
14622
14623case $lt_shell_append in
14624 yes)
14625 cat << \_LT_EOF >> "$cfgfile"
14626
14627# func_append var value
14628# Append VALUE to the end of shell variable VAR.
14629func_append ()
14630{
14631 eval "$1+=\$2"
14632}
14633_LT_EOF
14634 ;;
14635 *)
14636 cat << \_LT_EOF >> "$cfgfile"
14637
14638# func_append var value
14639# Append VALUE to the end of shell variable VAR.
14640func_append ()
14641{
14642 eval "$1=\$$1\$2"
14643}
1927a18f 14644
d7040cdb
SE
14645_LT_EOF
14646 ;;
14647 esac
14648
14649
14650 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
14651 || (rm -f "$cfgfile"; exit 1)
14652
14653 mv -f "$cfgfile" "$ofile" ||
14654 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14655 chmod +x "$ofile"
14656
8ae85421 14657 ;;
81ecdfbb 14658 "default-1":C)
20e95c23
DJ
14659 for ac_file in $CONFIG_FILES; do
14660 # Support "outfile[:infile[:infile...]]"
14661 case "$ac_file" in
14662 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
14663 esac
14664 # PO directories have a Makefile.in generated from Makefile.in.in.
14665 case "$ac_file" in */Makefile.in)
14666 # Adjust a relative srcdir.
14667 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
3cac54d2 14668 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
20e95c23
DJ
14669 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
14670 # In autoconf-2.13 it is called $ac_given_srcdir.
14671 # In autoconf-2.50 it is called $srcdir.
14672 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
14673 case "$ac_given_srcdir" in
14674 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
14675 /*) top_srcdir="$ac_given_srcdir" ;;
14676 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
14677 esac
14678 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
14679 rm -f "$ac_dir/POTFILES"
14680 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
14681 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
14682 POMAKEFILEDEPS="POTFILES.in"
14683 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
14684 # on $ac_dir but don't depend on user-specified configuration
14685 # parameters.
14686 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
14687 # The LINGUAS file contains the set of available languages.
14688 if test -n "$OBSOLETE_ALL_LINGUAS"; then
37a42ee9 14689 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
14690 fi
14691 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
14692 # Hide the ALL_LINGUAS assigment from automake.
14693 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
14694 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
14695 else
37a42ee9 14696 # The set of available languages was given in configure.ac.
20e95c23
DJ
14697 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
14698 fi
14699 case "$ac_given_srcdir" in
14700 .) srcdirpre= ;;
14701 *) srcdirpre='$(srcdir)/' ;;
14702 esac
14703 POFILES=
14704 GMOFILES=
14705 UPDATEPOFILES=
14706 DUMMYPOFILES=
14707 for lang in $ALL_LINGUAS; do
14708 POFILES="$POFILES $srcdirpre$lang.po"
14709 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
14710 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
14711 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
14712 done
14713 # CATALOGS depends on both $ac_dir and the user's LINGUAS
14714 # environment variable.
14715 INST_LINGUAS=
14716 if test -n "$ALL_LINGUAS"; then
14717 for presentlang in $ALL_LINGUAS; do
14718 useit=no
14719 if test "%UNSET%" != "$LINGUAS"; then
14720 desiredlanguages="$LINGUAS"
14721 else
14722 desiredlanguages="$ALL_LINGUAS"
14723 fi
14724 for desiredlang in $desiredlanguages; do
14725 # Use the presentlang catalog if desiredlang is
14726 # a. equal to presentlang, or
14727 # b. a variant of presentlang (because in this case,
14728 # presentlang can be used as a fallback for messages
14729 # which are not translated in the desiredlang catalog).
14730 case "$desiredlang" in
14731 "$presentlang"*) useit=yes;;
14732 esac
14733 done
14734 if test $useit = yes; then
14735 INST_LINGUAS="$INST_LINGUAS $presentlang"
14736 fi
14737 done
14738 fi
14739 CATALOGS=
14740 if test -n "$INST_LINGUAS"; then
14741 for lang in $INST_LINGUAS; do
14742 CATALOGS="$CATALOGS $lang.gmo"
14743 done
14744 fi
14745 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
14746 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"
14747 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
14748 if test -f "$f"; then
14749 case "$f" in
14750 *.orig | *.bak | *~) ;;
14751 *) cat "$f" >> "$ac_dir/Makefile" ;;
14752 esac
14753 fi
14754 done
14755 fi
14756 ;;
14757 esac
14758 done ;;
81ecdfbb 14759
979273e3 14760 esac
81ecdfbb 14761done # for ac_tag
979273e3 14762
979273e3 14763
81ecdfbb 14764as_fn_exit 0
979273e3 14765_ACEOF
979273e3
NN
14766ac_clean_files=$ac_clean_files_save
14767
81ecdfbb 14768test $ac_write_fail = 0 ||
d0ac1c44 14769 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
81ecdfbb 14770
979273e3
NN
14771
14772# configure is writing to config.log, and then calls config.status.
14773# config.status does its own redirection, appending to config.log.
14774# Unfortunately, on DOS this fails, as config.log is still kept open
14775# by configure, so config.status won't be able to write to it; its
14776# output is simply discarded. So we exec the FD to /dev/null,
14777# effectively closing config.log, so it can be properly (re)opened and
14778# appended to by config.status. When coming back to configure, we
14779# need to make the FD available again.
14780if test "$no_create" != yes; then
14781 ac_cs_success=:
14782 ac_config_status_args=
14783 test "$silent" = yes &&
14784 ac_config_status_args="$ac_config_status_args --quiet"
14785 exec 5>/dev/null
14786 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14787 exec 5>>config.log
14788 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14789 # would make configure fail if this is the last instruction.
d0ac1c44 14790 $ac_cs_success || as_fn_exit 1
81ecdfbb
RW
14791fi
14792if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14793 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14794$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
979273e3 14795fi
252b5132 14796
d546b610
L
14797
14798
14799touch config.status.tmp
14800if touch --reference=config.status config.status.tmp > /dev/null 2>&1; then
14801 sed '/as_fn_exit 0/i \
14802sed -e \"s/^\t\\\(\\\$(AM_V_CCLD)\\\)/\t+ \\\1/\" Makefile > Makefile.tmp \
14803touch --reference=Makefile Makefile.tmp \
14804mv Makefile.tmp Makefile \
14805' config.status > config.status.tmp
14806 touch --reference=config.status config.status.tmp
14807 mv config.status.tmp config.status
14808 chmod +x config.status
14809 sed -e "s/^\t\(\$(AM_V_CCLD)\)/\t+ \1/" Makefile > Makefile.tmp
14810 touch --reference=Makefile Makefile.tmp
14811 mv Makefile.tmp Makefile
14812else
14813 rm -f config.status.tmp
14814fi
This page took 2.439088 seconds and 4 git commands to generate.